1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for GiNaC 1.8.2.
4#
5# Report bugs to <ginac-list@ginac.de>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
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  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
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'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
279$0: ginac-list@ginac.de about your system, including any
280$0: error possibly output before this message. Then install
281$0: a modern shell, or manually run the script under such a
282$0: shell if you do have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='GiNaC'
623PACKAGE_TARNAME='ginac'
624PACKAGE_VERSION='1.8.2'
625PACKAGE_STRING='GiNaC 1.8.2'
626PACKAGE_BUGREPORT='ginac-list@ginac.de'
627PACKAGE_URL='https://www.ginac.de/'
628
629ac_unique_file="ginac/basic.cpp"
630# Factoring default headers for most tests.
631ac_includes_default="\
632#include <stddef.h>
633#ifdef HAVE_STDIO_H
634# include <stdio.h>
635#endif
636#ifdef HAVE_STDLIB_H
637# include <stdlib.h>
638#endif
639#ifdef HAVE_STRING_H
640# include <string.h>
641#endif
642#ifdef HAVE_INTTYPES_H
643# include <inttypes.h>
644#endif
645#ifdef HAVE_STDINT_H
646# include <stdint.h>
647#endif
648#ifdef HAVE_STRINGS_H
649# include <strings.h>
650#endif
651#ifdef HAVE_SYS_TYPES_H
652# include <sys/types.h>
653#endif
654#ifdef HAVE_SYS_STAT_H
655# include <sys/stat.h>
656#endif
657#ifdef HAVE_UNISTD_H
658# include <unistd.h>
659#endif"
660
661ac_header_c_list=
662ac_subst_vars='am__EXEEXT_FALSE
663am__EXEEXT_TRUE
664LTLIBOBJS
665LIBOBJS
666CONFIG_FIG2DEV_FALSE
667CONFIG_FIG2DEV_TRUE
668FIG2DEV
669CONFIG_TEX_FALSE
670CONFIG_TEX_TRUE
671DVIPS
672MAKEINDEX
673PDFLATEX
674LATEX
675CONFIG_DOXYGEN_FALSE
676CONFIG_DOXYGEN_TRUE
677DOXYGEN
678CONFIG_EXCOMPILER_FALSE
679CONFIG_EXCOMPILER_TRUE
680CONFIG_EXCOMPILER
681DL_LIBS
682pkgpyexecdir
683pyexecdir
684pkgpythondir
685pythondir
686PYTHON_EXEC_PREFIX
687PYTHON_PREFIX
688PYTHON_PLATFORM
689PYTHON_VERSION
690PYTHON
691GINSH_LIBS
692LIBTERMCAP
693CONFIG_RUSAGE
694GINACLIB_RPATH
695CLN_RPATH
696CLN_LIBS
697CLN_CFLAGS
698PKG_CONFIG_LIBDIR
699PKG_CONFIG_PATH
700PKG_CONFIG
701HAVE_CXX11
702YACCEXE
703YFLAGS
704YACC
705LEXLIB
706LEX_OUTPUT_ROOT
707LEX
708LT_SYS_LIBRARY_PATH
709OTOOL64
710OTOOL
711LIPO
712NMEDIT
713DSYMUTIL
714MANIFEST_TOOL
715RANLIB
716ac_ct_AR
717AR
718DLLTOOL
719OBJDUMP
720LN_S
721NM
722ac_ct_DUMPBIN
723DUMPBIN
724LD
725FGREP
726EGREP
727GREP
728SED
729am__fastdepCC_FALSE
730am__fastdepCC_TRUE
731CCDEPMODE
732ac_ct_CC
733CFLAGS
734CC
735host_os
736host_vendor
737host_cpu
738host
739build_os
740build_vendor
741build_cpu
742build
743LIBTOOL
744CXXCPP
745am__fastdepCXX_FALSE
746am__fastdepCXX_TRUE
747CXXDEPMODE
748am__nodep
749AMDEPBACKSLASH
750AMDEP_FALSE
751AMDEP_TRUE
752am__include
753DEPDIR
754OBJEXT
755EXEEXT
756ac_ct_CXX
757CPPFLAGS
758LDFLAGS
759CXXFLAGS
760CXX
761LT_VERSION_INFO
762AM_BACKSLASH
763AM_DEFAULT_VERBOSITY
764AM_DEFAULT_V
765AM_V
766CSCOPE
767ETAGS
768CTAGS
769am__untar
770am__tar
771AMTAR
772am__leading_dot
773SET_MAKE
774AWK
775mkdir_p
776MKDIR_P
777INSTALL_STRIP_PROGRAM
778STRIP
779install_sh
780MAKEINFO
781AUTOHEADER
782AUTOMAKE
783AUTOCONF
784ACLOCAL
785VERSION
786PACKAGE
787CYGPATH_W
788am__isrc
789INSTALL_DATA
790INSTALL_SCRIPT
791INSTALL_PROGRAM
792target_alias
793host_alias
794build_alias
795LIBS
796ECHO_T
797ECHO_N
798ECHO_C
799DEFS
800mandir
801localedir
802libdir
803psdir
804pdfdir
805dvidir
806htmldir
807infodir
808docdir
809oldincludedir
810includedir
811runstatedir
812localstatedir
813sharedstatedir
814sysconfdir
815datadir
816datarootdir
817libexecdir
818sbindir
819bindir
820program_transform_name
821prefix
822exec_prefix
823PACKAGE_URL
824PACKAGE_BUGREPORT
825PACKAGE_STRING
826PACKAGE_VERSION
827PACKAGE_TARNAME
828PACKAGE_NAME
829PATH_SEPARATOR
830SHELL
831am__quote'
832ac_subst_files=''
833ac_user_opts='
834enable_option_checking
835enable_silent_rules
836enable_dependency_tracking
837enable_shared
838enable_static
839with_pic
840enable_fast_install
841with_aix_soname
842with_gnu_ld
843with_sysroot
844enable_libtool_lock
845enable_rpath
846with_python_sys_prefix
847with_python_prefix
848with_python_exec_prefix
849enable_excompiler
850'
851      ac_precious_vars='build_alias
852host_alias
853target_alias
854CXX
855CXXFLAGS
856LDFLAGS
857LIBS
858CPPFLAGS
859CCC
860CXXCPP
861CC
862CFLAGS
863LT_SYS_LIBRARY_PATH
864YACC
865YFLAGS
866PKG_CONFIG
867PKG_CONFIG_PATH
868PKG_CONFIG_LIBDIR
869CLN_CFLAGS
870CLN_LIBS
871PYTHON'
872
873
874# Initialize some variables set by options.
875ac_init_help=
876ac_init_version=false
877ac_unrecognized_opts=
878ac_unrecognized_sep=
879# The variables have the same names as the options, with
880# dashes changed to underlines.
881cache_file=/dev/null
882exec_prefix=NONE
883no_create=
884no_recursion=
885prefix=NONE
886program_prefix=NONE
887program_suffix=NONE
888program_transform_name=s,x,x,
889silent=
890site=
891srcdir=
892verbose=
893x_includes=NONE
894x_libraries=NONE
895
896# Installation directory options.
897# These are left unexpanded so users can "make install exec_prefix=/foo"
898# and all the variables that are supposed to be based on exec_prefix
899# by default will actually change.
900# Use braces instead of parens because sh, perl, etc. also accept them.
901# (The list follows the same order as the GNU Coding Standards.)
902bindir='${exec_prefix}/bin'
903sbindir='${exec_prefix}/sbin'
904libexecdir='${exec_prefix}/libexec'
905datarootdir='${prefix}/share'
906datadir='${datarootdir}'
907sysconfdir='${prefix}/etc'
908sharedstatedir='${prefix}/com'
909localstatedir='${prefix}/var'
910runstatedir='${localstatedir}/run'
911includedir='${prefix}/include'
912oldincludedir='/usr/include'
913docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
914infodir='${datarootdir}/info'
915htmldir='${docdir}'
916dvidir='${docdir}'
917pdfdir='${docdir}'
918psdir='${docdir}'
919libdir='${exec_prefix}/lib'
920localedir='${datarootdir}/locale'
921mandir='${datarootdir}/man'
922
923ac_prev=
924ac_dashdash=
925for ac_option
926do
927  # If the previous option needs an argument, assign it.
928  if test -n "$ac_prev"; then
929    eval $ac_prev=\$ac_option
930    ac_prev=
931    continue
932  fi
933
934  case $ac_option in
935  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
936  *=)   ac_optarg= ;;
937  *)    ac_optarg=yes ;;
938  esac
939
940  case $ac_dashdash$ac_option in
941  --)
942    ac_dashdash=yes ;;
943
944  -bindir | --bindir | --bindi | --bind | --bin | --bi)
945    ac_prev=bindir ;;
946  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947    bindir=$ac_optarg ;;
948
949  -build | --build | --buil | --bui | --bu)
950    ac_prev=build_alias ;;
951  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952    build_alias=$ac_optarg ;;
953
954  -cache-file | --cache-file | --cache-fil | --cache-fi \
955  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956    ac_prev=cache_file ;;
957  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959    cache_file=$ac_optarg ;;
960
961  --config-cache | -C)
962    cache_file=config.cache ;;
963
964  -datadir | --datadir | --datadi | --datad)
965    ac_prev=datadir ;;
966  -datadir=* | --datadir=* | --datadi=* | --datad=*)
967    datadir=$ac_optarg ;;
968
969  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970  | --dataroo | --dataro | --datar)
971    ac_prev=datarootdir ;;
972  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974    datarootdir=$ac_optarg ;;
975
976  -disable-* | --disable-*)
977    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978    # Reject names that are not valid shell variable names.
979    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980      as_fn_error $? "invalid feature name: \`$ac_useropt'"
981    ac_useropt_orig=$ac_useropt
982    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
983    case $ac_user_opts in
984      *"
985"enable_$ac_useropt"
986"*) ;;
987      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988	 ac_unrecognized_sep=', ';;
989    esac
990    eval enable_$ac_useropt=no ;;
991
992  -docdir | --docdir | --docdi | --doc | --do)
993    ac_prev=docdir ;;
994  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995    docdir=$ac_optarg ;;
996
997  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998    ac_prev=dvidir ;;
999  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000    dvidir=$ac_optarg ;;
1001
1002  -enable-* | --enable-*)
1003    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004    # Reject names that are not valid shell variable names.
1005    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1007    ac_useropt_orig=$ac_useropt
1008    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1009    case $ac_user_opts in
1010      *"
1011"enable_$ac_useropt"
1012"*) ;;
1013      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014	 ac_unrecognized_sep=', ';;
1015    esac
1016    eval enable_$ac_useropt=\$ac_optarg ;;
1017
1018  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020  | --exec | --exe | --ex)
1021    ac_prev=exec_prefix ;;
1022  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024  | --exec=* | --exe=* | --ex=*)
1025    exec_prefix=$ac_optarg ;;
1026
1027  -gas | --gas | --ga | --g)
1028    # Obsolete; use --with-gas.
1029    with_gas=yes ;;
1030
1031  -help | --help | --hel | --he | -h)
1032    ac_init_help=long ;;
1033  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034    ac_init_help=recursive ;;
1035  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036    ac_init_help=short ;;
1037
1038  -host | --host | --hos | --ho)
1039    ac_prev=host_alias ;;
1040  -host=* | --host=* | --hos=* | --ho=*)
1041    host_alias=$ac_optarg ;;
1042
1043  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044    ac_prev=htmldir ;;
1045  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046  | --ht=*)
1047    htmldir=$ac_optarg ;;
1048
1049  -includedir | --includedir | --includedi | --included | --include \
1050  | --includ | --inclu | --incl | --inc)
1051    ac_prev=includedir ;;
1052  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053  | --includ=* | --inclu=* | --incl=* | --inc=*)
1054    includedir=$ac_optarg ;;
1055
1056  -infodir | --infodir | --infodi | --infod | --info | --inf)
1057    ac_prev=infodir ;;
1058  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059    infodir=$ac_optarg ;;
1060
1061  -libdir | --libdir | --libdi | --libd)
1062    ac_prev=libdir ;;
1063  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064    libdir=$ac_optarg ;;
1065
1066  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067  | --libexe | --libex | --libe)
1068    ac_prev=libexecdir ;;
1069  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070  | --libexe=* | --libex=* | --libe=*)
1071    libexecdir=$ac_optarg ;;
1072
1073  -localedir | --localedir | --localedi | --localed | --locale)
1074    ac_prev=localedir ;;
1075  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076    localedir=$ac_optarg ;;
1077
1078  -localstatedir | --localstatedir | --localstatedi | --localstated \
1079  | --localstate | --localstat | --localsta | --localst | --locals)
1080    ac_prev=localstatedir ;;
1081  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083    localstatedir=$ac_optarg ;;
1084
1085  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086    ac_prev=mandir ;;
1087  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088    mandir=$ac_optarg ;;
1089
1090  -nfp | --nfp | --nf)
1091    # Obsolete; use --without-fp.
1092    with_fp=no ;;
1093
1094  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095  | --no-cr | --no-c | -n)
1096    no_create=yes ;;
1097
1098  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100    no_recursion=yes ;;
1101
1102  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104  | --oldin | --oldi | --old | --ol | --o)
1105    ac_prev=oldincludedir ;;
1106  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109    oldincludedir=$ac_optarg ;;
1110
1111  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112    ac_prev=prefix ;;
1113  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114    prefix=$ac_optarg ;;
1115
1116  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117  | --program-pre | --program-pr | --program-p)
1118    ac_prev=program_prefix ;;
1119  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121    program_prefix=$ac_optarg ;;
1122
1123  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124  | --program-suf | --program-su | --program-s)
1125    ac_prev=program_suffix ;;
1126  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128    program_suffix=$ac_optarg ;;
1129
1130  -program-transform-name | --program-transform-name \
1131  | --program-transform-nam | --program-transform-na \
1132  | --program-transform-n | --program-transform- \
1133  | --program-transform | --program-transfor \
1134  | --program-transfo | --program-transf \
1135  | --program-trans | --program-tran \
1136  | --progr-tra | --program-tr | --program-t)
1137    ac_prev=program_transform_name ;;
1138  -program-transform-name=* | --program-transform-name=* \
1139  | --program-transform-nam=* | --program-transform-na=* \
1140  | --program-transform-n=* | --program-transform-=* \
1141  | --program-transform=* | --program-transfor=* \
1142  | --program-transfo=* | --program-transf=* \
1143  | --program-trans=* | --program-tran=* \
1144  | --progr-tra=* | --program-tr=* | --program-t=*)
1145    program_transform_name=$ac_optarg ;;
1146
1147  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148    ac_prev=pdfdir ;;
1149  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150    pdfdir=$ac_optarg ;;
1151
1152  -psdir | --psdir | --psdi | --psd | --ps)
1153    ac_prev=psdir ;;
1154  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155    psdir=$ac_optarg ;;
1156
1157  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158  | -silent | --silent | --silen | --sile | --sil)
1159    silent=yes ;;
1160
1161  -runstatedir | --runstatedir | --runstatedi | --runstated \
1162  | --runstate | --runstat | --runsta | --runst | --runs \
1163  | --run | --ru | --r)
1164    ac_prev=runstatedir ;;
1165  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1166  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1167  | --run=* | --ru=* | --r=*)
1168    runstatedir=$ac_optarg ;;
1169
1170  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1171    ac_prev=sbindir ;;
1172  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1173  | --sbi=* | --sb=*)
1174    sbindir=$ac_optarg ;;
1175
1176  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178  | --sharedst | --shareds | --shared | --share | --shar \
1179  | --sha | --sh)
1180    ac_prev=sharedstatedir ;;
1181  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1184  | --sha=* | --sh=*)
1185    sharedstatedir=$ac_optarg ;;
1186
1187  -site | --site | --sit)
1188    ac_prev=site ;;
1189  -site=* | --site=* | --sit=*)
1190    site=$ac_optarg ;;
1191
1192  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1193    ac_prev=srcdir ;;
1194  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195    srcdir=$ac_optarg ;;
1196
1197  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198  | --syscon | --sysco | --sysc | --sys | --sy)
1199    ac_prev=sysconfdir ;;
1200  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202    sysconfdir=$ac_optarg ;;
1203
1204  -target | --target | --targe | --targ | --tar | --ta | --t)
1205    ac_prev=target_alias ;;
1206  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207    target_alias=$ac_optarg ;;
1208
1209  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1210    verbose=yes ;;
1211
1212  -version | --version | --versio | --versi | --vers | -V)
1213    ac_init_version=: ;;
1214
1215  -with-* | --with-*)
1216    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217    # Reject names that are not valid shell variable names.
1218    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219      as_fn_error $? "invalid package name: \`$ac_useropt'"
1220    ac_useropt_orig=$ac_useropt
1221    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1222    case $ac_user_opts in
1223      *"
1224"with_$ac_useropt"
1225"*) ;;
1226      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1227	 ac_unrecognized_sep=', ';;
1228    esac
1229    eval with_$ac_useropt=\$ac_optarg ;;
1230
1231  -without-* | --without-*)
1232    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1233    # Reject names that are not valid shell variable names.
1234    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1235      as_fn_error $? "invalid package name: \`$ac_useropt'"
1236    ac_useropt_orig=$ac_useropt
1237    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1238    case $ac_user_opts in
1239      *"
1240"with_$ac_useropt"
1241"*) ;;
1242      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1243	 ac_unrecognized_sep=', ';;
1244    esac
1245    eval with_$ac_useropt=no ;;
1246
1247  --x)
1248    # Obsolete; use --with-x.
1249    with_x=yes ;;
1250
1251  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1252  | --x-incl | --x-inc | --x-in | --x-i)
1253    ac_prev=x_includes ;;
1254  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1255  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1256    x_includes=$ac_optarg ;;
1257
1258  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1259  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1260    ac_prev=x_libraries ;;
1261  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1262  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1263    x_libraries=$ac_optarg ;;
1264
1265  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1266Try \`$0 --help' for more information"
1267    ;;
1268
1269  *=*)
1270    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1271    # Reject names that are not valid shell variable names.
1272    case $ac_envvar in #(
1273      '' | [0-9]* | *[!_$as_cr_alnum]* )
1274      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1275    esac
1276    eval $ac_envvar=\$ac_optarg
1277    export $ac_envvar ;;
1278
1279  *)
1280    # FIXME: should be removed in autoconf 3.0.
1281    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1282    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1283      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1284    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1285    ;;
1286
1287  esac
1288done
1289
1290if test -n "$ac_prev"; then
1291  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1292  as_fn_error $? "missing argument to $ac_option"
1293fi
1294
1295if test -n "$ac_unrecognized_opts"; then
1296  case $enable_option_checking in
1297    no) ;;
1298    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1299    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1300  esac
1301fi
1302
1303# Check all directory arguments for consistency.
1304for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1305		datadir sysconfdir sharedstatedir localstatedir includedir \
1306		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1307		libdir localedir mandir runstatedir
1308do
1309  eval ac_val=\$$ac_var
1310  # Remove trailing slashes.
1311  case $ac_val in
1312    */ )
1313      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1314      eval $ac_var=\$ac_val;;
1315  esac
1316  # Be sure to have absolute directory names.
1317  case $ac_val in
1318    [\\/$]* | ?:[\\/]* )  continue;;
1319    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1320  esac
1321  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1322done
1323
1324# There might be people who depend on the old broken behavior: `$host'
1325# used to hold the argument of --host etc.
1326# FIXME: To remove some day.
1327build=$build_alias
1328host=$host_alias
1329target=$target_alias
1330
1331# FIXME: To remove some day.
1332if test "x$host_alias" != x; then
1333  if test "x$build_alias" = x; then
1334    cross_compiling=maybe
1335  elif test "x$build_alias" != "x$host_alias"; then
1336    cross_compiling=yes
1337  fi
1338fi
1339
1340ac_tool_prefix=
1341test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343test "$silent" = yes && exec 6>/dev/null
1344
1345
1346ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347ac_ls_di=`ls -di .` &&
1348ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349  as_fn_error $? "working directory cannot be determined"
1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351  as_fn_error $? "pwd does not report name of working directory"
1352
1353
1354# Find the source files, if location was not specified.
1355if test -z "$srcdir"; then
1356  ac_srcdir_defaulted=yes
1357  # Try the directory containing this script, then the parent directory.
1358  ac_confdir=`$as_dirname -- "$as_myself" ||
1359$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360	 X"$as_myself" : 'X\(//\)[^/]' \| \
1361	 X"$as_myself" : 'X\(//\)$' \| \
1362	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363printf "%s\n" X"$as_myself" |
1364    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1365	    s//\1/
1366	    q
1367	  }
1368	  /^X\(\/\/\)[^/].*/{
1369	    s//\1/
1370	    q
1371	  }
1372	  /^X\(\/\/\)$/{
1373	    s//\1/
1374	    q
1375	  }
1376	  /^X\(\/\).*/{
1377	    s//\1/
1378	    q
1379	  }
1380	  s/.*/./; q'`
1381  srcdir=$ac_confdir
1382  if test ! -r "$srcdir/$ac_unique_file"; then
1383    srcdir=..
1384  fi
1385else
1386  ac_srcdir_defaulted=no
1387fi
1388if test ! -r "$srcdir/$ac_unique_file"; then
1389  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1390  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1391fi
1392ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1393ac_abs_confdir=`(
1394	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1395	pwd)`
1396# When building in place, set srcdir=.
1397if test "$ac_abs_confdir" = "$ac_pwd"; then
1398  srcdir=.
1399fi
1400# Remove unnecessary trailing slashes from srcdir.
1401# Double slashes in file names in object file debugging info
1402# mess up M-x gdb in Emacs.
1403case $srcdir in
1404*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1405esac
1406for ac_var in $ac_precious_vars; do
1407  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1408  eval ac_env_${ac_var}_value=\$${ac_var}
1409  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1410  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411done
1412
1413#
1414# Report the --help message.
1415#
1416if test "$ac_init_help" = "long"; then
1417  # Omit some internal or obsolete options to make the list less imposing.
1418  # This message is too long to be a string in the A/UX 3.1 sh.
1419  cat <<_ACEOF
1420\`configure' configures GiNaC 1.8.2 to adapt to many kinds of systems.
1421
1422Usage: $0 [OPTION]... [VAR=VALUE]...
1423
1424To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425VAR=VALUE.  See below for descriptions of some of the useful variables.
1426
1427Defaults for the options are specified in brackets.
1428
1429Configuration:
1430  -h, --help              display this help and exit
1431      --help=short        display options specific to this package
1432      --help=recursive    display the short help of all the included packages
1433  -V, --version           display version information and exit
1434  -q, --quiet, --silent   do not print \`checking ...' messages
1435      --cache-file=FILE   cache test results in FILE [disabled]
1436  -C, --config-cache      alias for \`--cache-file=config.cache'
1437  -n, --no-create         do not create output files
1438      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1439
1440Installation directories:
1441  --prefix=PREFIX         install architecture-independent files in PREFIX
1442                          [$ac_default_prefix]
1443  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1444                          [PREFIX]
1445
1446By default, \`make install' will install all the files in
1447\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1448an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449for instance \`--prefix=\$HOME'.
1450
1451For better control, use the options below.
1452
1453Fine tuning of the installation directories:
1454  --bindir=DIR            user executables [EPREFIX/bin]
1455  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1456  --libexecdir=DIR        program executables [EPREFIX/libexec]
1457  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1458  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1459  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1460  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1461  --libdir=DIR            object code libraries [EPREFIX/lib]
1462  --includedir=DIR        C header files [PREFIX/include]
1463  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1464  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1465  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1466  --infodir=DIR           info documentation [DATAROOTDIR/info]
1467  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1468  --mandir=DIR            man documentation [DATAROOTDIR/man]
1469  --docdir=DIR            documentation root [DATAROOTDIR/doc/ginac]
1470  --htmldir=DIR           html documentation [DOCDIR]
1471  --dvidir=DIR            dvi documentation [DOCDIR]
1472  --pdfdir=DIR            pdf documentation [DOCDIR]
1473  --psdir=DIR             ps documentation [DOCDIR]
1474_ACEOF
1475
1476  cat <<\_ACEOF
1477
1478Program names:
1479  --program-prefix=PREFIX            prepend PREFIX to installed program names
1480  --program-suffix=SUFFIX            append SUFFIX to installed program names
1481  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1482
1483System types:
1484  --build=BUILD     configure for building on BUILD [guessed]
1485  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1486_ACEOF
1487fi
1488
1489if test -n "$ac_init_help"; then
1490  case $ac_init_help in
1491     short | recursive ) echo "Configuration of GiNaC 1.8.2:";;
1492   esac
1493  cat <<\_ACEOF
1494
1495Optional Features:
1496  --disable-option-checking  ignore unrecognized --enable/--with options
1497  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1498  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1499  --enable-silent-rules   less verbose build output (undo: "make V=1")
1500  --disable-silent-rules  verbose build output (undo: "make V=0")
1501  --enable-dependency-tracking
1502                          do not reject slow dependency extractors
1503  --disable-dependency-tracking
1504                          speeds up one-time build
1505  --enable-shared[=PKGS]  build shared libraries [default=yes]
1506  --enable-static[=PKGS]  build static libraries [default=yes]
1507  --enable-fast-install[=PKGS]
1508                          optimize for fast installation [default=yes]
1509  --disable-libtool-lock  avoid locking (might break parallel builds)
1510  --disable-rpath         do not hardcode runtime library paths
1511  --enable-excompiler     Enable GiNaC::compile_ex (default: yes)
1512
1513Optional Packages:
1514  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1515  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1516  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1517                          both]
1518  --with-aix-soname=aix|svr4|both
1519                          shared library versioning (aka "SONAME") variant to
1520                          provide on AIX, [default=aix].
1521  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1523                          compiler's sysroot if not specified).
1524  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1525  --with-python-sys-prefix
1526                          use Python's sys.prefix and sys.exec_prefix values
1527  --with-python_prefix    override the default PYTHON_PREFIX
1528  --with-python_exec_prefix
1529                          override the default PYTHON_EXEC_PREFIX
1530
1531Some influential environment variables:
1532  CXX         C++ compiler command
1533  CXXFLAGS    C++ compiler flags
1534  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1535              nonstandard directory <lib dir>
1536  LIBS        libraries to pass to the linker, e.g. -l<library>
1537  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1538              you have headers in a nonstandard directory <include dir>
1539  CXXCPP      C++ preprocessor
1540  CC          C compiler command
1541  CFLAGS      C compiler flags
1542  LT_SYS_LIBRARY_PATH
1543              User-defined run-time library search path.
1544  YACC        The `Yet Another Compiler Compiler' implementation to use.
1545              Defaults to the first program found out of: `bison -y', `byacc',
1546              `yacc'.
1547  YFLAGS      The list of arguments that will be passed by default to $YACC.
1548              This script will default YFLAGS to the empty string to avoid a
1549              default value of `-d' given by some make applications.
1550  PKG_CONFIG  path to pkg-config utility
1551  PKG_CONFIG_PATH
1552              directories to add to pkg-config's search path
1553  PKG_CONFIG_LIBDIR
1554              path overriding pkg-config's built-in search path
1555  CLN_CFLAGS  C compiler flags for CLN, overriding pkg-config
1556  CLN_LIBS    linker flags for CLN, overriding pkg-config
1557  PYTHON      the Python interpreter
1558
1559Use these variables to override the choices made by `configure' or to help
1560it to find libraries and programs with nonstandard names/locations.
1561
1562Report bugs to <ginac-list@ginac.de>.
1563GiNaC home page: <https://www.ginac.de/>.
1564_ACEOF
1565ac_status=$?
1566fi
1567
1568if test "$ac_init_help" = "recursive"; then
1569  # If there are subdirs, report their specific --help.
1570  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571    test -d "$ac_dir" ||
1572      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573      continue
1574    ac_builddir=.
1575
1576case "$ac_dir" in
1577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578*)
1579  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1580  # A ".." for each directory in $ac_dir_suffix.
1581  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582  case $ac_top_builddir_sub in
1583  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585  esac ;;
1586esac
1587ac_abs_top_builddir=$ac_pwd
1588ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589# for backward compatibility:
1590ac_top_builddir=$ac_top_build_prefix
1591
1592case $srcdir in
1593  .)  # We are building in place.
1594    ac_srcdir=.
1595    ac_top_srcdir=$ac_top_builddir_sub
1596    ac_abs_top_srcdir=$ac_pwd ;;
1597  [\\/]* | ?:[\\/]* )  # Absolute name.
1598    ac_srcdir=$srcdir$ac_dir_suffix;
1599    ac_top_srcdir=$srcdir
1600    ac_abs_top_srcdir=$srcdir ;;
1601  *) # Relative name.
1602    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603    ac_top_srcdir=$ac_top_build_prefix$srcdir
1604    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605esac
1606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608    cd "$ac_dir" || { ac_status=$?; continue; }
1609    # Check for configure.gnu first; this name is used for a wrapper for
1610    # Metaconfig's "Configure" on case-insensitive file systems.
1611    if test -f "$ac_srcdir/configure.gnu"; then
1612      echo &&
1613      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614    elif test -f "$ac_srcdir/configure"; then
1615      echo &&
1616      $SHELL "$ac_srcdir/configure" --help=recursive
1617    else
1618      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619    fi || ac_status=$?
1620    cd "$ac_pwd" || { ac_status=$?; break; }
1621  done
1622fi
1623
1624test -n "$ac_init_help" && exit $ac_status
1625if $ac_init_version; then
1626  cat <<\_ACEOF
1627GiNaC configure 1.8.2
1628generated by GNU Autoconf 2.71
1629
1630Copyright (C) 2021 Free Software Foundation, Inc.
1631This configure script is free software; the Free Software Foundation
1632gives unlimited permission to copy, distribute and modify it.
1633_ACEOF
1634  exit
1635fi
1636
1637## ------------------------ ##
1638## Autoconf initialization. ##
1639## ------------------------ ##
1640
1641# ac_fn_cxx_try_compile LINENO
1642# ----------------------------
1643# Try to compile conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_cxx_try_compile ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  rm -f conftest.$ac_objext conftest.beam
1648  if { { ac_try="$ac_compile"
1649case "(($ac_try" in
1650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651  *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654printf "%s\n" "$ac_try_echo"; } >&5
1655  (eval "$ac_compile") 2>conftest.err
1656  ac_status=$?
1657  if test -s conftest.err; then
1658    grep -v '^ *+' conftest.err >conftest.er1
1659    cat conftest.er1 >&5
1660    mv -f conftest.er1 conftest.err
1661  fi
1662  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; } && {
1664	 test -z "$ac_cxx_werror_flag" ||
1665	 test ! -s conftest.err
1666       } && test -s conftest.$ac_objext
1667then :
1668  ac_retval=0
1669else $as_nop
1670  printf "%s\n" "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673	ac_retval=1
1674fi
1675  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676  as_fn_set_status $ac_retval
1677
1678} # ac_fn_cxx_try_compile
1679
1680# ac_fn_cxx_try_cpp LINENO
1681# ------------------------
1682# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_cxx_try_cpp ()
1684{
1685  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686  if { { ac_try="$ac_cpp conftest.$ac_ext"
1687case "(($ac_try" in
1688  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689  *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692printf "%s\n" "$ac_try_echo"; } >&5
1693  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1694  ac_status=$?
1695  if test -s conftest.err; then
1696    grep -v '^ *+' conftest.err >conftest.er1
1697    cat conftest.er1 >&5
1698    mv -f conftest.er1 conftest.err
1699  fi
1700  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701  test $ac_status = 0; } > conftest.i && {
1702	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1703	 test ! -s conftest.err
1704       }
1705then :
1706  ac_retval=0
1707else $as_nop
1708  printf "%s\n" "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711    ac_retval=1
1712fi
1713  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1714  as_fn_set_status $ac_retval
1715
1716} # ac_fn_cxx_try_cpp
1717
1718# ac_fn_c_try_compile LINENO
1719# --------------------------
1720# Try to compile conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_compile ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  rm -f conftest.$ac_objext conftest.beam
1725  if { { ac_try="$ac_compile"
1726case "(($ac_try" in
1727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728  *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731printf "%s\n" "$ac_try_echo"; } >&5
1732  (eval "$ac_compile") 2>conftest.err
1733  ac_status=$?
1734  if test -s conftest.err; then
1735    grep -v '^ *+' conftest.err >conftest.er1
1736    cat conftest.er1 >&5
1737    mv -f conftest.er1 conftest.err
1738  fi
1739  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740  test $ac_status = 0; } && {
1741	 test -z "$ac_c_werror_flag" ||
1742	 test ! -s conftest.err
1743       } && test -s conftest.$ac_objext
1744then :
1745  ac_retval=0
1746else $as_nop
1747  printf "%s\n" "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750	ac_retval=1
1751fi
1752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753  as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_compile
1756
1757# ac_fn_c_try_link LINENO
1758# -----------------------
1759# Try to link conftest.$ac_ext, and return whether this succeeded.
1760ac_fn_c_try_link ()
1761{
1762  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1764  if { { ac_try="$ac_link"
1765case "(($ac_try" in
1766  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767  *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770printf "%s\n" "$ac_try_echo"; } >&5
1771  (eval "$ac_link") 2>conftest.err
1772  ac_status=$?
1773  if test -s conftest.err; then
1774    grep -v '^ *+' conftest.err >conftest.er1
1775    cat conftest.er1 >&5
1776    mv -f conftest.er1 conftest.err
1777  fi
1778  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779  test $ac_status = 0; } && {
1780	 test -z "$ac_c_werror_flag" ||
1781	 test ! -s conftest.err
1782       } && test -s conftest$ac_exeext && {
1783	 test "$cross_compiling" = yes ||
1784	 test -x conftest$ac_exeext
1785       }
1786then :
1787  ac_retval=0
1788else $as_nop
1789  printf "%s\n" "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792	ac_retval=1
1793fi
1794  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796  # interfere with the next link command; also delete a directory that is
1797  # left behind by Apple's compiler.  We do this before executing the actions.
1798  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800  as_fn_set_status $ac_retval
1801
1802} # ac_fn_c_try_link
1803
1804# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1805# -------------------------------------------------------
1806# Tests whether HEADER exists and can be compiled using the include files in
1807# INCLUDES, setting the cache variable VAR accordingly.
1808ac_fn_c_check_header_compile ()
1809{
1810  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812printf %s "checking for $2... " >&6; }
1813if eval test \${$3+y}
1814then :
1815  printf %s "(cached) " >&6
1816else $as_nop
1817  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h.  */
1819$4
1820#include <$2>
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"
1823then :
1824  eval "$3=yes"
1825else $as_nop
1826  eval "$3=no"
1827fi
1828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1829fi
1830eval ac_res=\$$3
1831	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832printf "%s\n" "$ac_res" >&6; }
1833  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835} # ac_fn_c_check_header_compile
1836
1837# ac_fn_c_check_func LINENO FUNC VAR
1838# ----------------------------------
1839# Tests whether FUNC exists, setting the cache variable VAR accordingly
1840ac_fn_c_check_func ()
1841{
1842  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1844printf %s "checking for $2... " >&6; }
1845if eval test \${$3+y}
1846then :
1847  printf %s "(cached) " >&6
1848else $as_nop
1849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850/* end confdefs.h.  */
1851/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1852   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1853#define $2 innocuous_$2
1854
1855/* System header to define __stub macros and hopefully few prototypes,
1856   which can conflict with char $2 (); below.  */
1857
1858#include <limits.h>
1859#undef $2
1860
1861/* Override any GCC internal prototype to avoid an error.
1862   Use char because int might match the return type of a GCC
1863   builtin and then its argument prototype would still apply.  */
1864#ifdef __cplusplus
1865extern "C"
1866#endif
1867char $2 ();
1868/* The GNU C library defines this for functions which it implements
1869    to always fail with ENOSYS.  Some functions are actually named
1870    something starting with __ and the normal name is an alias.  */
1871#if defined __stub_$2 || defined __stub___$2
1872choke me
1873#endif
1874
1875int
1876main (void)
1877{
1878return $2 ();
1879  ;
1880  return 0;
1881}
1882_ACEOF
1883if ac_fn_c_try_link "$LINENO"
1884then :
1885  eval "$3=yes"
1886else $as_nop
1887  eval "$3=no"
1888fi
1889rm -f core conftest.err conftest.$ac_objext conftest.beam \
1890    conftest$ac_exeext conftest.$ac_ext
1891fi
1892eval ac_res=\$$3
1893	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894printf "%s\n" "$ac_res" >&6; }
1895  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896
1897} # ac_fn_c_check_func
1898
1899# ac_fn_cxx_try_link LINENO
1900# -------------------------
1901# Try to link conftest.$ac_ext, and return whether this succeeded.
1902ac_fn_cxx_try_link ()
1903{
1904  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1906  if { { ac_try="$ac_link"
1907case "(($ac_try" in
1908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909  *) ac_try_echo=$ac_try;;
1910esac
1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912printf "%s\n" "$ac_try_echo"; } >&5
1913  (eval "$ac_link") 2>conftest.err
1914  ac_status=$?
1915  if test -s conftest.err; then
1916    grep -v '^ *+' conftest.err >conftest.er1
1917    cat conftest.er1 >&5
1918    mv -f conftest.er1 conftest.err
1919  fi
1920  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921  test $ac_status = 0; } && {
1922	 test -z "$ac_cxx_werror_flag" ||
1923	 test ! -s conftest.err
1924       } && test -s conftest$ac_exeext && {
1925	 test "$cross_compiling" = yes ||
1926	 test -x conftest$ac_exeext
1927       }
1928then :
1929  ac_retval=0
1930else $as_nop
1931  printf "%s\n" "$as_me: failed program was:" >&5
1932sed 's/^/| /' conftest.$ac_ext >&5
1933
1934	ac_retval=1
1935fi
1936  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1937  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1938  # interfere with the next link command; also delete a directory that is
1939  # left behind by Apple's compiler.  We do this before executing the actions.
1940  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1941  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942  as_fn_set_status $ac_retval
1943
1944} # ac_fn_cxx_try_link
1945
1946# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1947# ---------------------------------------------------------
1948# Tests whether HEADER exists and can be compiled using the include files in
1949# INCLUDES, setting the cache variable VAR accordingly.
1950ac_fn_cxx_check_header_compile ()
1951{
1952  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1954printf %s "checking for $2... " >&6; }
1955if eval test \${$3+y}
1956then :
1957  printf %s "(cached) " >&6
1958else $as_nop
1959  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961$4
1962#include <$2>
1963_ACEOF
1964if ac_fn_cxx_try_compile "$LINENO"
1965then :
1966  eval "$3=yes"
1967else $as_nop
1968  eval "$3=no"
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1971fi
1972eval ac_res=\$$3
1973	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974printf "%s\n" "$ac_res" >&6; }
1975  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976
1977} # ac_fn_cxx_check_header_compile
1978
1979# ac_fn_cxx_check_func LINENO FUNC VAR
1980# ------------------------------------
1981# Tests whether FUNC exists, setting the cache variable VAR accordingly
1982ac_fn_cxx_check_func ()
1983{
1984  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986printf %s "checking for $2... " >&6; }
1987if eval test \${$3+y}
1988then :
1989  printf %s "(cached) " >&6
1990else $as_nop
1991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h.  */
1993/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1994   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1995#define $2 innocuous_$2
1996
1997/* System header to define __stub macros and hopefully few prototypes,
1998   which can conflict with char $2 (); below.  */
1999
2000#include <limits.h>
2001#undef $2
2002
2003/* Override any GCC internal prototype to avoid an error.
2004   Use char because int might match the return type of a GCC
2005   builtin and then its argument prototype would still apply.  */
2006#ifdef __cplusplus
2007extern "C"
2008#endif
2009char $2 ();
2010/* The GNU C library defines this for functions which it implements
2011    to always fail with ENOSYS.  Some functions are actually named
2012    something starting with __ and the normal name is an alias.  */
2013#if defined __stub_$2 || defined __stub___$2
2014choke me
2015#endif
2016
2017int
2018main (void)
2019{
2020return $2 ();
2021  ;
2022  return 0;
2023}
2024_ACEOF
2025if ac_fn_cxx_try_link "$LINENO"
2026then :
2027  eval "$3=yes"
2028else $as_nop
2029  eval "$3=no"
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.beam \
2032    conftest$ac_exeext conftest.$ac_ext
2033fi
2034eval ac_res=\$$3
2035	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036printf "%s\n" "$ac_res" >&6; }
2037  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2038
2039} # ac_fn_cxx_check_func
2040ac_configure_args_raw=
2041for ac_arg
2042do
2043  case $ac_arg in
2044  *\'*)
2045    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2046  esac
2047  as_fn_append ac_configure_args_raw " '$ac_arg'"
2048done
2049
2050case $ac_configure_args_raw in
2051  *$as_nl*)
2052    ac_safe_unquote= ;;
2053  *)
2054    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2055    ac_unsafe_a="$ac_unsafe_z#~"
2056    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2057    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2058esac
2059
2060cat >config.log <<_ACEOF
2061This file contains any messages produced by compilers while
2062running configure, to aid debugging if configure makes a mistake.
2063
2064It was created by GiNaC $as_me 1.8.2, which was
2065generated by GNU Autoconf 2.71.  Invocation command line was
2066
2067  $ $0$ac_configure_args_raw
2068
2069_ACEOF
2070exec 5>>config.log
2071{
2072cat <<_ASUNAME
2073## --------- ##
2074## Platform. ##
2075## --------- ##
2076
2077hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2078uname -m = `(uname -m) 2>/dev/null || echo unknown`
2079uname -r = `(uname -r) 2>/dev/null || echo unknown`
2080uname -s = `(uname -s) 2>/dev/null || echo unknown`
2081uname -v = `(uname -v) 2>/dev/null || echo unknown`
2082
2083/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2084/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2085
2086/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2087/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2088/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2089/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2090/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2091/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2092/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2093
2094_ASUNAME
2095
2096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2097for as_dir in $PATH
2098do
2099  IFS=$as_save_IFS
2100  case $as_dir in #(((
2101    '') as_dir=./ ;;
2102    */) ;;
2103    *) as_dir=$as_dir/ ;;
2104  esac
2105    printf "%s\n" "PATH: $as_dir"
2106  done
2107IFS=$as_save_IFS
2108
2109} >&5
2110
2111cat >&5 <<_ACEOF
2112
2113
2114## ----------- ##
2115## Core tests. ##
2116## ----------- ##
2117
2118_ACEOF
2119
2120
2121# Keep a trace of the command line.
2122# Strip out --no-create and --no-recursion so they do not pile up.
2123# Strip out --silent because we don't want to record it for future runs.
2124# Also quote any args containing shell meta-characters.
2125# Make two passes to allow for proper duplicate-argument suppression.
2126ac_configure_args=
2127ac_configure_args0=
2128ac_configure_args1=
2129ac_must_keep_next=false
2130for ac_pass in 1 2
2131do
2132  for ac_arg
2133  do
2134    case $ac_arg in
2135    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137    | -silent | --silent | --silen | --sile | --sil)
2138      continue ;;
2139    *\'*)
2140      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141    esac
2142    case $ac_pass in
2143    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144    2)
2145      as_fn_append ac_configure_args1 " '$ac_arg'"
2146      if test $ac_must_keep_next = true; then
2147	ac_must_keep_next=false # Got value, back to normal.
2148      else
2149	case $ac_arg in
2150	  *=* | --config-cache | -C | -disable-* | --disable-* \
2151	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153	  | -with-* | --with-* | -without-* | --without-* | --x)
2154	    case "$ac_configure_args0 " in
2155	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156	    esac
2157	    ;;
2158	  -* ) ac_must_keep_next=true ;;
2159	esac
2160      fi
2161      as_fn_append ac_configure_args " '$ac_arg'"
2162      ;;
2163    esac
2164  done
2165done
2166{ ac_configure_args0=; unset ac_configure_args0;}
2167{ ac_configure_args1=; unset ac_configure_args1;}
2168
2169# When interrupted or exit'd, cleanup temporary files, and complete
2170# config.log.  We remove comments because anyway the quotes in there
2171# would cause problems or look ugly.
2172# WARNING: Use '\'' to represent an apostrophe within the trap.
2173# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174trap 'exit_status=$?
2175  # Sanitize IFS.
2176  IFS=" ""	$as_nl"
2177  # Save into config.log some information that might help in debugging.
2178  {
2179    echo
2180
2181    printf "%s\n" "## ---------------- ##
2182## Cache variables. ##
2183## ---------------- ##"
2184    echo
2185    # The following way of writing the cache mishandles newlines in values,
2186(
2187  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188    eval ac_val=\$$ac_var
2189    case $ac_val in #(
2190    *${as_nl}*)
2191      case $ac_var in #(
2192      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2193printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2194      esac
2195      case $ac_var in #(
2196      _ | IFS | as_nl) ;; #(
2197      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2198      *) { eval $ac_var=; unset $ac_var;} ;;
2199      esac ;;
2200    esac
2201  done
2202  (set) 2>&1 |
2203    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2204    *${as_nl}ac_space=\ *)
2205      sed -n \
2206	"s/'\''/'\''\\\\'\'''\''/g;
2207	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2208      ;; #(
2209    *)
2210      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2211      ;;
2212    esac |
2213    sort
2214)
2215    echo
2216
2217    printf "%s\n" "## ----------------- ##
2218## Output variables. ##
2219## ----------------- ##"
2220    echo
2221    for ac_var in $ac_subst_vars
2222    do
2223      eval ac_val=\$$ac_var
2224      case $ac_val in
2225      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226      esac
2227      printf "%s\n" "$ac_var='\''$ac_val'\''"
2228    done | sort
2229    echo
2230
2231    if test -n "$ac_subst_files"; then
2232      printf "%s\n" "## ------------------- ##
2233## File substitutions. ##
2234## ------------------- ##"
2235      echo
2236      for ac_var in $ac_subst_files
2237      do
2238	eval ac_val=\$$ac_var
2239	case $ac_val in
2240	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241	esac
2242	printf "%s\n" "$ac_var='\''$ac_val'\''"
2243      done | sort
2244      echo
2245    fi
2246
2247    if test -s confdefs.h; then
2248      printf "%s\n" "## ----------- ##
2249## confdefs.h. ##
2250## ----------- ##"
2251      echo
2252      cat confdefs.h
2253      echo
2254    fi
2255    test "$ac_signal" != 0 &&
2256      printf "%s\n" "$as_me: caught signal $ac_signal"
2257    printf "%s\n" "$as_me: exit $exit_status"
2258  } >&5
2259  rm -f core *.core core.conftest.* &&
2260    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2261    exit $exit_status
2262' 0
2263for ac_signal in 1 2 13 15; do
2264  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2265done
2266ac_signal=0
2267
2268# confdefs.h avoids OS command line length limits that DEFS can exceed.
2269rm -f -r conftest* confdefs.h
2270
2271printf "%s\n" "/* confdefs.h */" > confdefs.h
2272
2273# Predefined preprocessor variables.
2274
2275printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2276
2277printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2278
2279printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2280
2281printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2282
2283printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2284
2285printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2286
2287
2288# Let the site file select an alternate cache file if it wants to.
2289# Prefer an explicitly selected file to automatically selected ones.
2290if test -n "$CONFIG_SITE"; then
2291  ac_site_files="$CONFIG_SITE"
2292elif test "x$prefix" != xNONE; then
2293  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2294else
2295  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2296fi
2297
2298for ac_site_file in $ac_site_files
2299do
2300  case $ac_site_file in #(
2301  */*) :
2302     ;; #(
2303  *) :
2304    ac_site_file=./$ac_site_file ;;
2305esac
2306  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2307    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2308printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2309    sed 's/^/| /' "$ac_site_file" >&5
2310    . "$ac_site_file" \
2311      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2313as_fn_error $? "failed to load site script $ac_site_file
2314See \`config.log' for more details" "$LINENO" 5; }
2315  fi
2316done
2317
2318if test -r "$cache_file"; then
2319  # Some versions of bash will fail to source /dev/null (special files
2320  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2321  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2322    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2323printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2324    case $cache_file in
2325      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2326      *)                      . "./$cache_file";;
2327    esac
2328  fi
2329else
2330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2331printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2332  >$cache_file
2333fi
2334
2335# Test code for whether the C++ compiler supports C++98 (global declarations)
2336ac_cxx_conftest_cxx98_globals='
2337// Does the compiler advertise C++98 conformance?
2338#if !defined __cplusplus || __cplusplus < 199711L
2339# error "Compiler does not advertise C++98 conformance"
2340#endif
2341
2342// These inclusions are to reject old compilers that
2343// lack the unsuffixed header files.
2344#include <cstdlib>
2345#include <exception>
2346
2347// <cassert> and <cstring> are *not* freestanding headers in C++98.
2348extern void assert (int);
2349namespace std {
2350  extern int strcmp (const char *, const char *);
2351}
2352
2353// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2354using std::exception;
2355using std::strcmp;
2356
2357namespace {
2358
2359void test_exception_syntax()
2360{
2361  try {
2362    throw "test";
2363  } catch (const char *s) {
2364    // Extra parentheses suppress a warning when building autoconf itself,
2365    // due to lint rules shared with more typical C programs.
2366    assert (!(strcmp) (s, "test"));
2367  }
2368}
2369
2370template <typename T> struct test_template
2371{
2372  T const val;
2373  explicit test_template(T t) : val(t) {}
2374  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2375};
2376
2377} // anonymous namespace
2378'
2379
2380# Test code for whether the C++ compiler supports C++98 (body of main)
2381ac_cxx_conftest_cxx98_main='
2382  assert (argc);
2383  assert (! argv[0]);
2384{
2385  test_exception_syntax ();
2386  test_template<double> tt (2.0);
2387  assert (tt.add (4) == 6.0);
2388  assert (true && !false);
2389}
2390'
2391
2392# Test code for whether the C++ compiler supports C++11 (global declarations)
2393ac_cxx_conftest_cxx11_globals='
2394// Does the compiler advertise C++ 2011 conformance?
2395#if !defined __cplusplus || __cplusplus < 201103L
2396# error "Compiler does not advertise C++11 conformance"
2397#endif
2398
2399namespace cxx11test
2400{
2401  constexpr int get_val() { return 20; }
2402
2403  struct testinit
2404  {
2405    int i;
2406    double d;
2407  };
2408
2409  class delegate
2410  {
2411  public:
2412    delegate(int n) : n(n) {}
2413    delegate(): delegate(2354) {}
2414
2415    virtual int getval() { return this->n; };
2416  protected:
2417    int n;
2418  };
2419
2420  class overridden : public delegate
2421  {
2422  public:
2423    overridden(int n): delegate(n) {}
2424    virtual int getval() override final { return this->n * 2; }
2425  };
2426
2427  class nocopy
2428  {
2429  public:
2430    nocopy(int i): i(i) {}
2431    nocopy() = default;
2432    nocopy(const nocopy&) = delete;
2433    nocopy & operator=(const nocopy&) = delete;
2434  private:
2435    int i;
2436  };
2437
2438  // for testing lambda expressions
2439  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2440  {
2441    return f(v);
2442  }
2443
2444  // for testing variadic templates and trailing return types
2445  template <typename V> auto sum(V first) -> V
2446  {
2447    return first;
2448  }
2449  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2450  {
2451    return first + sum(rest...);
2452  }
2453}
2454'
2455
2456# Test code for whether the C++ compiler supports C++11 (body of main)
2457ac_cxx_conftest_cxx11_main='
2458{
2459  // Test auto and decltype
2460  auto a1 = 6538;
2461  auto a2 = 48573953.4;
2462  auto a3 = "String literal";
2463
2464  int total = 0;
2465  for (auto i = a3; *i; ++i) { total += *i; }
2466
2467  decltype(a2) a4 = 34895.034;
2468}
2469{
2470  // Test constexpr
2471  short sa[cxx11test::get_val()] = { 0 };
2472}
2473{
2474  // Test initializer lists
2475  cxx11test::testinit il = { 4323, 435234.23544 };
2476}
2477{
2478  // Test range-based for
2479  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2480                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2481  for (auto &x : array) { x += 23; }
2482}
2483{
2484  // Test lambda expressions
2485  using cxx11test::eval;
2486  assert (eval ([](int x) { return x*2; }, 21) == 42);
2487  double d = 2.0;
2488  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2489  assert (d == 5.0);
2490  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2491  assert (d == 5.0);
2492}
2493{
2494  // Test use of variadic templates
2495  using cxx11test::sum;
2496  auto a = sum(1);
2497  auto b = sum(1, 2);
2498  auto c = sum(1.0, 2.0, 3.0);
2499}
2500{
2501  // Test constructor delegation
2502  cxx11test::delegate d1;
2503  cxx11test::delegate d2();
2504  cxx11test::delegate d3(45);
2505}
2506{
2507  // Test override and final
2508  cxx11test::overridden o1(55464);
2509}
2510{
2511  // Test nullptr
2512  char *c = nullptr;
2513}
2514{
2515  // Test template brackets
2516  test_template<::test_template<int>> v(test_template<int>(12));
2517}
2518{
2519  // Unicode literals
2520  char const *utf8 = u8"UTF-8 string \u2500";
2521  char16_t const *utf16 = u"UTF-8 string \u2500";
2522  char32_t const *utf32 = U"UTF-32 string \u2500";
2523}
2524'
2525
2526# Test code for whether the C compiler supports C++11 (complete).
2527ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2528${ac_cxx_conftest_cxx11_globals}
2529
2530int
2531main (int argc, char **argv)
2532{
2533  int ok = 0;
2534  ${ac_cxx_conftest_cxx98_main}
2535  ${ac_cxx_conftest_cxx11_main}
2536  return ok;
2537}
2538"
2539
2540# Test code for whether the C compiler supports C++98 (complete).
2541ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2542int
2543main (int argc, char **argv)
2544{
2545  int ok = 0;
2546  ${ac_cxx_conftest_cxx98_main}
2547  return ok;
2548}
2549"
2550
2551# Test code for whether the C compiler supports C89 (global declarations)
2552ac_c_conftest_c89_globals='
2553/* Does the compiler advertise C89 conformance?
2554   Do not test the value of __STDC__, because some compilers set it to 0
2555   while being otherwise adequately conformant. */
2556#if !defined __STDC__
2557# error "Compiler does not advertise C89 conformance"
2558#endif
2559
2560#include <stddef.h>
2561#include <stdarg.h>
2562struct stat;
2563/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2564struct buf { int x; };
2565struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2566static char *e (p, i)
2567     char **p;
2568     int i;
2569{
2570  return p[i];
2571}
2572static char *f (char * (*g) (char **, int), char **p, ...)
2573{
2574  char *s;
2575  va_list v;
2576  va_start (v,p);
2577  s = g (p, va_arg (v,int));
2578  va_end (v);
2579  return s;
2580}
2581
2582/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2583   function prototypes and stuff, but not \xHH hex character constants.
2584   These do not provoke an error unfortunately, instead are silently treated
2585   as an "x".  The following induces an error, until -std is added to get
2586   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2587   array size at least.  It is necessary to write \x00 == 0 to get something
2588   that is true only with -std.  */
2589int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2590
2591/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2592   inside strings and character constants.  */
2593#define FOO(x) '\''x'\''
2594int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2595
2596int test (int i, double x);
2597struct s1 {int (*f) (int a);};
2598struct s2 {int (*f) (double a);};
2599int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2600               int, int);'
2601
2602# Test code for whether the C compiler supports C89 (body of main).
2603ac_c_conftest_c89_main='
2604ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2605'
2606
2607# Test code for whether the C compiler supports C99 (global declarations)
2608ac_c_conftest_c99_globals='
2609// Does the compiler advertise C99 conformance?
2610#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2611# error "Compiler does not advertise C99 conformance"
2612#endif
2613
2614#include <stdbool.h>
2615extern int puts (const char *);
2616extern int printf (const char *, ...);
2617extern int dprintf (int, const char *, ...);
2618extern void *malloc (size_t);
2619
2620// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2621// dprintf is used instead of fprintf to avoid needing to declare
2622// FILE and stderr.
2623#define debug(...) dprintf (2, __VA_ARGS__)
2624#define showlist(...) puts (#__VA_ARGS__)
2625#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2626static void
2627test_varargs_macros (void)
2628{
2629  int x = 1234;
2630  int y = 5678;
2631  debug ("Flag");
2632  debug ("X = %d\n", x);
2633  showlist (The first, second, and third items.);
2634  report (x>y, "x is %d but y is %d", x, y);
2635}
2636
2637// Check long long types.
2638#define BIG64 18446744073709551615ull
2639#define BIG32 4294967295ul
2640#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2641#if !BIG_OK
2642  #error "your preprocessor is broken"
2643#endif
2644#if BIG_OK
2645#else
2646  #error "your preprocessor is broken"
2647#endif
2648static long long int bignum = -9223372036854775807LL;
2649static unsigned long long int ubignum = BIG64;
2650
2651struct incomplete_array
2652{
2653  int datasize;
2654  double data[];
2655};
2656
2657struct named_init {
2658  int number;
2659  const wchar_t *name;
2660  double average;
2661};
2662
2663typedef const char *ccp;
2664
2665static inline int
2666test_restrict (ccp restrict text)
2667{
2668  // See if C++-style comments work.
2669  // Iterate through items via the restricted pointer.
2670  // Also check for declarations in for loops.
2671  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2672    continue;
2673  return 0;
2674}
2675
2676// Check varargs and va_copy.
2677static bool
2678test_varargs (const char *format, ...)
2679{
2680  va_list args;
2681  va_start (args, format);
2682  va_list args_copy;
2683  va_copy (args_copy, args);
2684
2685  const char *str = "";
2686  int number = 0;
2687  float fnumber = 0;
2688
2689  while (*format)
2690    {
2691      switch (*format++)
2692	{
2693	case '\''s'\'': // string
2694	  str = va_arg (args_copy, const char *);
2695	  break;
2696	case '\''d'\'': // int
2697	  number = va_arg (args_copy, int);
2698	  break;
2699	case '\''f'\'': // float
2700	  fnumber = va_arg (args_copy, double);
2701	  break;
2702	default:
2703	  break;
2704	}
2705    }
2706  va_end (args_copy);
2707  va_end (args);
2708
2709  return *str && number && fnumber;
2710}
2711'
2712
2713# Test code for whether the C compiler supports C99 (body of main).
2714ac_c_conftest_c99_main='
2715  // Check bool.
2716  _Bool success = false;
2717  success |= (argc != 0);
2718
2719  // Check restrict.
2720  if (test_restrict ("String literal") == 0)
2721    success = true;
2722  char *restrict newvar = "Another string";
2723
2724  // Check varargs.
2725  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2726  test_varargs_macros ();
2727
2728  // Check flexible array members.
2729  struct incomplete_array *ia =
2730    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2731  ia->datasize = 10;
2732  for (int i = 0; i < ia->datasize; ++i)
2733    ia->data[i] = i * 1.234;
2734
2735  // Check named initializers.
2736  struct named_init ni = {
2737    .number = 34,
2738    .name = L"Test wide string",
2739    .average = 543.34343,
2740  };
2741
2742  ni.number = 58;
2743
2744  int dynamic_array[ni.number];
2745  dynamic_array[0] = argv[0][0];
2746  dynamic_array[ni.number - 1] = 543;
2747
2748  // work around unused variable warnings
2749  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2750	 || dynamic_array[ni.number - 1] != 543);
2751'
2752
2753# Test code for whether the C compiler supports C11 (global declarations)
2754ac_c_conftest_c11_globals='
2755// Does the compiler advertise C11 conformance?
2756#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2757# error "Compiler does not advertise C11 conformance"
2758#endif
2759
2760// Check _Alignas.
2761char _Alignas (double) aligned_as_double;
2762char _Alignas (0) no_special_alignment;
2763extern char aligned_as_int;
2764char _Alignas (0) _Alignas (int) aligned_as_int;
2765
2766// Check _Alignof.
2767enum
2768{
2769  int_alignment = _Alignof (int),
2770  int_array_alignment = _Alignof (int[100]),
2771  char_alignment = _Alignof (char)
2772};
2773_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2774
2775// Check _Noreturn.
2776int _Noreturn does_not_return (void) { for (;;) continue; }
2777
2778// Check _Static_assert.
2779struct test_static_assert
2780{
2781  int x;
2782  _Static_assert (sizeof (int) <= sizeof (long int),
2783                  "_Static_assert does not work in struct");
2784  long int y;
2785};
2786
2787// Check UTF-8 literals.
2788#define u8 syntax error!
2789char const utf8_literal[] = u8"happens to be ASCII" "another string";
2790
2791// Check duplicate typedefs.
2792typedef long *long_ptr;
2793typedef long int *long_ptr;
2794typedef long_ptr long_ptr;
2795
2796// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2797struct anonymous
2798{
2799  union {
2800    struct { int i; int j; };
2801    struct { int k; long int l; } w;
2802  };
2803  int m;
2804} v1;
2805'
2806
2807# Test code for whether the C compiler supports C11 (body of main).
2808ac_c_conftest_c11_main='
2809  _Static_assert ((offsetof (struct anonymous, i)
2810		   == offsetof (struct anonymous, w.k)),
2811		  "Anonymous union alignment botch");
2812  v1.i = 2;
2813  v1.w.k = 5;
2814  ok |= v1.i != 5;
2815'
2816
2817# Test code for whether the C compiler supports C11 (complete).
2818ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2819${ac_c_conftest_c99_globals}
2820${ac_c_conftest_c11_globals}
2821
2822int
2823main (int argc, char **argv)
2824{
2825  int ok = 0;
2826  ${ac_c_conftest_c89_main}
2827  ${ac_c_conftest_c99_main}
2828  ${ac_c_conftest_c11_main}
2829  return ok;
2830}
2831"
2832
2833# Test code for whether the C compiler supports C99 (complete).
2834ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2835${ac_c_conftest_c99_globals}
2836
2837int
2838main (int argc, char **argv)
2839{
2840  int ok = 0;
2841  ${ac_c_conftest_c89_main}
2842  ${ac_c_conftest_c99_main}
2843  return ok;
2844}
2845"
2846
2847# Test code for whether the C compiler supports C89 (complete).
2848ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2849
2850int
2851main (int argc, char **argv)
2852{
2853  int ok = 0;
2854  ${ac_c_conftest_c89_main}
2855  return ok;
2856}
2857"
2858
2859as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2860as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2861as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2862as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2863as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2864as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2865as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2866as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2867as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2868
2869# Auxiliary files required by this configure script.
2870ac_aux_files="config.rpath compile config.guess config.sub ltmain.sh missing install-sh"
2871
2872# Locations in which to look for auxiliary files.
2873ac_aux_dir_candidates="${srcdir}/config"
2874
2875# Search for a directory containing all of the required auxiliary files,
2876# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2877# If we don't find one directory that contains all the files we need,
2878# we report the set of missing files from the *first* directory in
2879# $ac_aux_dir_candidates and give up.
2880ac_missing_aux_files=""
2881ac_first_candidate=:
2882printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884as_found=false
2885for as_dir in $ac_aux_dir_candidates
2886do
2887  IFS=$as_save_IFS
2888  case $as_dir in #(((
2889    '') as_dir=./ ;;
2890    */) ;;
2891    *) as_dir=$as_dir/ ;;
2892  esac
2893  as_found=:
2894
2895  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
2896  ac_aux_dir_found=yes
2897  ac_install_sh=
2898  for ac_aux in $ac_aux_files
2899  do
2900    # As a special case, if "install-sh" is required, that requirement
2901    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2902    # and $ac_install_sh is set appropriately for whichever one is found.
2903    if test x"$ac_aux" = x"install-sh"
2904    then
2905      if test -f "${as_dir}install-sh"; then
2906        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
2907        ac_install_sh="${as_dir}install-sh -c"
2908      elif test -f "${as_dir}install.sh"; then
2909        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
2910        ac_install_sh="${as_dir}install.sh -c"
2911      elif test -f "${as_dir}shtool"; then
2912        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
2913        ac_install_sh="${as_dir}shtool install -c"
2914      else
2915        ac_aux_dir_found=no
2916        if $ac_first_candidate; then
2917          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2918        else
2919          break
2920        fi
2921      fi
2922    else
2923      if test -f "${as_dir}${ac_aux}"; then
2924        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
2925      else
2926        ac_aux_dir_found=no
2927        if $ac_first_candidate; then
2928          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2929        else
2930          break
2931        fi
2932      fi
2933    fi
2934  done
2935  if test "$ac_aux_dir_found" = yes; then
2936    ac_aux_dir="$as_dir"
2937    break
2938  fi
2939  ac_first_candidate=false
2940
2941  as_found=false
2942done
2943IFS=$as_save_IFS
2944if $as_found
2945then :
2946
2947else $as_nop
2948  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2949fi
2950
2951
2952# These three variables are undocumented and unsupported,
2953# and are intended to be withdrawn in a future Autoconf release.
2954# They can cause serious problems if a builder's source tree is in a directory
2955# whose full name contains unusual characters.
2956if test -f "${ac_aux_dir}config.guess"; then
2957  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2958fi
2959if test -f "${ac_aux_dir}config.sub"; then
2960  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2961fi
2962if test -f "$ac_aux_dir/configure"; then
2963  ac_configure="$SHELL ${ac_aux_dir}configure"
2964fi
2965
2966# Check that the precious variables saved in the cache have kept the same
2967# value.
2968ac_cache_corrupted=false
2969for ac_var in $ac_precious_vars; do
2970  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2971  eval ac_new_set=\$ac_env_${ac_var}_set
2972  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2973  eval ac_new_val=\$ac_env_${ac_var}_value
2974  case $ac_old_set,$ac_new_set in
2975    set,)
2976      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2977printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2978      ac_cache_corrupted=: ;;
2979    ,set)
2980      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2981printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2982      ac_cache_corrupted=: ;;
2983    ,);;
2984    *)
2985      if test "x$ac_old_val" != "x$ac_new_val"; then
2986	# differences in whitespace do not lead to failure.
2987	ac_old_val_w=`echo x $ac_old_val`
2988	ac_new_val_w=`echo x $ac_new_val`
2989	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2990	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2991printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2992	  ac_cache_corrupted=:
2993	else
2994	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2995printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2996	  eval $ac_var=\$ac_old_val
2997	fi
2998	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2999printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3000	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3001printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3002      fi;;
3003  esac
3004  # Pass precious variables to config.status.
3005  if test "$ac_new_set" = set; then
3006    case $ac_new_val in
3007    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3008    *) ac_arg=$ac_var=$ac_new_val ;;
3009    esac
3010    case " $ac_configure_args " in
3011      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3012      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3013    esac
3014  fi
3015done
3016if $ac_cache_corrupted; then
3017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3019  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3020printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3021  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3022	    and start over" "$LINENO" 5
3023fi
3024## -------------------- ##
3025## Main body of script. ##
3026## -------------------- ##
3027
3028ac_ext=c
3029ac_cpp='$CPP $CPPFLAGS'
3030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3032ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033
3034
3035
3036
3037
3038ac_config_headers="$ac_config_headers config/config.h"
3039
3040
3041am__api_version='1.16'
3042
3043
3044
3045  # Find a good install program.  We prefer a C program (faster),
3046# so one script is as good as another.  But avoid the broken or
3047# incompatible versions:
3048# SysV /etc/install, /usr/sbin/install
3049# SunOS /usr/etc/install
3050# IRIX /sbin/install
3051# AIX /bin/install
3052# AmigaOS /C/install, which installs bootblocks on floppy discs
3053# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3054# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3055# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3056# OS/2's system install, which has a completely different semantic
3057# ./install, which can be erroneously created by make from ./install.sh.
3058# Reject install programs that cannot install multiple files.
3059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3060printf %s "checking for a BSD-compatible install... " >&6; }
3061if test -z "$INSTALL"; then
3062if test ${ac_cv_path_install+y}
3063then :
3064  printf %s "(cached) " >&6
3065else $as_nop
3066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  case $as_dir in #(((
3071    '') as_dir=./ ;;
3072    */) ;;
3073    *) as_dir=$as_dir/ ;;
3074  esac
3075    # Account for fact that we put trailing slashes in our PATH walk.
3076case $as_dir in #((
3077  ./ | /[cC]/* | \
3078  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3079  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3080  /usr/ucb/* ) ;;
3081  *)
3082    # OSF1 and SCO ODT 3.0 have their own names for install.
3083    # Don't use installbsd from OSF since it installs stuff as root
3084    # by default.
3085    for ac_prog in ginstall scoinst install; do
3086      for ac_exec_ext in '' $ac_executable_extensions; do
3087	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3088	  if test $ac_prog = install &&
3089	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3090	    # AIX install.  It has an incompatible calling convention.
3091	    :
3092	  elif test $ac_prog = install &&
3093	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3094	    # program-specific install script used by HP pwplus--don't use.
3095	    :
3096	  else
3097	    rm -rf conftest.one conftest.two conftest.dir
3098	    echo one > conftest.one
3099	    echo two > conftest.two
3100	    mkdir conftest.dir
3101	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3102	      test -s conftest.one && test -s conftest.two &&
3103	      test -s conftest.dir/conftest.one &&
3104	      test -s conftest.dir/conftest.two
3105	    then
3106	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3107	      break 3
3108	    fi
3109	  fi
3110	fi
3111      done
3112    done
3113    ;;
3114esac
3115
3116  done
3117IFS=$as_save_IFS
3118
3119rm -rf conftest.one conftest.two conftest.dir
3120
3121fi
3122  if test ${ac_cv_path_install+y}; then
3123    INSTALL=$ac_cv_path_install
3124  else
3125    # As a last resort, use the slow shell script.  Don't cache a
3126    # value for INSTALL within a source directory, because that will
3127    # break other packages using the cache if that directory is
3128    # removed, or if the value is a relative name.
3129    INSTALL=$ac_install_sh
3130  fi
3131fi
3132{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3133printf "%s\n" "$INSTALL" >&6; }
3134
3135# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3136# It thinks the first close brace ends the variable substitution.
3137test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3138
3139test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3140
3141test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3142
3143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3144printf %s "checking whether build environment is sane... " >&6; }
3145# Reject unsafe characters in $srcdir or the absolute working directory
3146# name.  Accept space and tab only in the latter.
3147am_lf='
3148'
3149case `pwd` in
3150  *[\\\"\#\$\&\'\`$am_lf]*)
3151    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3152esac
3153case $srcdir in
3154  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3155    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3156esac
3157
3158# Do 'set' in a subshell so we don't clobber the current shell's
3159# arguments.  Must try -L first in case configure is actually a
3160# symlink; some systems play weird games with the mod time of symlinks
3161# (eg FreeBSD returns the mod time of the symlink's containing
3162# directory).
3163if (
3164   am_has_slept=no
3165   for am_try in 1 2; do
3166     echo "timestamp, slept: $am_has_slept" > conftest.file
3167     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3168     if test "$*" = "X"; then
3169	# -L didn't work.
3170	set X `ls -t "$srcdir/configure" conftest.file`
3171     fi
3172     if test "$*" != "X $srcdir/configure conftest.file" \
3173	&& test "$*" != "X conftest.file $srcdir/configure"; then
3174
3175	# If neither matched, then we have a broken ls.  This can happen
3176	# if, for instance, CONFIG_SHELL is bash and it inherits a
3177	# broken ls alias from the environment.  This has actually
3178	# happened.  Such a system could not be considered "sane".
3179	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3180  alias in your environment" "$LINENO" 5
3181     fi
3182     if test "$2" = conftest.file || test $am_try -eq 2; then
3183       break
3184     fi
3185     # Just in case.
3186     sleep 1
3187     am_has_slept=yes
3188   done
3189   test "$2" = conftest.file
3190   )
3191then
3192   # Ok.
3193   :
3194else
3195   as_fn_error $? "newly created file is older than distributed files!
3196Check your system clock" "$LINENO" 5
3197fi
3198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199printf "%s\n" "yes" >&6; }
3200# If we didn't sleep, we still need to ensure time stamps of config.status and
3201# generated files are strictly newer.
3202am_sleep_pid=
3203if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3204  ( sleep 1 ) &
3205  am_sleep_pid=$!
3206fi
3207
3208rm -f conftest.file
3209
3210test "$program_prefix" != NONE &&
3211  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3212# Use a double $ so make ignores it.
3213test "$program_suffix" != NONE &&
3214  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3215# Double any \ or $.
3216# By default was `s,x,x', remove it if useless.
3217ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3218program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3219
3220
3221# Expand $ac_aux_dir to an absolute path.
3222am_aux_dir=`cd "$ac_aux_dir" && pwd`
3223
3224
3225  if test x"${MISSING+set}" != xset; then
3226  MISSING="\${SHELL} '$am_aux_dir/missing'"
3227fi
3228# Use eval to expand $SHELL
3229if eval "$MISSING --is-lightweight"; then
3230  am_missing_run="$MISSING "
3231else
3232  am_missing_run=
3233  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3234printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3235fi
3236
3237if test x"${install_sh+set}" != xset; then
3238  case $am_aux_dir in
3239  *\ * | *\	*)
3240    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3241  *)
3242    install_sh="\${SHELL} $am_aux_dir/install-sh"
3243  esac
3244fi
3245
3246# Installed binaries are usually stripped using 'strip' when the user
3247# run "make install-strip".  However 'strip' might not be the right
3248# tool to use in cross-compilation environments, therefore Automake
3249# will honor the 'STRIP' environment variable to overrule this program.
3250if test "$cross_compiling" != no; then
3251  if test -n "$ac_tool_prefix"; then
3252  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3253set dummy ${ac_tool_prefix}strip; ac_word=$2
3254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255printf %s "checking for $ac_word... " >&6; }
3256if test ${ac_cv_prog_STRIP+y}
3257then :
3258  printf %s "(cached) " >&6
3259else $as_nop
3260  if test -n "$STRIP"; then
3261  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3262else
3263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264for as_dir in $PATH
3265do
3266  IFS=$as_save_IFS
3267  case $as_dir in #(((
3268    '') as_dir=./ ;;
3269    */) ;;
3270    *) as_dir=$as_dir/ ;;
3271  esac
3272    for ac_exec_ext in '' $ac_executable_extensions; do
3273  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3274    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3275    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3276    break 2
3277  fi
3278done
3279  done
3280IFS=$as_save_IFS
3281
3282fi
3283fi
3284STRIP=$ac_cv_prog_STRIP
3285if test -n "$STRIP"; then
3286  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3287printf "%s\n" "$STRIP" >&6; }
3288else
3289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290printf "%s\n" "no" >&6; }
3291fi
3292
3293
3294fi
3295if test -z "$ac_cv_prog_STRIP"; then
3296  ac_ct_STRIP=$STRIP
3297  # Extract the first word of "strip", so it can be a program name with args.
3298set dummy strip; ac_word=$2
3299{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300printf %s "checking for $ac_word... " >&6; }
3301if test ${ac_cv_prog_ac_ct_STRIP+y}
3302then :
3303  printf %s "(cached) " >&6
3304else $as_nop
3305  if test -n "$ac_ct_STRIP"; then
3306  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3307else
3308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309for as_dir in $PATH
3310do
3311  IFS=$as_save_IFS
3312  case $as_dir in #(((
3313    '') as_dir=./ ;;
3314    */) ;;
3315    *) as_dir=$as_dir/ ;;
3316  esac
3317    for ac_exec_ext in '' $ac_executable_extensions; do
3318  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3319    ac_cv_prog_ac_ct_STRIP="strip"
3320    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3321    break 2
3322  fi
3323done
3324  done
3325IFS=$as_save_IFS
3326
3327fi
3328fi
3329ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3330if test -n "$ac_ct_STRIP"; then
3331  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3332printf "%s\n" "$ac_ct_STRIP" >&6; }
3333else
3334  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3335printf "%s\n" "no" >&6; }
3336fi
3337
3338  if test "x$ac_ct_STRIP" = x; then
3339    STRIP=":"
3340  else
3341    case $cross_compiling:$ac_tool_warned in
3342yes:)
3343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3344printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3345ac_tool_warned=yes ;;
3346esac
3347    STRIP=$ac_ct_STRIP
3348  fi
3349else
3350  STRIP="$ac_cv_prog_STRIP"
3351fi
3352
3353fi
3354INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3355
3356
3357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3358printf %s "checking for a race-free mkdir -p... " >&6; }
3359if test -z "$MKDIR_P"; then
3360  if test ${ac_cv_path_mkdir+y}
3361then :
3362  printf %s "(cached) " >&6
3363else $as_nop
3364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3366do
3367  IFS=$as_save_IFS
3368  case $as_dir in #(((
3369    '') as_dir=./ ;;
3370    */) ;;
3371    *) as_dir=$as_dir/ ;;
3372  esac
3373    for ac_prog in mkdir gmkdir; do
3374	 for ac_exec_ext in '' $ac_executable_extensions; do
3375	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3376	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3377	     'mkdir ('*'coreutils) '* | \
3378	     'BusyBox '* | \
3379	     'mkdir (fileutils) '4.1*)
3380	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3381	       break 3;;
3382	   esac
3383	 done
3384       done
3385  done
3386IFS=$as_save_IFS
3387
3388fi
3389
3390  test -d ./--version && rmdir ./--version
3391  if test ${ac_cv_path_mkdir+y}; then
3392    MKDIR_P="$ac_cv_path_mkdir -p"
3393  else
3394    # As a last resort, use the slow shell script.  Don't cache a
3395    # value for MKDIR_P within a source directory, because that will
3396    # break other packages using the cache if that directory is
3397    # removed, or if the value is a relative name.
3398    MKDIR_P="$ac_install_sh -d"
3399  fi
3400fi
3401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3402printf "%s\n" "$MKDIR_P" >&6; }
3403
3404for ac_prog in gawk mawk nawk awk
3405do
3406  # Extract the first word of "$ac_prog", so it can be a program name with args.
3407set dummy $ac_prog; ac_word=$2
3408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409printf %s "checking for $ac_word... " >&6; }
3410if test ${ac_cv_prog_AWK+y}
3411then :
3412  printf %s "(cached) " >&6
3413else $as_nop
3414  if test -n "$AWK"; then
3415  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3416else
3417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3418for as_dir in $PATH
3419do
3420  IFS=$as_save_IFS
3421  case $as_dir in #(((
3422    '') as_dir=./ ;;
3423    */) ;;
3424    *) as_dir=$as_dir/ ;;
3425  esac
3426    for ac_exec_ext in '' $ac_executable_extensions; do
3427  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3428    ac_cv_prog_AWK="$ac_prog"
3429    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3430    break 2
3431  fi
3432done
3433  done
3434IFS=$as_save_IFS
3435
3436fi
3437fi
3438AWK=$ac_cv_prog_AWK
3439if test -n "$AWK"; then
3440  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3441printf "%s\n" "$AWK" >&6; }
3442else
3443  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444printf "%s\n" "no" >&6; }
3445fi
3446
3447
3448  test -n "$AWK" && break
3449done
3450
3451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3452printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3453set x ${MAKE-make}
3454ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3455if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3456then :
3457  printf %s "(cached) " >&6
3458else $as_nop
3459  cat >conftest.make <<\_ACEOF
3460SHELL = /bin/sh
3461all:
3462	@echo '@@@%%%=$(MAKE)=@@@%%%'
3463_ACEOF
3464# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3465case `${MAKE-make} -f conftest.make 2>/dev/null` in
3466  *@@@%%%=?*=@@@%%%*)
3467    eval ac_cv_prog_make_${ac_make}_set=yes;;
3468  *)
3469    eval ac_cv_prog_make_${ac_make}_set=no;;
3470esac
3471rm -f conftest.make
3472fi
3473if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3474  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3475printf "%s\n" "yes" >&6; }
3476  SET_MAKE=
3477else
3478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479printf "%s\n" "no" >&6; }
3480  SET_MAKE="MAKE=${MAKE-make}"
3481fi
3482
3483rm -rf .tst 2>/dev/null
3484mkdir .tst 2>/dev/null
3485if test -d .tst; then
3486  am__leading_dot=.
3487else
3488  am__leading_dot=_
3489fi
3490rmdir .tst 2>/dev/null
3491
3492# Check whether --enable-silent-rules was given.
3493if test ${enable_silent_rules+y}
3494then :
3495  enableval=$enable_silent_rules;
3496fi
3497
3498case $enable_silent_rules in # (((
3499  yes) AM_DEFAULT_VERBOSITY=0;;
3500   no) AM_DEFAULT_VERBOSITY=1;;
3501    *) AM_DEFAULT_VERBOSITY=1;;
3502esac
3503am_make=${MAKE-make}
3504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3505printf %s "checking whether $am_make supports nested variables... " >&6; }
3506if test ${am_cv_make_support_nested_variables+y}
3507then :
3508  printf %s "(cached) " >&6
3509else $as_nop
3510  if printf "%s\n" 'TRUE=$(BAR$(V))
3511BAR0=false
3512BAR1=true
3513V=1
3514am__doit:
3515	@$(TRUE)
3516.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3517  am_cv_make_support_nested_variables=yes
3518else
3519  am_cv_make_support_nested_variables=no
3520fi
3521fi
3522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3523printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3524if test $am_cv_make_support_nested_variables = yes; then
3525    AM_V='$(V)'
3526  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3527else
3528  AM_V=$AM_DEFAULT_VERBOSITY
3529  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3530fi
3531AM_BACKSLASH='\'
3532
3533if test "`cd $srcdir && pwd`" != "`pwd`"; then
3534  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3535  # is not polluted with repeated "-I."
3536  am__isrc=' -I$(srcdir)'
3537  # test to see if srcdir already configured
3538  if test -f $srcdir/config.status; then
3539    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3540  fi
3541fi
3542
3543# test whether we have cygpath
3544if test -z "$CYGPATH_W"; then
3545  if (cygpath --version) >/dev/null 2>/dev/null; then
3546    CYGPATH_W='cygpath -w'
3547  else
3548    CYGPATH_W=echo
3549  fi
3550fi
3551
3552
3553# Define the identity of the package.
3554 PACKAGE='ginac'
3555 VERSION='1.8.2'
3556
3557
3558printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3559
3560
3561printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3562
3563# Some tools Automake needs.
3564
3565ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3566
3567
3568AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3569
3570
3571AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3572
3573
3574AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3575
3576
3577MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3578
3579# For better backward compatibility.  To be removed once Automake 1.9.x
3580# dies out for good.  For more background, see:
3581# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3582# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3583mkdir_p='$(MKDIR_P)'
3584
3585# We need awk for the "check" target (and possibly the TAP driver).  The
3586# system "awk" is bad on some platforms.
3587# Always define AMTAR for backward compatibility.  Yes, it's still used
3588# in the wild :-(  We should find a proper way to deprecate it ...
3589AMTAR='$${TAR-tar}'
3590
3591
3592# We'll loop over all known methods to create a tar archive until one works.
3593_am_tools='gnutar  pax cpio none'
3594
3595am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3596
3597
3598
3599
3600
3601# Variables for tags utilities; see am/tags.am
3602if test -z "$CTAGS"; then
3603  CTAGS=ctags
3604fi
3605
3606if test -z "$ETAGS"; then
3607  ETAGS=etags
3608fi
3609
3610if test -z "$CSCOPE"; then
3611  CSCOPE=cscope
3612fi
3613
3614
3615
3616# POSIX will say in a future version that running "rm -f" with no argument
3617# is OK; and we want to be able to make that assumption in our Makefile
3618# recipes.  So use an aggressive probe to check that the usage we want is
3619# actually supported "in the wild" to an acceptable degree.
3620# See automake bug#10828.
3621# To make any issue more visible, cause the running configure to be aborted
3622# by default if the 'rm' program in use doesn't match our expectations; the
3623# user can still override this though.
3624if rm -f && rm -fr && rm -rf; then : OK; else
3625  cat >&2 <<'END'
3626Oops!
3627
3628Your 'rm' program seems unable to run without file operands specified
3629on the command line, even when the '-f' option is present.  This is contrary
3630to the behaviour of most rm programs out there, and not conforming with
3631the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3632
3633Please tell bug-automake@gnu.org about your system, including the value
3634of your $PATH and any error possibly output before this message.  This
3635can help us improve future automake versions.
3636
3637END
3638  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3639    echo 'Configuration will proceed anyway, since you have set the' >&2
3640    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3641    echo >&2
3642  else
3643    cat >&2 <<'END'
3644Aborting the configuration process, to ensure you take notice of the issue.
3645
3646You can download and install GNU coreutils to get an 'rm' implementation
3647that behaves properly: <https://www.gnu.org/software/coreutils/>.
3648
3649If you want to complete the configuration process using your problematic
3650'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3651to "yes", and re-run configure.
3652
3653END
3654    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3655  fi
3656fi
3657
3658
3659LT_VERSION_INFO="12:1:1"
3660
3661
3662
3663
3664
3665
3666
3667
3668ac_ext=cpp
3669ac_cpp='$CXXCPP $CPPFLAGS'
3670ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3673if test -z "$CXX"; then
3674  if test -n "$CCC"; then
3675    CXX=$CCC
3676  else
3677    if test -n "$ac_tool_prefix"; then
3678  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3679  do
3680    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3681set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3683printf %s "checking for $ac_word... " >&6; }
3684if test ${ac_cv_prog_CXX+y}
3685then :
3686  printf %s "(cached) " >&6
3687else $as_nop
3688  if test -n "$CXX"; then
3689  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3690else
3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692for as_dir in $PATH
3693do
3694  IFS=$as_save_IFS
3695  case $as_dir in #(((
3696    '') as_dir=./ ;;
3697    */) ;;
3698    *) as_dir=$as_dir/ ;;
3699  esac
3700    for ac_exec_ext in '' $ac_executable_extensions; do
3701  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3702    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3703    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3704    break 2
3705  fi
3706done
3707  done
3708IFS=$as_save_IFS
3709
3710fi
3711fi
3712CXX=$ac_cv_prog_CXX
3713if test -n "$CXX"; then
3714  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3715printf "%s\n" "$CXX" >&6; }
3716else
3717  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718printf "%s\n" "no" >&6; }
3719fi
3720
3721
3722    test -n "$CXX" && break
3723  done
3724fi
3725if test -z "$CXX"; then
3726  ac_ct_CXX=$CXX
3727  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
3728do
3729  # Extract the first word of "$ac_prog", so it can be a program name with args.
3730set dummy $ac_prog; ac_word=$2
3731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3732printf %s "checking for $ac_word... " >&6; }
3733if test ${ac_cv_prog_ac_ct_CXX+y}
3734then :
3735  printf %s "(cached) " >&6
3736else $as_nop
3737  if test -n "$ac_ct_CXX"; then
3738  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3739else
3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741for as_dir in $PATH
3742do
3743  IFS=$as_save_IFS
3744  case $as_dir in #(((
3745    '') as_dir=./ ;;
3746    */) ;;
3747    *) as_dir=$as_dir/ ;;
3748  esac
3749    for ac_exec_ext in '' $ac_executable_extensions; do
3750  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3751    ac_cv_prog_ac_ct_CXX="$ac_prog"
3752    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3753    break 2
3754  fi
3755done
3756  done
3757IFS=$as_save_IFS
3758
3759fi
3760fi
3761ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3762if test -n "$ac_ct_CXX"; then
3763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3764printf "%s\n" "$ac_ct_CXX" >&6; }
3765else
3766  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767printf "%s\n" "no" >&6; }
3768fi
3769
3770
3771  test -n "$ac_ct_CXX" && break
3772done
3773
3774  if test "x$ac_ct_CXX" = x; then
3775    CXX="g++"
3776  else
3777    case $cross_compiling:$ac_tool_warned in
3778yes:)
3779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3780printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3781ac_tool_warned=yes ;;
3782esac
3783    CXX=$ac_ct_CXX
3784  fi
3785fi
3786
3787  fi
3788fi
3789# Provide some information about the compiler.
3790printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3791set X $ac_compile
3792ac_compiler=$2
3793for ac_option in --version -v -V -qversion; do
3794  { { ac_try="$ac_compiler $ac_option >&5"
3795case "(($ac_try" in
3796  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797  *) ac_try_echo=$ac_try;;
3798esac
3799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800printf "%s\n" "$ac_try_echo"; } >&5
3801  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3802  ac_status=$?
3803  if test -s conftest.err; then
3804    sed '10a\
3805... rest of stderr output deleted ...
3806         10q' conftest.err >conftest.er1
3807    cat conftest.er1 >&5
3808  fi
3809  rm -f conftest.er1 conftest.err
3810  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811  test $ac_status = 0; }
3812done
3813
3814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815/* end confdefs.h.  */
3816
3817int
3818main (void)
3819{
3820
3821  ;
3822  return 0;
3823}
3824_ACEOF
3825ac_clean_files_save=$ac_clean_files
3826ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3827# Try to create an executable without -o first, disregard a.out.
3828# It will help us diagnose broken compilers, and finding out an intuition
3829# of exeext.
3830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3831printf %s "checking whether the C++ compiler works... " >&6; }
3832ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3833
3834# The possible output files:
3835ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3836
3837ac_rmfiles=
3838for ac_file in $ac_files
3839do
3840  case $ac_file in
3841    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3843  esac
3844done
3845rm -f $ac_rmfiles
3846
3847if { { ac_try="$ac_link_default"
3848case "(($ac_try" in
3849  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850  *) ac_try_echo=$ac_try;;
3851esac
3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853printf "%s\n" "$ac_try_echo"; } >&5
3854  (eval "$ac_link_default") 2>&5
3855  ac_status=$?
3856  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857  test $ac_status = 0; }
3858then :
3859  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3860# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3861# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3862# so that the user can short-circuit this test for compilers unknown to
3863# Autoconf.
3864for ac_file in $ac_files ''
3865do
3866  test -f "$ac_file" || continue
3867  case $ac_file in
3868    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3869	;;
3870    [ab].out )
3871	# We found the default executable, but exeext='' is most
3872	# certainly right.
3873	break;;
3874    *.* )
3875	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3876	then :; else
3877	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3878	fi
3879	# We set ac_cv_exeext here because the later test for it is not
3880	# safe: cross compilers may not add the suffix if given an `-o'
3881	# argument, so we may need to know it at that point already.
3882	# Even if this section looks crufty: it has the advantage of
3883	# actually working.
3884	break;;
3885    * )
3886	break;;
3887  esac
3888done
3889test "$ac_cv_exeext" = no && ac_cv_exeext=
3890
3891else $as_nop
3892  ac_file=''
3893fi
3894if test -z "$ac_file"
3895then :
3896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3897printf "%s\n" "no" >&6; }
3898printf "%s\n" "$as_me: failed program was:" >&5
3899sed 's/^/| /' conftest.$ac_ext >&5
3900
3901{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3903as_fn_error 77 "C++ compiler cannot create executables
3904See \`config.log' for more details" "$LINENO" 5; }
3905else $as_nop
3906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3907printf "%s\n" "yes" >&6; }
3908fi
3909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3910printf %s "checking for C++ compiler default output file name... " >&6; }
3911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3912printf "%s\n" "$ac_file" >&6; }
3913ac_exeext=$ac_cv_exeext
3914
3915rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3916ac_clean_files=$ac_clean_files_save
3917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3918printf %s "checking for suffix of executables... " >&6; }
3919if { { ac_try="$ac_link"
3920case "(($ac_try" in
3921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922  *) ac_try_echo=$ac_try;;
3923esac
3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925printf "%s\n" "$ac_try_echo"; } >&5
3926  (eval "$ac_link") 2>&5
3927  ac_status=$?
3928  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929  test $ac_status = 0; }
3930then :
3931  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3932# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3933# work properly (i.e., refer to `conftest.exe'), while it won't with
3934# `rm'.
3935for ac_file in conftest.exe conftest conftest.*; do
3936  test -f "$ac_file" || continue
3937  case $ac_file in
3938    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3939    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3940	  break;;
3941    * ) break;;
3942  esac
3943done
3944else $as_nop
3945  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3947as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3948See \`config.log' for more details" "$LINENO" 5; }
3949fi
3950rm -f conftest conftest$ac_cv_exeext
3951{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3952printf "%s\n" "$ac_cv_exeext" >&6; }
3953
3954rm -f conftest.$ac_ext
3955EXEEXT=$ac_cv_exeext
3956ac_exeext=$EXEEXT
3957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3958/* end confdefs.h.  */
3959#include <stdio.h>
3960int
3961main (void)
3962{
3963FILE *f = fopen ("conftest.out", "w");
3964 return ferror (f) || fclose (f) != 0;
3965
3966  ;
3967  return 0;
3968}
3969_ACEOF
3970ac_clean_files="$ac_clean_files conftest.out"
3971# Check that the compiler produces executables we can run.  If not, either
3972# the compiler is broken, or we cross compile.
3973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3974printf %s "checking whether we are cross compiling... " >&6; }
3975if test "$cross_compiling" != yes; then
3976  { { ac_try="$ac_link"
3977case "(($ac_try" in
3978  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979  *) ac_try_echo=$ac_try;;
3980esac
3981eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3982printf "%s\n" "$ac_try_echo"; } >&5
3983  (eval "$ac_link") 2>&5
3984  ac_status=$?
3985  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3986  test $ac_status = 0; }
3987  if { ac_try='./conftest$ac_cv_exeext'
3988  { { case "(($ac_try" in
3989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3990  *) ac_try_echo=$ac_try;;
3991esac
3992eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3993printf "%s\n" "$ac_try_echo"; } >&5
3994  (eval "$ac_try") 2>&5
3995  ac_status=$?
3996  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3997  test $ac_status = 0; }; }; then
3998    cross_compiling=no
3999  else
4000    if test "$cross_compiling" = maybe; then
4001	cross_compiling=yes
4002    else
4003	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4004printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4005as_fn_error 77 "cannot run C++ compiled programs.
4006If you meant to cross compile, use \`--host'.
4007See \`config.log' for more details" "$LINENO" 5; }
4008    fi
4009  fi
4010fi
4011{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4012printf "%s\n" "$cross_compiling" >&6; }
4013
4014rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4015ac_clean_files=$ac_clean_files_save
4016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4017printf %s "checking for suffix of object files... " >&6; }
4018if test ${ac_cv_objext+y}
4019then :
4020  printf %s "(cached) " >&6
4021else $as_nop
4022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h.  */
4024
4025int
4026main (void)
4027{
4028
4029  ;
4030  return 0;
4031}
4032_ACEOF
4033rm -f conftest.o conftest.obj
4034if { { ac_try="$ac_compile"
4035case "(($ac_try" in
4036  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037  *) ac_try_echo=$ac_try;;
4038esac
4039eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4040printf "%s\n" "$ac_try_echo"; } >&5
4041  (eval "$ac_compile") 2>&5
4042  ac_status=$?
4043  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4044  test $ac_status = 0; }
4045then :
4046  for ac_file in conftest.o conftest.obj conftest.*; do
4047  test -f "$ac_file" || continue;
4048  case $ac_file in
4049    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4050    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4051       break;;
4052  esac
4053done
4054else $as_nop
4055  printf "%s\n" "$as_me: failed program was:" >&5
4056sed 's/^/| /' conftest.$ac_ext >&5
4057
4058{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4060as_fn_error $? "cannot compute suffix of object files: cannot compile
4061See \`config.log' for more details" "$LINENO" 5; }
4062fi
4063rm -f conftest.$ac_cv_objext conftest.$ac_ext
4064fi
4065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4066printf "%s\n" "$ac_cv_objext" >&6; }
4067OBJEXT=$ac_cv_objext
4068ac_objext=$OBJEXT
4069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4070printf %s "checking whether the compiler supports GNU C++... " >&6; }
4071if test ${ac_cv_cxx_compiler_gnu+y}
4072then :
4073  printf %s "(cached) " >&6
4074else $as_nop
4075  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076/* end confdefs.h.  */
4077
4078int
4079main (void)
4080{
4081#ifndef __GNUC__
4082       choke me
4083#endif
4084
4085  ;
4086  return 0;
4087}
4088_ACEOF
4089if ac_fn_cxx_try_compile "$LINENO"
4090then :
4091  ac_compiler_gnu=yes
4092else $as_nop
4093  ac_compiler_gnu=no
4094fi
4095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4096ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4097
4098fi
4099{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4100printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4102
4103if test $ac_compiler_gnu = yes; then
4104  GXX=yes
4105else
4106  GXX=
4107fi
4108ac_test_CXXFLAGS=${CXXFLAGS+y}
4109ac_save_CXXFLAGS=$CXXFLAGS
4110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4111printf %s "checking whether $CXX accepts -g... " >&6; }
4112if test ${ac_cv_prog_cxx_g+y}
4113then :
4114  printf %s "(cached) " >&6
4115else $as_nop
4116  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4117   ac_cxx_werror_flag=yes
4118   ac_cv_prog_cxx_g=no
4119   CXXFLAGS="-g"
4120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121/* end confdefs.h.  */
4122
4123int
4124main (void)
4125{
4126
4127  ;
4128  return 0;
4129}
4130_ACEOF
4131if ac_fn_cxx_try_compile "$LINENO"
4132then :
4133  ac_cv_prog_cxx_g=yes
4134else $as_nop
4135  CXXFLAGS=""
4136      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137/* end confdefs.h.  */
4138
4139int
4140main (void)
4141{
4142
4143  ;
4144  return 0;
4145}
4146_ACEOF
4147if ac_fn_cxx_try_compile "$LINENO"
4148then :
4149
4150else $as_nop
4151  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4152	 CXXFLAGS="-g"
4153	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154/* end confdefs.h.  */
4155
4156int
4157main (void)
4158{
4159
4160  ;
4161  return 0;
4162}
4163_ACEOF
4164if ac_fn_cxx_try_compile "$LINENO"
4165then :
4166  ac_cv_prog_cxx_g=yes
4167fi
4168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4169fi
4170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4171fi
4172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4173   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4174fi
4175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4176printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4177if test $ac_test_CXXFLAGS; then
4178  CXXFLAGS=$ac_save_CXXFLAGS
4179elif test $ac_cv_prog_cxx_g = yes; then
4180  if test "$GXX" = yes; then
4181    CXXFLAGS="-g -O2"
4182  else
4183    CXXFLAGS="-g"
4184  fi
4185else
4186  if test "$GXX" = yes; then
4187    CXXFLAGS="-O2"
4188  else
4189    CXXFLAGS=
4190  fi
4191fi
4192ac_prog_cxx_stdcxx=no
4193if test x$ac_prog_cxx_stdcxx = xno
4194then :
4195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4196printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4197if test ${ac_cv_prog_cxx_11+y}
4198then :
4199  printf %s "(cached) " >&6
4200else $as_nop
4201  ac_cv_prog_cxx_11=no
4202ac_save_CXX=$CXX
4203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h.  */
4205$ac_cxx_conftest_cxx11_program
4206_ACEOF
4207for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4208do
4209  CXX="$ac_save_CXX $ac_arg"
4210  if ac_fn_cxx_try_compile "$LINENO"
4211then :
4212  ac_cv_prog_cxx_cxx11=$ac_arg
4213fi
4214rm -f core conftest.err conftest.$ac_objext conftest.beam
4215  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4216done
4217rm -f conftest.$ac_ext
4218CXX=$ac_save_CXX
4219fi
4220
4221if test "x$ac_cv_prog_cxx_cxx11" = xno
4222then :
4223  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224printf "%s\n" "unsupported" >&6; }
4225else $as_nop
4226  if test "x$ac_cv_prog_cxx_cxx11" = x
4227then :
4228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4229printf "%s\n" "none needed" >&6; }
4230else $as_nop
4231  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4232printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4233     CXX="$CXX $ac_cv_prog_cxx_cxx11"
4234fi
4235  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4236  ac_prog_cxx_stdcxx=cxx11
4237fi
4238fi
4239if test x$ac_prog_cxx_stdcxx = xno
4240then :
4241  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4242printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4243if test ${ac_cv_prog_cxx_98+y}
4244then :
4245  printf %s "(cached) " >&6
4246else $as_nop
4247  ac_cv_prog_cxx_98=no
4248ac_save_CXX=$CXX
4249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250/* end confdefs.h.  */
4251$ac_cxx_conftest_cxx98_program
4252_ACEOF
4253for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4254do
4255  CXX="$ac_save_CXX $ac_arg"
4256  if ac_fn_cxx_try_compile "$LINENO"
4257then :
4258  ac_cv_prog_cxx_cxx98=$ac_arg
4259fi
4260rm -f core conftest.err conftest.$ac_objext conftest.beam
4261  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4262done
4263rm -f conftest.$ac_ext
4264CXX=$ac_save_CXX
4265fi
4266
4267if test "x$ac_cv_prog_cxx_cxx98" = xno
4268then :
4269  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270printf "%s\n" "unsupported" >&6; }
4271else $as_nop
4272  if test "x$ac_cv_prog_cxx_cxx98" = x
4273then :
4274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275printf "%s\n" "none needed" >&6; }
4276else $as_nop
4277  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4278printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4279     CXX="$CXX $ac_cv_prog_cxx_cxx98"
4280fi
4281  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4282  ac_prog_cxx_stdcxx=cxx98
4283fi
4284fi
4285
4286ac_ext=c
4287ac_cpp='$CPP $CPPFLAGS'
4288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291DEPDIR="${am__leading_dot}deps"
4292
4293ac_config_commands="$ac_config_commands depfiles"
4294
4295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4296printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4297cat > confinc.mk << 'END'
4298am__doit:
4299	@echo this is the am__doit target >confinc.out
4300.PHONY: am__doit
4301END
4302am__include="#"
4303am__quote=
4304# BSD make does it like this.
4305echo '.include "confinc.mk" # ignored' > confmf.BSD
4306# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4307echo 'include confinc.mk # ignored' > confmf.GNU
4308_am_result=no
4309for s in GNU BSD; do
4310  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4311   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4312   ac_status=$?
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); }
4315  case $?:`cat confinc.out 2>/dev/null` in #(
4316  '0:this is the am__doit target') :
4317    case $s in #(
4318  BSD) :
4319    am__include='.include' am__quote='"' ;; #(
4320  *) :
4321    am__include='include' am__quote='' ;;
4322esac ;; #(
4323  *) :
4324     ;;
4325esac
4326  if test "$am__include" != "#"; then
4327    _am_result="yes ($s style)"
4328    break
4329  fi
4330done
4331rm -f confinc.* confmf.*
4332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4333printf "%s\n" "${_am_result}" >&6; }
4334
4335# Check whether --enable-dependency-tracking was given.
4336if test ${enable_dependency_tracking+y}
4337then :
4338  enableval=$enable_dependency_tracking;
4339fi
4340
4341if test "x$enable_dependency_tracking" != xno; then
4342  am_depcomp="$ac_aux_dir/depcomp"
4343  AMDEPBACKSLASH='\'
4344  am__nodep='_no'
4345fi
4346 if test "x$enable_dependency_tracking" != xno; then
4347  AMDEP_TRUE=
4348  AMDEP_FALSE='#'
4349else
4350  AMDEP_TRUE='#'
4351  AMDEP_FALSE=
4352fi
4353
4354
4355
4356depcc="$CXX"  am_compiler_list=
4357
4358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4359printf %s "checking dependency style of $depcc... " >&6; }
4360if test ${am_cv_CXX_dependencies_compiler_type+y}
4361then :
4362  printf %s "(cached) " >&6
4363else $as_nop
4364  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4365  # We make a subdir and do the tests there.  Otherwise we can end up
4366  # making bogus files that we don't know about and never remove.  For
4367  # instance it was reported that on HP-UX the gcc test will end up
4368  # making a dummy file named 'D' -- because '-MD' means "put the output
4369  # in D".
4370  rm -rf conftest.dir
4371  mkdir conftest.dir
4372  # Copy depcomp to subdir because otherwise we won't find it if we're
4373  # using a relative directory.
4374  cp "$am_depcomp" conftest.dir
4375  cd conftest.dir
4376  # We will build objects and dependencies in a subdirectory because
4377  # it helps to detect inapplicable dependency modes.  For instance
4378  # both Tru64's cc and ICC support -MD to output dependencies as a
4379  # side effect of compilation, but ICC will put the dependencies in
4380  # the current directory while Tru64 will put them in the object
4381  # directory.
4382  mkdir sub
4383
4384  am_cv_CXX_dependencies_compiler_type=none
4385  if test "$am_compiler_list" = ""; then
4386     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4387  fi
4388  am__universal=false
4389  case " $depcc " in #(
4390     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4391     esac
4392
4393  for depmode in $am_compiler_list; do
4394    # Setup a source with many dependencies, because some compilers
4395    # like to wrap large dependency lists on column 80 (with \), and
4396    # we should not choose a depcomp mode which is confused by this.
4397    #
4398    # We need to recreate these files for each test, as the compiler may
4399    # overwrite some of them when testing with obscure command lines.
4400    # This happens at least with the AIX C compiler.
4401    : > sub/conftest.c
4402    for i in 1 2 3 4 5 6; do
4403      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4404      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4405      # Solaris 10 /bin/sh.
4406      echo '/* dummy */' > sub/conftst$i.h
4407    done
4408    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4409
4410    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4411    # mode.  It turns out that the SunPro C++ compiler does not properly
4412    # handle '-M -o', and we need to detect this.  Also, some Intel
4413    # versions had trouble with output in subdirs.
4414    am__obj=sub/conftest.${OBJEXT-o}
4415    am__minus_obj="-o $am__obj"
4416    case $depmode in
4417    gcc)
4418      # This depmode causes a compiler race in universal mode.
4419      test "$am__universal" = false || continue
4420      ;;
4421    nosideeffect)
4422      # After this tag, mechanisms are not by side-effect, so they'll
4423      # only be used when explicitly requested.
4424      if test "x$enable_dependency_tracking" = xyes; then
4425	continue
4426      else
4427	break
4428      fi
4429      ;;
4430    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4431      # This compiler won't grok '-c -o', but also, the minuso test has
4432      # not run yet.  These depmodes are late enough in the game, and
4433      # so weak that their functioning should not be impacted.
4434      am__obj=conftest.${OBJEXT-o}
4435      am__minus_obj=
4436      ;;
4437    none) break ;;
4438    esac
4439    if depmode=$depmode \
4440       source=sub/conftest.c object=$am__obj \
4441       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4442       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4443         >/dev/null 2>conftest.err &&
4444       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4445       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4446       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4447       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4448      # icc doesn't choke on unknown options, it will just issue warnings
4449      # or remarks (even with -Werror).  So we grep stderr for any message
4450      # that says an option was ignored or not supported.
4451      # When given -MP, icc 7.0 and 7.1 complain thusly:
4452      #   icc: Command line warning: ignoring option '-M'; no argument required
4453      # The diagnosis changed in icc 8.0:
4454      #   icc: Command line remark: option '-MP' not supported
4455      if (grep 'ignoring option' conftest.err ||
4456          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4457        am_cv_CXX_dependencies_compiler_type=$depmode
4458        break
4459      fi
4460    fi
4461  done
4462
4463  cd ..
4464  rm -rf conftest.dir
4465else
4466  am_cv_CXX_dependencies_compiler_type=none
4467fi
4468
4469fi
4470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4471printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4472CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4473
4474 if
4475  test "x$enable_dependency_tracking" != xno \
4476  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4477  am__fastdepCXX_TRUE=
4478  am__fastdepCXX_FALSE='#'
4479else
4480  am__fastdepCXX_TRUE='#'
4481  am__fastdepCXX_FALSE=
4482fi
4483
4484
4485ac_ext=cpp
4486ac_cpp='$CXXCPP $CPPFLAGS'
4487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4491printf %s "checking how to run the C++ preprocessor... " >&6; }
4492if test -z "$CXXCPP"; then
4493  if test ${ac_cv_prog_CXXCPP+y}
4494then :
4495  printf %s "(cached) " >&6
4496else $as_nop
4497      # Double quotes because $CXX needs to be expanded
4498    for CXXCPP in "$CXX -E" cpp /lib/cpp
4499    do
4500      ac_preproc_ok=false
4501for ac_cxx_preproc_warn_flag in '' yes
4502do
4503  # Use a header file that comes with gcc, so configuring glibc
4504  # with a fresh cross-compiler works.
4505  # On the NeXT, cc -E runs the code through the compiler's parser,
4506  # not just through cpp. "Syntax error" is here to catch this case.
4507  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508/* end confdefs.h.  */
4509#include <limits.h>
4510		     Syntax error
4511_ACEOF
4512if ac_fn_cxx_try_cpp "$LINENO"
4513then :
4514
4515else $as_nop
4516  # Broken: fails on valid input.
4517continue
4518fi
4519rm -f conftest.err conftest.i conftest.$ac_ext
4520
4521  # OK, works on sane cases.  Now check whether nonexistent headers
4522  # can be detected and how.
4523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524/* end confdefs.h.  */
4525#include <ac_nonexistent.h>
4526_ACEOF
4527if ac_fn_cxx_try_cpp "$LINENO"
4528then :
4529  # Broken: success on invalid input.
4530continue
4531else $as_nop
4532  # Passes both tests.
4533ac_preproc_ok=:
4534break
4535fi
4536rm -f conftest.err conftest.i conftest.$ac_ext
4537
4538done
4539# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4540rm -f conftest.i conftest.err conftest.$ac_ext
4541if $ac_preproc_ok
4542then :
4543  break
4544fi
4545
4546    done
4547    ac_cv_prog_CXXCPP=$CXXCPP
4548
4549fi
4550  CXXCPP=$ac_cv_prog_CXXCPP
4551else
4552  ac_cv_prog_CXXCPP=$CXXCPP
4553fi
4554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4555printf "%s\n" "$CXXCPP" >&6; }
4556ac_preproc_ok=false
4557for ac_cxx_preproc_warn_flag in '' yes
4558do
4559  # Use a header file that comes with gcc, so configuring glibc
4560  # with a fresh cross-compiler works.
4561  # On the NeXT, cc -E runs the code through the compiler's parser,
4562  # not just through cpp. "Syntax error" is here to catch this case.
4563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564/* end confdefs.h.  */
4565#include <limits.h>
4566		     Syntax error
4567_ACEOF
4568if ac_fn_cxx_try_cpp "$LINENO"
4569then :
4570
4571else $as_nop
4572  # Broken: fails on valid input.
4573continue
4574fi
4575rm -f conftest.err conftest.i conftest.$ac_ext
4576
4577  # OK, works on sane cases.  Now check whether nonexistent headers
4578  # can be detected and how.
4579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580/* end confdefs.h.  */
4581#include <ac_nonexistent.h>
4582_ACEOF
4583if ac_fn_cxx_try_cpp "$LINENO"
4584then :
4585  # Broken: success on invalid input.
4586continue
4587else $as_nop
4588  # Passes both tests.
4589ac_preproc_ok=:
4590break
4591fi
4592rm -f conftest.err conftest.i conftest.$ac_ext
4593
4594done
4595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4596rm -f conftest.i conftest.err conftest.$ac_ext
4597if $ac_preproc_ok
4598then :
4599
4600else $as_nop
4601  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4603as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4604See \`config.log' for more details" "$LINENO" 5; }
4605fi
4606
4607ac_ext=c
4608ac_cpp='$CPP $CPPFLAGS'
4609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611ac_compiler_gnu=$ac_cv_c_compiler_gnu
4612
4613
4614case `pwd` in
4615  *\ * | *\	*)
4616    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4617printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4618esac
4619
4620
4621
4622macro_version='2.4.6'
4623macro_revision='2.4.6'
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638ltmain=$ac_aux_dir/ltmain.sh
4639
4640
4641
4642  # Make sure we can run config.sub.
4643$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4644  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4645
4646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4647printf %s "checking build system type... " >&6; }
4648if test ${ac_cv_build+y}
4649then :
4650  printf %s "(cached) " >&6
4651else $as_nop
4652  ac_build_alias=$build_alias
4653test "x$ac_build_alias" = x &&
4654  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4655test "x$ac_build_alias" = x &&
4656  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4657ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4658  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4659
4660fi
4661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4662printf "%s\n" "$ac_cv_build" >&6; }
4663case $ac_cv_build in
4664*-*-*) ;;
4665*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4666esac
4667build=$ac_cv_build
4668ac_save_IFS=$IFS; IFS='-'
4669set x $ac_cv_build
4670shift
4671build_cpu=$1
4672build_vendor=$2
4673shift; shift
4674# Remember, the first character of IFS is used to create $*,
4675# except with old shells:
4676build_os=$*
4677IFS=$ac_save_IFS
4678case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4679
4680
4681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4682printf %s "checking host system type... " >&6; }
4683if test ${ac_cv_host+y}
4684then :
4685  printf %s "(cached) " >&6
4686else $as_nop
4687  if test "x$host_alias" = x; then
4688  ac_cv_host=$ac_cv_build
4689else
4690  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4691    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4692fi
4693
4694fi
4695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4696printf "%s\n" "$ac_cv_host" >&6; }
4697case $ac_cv_host in
4698*-*-*) ;;
4699*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4700esac
4701host=$ac_cv_host
4702ac_save_IFS=$IFS; IFS='-'
4703set x $ac_cv_host
4704shift
4705host_cpu=$1
4706host_vendor=$2
4707shift; shift
4708# Remember, the first character of IFS is used to create $*,
4709# except with old shells:
4710host_os=$*
4711IFS=$ac_save_IFS
4712case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4713
4714
4715# Backslashify metacharacters that are still active within
4716# double-quoted strings.
4717sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4718
4719# Same as above, but do not quote variable references.
4720double_quote_subst='s/\(["`\\]\)/\\\1/g'
4721
4722# Sed substitution to delay expansion of an escaped shell variable in a
4723# double_quote_subst'ed string.
4724delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4725
4726# Sed substitution to delay expansion of an escaped single quote.
4727delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4728
4729# Sed substitution to avoid accidental globbing in evaled expressions
4730no_glob_subst='s/\*/\\\*/g'
4731
4732ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4733ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4734ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4735
4736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4737printf %s "checking how to print strings... " >&6; }
4738# Test print first, because it will be a builtin if present.
4739if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4740   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4741  ECHO='print -r --'
4742elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4743  ECHO='printf %s\n'
4744else
4745  # Use this function as a fallback that always works.
4746  func_fallback_echo ()
4747  {
4748    eval 'cat <<_LTECHO_EOF
4749$1
4750_LTECHO_EOF'
4751  }
4752  ECHO='func_fallback_echo'
4753fi
4754
4755# func_echo_all arg...
4756# Invoke $ECHO with all args, space-separated.
4757func_echo_all ()
4758{
4759    $ECHO ""
4760}
4761
4762case $ECHO in
4763  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4764printf "%s\n" "printf" >&6; } ;;
4765  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4766printf "%s\n" "print -r" >&6; } ;;
4767  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4768printf "%s\n" "cat" >&6; } ;;
4769esac
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793ac_ext=c
4794ac_cpp='$CPP $CPPFLAGS'
4795ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4796ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4797ac_compiler_gnu=$ac_cv_c_compiler_gnu
4798if test -n "$ac_tool_prefix"; then
4799  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4800set dummy ${ac_tool_prefix}gcc; ac_word=$2
4801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4802printf %s "checking for $ac_word... " >&6; }
4803if test ${ac_cv_prog_CC+y}
4804then :
4805  printf %s "(cached) " >&6
4806else $as_nop
4807  if test -n "$CC"; then
4808  ac_cv_prog_CC="$CC" # Let the user override the test.
4809else
4810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813  IFS=$as_save_IFS
4814  case $as_dir in #(((
4815    '') as_dir=./ ;;
4816    */) ;;
4817    *) as_dir=$as_dir/ ;;
4818  esac
4819    for ac_exec_ext in '' $ac_executable_extensions; do
4820  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4821    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4822    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4823    break 2
4824  fi
4825done
4826  done
4827IFS=$as_save_IFS
4828
4829fi
4830fi
4831CC=$ac_cv_prog_CC
4832if test -n "$CC"; then
4833  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4834printf "%s\n" "$CC" >&6; }
4835else
4836  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837printf "%s\n" "no" >&6; }
4838fi
4839
4840
4841fi
4842if test -z "$ac_cv_prog_CC"; then
4843  ac_ct_CC=$CC
4844  # Extract the first word of "gcc", so it can be a program name with args.
4845set dummy gcc; ac_word=$2
4846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847printf %s "checking for $ac_word... " >&6; }
4848if test ${ac_cv_prog_ac_ct_CC+y}
4849then :
4850  printf %s "(cached) " >&6
4851else $as_nop
4852  if test -n "$ac_ct_CC"; then
4853  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4854else
4855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856for as_dir in $PATH
4857do
4858  IFS=$as_save_IFS
4859  case $as_dir in #(((
4860    '') as_dir=./ ;;
4861    */) ;;
4862    *) as_dir=$as_dir/ ;;
4863  esac
4864    for ac_exec_ext in '' $ac_executable_extensions; do
4865  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4866    ac_cv_prog_ac_ct_CC="gcc"
4867    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4868    break 2
4869  fi
4870done
4871  done
4872IFS=$as_save_IFS
4873
4874fi
4875fi
4876ac_ct_CC=$ac_cv_prog_ac_ct_CC
4877if test -n "$ac_ct_CC"; then
4878  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4879printf "%s\n" "$ac_ct_CC" >&6; }
4880else
4881  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882printf "%s\n" "no" >&6; }
4883fi
4884
4885  if test "x$ac_ct_CC" = x; then
4886    CC=""
4887  else
4888    case $cross_compiling:$ac_tool_warned in
4889yes:)
4890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4891printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4892ac_tool_warned=yes ;;
4893esac
4894    CC=$ac_ct_CC
4895  fi
4896else
4897  CC="$ac_cv_prog_CC"
4898fi
4899
4900if test -z "$CC"; then
4901          if test -n "$ac_tool_prefix"; then
4902    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4903set dummy ${ac_tool_prefix}cc; ac_word=$2
4904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905printf %s "checking for $ac_word... " >&6; }
4906if test ${ac_cv_prog_CC+y}
4907then :
4908  printf %s "(cached) " >&6
4909else $as_nop
4910  if test -n "$CC"; then
4911  ac_cv_prog_CC="$CC" # Let the user override the test.
4912else
4913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914for as_dir in $PATH
4915do
4916  IFS=$as_save_IFS
4917  case $as_dir in #(((
4918    '') as_dir=./ ;;
4919    */) ;;
4920    *) as_dir=$as_dir/ ;;
4921  esac
4922    for ac_exec_ext in '' $ac_executable_extensions; do
4923  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4924    ac_cv_prog_CC="${ac_tool_prefix}cc"
4925    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4926    break 2
4927  fi
4928done
4929  done
4930IFS=$as_save_IFS
4931
4932fi
4933fi
4934CC=$ac_cv_prog_CC
4935if test -n "$CC"; then
4936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4937printf "%s\n" "$CC" >&6; }
4938else
4939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940printf "%s\n" "no" >&6; }
4941fi
4942
4943
4944  fi
4945fi
4946if test -z "$CC"; then
4947  # Extract the first word of "cc", so it can be a program name with args.
4948set dummy cc; ac_word=$2
4949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950printf %s "checking for $ac_word... " >&6; }
4951if test ${ac_cv_prog_CC+y}
4952then :
4953  printf %s "(cached) " >&6
4954else $as_nop
4955  if test -n "$CC"; then
4956  ac_cv_prog_CC="$CC" # Let the user override the test.
4957else
4958  ac_prog_rejected=no
4959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960for as_dir in $PATH
4961do
4962  IFS=$as_save_IFS
4963  case $as_dir in #(((
4964    '') as_dir=./ ;;
4965    */) ;;
4966    *) as_dir=$as_dir/ ;;
4967  esac
4968    for ac_exec_ext in '' $ac_executable_extensions; do
4969  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4970    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4971       ac_prog_rejected=yes
4972       continue
4973     fi
4974    ac_cv_prog_CC="cc"
4975    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4976    break 2
4977  fi
4978done
4979  done
4980IFS=$as_save_IFS
4981
4982if test $ac_prog_rejected = yes; then
4983  # We found a bogon in the path, so make sure we never use it.
4984  set dummy $ac_cv_prog_CC
4985  shift
4986  if test $# != 0; then
4987    # We chose a different compiler from the bogus one.
4988    # However, it has the same basename, so the bogon will be chosen
4989    # first if we set CC to just the basename; use the full file name.
4990    shift
4991    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4992  fi
4993fi
4994fi
4995fi
4996CC=$ac_cv_prog_CC
4997if test -n "$CC"; then
4998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4999printf "%s\n" "$CC" >&6; }
5000else
5001  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5002printf "%s\n" "no" >&6; }
5003fi
5004
5005
5006fi
5007if test -z "$CC"; then
5008  if test -n "$ac_tool_prefix"; then
5009  for ac_prog in cl.exe
5010  do
5011    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5012set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014printf %s "checking for $ac_word... " >&6; }
5015if test ${ac_cv_prog_CC+y}
5016then :
5017  printf %s "(cached) " >&6
5018else $as_nop
5019  if test -n "$CC"; then
5020  ac_cv_prog_CC="$CC" # Let the user override the test.
5021else
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025  IFS=$as_save_IFS
5026  case $as_dir in #(((
5027    '') as_dir=./ ;;
5028    */) ;;
5029    *) as_dir=$as_dir/ ;;
5030  esac
5031    for ac_exec_ext in '' $ac_executable_extensions; do
5032  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5033    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5034    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5035    break 2
5036  fi
5037done
5038  done
5039IFS=$as_save_IFS
5040
5041fi
5042fi
5043CC=$ac_cv_prog_CC
5044if test -n "$CC"; then
5045  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5046printf "%s\n" "$CC" >&6; }
5047else
5048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049printf "%s\n" "no" >&6; }
5050fi
5051
5052
5053    test -n "$CC" && break
5054  done
5055fi
5056if test -z "$CC"; then
5057  ac_ct_CC=$CC
5058  for ac_prog in cl.exe
5059do
5060  # Extract the first word of "$ac_prog", so it can be a program name with args.
5061set dummy $ac_prog; ac_word=$2
5062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5063printf %s "checking for $ac_word... " >&6; }
5064if test ${ac_cv_prog_ac_ct_CC+y}
5065then :
5066  printf %s "(cached) " >&6
5067else $as_nop
5068  if test -n "$ac_ct_CC"; then
5069  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5070else
5071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072for as_dir in $PATH
5073do
5074  IFS=$as_save_IFS
5075  case $as_dir in #(((
5076    '') as_dir=./ ;;
5077    */) ;;
5078    *) as_dir=$as_dir/ ;;
5079  esac
5080    for ac_exec_ext in '' $ac_executable_extensions; do
5081  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5082    ac_cv_prog_ac_ct_CC="$ac_prog"
5083    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5084    break 2
5085  fi
5086done
5087  done
5088IFS=$as_save_IFS
5089
5090fi
5091fi
5092ac_ct_CC=$ac_cv_prog_ac_ct_CC
5093if test -n "$ac_ct_CC"; then
5094  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5095printf "%s\n" "$ac_ct_CC" >&6; }
5096else
5097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098printf "%s\n" "no" >&6; }
5099fi
5100
5101
5102  test -n "$ac_ct_CC" && break
5103done
5104
5105  if test "x$ac_ct_CC" = x; then
5106    CC=""
5107  else
5108    case $cross_compiling:$ac_tool_warned in
5109yes:)
5110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5111printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5112ac_tool_warned=yes ;;
5113esac
5114    CC=$ac_ct_CC
5115  fi
5116fi
5117
5118fi
5119if test -z "$CC"; then
5120  if test -n "$ac_tool_prefix"; then
5121  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5122set dummy ${ac_tool_prefix}clang; ac_word=$2
5123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124printf %s "checking for $ac_word... " >&6; }
5125if test ${ac_cv_prog_CC+y}
5126then :
5127  printf %s "(cached) " >&6
5128else $as_nop
5129  if test -n "$CC"; then
5130  ac_cv_prog_CC="$CC" # Let the user override the test.
5131else
5132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5133for as_dir in $PATH
5134do
5135  IFS=$as_save_IFS
5136  case $as_dir in #(((
5137    '') as_dir=./ ;;
5138    */) ;;
5139    *) as_dir=$as_dir/ ;;
5140  esac
5141    for ac_exec_ext in '' $ac_executable_extensions; do
5142  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5143    ac_cv_prog_CC="${ac_tool_prefix}clang"
5144    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5145    break 2
5146  fi
5147done
5148  done
5149IFS=$as_save_IFS
5150
5151fi
5152fi
5153CC=$ac_cv_prog_CC
5154if test -n "$CC"; then
5155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5156printf "%s\n" "$CC" >&6; }
5157else
5158  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159printf "%s\n" "no" >&6; }
5160fi
5161
5162
5163fi
5164if test -z "$ac_cv_prog_CC"; then
5165  ac_ct_CC=$CC
5166  # Extract the first word of "clang", so it can be a program name with args.
5167set dummy clang; ac_word=$2
5168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169printf %s "checking for $ac_word... " >&6; }
5170if test ${ac_cv_prog_ac_ct_CC+y}
5171then :
5172  printf %s "(cached) " >&6
5173else $as_nop
5174  if test -n "$ac_ct_CC"; then
5175  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5176else
5177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180  IFS=$as_save_IFS
5181  case $as_dir in #(((
5182    '') as_dir=./ ;;
5183    */) ;;
5184    *) as_dir=$as_dir/ ;;
5185  esac
5186    for ac_exec_ext in '' $ac_executable_extensions; do
5187  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5188    ac_cv_prog_ac_ct_CC="clang"
5189    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5190    break 2
5191  fi
5192done
5193  done
5194IFS=$as_save_IFS
5195
5196fi
5197fi
5198ac_ct_CC=$ac_cv_prog_ac_ct_CC
5199if test -n "$ac_ct_CC"; then
5200  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5201printf "%s\n" "$ac_ct_CC" >&6; }
5202else
5203  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5204printf "%s\n" "no" >&6; }
5205fi
5206
5207  if test "x$ac_ct_CC" = x; then
5208    CC=""
5209  else
5210    case $cross_compiling:$ac_tool_warned in
5211yes:)
5212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5213printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5214ac_tool_warned=yes ;;
5215esac
5216    CC=$ac_ct_CC
5217  fi
5218else
5219  CC="$ac_cv_prog_CC"
5220fi
5221
5222fi
5223
5224
5225test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5226printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5227as_fn_error $? "no acceptable C compiler found in \$PATH
5228See \`config.log' for more details" "$LINENO" 5; }
5229
5230# Provide some information about the compiler.
5231printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5232set X $ac_compile
5233ac_compiler=$2
5234for ac_option in --version -v -V -qversion -version; do
5235  { { ac_try="$ac_compiler $ac_option >&5"
5236case "(($ac_try" in
5237  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5238  *) ac_try_echo=$ac_try;;
5239esac
5240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5241printf "%s\n" "$ac_try_echo"; } >&5
5242  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5243  ac_status=$?
5244  if test -s conftest.err; then
5245    sed '10a\
5246... rest of stderr output deleted ...
5247         10q' conftest.err >conftest.er1
5248    cat conftest.er1 >&5
5249  fi
5250  rm -f conftest.er1 conftest.err
5251  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5252  test $ac_status = 0; }
5253done
5254
5255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5256printf %s "checking whether the compiler supports GNU C... " >&6; }
5257if test ${ac_cv_c_compiler_gnu+y}
5258then :
5259  printf %s "(cached) " >&6
5260else $as_nop
5261  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262/* end confdefs.h.  */
5263
5264int
5265main (void)
5266{
5267#ifndef __GNUC__
5268       choke me
5269#endif
5270
5271  ;
5272  return 0;
5273}
5274_ACEOF
5275if ac_fn_c_try_compile "$LINENO"
5276then :
5277  ac_compiler_gnu=yes
5278else $as_nop
5279  ac_compiler_gnu=no
5280fi
5281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5282ac_cv_c_compiler_gnu=$ac_compiler_gnu
5283
5284fi
5285{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5286printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5287ac_compiler_gnu=$ac_cv_c_compiler_gnu
5288
5289if test $ac_compiler_gnu = yes; then
5290  GCC=yes
5291else
5292  GCC=
5293fi
5294ac_test_CFLAGS=${CFLAGS+y}
5295ac_save_CFLAGS=$CFLAGS
5296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5297printf %s "checking whether $CC accepts -g... " >&6; }
5298if test ${ac_cv_prog_cc_g+y}
5299then :
5300  printf %s "(cached) " >&6
5301else $as_nop
5302  ac_save_c_werror_flag=$ac_c_werror_flag
5303   ac_c_werror_flag=yes
5304   ac_cv_prog_cc_g=no
5305   CFLAGS="-g"
5306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307/* end confdefs.h.  */
5308
5309int
5310main (void)
5311{
5312
5313  ;
5314  return 0;
5315}
5316_ACEOF
5317if ac_fn_c_try_compile "$LINENO"
5318then :
5319  ac_cv_prog_cc_g=yes
5320else $as_nop
5321  CFLAGS=""
5322      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323/* end confdefs.h.  */
5324
5325int
5326main (void)
5327{
5328
5329  ;
5330  return 0;
5331}
5332_ACEOF
5333if ac_fn_c_try_compile "$LINENO"
5334then :
5335
5336else $as_nop
5337  ac_c_werror_flag=$ac_save_c_werror_flag
5338	 CFLAGS="-g"
5339	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340/* end confdefs.h.  */
5341
5342int
5343main (void)
5344{
5345
5346  ;
5347  return 0;
5348}
5349_ACEOF
5350if ac_fn_c_try_compile "$LINENO"
5351then :
5352  ac_cv_prog_cc_g=yes
5353fi
5354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5355fi
5356rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5359   ac_c_werror_flag=$ac_save_c_werror_flag
5360fi
5361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5362printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5363if test $ac_test_CFLAGS; then
5364  CFLAGS=$ac_save_CFLAGS
5365elif test $ac_cv_prog_cc_g = yes; then
5366  if test "$GCC" = yes; then
5367    CFLAGS="-g -O2"
5368  else
5369    CFLAGS="-g"
5370  fi
5371else
5372  if test "$GCC" = yes; then
5373    CFLAGS="-O2"
5374  else
5375    CFLAGS=
5376  fi
5377fi
5378ac_prog_cc_stdc=no
5379if test x$ac_prog_cc_stdc = xno
5380then :
5381  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5382printf %s "checking for $CC option to enable C11 features... " >&6; }
5383if test ${ac_cv_prog_cc_c11+y}
5384then :
5385  printf %s "(cached) " >&6
5386else $as_nop
5387  ac_cv_prog_cc_c11=no
5388ac_save_CC=$CC
5389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390/* end confdefs.h.  */
5391$ac_c_conftest_c11_program
5392_ACEOF
5393for ac_arg in '' -std=gnu11
5394do
5395  CC="$ac_save_CC $ac_arg"
5396  if ac_fn_c_try_compile "$LINENO"
5397then :
5398  ac_cv_prog_cc_c11=$ac_arg
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.beam
5401  test "x$ac_cv_prog_cc_c11" != "xno" && break
5402done
5403rm -f conftest.$ac_ext
5404CC=$ac_save_CC
5405fi
5406
5407if test "x$ac_cv_prog_cc_c11" = xno
5408then :
5409  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5410printf "%s\n" "unsupported" >&6; }
5411else $as_nop
5412  if test "x$ac_cv_prog_cc_c11" = x
5413then :
5414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5415printf "%s\n" "none needed" >&6; }
5416else $as_nop
5417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5418printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5419     CC="$CC $ac_cv_prog_cc_c11"
5420fi
5421  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5422  ac_prog_cc_stdc=c11
5423fi
5424fi
5425if test x$ac_prog_cc_stdc = xno
5426then :
5427  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5428printf %s "checking for $CC option to enable C99 features... " >&6; }
5429if test ${ac_cv_prog_cc_c99+y}
5430then :
5431  printf %s "(cached) " >&6
5432else $as_nop
5433  ac_cv_prog_cc_c99=no
5434ac_save_CC=$CC
5435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h.  */
5437$ac_c_conftest_c99_program
5438_ACEOF
5439for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5440do
5441  CC="$ac_save_CC $ac_arg"
5442  if ac_fn_c_try_compile "$LINENO"
5443then :
5444  ac_cv_prog_cc_c99=$ac_arg
5445fi
5446rm -f core conftest.err conftest.$ac_objext conftest.beam
5447  test "x$ac_cv_prog_cc_c99" != "xno" && break
5448done
5449rm -f conftest.$ac_ext
5450CC=$ac_save_CC
5451fi
5452
5453if test "x$ac_cv_prog_cc_c99" = xno
5454then :
5455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5456printf "%s\n" "unsupported" >&6; }
5457else $as_nop
5458  if test "x$ac_cv_prog_cc_c99" = x
5459then :
5460  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5461printf "%s\n" "none needed" >&6; }
5462else $as_nop
5463  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5464printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5465     CC="$CC $ac_cv_prog_cc_c99"
5466fi
5467  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5468  ac_prog_cc_stdc=c99
5469fi
5470fi
5471if test x$ac_prog_cc_stdc = xno
5472then :
5473  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5474printf %s "checking for $CC option to enable C89 features... " >&6; }
5475if test ${ac_cv_prog_cc_c89+y}
5476then :
5477  printf %s "(cached) " >&6
5478else $as_nop
5479  ac_cv_prog_cc_c89=no
5480ac_save_CC=$CC
5481cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482/* end confdefs.h.  */
5483$ac_c_conftest_c89_program
5484_ACEOF
5485for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5486do
5487  CC="$ac_save_CC $ac_arg"
5488  if ac_fn_c_try_compile "$LINENO"
5489then :
5490  ac_cv_prog_cc_c89=$ac_arg
5491fi
5492rm -f core conftest.err conftest.$ac_objext conftest.beam
5493  test "x$ac_cv_prog_cc_c89" != "xno" && break
5494done
5495rm -f conftest.$ac_ext
5496CC=$ac_save_CC
5497fi
5498
5499if test "x$ac_cv_prog_cc_c89" = xno
5500then :
5501  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5502printf "%s\n" "unsupported" >&6; }
5503else $as_nop
5504  if test "x$ac_cv_prog_cc_c89" = x
5505then :
5506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5507printf "%s\n" "none needed" >&6; }
5508else $as_nop
5509  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5510printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5511     CC="$CC $ac_cv_prog_cc_c89"
5512fi
5513  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5514  ac_prog_cc_stdc=c89
5515fi
5516fi
5517
5518ac_ext=c
5519ac_cpp='$CPP $CPPFLAGS'
5520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522ac_compiler_gnu=$ac_cv_c_compiler_gnu
5523
5524
5525  ac_ext=c
5526ac_cpp='$CPP $CPPFLAGS'
5527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5531printf %s "checking whether $CC understands -c and -o together... " >&6; }
5532if test ${am_cv_prog_cc_c_o+y}
5533then :
5534  printf %s "(cached) " >&6
5535else $as_nop
5536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537/* end confdefs.h.  */
5538
5539int
5540main (void)
5541{
5542
5543  ;
5544  return 0;
5545}
5546_ACEOF
5547  # Make sure it works both with $CC and with simple cc.
5548  # Following AC_PROG_CC_C_O, we do the test twice because some
5549  # compilers refuse to overwrite an existing .o file with -o,
5550  # though they will create one.
5551  am_cv_prog_cc_c_o=yes
5552  for am_i in 1 2; do
5553    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5554   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); } \
5558         && test -f conftest2.$ac_objext; then
5559      : OK
5560    else
5561      am_cv_prog_cc_c_o=no
5562      break
5563    fi
5564  done
5565  rm -f core conftest*
5566  unset am_i
5567fi
5568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5569printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5570if test "$am_cv_prog_cc_c_o" != yes; then
5571   # Losing compiler, so override with the script.
5572   # FIXME: It is wrong to rewrite CC.
5573   # But if we don't then we get into trouble of one sort or another.
5574   # A longer-term fix would be to have automake use am__CC in this case,
5575   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5576   CC="$am_aux_dir/compile $CC"
5577fi
5578ac_ext=c
5579ac_cpp='$CPP $CPPFLAGS'
5580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5582ac_compiler_gnu=$ac_cv_c_compiler_gnu
5583
5584
5585depcc="$CC"   am_compiler_list=
5586
5587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5588printf %s "checking dependency style of $depcc... " >&6; }
5589if test ${am_cv_CC_dependencies_compiler_type+y}
5590then :
5591  printf %s "(cached) " >&6
5592else $as_nop
5593  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5594  # We make a subdir and do the tests there.  Otherwise we can end up
5595  # making bogus files that we don't know about and never remove.  For
5596  # instance it was reported that on HP-UX the gcc test will end up
5597  # making a dummy file named 'D' -- because '-MD' means "put the output
5598  # in D".
5599  rm -rf conftest.dir
5600  mkdir conftest.dir
5601  # Copy depcomp to subdir because otherwise we won't find it if we're
5602  # using a relative directory.
5603  cp "$am_depcomp" conftest.dir
5604  cd conftest.dir
5605  # We will build objects and dependencies in a subdirectory because
5606  # it helps to detect inapplicable dependency modes.  For instance
5607  # both Tru64's cc and ICC support -MD to output dependencies as a
5608  # side effect of compilation, but ICC will put the dependencies in
5609  # the current directory while Tru64 will put them in the object
5610  # directory.
5611  mkdir sub
5612
5613  am_cv_CC_dependencies_compiler_type=none
5614  if test "$am_compiler_list" = ""; then
5615     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5616  fi
5617  am__universal=false
5618  case " $depcc " in #(
5619     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5620     esac
5621
5622  for depmode in $am_compiler_list; do
5623    # Setup a source with many dependencies, because some compilers
5624    # like to wrap large dependency lists on column 80 (with \), and
5625    # we should not choose a depcomp mode which is confused by this.
5626    #
5627    # We need to recreate these files for each test, as the compiler may
5628    # overwrite some of them when testing with obscure command lines.
5629    # This happens at least with the AIX C compiler.
5630    : > sub/conftest.c
5631    for i in 1 2 3 4 5 6; do
5632      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5633      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5634      # Solaris 10 /bin/sh.
5635      echo '/* dummy */' > sub/conftst$i.h
5636    done
5637    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5638
5639    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5640    # mode.  It turns out that the SunPro C++ compiler does not properly
5641    # handle '-M -o', and we need to detect this.  Also, some Intel
5642    # versions had trouble with output in subdirs.
5643    am__obj=sub/conftest.${OBJEXT-o}
5644    am__minus_obj="-o $am__obj"
5645    case $depmode in
5646    gcc)
5647      # This depmode causes a compiler race in universal mode.
5648      test "$am__universal" = false || continue
5649      ;;
5650    nosideeffect)
5651      # After this tag, mechanisms are not by side-effect, so they'll
5652      # only be used when explicitly requested.
5653      if test "x$enable_dependency_tracking" = xyes; then
5654	continue
5655      else
5656	break
5657      fi
5658      ;;
5659    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5660      # This compiler won't grok '-c -o', but also, the minuso test has
5661      # not run yet.  These depmodes are late enough in the game, and
5662      # so weak that their functioning should not be impacted.
5663      am__obj=conftest.${OBJEXT-o}
5664      am__minus_obj=
5665      ;;
5666    none) break ;;
5667    esac
5668    if depmode=$depmode \
5669       source=sub/conftest.c object=$am__obj \
5670       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5671       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5672         >/dev/null 2>conftest.err &&
5673       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5674       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5675       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5676       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5677      # icc doesn't choke on unknown options, it will just issue warnings
5678      # or remarks (even with -Werror).  So we grep stderr for any message
5679      # that says an option was ignored or not supported.
5680      # When given -MP, icc 7.0 and 7.1 complain thusly:
5681      #   icc: Command line warning: ignoring option '-M'; no argument required
5682      # The diagnosis changed in icc 8.0:
5683      #   icc: Command line remark: option '-MP' not supported
5684      if (grep 'ignoring option' conftest.err ||
5685          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5686        am_cv_CC_dependencies_compiler_type=$depmode
5687        break
5688      fi
5689    fi
5690  done
5691
5692  cd ..
5693  rm -rf conftest.dir
5694else
5695  am_cv_CC_dependencies_compiler_type=none
5696fi
5697
5698fi
5699{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5700printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5701CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5702
5703 if
5704  test "x$enable_dependency_tracking" != xno \
5705  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5706  am__fastdepCC_TRUE=
5707  am__fastdepCC_FALSE='#'
5708else
5709  am__fastdepCC_TRUE='#'
5710  am__fastdepCC_FALSE=
5711fi
5712
5713
5714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5715printf %s "checking for a sed that does not truncate output... " >&6; }
5716if test ${ac_cv_path_SED+y}
5717then :
5718  printf %s "(cached) " >&6
5719else $as_nop
5720            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5721     for ac_i in 1 2 3 4 5 6 7; do
5722       ac_script="$ac_script$as_nl$ac_script"
5723     done
5724     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5725     { ac_script=; unset ac_script;}
5726     if test -z "$SED"; then
5727  ac_path_SED_found=false
5728  # Loop through the user's path and test for each of PROGNAME-LIST
5729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732  IFS=$as_save_IFS
5733  case $as_dir in #(((
5734    '') as_dir=./ ;;
5735    */) ;;
5736    *) as_dir=$as_dir/ ;;
5737  esac
5738    for ac_prog in sed gsed
5739   do
5740    for ac_exec_ext in '' $ac_executable_extensions; do
5741      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5742      as_fn_executable_p "$ac_path_SED" || continue
5743# Check for GNU ac_path_SED and select it if it is found.
5744  # Check for GNU $ac_path_SED
5745case `"$ac_path_SED" --version 2>&1` in
5746*GNU*)
5747  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5748*)
5749  ac_count=0
5750  printf %s 0123456789 >"conftest.in"
5751  while :
5752  do
5753    cat "conftest.in" "conftest.in" >"conftest.tmp"
5754    mv "conftest.tmp" "conftest.in"
5755    cp "conftest.in" "conftest.nl"
5756    printf "%s\n" '' >> "conftest.nl"
5757    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5758    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5759    as_fn_arith $ac_count + 1 && ac_count=$as_val
5760    if test $ac_count -gt ${ac_path_SED_max-0}; then
5761      # Best one so far, save it but keep looking for a better one
5762      ac_cv_path_SED="$ac_path_SED"
5763      ac_path_SED_max=$ac_count
5764    fi
5765    # 10*(2^10) chars as input seems more than enough
5766    test $ac_count -gt 10 && break
5767  done
5768  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5769esac
5770
5771      $ac_path_SED_found && break 3
5772    done
5773  done
5774  done
5775IFS=$as_save_IFS
5776  if test -z "$ac_cv_path_SED"; then
5777    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5778  fi
5779else
5780  ac_cv_path_SED=$SED
5781fi
5782
5783fi
5784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5785printf "%s\n" "$ac_cv_path_SED" >&6; }
5786 SED="$ac_cv_path_SED"
5787  rm -f conftest.sed
5788
5789test -z "$SED" && SED=sed
5790Xsed="$SED -e 1s/^X//"
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5803printf %s "checking for grep that handles long lines and -e... " >&6; }
5804if test ${ac_cv_path_GREP+y}
5805then :
5806  printf %s "(cached) " >&6
5807else $as_nop
5808  if test -z "$GREP"; then
5809  ac_path_GREP_found=false
5810  # Loop through the user's path and test for each of PROGNAME-LIST
5811  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5813do
5814  IFS=$as_save_IFS
5815  case $as_dir in #(((
5816    '') as_dir=./ ;;
5817    */) ;;
5818    *) as_dir=$as_dir/ ;;
5819  esac
5820    for ac_prog in grep ggrep
5821   do
5822    for ac_exec_ext in '' $ac_executable_extensions; do
5823      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5824      as_fn_executable_p "$ac_path_GREP" || continue
5825# Check for GNU ac_path_GREP and select it if it is found.
5826  # Check for GNU $ac_path_GREP
5827case `"$ac_path_GREP" --version 2>&1` in
5828*GNU*)
5829  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5830*)
5831  ac_count=0
5832  printf %s 0123456789 >"conftest.in"
5833  while :
5834  do
5835    cat "conftest.in" "conftest.in" >"conftest.tmp"
5836    mv "conftest.tmp" "conftest.in"
5837    cp "conftest.in" "conftest.nl"
5838    printf "%s\n" 'GREP' >> "conftest.nl"
5839    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5840    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5841    as_fn_arith $ac_count + 1 && ac_count=$as_val
5842    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5843      # Best one so far, save it but keep looking for a better one
5844      ac_cv_path_GREP="$ac_path_GREP"
5845      ac_path_GREP_max=$ac_count
5846    fi
5847    # 10*(2^10) chars as input seems more than enough
5848    test $ac_count -gt 10 && break
5849  done
5850  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5851esac
5852
5853      $ac_path_GREP_found && break 3
5854    done
5855  done
5856  done
5857IFS=$as_save_IFS
5858  if test -z "$ac_cv_path_GREP"; then
5859    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5860  fi
5861else
5862  ac_cv_path_GREP=$GREP
5863fi
5864
5865fi
5866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5867printf "%s\n" "$ac_cv_path_GREP" >&6; }
5868 GREP="$ac_cv_path_GREP"
5869
5870
5871{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5872printf %s "checking for egrep... " >&6; }
5873if test ${ac_cv_path_EGREP+y}
5874then :
5875  printf %s "(cached) " >&6
5876else $as_nop
5877  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5878   then ac_cv_path_EGREP="$GREP -E"
5879   else
5880     if test -z "$EGREP"; then
5881  ac_path_EGREP_found=false
5882  # Loop through the user's path and test for each of PROGNAME-LIST
5883  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5885do
5886  IFS=$as_save_IFS
5887  case $as_dir in #(((
5888    '') as_dir=./ ;;
5889    */) ;;
5890    *) as_dir=$as_dir/ ;;
5891  esac
5892    for ac_prog in egrep
5893   do
5894    for ac_exec_ext in '' $ac_executable_extensions; do
5895      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5896      as_fn_executable_p "$ac_path_EGREP" || continue
5897# Check for GNU ac_path_EGREP and select it if it is found.
5898  # Check for GNU $ac_path_EGREP
5899case `"$ac_path_EGREP" --version 2>&1` in
5900*GNU*)
5901  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5902*)
5903  ac_count=0
5904  printf %s 0123456789 >"conftest.in"
5905  while :
5906  do
5907    cat "conftest.in" "conftest.in" >"conftest.tmp"
5908    mv "conftest.tmp" "conftest.in"
5909    cp "conftest.in" "conftest.nl"
5910    printf "%s\n" 'EGREP' >> "conftest.nl"
5911    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5912    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5913    as_fn_arith $ac_count + 1 && ac_count=$as_val
5914    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5915      # Best one so far, save it but keep looking for a better one
5916      ac_cv_path_EGREP="$ac_path_EGREP"
5917      ac_path_EGREP_max=$ac_count
5918    fi
5919    # 10*(2^10) chars as input seems more than enough
5920    test $ac_count -gt 10 && break
5921  done
5922  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5923esac
5924
5925      $ac_path_EGREP_found && break 3
5926    done
5927  done
5928  done
5929IFS=$as_save_IFS
5930  if test -z "$ac_cv_path_EGREP"; then
5931    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5932  fi
5933else
5934  ac_cv_path_EGREP=$EGREP
5935fi
5936
5937   fi
5938fi
5939{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5940printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5941 EGREP="$ac_cv_path_EGREP"
5942
5943
5944{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5945printf %s "checking for fgrep... " >&6; }
5946if test ${ac_cv_path_FGREP+y}
5947then :
5948  printf %s "(cached) " >&6
5949else $as_nop
5950  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5951   then ac_cv_path_FGREP="$GREP -F"
5952   else
5953     if test -z "$FGREP"; then
5954  ac_path_FGREP_found=false
5955  # Loop through the user's path and test for each of PROGNAME-LIST
5956  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5957for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5958do
5959  IFS=$as_save_IFS
5960  case $as_dir in #(((
5961    '') as_dir=./ ;;
5962    */) ;;
5963    *) as_dir=$as_dir/ ;;
5964  esac
5965    for ac_prog in fgrep
5966   do
5967    for ac_exec_ext in '' $ac_executable_extensions; do
5968      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5969      as_fn_executable_p "$ac_path_FGREP" || continue
5970# Check for GNU ac_path_FGREP and select it if it is found.
5971  # Check for GNU $ac_path_FGREP
5972case `"$ac_path_FGREP" --version 2>&1` in
5973*GNU*)
5974  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5975*)
5976  ac_count=0
5977  printf %s 0123456789 >"conftest.in"
5978  while :
5979  do
5980    cat "conftest.in" "conftest.in" >"conftest.tmp"
5981    mv "conftest.tmp" "conftest.in"
5982    cp "conftest.in" "conftest.nl"
5983    printf "%s\n" 'FGREP' >> "conftest.nl"
5984    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5985    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5986    as_fn_arith $ac_count + 1 && ac_count=$as_val
5987    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5988      # Best one so far, save it but keep looking for a better one
5989      ac_cv_path_FGREP="$ac_path_FGREP"
5990      ac_path_FGREP_max=$ac_count
5991    fi
5992    # 10*(2^10) chars as input seems more than enough
5993    test $ac_count -gt 10 && break
5994  done
5995  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5996esac
5997
5998      $ac_path_FGREP_found && break 3
5999    done
6000  done
6001  done
6002IFS=$as_save_IFS
6003  if test -z "$ac_cv_path_FGREP"; then
6004    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6005  fi
6006else
6007  ac_cv_path_FGREP=$FGREP
6008fi
6009
6010   fi
6011fi
6012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6013printf "%s\n" "$ac_cv_path_FGREP" >&6; }
6014 FGREP="$ac_cv_path_FGREP"
6015
6016
6017test -z "$GREP" && GREP=grep
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037# Check whether --with-gnu-ld was given.
6038if test ${with_gnu_ld+y}
6039then :
6040  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6041else $as_nop
6042  with_gnu_ld=no
6043fi
6044
6045ac_prog=ld
6046if test yes = "$GCC"; then
6047  # Check if gcc -print-prog-name=ld gives a path.
6048  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6049printf %s "checking for ld used by $CC... " >&6; }
6050  case $host in
6051  *-*-mingw*)
6052    # gcc leaves a trailing carriage return, which upsets mingw
6053    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6054  *)
6055    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6056  esac
6057  case $ac_prog in
6058    # Accept absolute paths.
6059    [\\/]* | ?:[\\/]*)
6060      re_direlt='/[^/][^/]*/\.\./'
6061      # Canonicalize the pathname of ld
6062      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6063      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6064	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6065      done
6066      test -z "$LD" && LD=$ac_prog
6067      ;;
6068  "")
6069    # If it fails, then pretend we aren't using GCC.
6070    ac_prog=ld
6071    ;;
6072  *)
6073    # If it is relative, then search for the first ld in PATH.
6074    with_gnu_ld=unknown
6075    ;;
6076  esac
6077elif test yes = "$with_gnu_ld"; then
6078  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6079printf %s "checking for GNU ld... " >&6; }
6080else
6081  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6082printf %s "checking for non-GNU ld... " >&6; }
6083fi
6084if test ${lt_cv_path_LD+y}
6085then :
6086  printf %s "(cached) " >&6
6087else $as_nop
6088  if test -z "$LD"; then
6089  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6090  for ac_dir in $PATH; do
6091    IFS=$lt_save_ifs
6092    test -z "$ac_dir" && ac_dir=.
6093    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6094      lt_cv_path_LD=$ac_dir/$ac_prog
6095      # Check to see if the program is GNU ld.  I'd rather use --version,
6096      # but apparently some variants of GNU ld only accept -v.
6097      # Break only if it was the GNU/non-GNU ld that we prefer.
6098      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6099      *GNU* | *'with BFD'*)
6100	test no != "$with_gnu_ld" && break
6101	;;
6102      *)
6103	test yes != "$with_gnu_ld" && break
6104	;;
6105      esac
6106    fi
6107  done
6108  IFS=$lt_save_ifs
6109else
6110  lt_cv_path_LD=$LD # Let the user override the test with a path.
6111fi
6112fi
6113
6114LD=$lt_cv_path_LD
6115if test -n "$LD"; then
6116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6117printf "%s\n" "$LD" >&6; }
6118else
6119  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120printf "%s\n" "no" >&6; }
6121fi
6122test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6123{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6124printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6125if test ${lt_cv_prog_gnu_ld+y}
6126then :
6127  printf %s "(cached) " >&6
6128else $as_nop
6129  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6130case `$LD -v 2>&1 </dev/null` in
6131*GNU* | *'with BFD'*)
6132  lt_cv_prog_gnu_ld=yes
6133  ;;
6134*)
6135  lt_cv_prog_gnu_ld=no
6136  ;;
6137esac
6138fi
6139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6140printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6141with_gnu_ld=$lt_cv_prog_gnu_ld
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6152printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6153if test ${lt_cv_path_NM+y}
6154then :
6155  printf %s "(cached) " >&6
6156else $as_nop
6157  if test -n "$NM"; then
6158  # Let the user override the test.
6159  lt_cv_path_NM=$NM
6160else
6161  lt_nm_to_check=${ac_tool_prefix}nm
6162  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6163    lt_nm_to_check="$lt_nm_to_check nm"
6164  fi
6165  for lt_tmp_nm in $lt_nm_to_check; do
6166    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6167    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6168      IFS=$lt_save_ifs
6169      test -z "$ac_dir" && ac_dir=.
6170      tmp_nm=$ac_dir/$lt_tmp_nm
6171      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6172	# Check to see if the nm accepts a BSD-compat flag.
6173	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6174	#   nm: unknown option "B" ignored
6175	# Tru64's nm complains that /dev/null is an invalid object file
6176	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6177	case $build_os in
6178	mingw*) lt_bad_file=conftest.nm/nofile ;;
6179	*) lt_bad_file=/dev/null ;;
6180	esac
6181	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6182	*$lt_bad_file* | *'Invalid file or object type'*)
6183	  lt_cv_path_NM="$tmp_nm -B"
6184	  break 2
6185	  ;;
6186	*)
6187	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6188	  */dev/null*)
6189	    lt_cv_path_NM="$tmp_nm -p"
6190	    break 2
6191	    ;;
6192	  *)
6193	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6194	    continue # so that we can try to find one that supports BSD flags
6195	    ;;
6196	  esac
6197	  ;;
6198	esac
6199      fi
6200    done
6201    IFS=$lt_save_ifs
6202  done
6203  : ${lt_cv_path_NM=no}
6204fi
6205fi
6206{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6207printf "%s\n" "$lt_cv_path_NM" >&6; }
6208if test no != "$lt_cv_path_NM"; then
6209  NM=$lt_cv_path_NM
6210else
6211  # Didn't find any BSD compatible name lister, look for dumpbin.
6212  if test -n "$DUMPBIN"; then :
6213    # Let the user override the test.
6214  else
6215    if test -n "$ac_tool_prefix"; then
6216  for ac_prog in dumpbin "link -dump"
6217  do
6218    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6219set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221printf %s "checking for $ac_word... " >&6; }
6222if test ${ac_cv_prog_DUMPBIN+y}
6223then :
6224  printf %s "(cached) " >&6
6225else $as_nop
6226  if test -n "$DUMPBIN"; then
6227  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6228else
6229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6230for as_dir in $PATH
6231do
6232  IFS=$as_save_IFS
6233  case $as_dir in #(((
6234    '') as_dir=./ ;;
6235    */) ;;
6236    *) as_dir=$as_dir/ ;;
6237  esac
6238    for ac_exec_ext in '' $ac_executable_extensions; do
6239  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6240    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6241    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6242    break 2
6243  fi
6244done
6245  done
6246IFS=$as_save_IFS
6247
6248fi
6249fi
6250DUMPBIN=$ac_cv_prog_DUMPBIN
6251if test -n "$DUMPBIN"; then
6252  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6253printf "%s\n" "$DUMPBIN" >&6; }
6254else
6255  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256printf "%s\n" "no" >&6; }
6257fi
6258
6259
6260    test -n "$DUMPBIN" && break
6261  done
6262fi
6263if test -z "$DUMPBIN"; then
6264  ac_ct_DUMPBIN=$DUMPBIN
6265  for ac_prog in dumpbin "link -dump"
6266do
6267  # Extract the first word of "$ac_prog", so it can be a program name with args.
6268set dummy $ac_prog; ac_word=$2
6269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270printf %s "checking for $ac_word... " >&6; }
6271if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6272then :
6273  printf %s "(cached) " >&6
6274else $as_nop
6275  if test -n "$ac_ct_DUMPBIN"; then
6276  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6277else
6278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281  IFS=$as_save_IFS
6282  case $as_dir in #(((
6283    '') as_dir=./ ;;
6284    */) ;;
6285    *) as_dir=$as_dir/ ;;
6286  esac
6287    for ac_exec_ext in '' $ac_executable_extensions; do
6288  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6289    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6290    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6291    break 2
6292  fi
6293done
6294  done
6295IFS=$as_save_IFS
6296
6297fi
6298fi
6299ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6300if test -n "$ac_ct_DUMPBIN"; then
6301  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6302printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6303else
6304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305printf "%s\n" "no" >&6; }
6306fi
6307
6308
6309  test -n "$ac_ct_DUMPBIN" && break
6310done
6311
6312  if test "x$ac_ct_DUMPBIN" = x; then
6313    DUMPBIN=":"
6314  else
6315    case $cross_compiling:$ac_tool_warned in
6316yes:)
6317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6318printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6319ac_tool_warned=yes ;;
6320esac
6321    DUMPBIN=$ac_ct_DUMPBIN
6322  fi
6323fi
6324
6325    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6326    *COFF*)
6327      DUMPBIN="$DUMPBIN -symbols -headers"
6328      ;;
6329    *)
6330      DUMPBIN=:
6331      ;;
6332    esac
6333  fi
6334
6335  if test : != "$DUMPBIN"; then
6336    NM=$DUMPBIN
6337  fi
6338fi
6339test -z "$NM" && NM=nm
6340
6341
6342
6343
6344
6345
6346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6347printf %s "checking the name lister ($NM) interface... " >&6; }
6348if test ${lt_cv_nm_interface+y}
6349then :
6350  printf %s "(cached) " >&6
6351else $as_nop
6352  lt_cv_nm_interface="BSD nm"
6353  echo "int some_variable = 0;" > conftest.$ac_ext
6354  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6355  (eval "$ac_compile" 2>conftest.err)
6356  cat conftest.err >&5
6357  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6358  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6359  cat conftest.err >&5
6360  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6361  cat conftest.out >&5
6362  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6363    lt_cv_nm_interface="MS dumpbin"
6364  fi
6365  rm -f conftest*
6366fi
6367{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6368printf "%s\n" "$lt_cv_nm_interface" >&6; }
6369
6370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6371printf %s "checking whether ln -s works... " >&6; }
6372LN_S=$as_ln_s
6373if test "$LN_S" = "ln -s"; then
6374  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6375printf "%s\n" "yes" >&6; }
6376else
6377  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6378printf "%s\n" "no, using $LN_S" >&6; }
6379fi
6380
6381# find the maximum length of command line arguments
6382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6383printf %s "checking the maximum length of command line arguments... " >&6; }
6384if test ${lt_cv_sys_max_cmd_len+y}
6385then :
6386  printf %s "(cached) " >&6
6387else $as_nop
6388    i=0
6389  teststring=ABCD
6390
6391  case $build_os in
6392  msdosdjgpp*)
6393    # On DJGPP, this test can blow up pretty badly due to problems in libc
6394    # (any single argument exceeding 2000 bytes causes a buffer overrun
6395    # during glob expansion).  Even if it were fixed, the result of this
6396    # check would be larger than it should be.
6397    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6398    ;;
6399
6400  gnu*)
6401    # Under GNU Hurd, this test is not required because there is
6402    # no limit to the length of command line arguments.
6403    # Libtool will interpret -1 as no limit whatsoever
6404    lt_cv_sys_max_cmd_len=-1;
6405    ;;
6406
6407  cygwin* | mingw* | cegcc*)
6408    # On Win9x/ME, this test blows up -- it succeeds, but takes
6409    # about 5 minutes as the teststring grows exponentially.
6410    # Worse, since 9x/ME are not pre-emptively multitasking,
6411    # you end up with a "frozen" computer, even though with patience
6412    # the test eventually succeeds (with a max line length of 256k).
6413    # Instead, let's just punt: use the minimum linelength reported by
6414    # all of the supported platforms: 8192 (on NT/2K/XP).
6415    lt_cv_sys_max_cmd_len=8192;
6416    ;;
6417
6418  mint*)
6419    # On MiNT this can take a long time and run out of memory.
6420    lt_cv_sys_max_cmd_len=8192;
6421    ;;
6422
6423  amigaos*)
6424    # On AmigaOS with pdksh, this test takes hours, literally.
6425    # So we just punt and use a minimum line length of 8192.
6426    lt_cv_sys_max_cmd_len=8192;
6427    ;;
6428
6429  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6430    # This has been around since 386BSD, at least.  Likely further.
6431    if test -x /sbin/sysctl; then
6432      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6433    elif test -x /usr/sbin/sysctl; then
6434      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6435    else
6436      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6437    fi
6438    # And add a safety zone
6439    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6440    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6441    ;;
6442
6443  interix*)
6444    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6445    lt_cv_sys_max_cmd_len=196608
6446    ;;
6447
6448  os2*)
6449    # The test takes a long time on OS/2.
6450    lt_cv_sys_max_cmd_len=8192
6451    ;;
6452
6453  osf*)
6454    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6455    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6456    # nice to cause kernel panics so lets avoid the loop below.
6457    # First set a reasonable default.
6458    lt_cv_sys_max_cmd_len=16384
6459    #
6460    if test -x /sbin/sysconfig; then
6461      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6462        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6463      esac
6464    fi
6465    ;;
6466  sco3.2v5*)
6467    lt_cv_sys_max_cmd_len=102400
6468    ;;
6469  sysv5* | sco5v6* | sysv4.2uw2*)
6470    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6471    if test -n "$kargmax"; then
6472      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6473    else
6474      lt_cv_sys_max_cmd_len=32768
6475    fi
6476    ;;
6477  *)
6478    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6479    if test -n "$lt_cv_sys_max_cmd_len" && \
6480       test undefined != "$lt_cv_sys_max_cmd_len"; then
6481      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6482      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6483    else
6484      # Make teststring a little bigger before we do anything with it.
6485      # a 1K string should be a reasonable start.
6486      for i in 1 2 3 4 5 6 7 8; do
6487        teststring=$teststring$teststring
6488      done
6489      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6490      # If test is not a shell built-in, we'll probably end up computing a
6491      # maximum length that is only half of the actual maximum length, but
6492      # we can't tell.
6493      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6494	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6495	      test 17 != "$i" # 1/2 MB should be enough
6496      do
6497        i=`expr $i + 1`
6498        teststring=$teststring$teststring
6499      done
6500      # Only check the string length outside the loop.
6501      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6502      teststring=
6503      # Add a significant safety factor because C++ compilers can tack on
6504      # massive amounts of additional arguments before passing them to the
6505      # linker.  It appears as though 1/2 is a usable value.
6506      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6507    fi
6508    ;;
6509  esac
6510
6511fi
6512
6513if test -n "$lt_cv_sys_max_cmd_len"; then
6514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6515printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6516else
6517  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6518printf "%s\n" "none" >&6; }
6519fi
6520max_cmd_len=$lt_cv_sys_max_cmd_len
6521
6522
6523
6524
6525
6526
6527: ${CP="cp -f"}
6528: ${MV="mv -f"}
6529: ${RM="rm -f"}
6530
6531if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6532  lt_unset=unset
6533else
6534  lt_unset=false
6535fi
6536
6537
6538
6539
6540
6541# test EBCDIC or ASCII
6542case `echo X|tr X '\101'` in
6543 A) # ASCII based system
6544    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6545  lt_SP2NL='tr \040 \012'
6546  lt_NL2SP='tr \015\012 \040\040'
6547  ;;
6548 *) # EBCDIC based system
6549  lt_SP2NL='tr \100 \n'
6550  lt_NL2SP='tr \r\n \100\100'
6551  ;;
6552esac
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6563printf %s "checking how to convert $build file names to $host format... " >&6; }
6564if test ${lt_cv_to_host_file_cmd+y}
6565then :
6566  printf %s "(cached) " >&6
6567else $as_nop
6568  case $host in
6569  *-*-mingw* )
6570    case $build in
6571      *-*-mingw* ) # actually msys
6572        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6573        ;;
6574      *-*-cygwin* )
6575        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6576        ;;
6577      * ) # otherwise, assume *nix
6578        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6579        ;;
6580    esac
6581    ;;
6582  *-*-cygwin* )
6583    case $build in
6584      *-*-mingw* ) # actually msys
6585        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6586        ;;
6587      *-*-cygwin* )
6588        lt_cv_to_host_file_cmd=func_convert_file_noop
6589        ;;
6590      * ) # otherwise, assume *nix
6591        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6592        ;;
6593    esac
6594    ;;
6595  * ) # unhandled hosts (and "normal" native builds)
6596    lt_cv_to_host_file_cmd=func_convert_file_noop
6597    ;;
6598esac
6599
6600fi
6601
6602to_host_file_cmd=$lt_cv_to_host_file_cmd
6603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6604printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6605
6606
6607
6608
6609
6610{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6611printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6612if test ${lt_cv_to_tool_file_cmd+y}
6613then :
6614  printf %s "(cached) " >&6
6615else $as_nop
6616  #assume ordinary cross tools, or native build.
6617lt_cv_to_tool_file_cmd=func_convert_file_noop
6618case $host in
6619  *-*-mingw* )
6620    case $build in
6621      *-*-mingw* ) # actually msys
6622        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6623        ;;
6624    esac
6625    ;;
6626esac
6627
6628fi
6629
6630to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6632printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6633
6634
6635
6636
6637
6638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6639printf %s "checking for $LD option to reload object files... " >&6; }
6640if test ${lt_cv_ld_reload_flag+y}
6641then :
6642  printf %s "(cached) " >&6
6643else $as_nop
6644  lt_cv_ld_reload_flag='-r'
6645fi
6646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6647printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6648reload_flag=$lt_cv_ld_reload_flag
6649case $reload_flag in
6650"" | " "*) ;;
6651*) reload_flag=" $reload_flag" ;;
6652esac
6653reload_cmds='$LD$reload_flag -o $output$reload_objs'
6654case $host_os in
6655  cygwin* | mingw* | pw32* | cegcc*)
6656    if test yes != "$GCC"; then
6657      reload_cmds=false
6658    fi
6659    ;;
6660  darwin*)
6661    if test yes = "$GCC"; then
6662      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6663    else
6664      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6665    fi
6666    ;;
6667esac
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677if test -n "$ac_tool_prefix"; then
6678  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6679set dummy ${ac_tool_prefix}objdump; ac_word=$2
6680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6681printf %s "checking for $ac_word... " >&6; }
6682if test ${ac_cv_prog_OBJDUMP+y}
6683then :
6684  printf %s "(cached) " >&6
6685else $as_nop
6686  if test -n "$OBJDUMP"; then
6687  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6688else
6689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690for as_dir in $PATH
6691do
6692  IFS=$as_save_IFS
6693  case $as_dir in #(((
6694    '') as_dir=./ ;;
6695    */) ;;
6696    *) as_dir=$as_dir/ ;;
6697  esac
6698    for ac_exec_ext in '' $ac_executable_extensions; do
6699  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6700    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6701    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6702    break 2
6703  fi
6704done
6705  done
6706IFS=$as_save_IFS
6707
6708fi
6709fi
6710OBJDUMP=$ac_cv_prog_OBJDUMP
6711if test -n "$OBJDUMP"; then
6712  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6713printf "%s\n" "$OBJDUMP" >&6; }
6714else
6715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716printf "%s\n" "no" >&6; }
6717fi
6718
6719
6720fi
6721if test -z "$ac_cv_prog_OBJDUMP"; then
6722  ac_ct_OBJDUMP=$OBJDUMP
6723  # Extract the first word of "objdump", so it can be a program name with args.
6724set dummy objdump; ac_word=$2
6725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726printf %s "checking for $ac_word... " >&6; }
6727if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6728then :
6729  printf %s "(cached) " >&6
6730else $as_nop
6731  if test -n "$ac_ct_OBJDUMP"; then
6732  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6733else
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737  IFS=$as_save_IFS
6738  case $as_dir in #(((
6739    '') as_dir=./ ;;
6740    */) ;;
6741    *) as_dir=$as_dir/ ;;
6742  esac
6743    for ac_exec_ext in '' $ac_executable_extensions; do
6744  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6745    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6746    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6747    break 2
6748  fi
6749done
6750  done
6751IFS=$as_save_IFS
6752
6753fi
6754fi
6755ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6756if test -n "$ac_ct_OBJDUMP"; then
6757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6758printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6759else
6760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6761printf "%s\n" "no" >&6; }
6762fi
6763
6764  if test "x$ac_ct_OBJDUMP" = x; then
6765    OBJDUMP="false"
6766  else
6767    case $cross_compiling:$ac_tool_warned in
6768yes:)
6769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6770printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6771ac_tool_warned=yes ;;
6772esac
6773    OBJDUMP=$ac_ct_OBJDUMP
6774  fi
6775else
6776  OBJDUMP="$ac_cv_prog_OBJDUMP"
6777fi
6778
6779test -z "$OBJDUMP" && OBJDUMP=objdump
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6790printf %s "checking how to recognize dependent libraries... " >&6; }
6791if test ${lt_cv_deplibs_check_method+y}
6792then :
6793  printf %s "(cached) " >&6
6794else $as_nop
6795  lt_cv_file_magic_cmd='$MAGIC_CMD'
6796lt_cv_file_magic_test_file=
6797lt_cv_deplibs_check_method='unknown'
6798# Need to set the preceding variable on all platforms that support
6799# interlibrary dependencies.
6800# 'none' -- dependencies not supported.
6801# 'unknown' -- same as none, but documents that we really don't know.
6802# 'pass_all' -- all dependencies passed with no checks.
6803# 'test_compile' -- check by making test program.
6804# 'file_magic [[regex]]' -- check by looking for files in library path
6805# that responds to the $file_magic_cmd with a given extended regex.
6806# If you have 'file' or equivalent on your system and you're not sure
6807# whether 'pass_all' will *always* work, you probably want this one.
6808
6809case $host_os in
6810aix[4-9]*)
6811  lt_cv_deplibs_check_method=pass_all
6812  ;;
6813
6814beos*)
6815  lt_cv_deplibs_check_method=pass_all
6816  ;;
6817
6818bsdi[45]*)
6819  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6820  lt_cv_file_magic_cmd='/usr/bin/file -L'
6821  lt_cv_file_magic_test_file=/shlib/libc.so
6822  ;;
6823
6824cygwin*)
6825  # func_win32_libid is a shell function defined in ltmain.sh
6826  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6827  lt_cv_file_magic_cmd='func_win32_libid'
6828  ;;
6829
6830mingw* | pw32*)
6831  # Base MSYS/MinGW do not provide the 'file' command needed by
6832  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6833  # unless we find 'file', for example because we are cross-compiling.
6834  if ( file / ) >/dev/null 2>&1; then
6835    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6836    lt_cv_file_magic_cmd='func_win32_libid'
6837  else
6838    # Keep this pattern in sync with the one in func_win32_libid.
6839    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6840    lt_cv_file_magic_cmd='$OBJDUMP -f'
6841  fi
6842  ;;
6843
6844cegcc*)
6845  # use the weaker test based on 'objdump'. See mingw*.
6846  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6847  lt_cv_file_magic_cmd='$OBJDUMP -f'
6848  ;;
6849
6850darwin* | rhapsody*)
6851  lt_cv_deplibs_check_method=pass_all
6852  ;;
6853
6854freebsd* | dragonfly*)
6855  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6856    case $host_cpu in
6857    i*86 )
6858      # Not sure whether the presence of OpenBSD here was a mistake.
6859      # Let's accept both of them until this is cleared up.
6860      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6861      lt_cv_file_magic_cmd=/usr/bin/file
6862      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6863      ;;
6864    esac
6865  else
6866    lt_cv_deplibs_check_method=pass_all
6867  fi
6868  ;;
6869
6870haiku*)
6871  lt_cv_deplibs_check_method=pass_all
6872  ;;
6873
6874hpux10.20* | hpux11*)
6875  lt_cv_file_magic_cmd=/usr/bin/file
6876  case $host_cpu in
6877  ia64*)
6878    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6879    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6880    ;;
6881  hppa*64*)
6882    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]'
6883    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6884    ;;
6885  *)
6886    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6887    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6888    ;;
6889  esac
6890  ;;
6891
6892interix[3-9]*)
6893  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6894  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6895  ;;
6896
6897irix5* | irix6* | nonstopux*)
6898  case $LD in
6899  *-32|*"-32 ") libmagic=32-bit;;
6900  *-n32|*"-n32 ") libmagic=N32;;
6901  *-64|*"-64 ") libmagic=64-bit;;
6902  *) libmagic=never-match;;
6903  esac
6904  lt_cv_deplibs_check_method=pass_all
6905  ;;
6906
6907# This must be glibc/ELF.
6908linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6909  lt_cv_deplibs_check_method=pass_all
6910  ;;
6911
6912netbsd*)
6913  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6914    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6915  else
6916    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6917  fi
6918  ;;
6919
6920newos6*)
6921  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6922  lt_cv_file_magic_cmd=/usr/bin/file
6923  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6924  ;;
6925
6926*nto* | *qnx*)
6927  lt_cv_deplibs_check_method=pass_all
6928  ;;
6929
6930openbsd* | bitrig*)
6931  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6932    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6933  else
6934    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6935  fi
6936  ;;
6937
6938osf3* | osf4* | osf5*)
6939  lt_cv_deplibs_check_method=pass_all
6940  ;;
6941
6942rdos*)
6943  lt_cv_deplibs_check_method=pass_all
6944  ;;
6945
6946solaris*)
6947  lt_cv_deplibs_check_method=pass_all
6948  ;;
6949
6950sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6951  lt_cv_deplibs_check_method=pass_all
6952  ;;
6953
6954sysv4 | sysv4.3*)
6955  case $host_vendor in
6956  motorola)
6957    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]'
6958    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6959    ;;
6960  ncr)
6961    lt_cv_deplibs_check_method=pass_all
6962    ;;
6963  sequent)
6964    lt_cv_file_magic_cmd='/bin/file'
6965    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6966    ;;
6967  sni)
6968    lt_cv_file_magic_cmd='/bin/file'
6969    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6970    lt_cv_file_magic_test_file=/lib/libc.so
6971    ;;
6972  siemens)
6973    lt_cv_deplibs_check_method=pass_all
6974    ;;
6975  pc)
6976    lt_cv_deplibs_check_method=pass_all
6977    ;;
6978  esac
6979  ;;
6980
6981tpf*)
6982  lt_cv_deplibs_check_method=pass_all
6983  ;;
6984os2*)
6985  lt_cv_deplibs_check_method=pass_all
6986  ;;
6987esac
6988
6989fi
6990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6991printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6992
6993file_magic_glob=
6994want_nocaseglob=no
6995if test "$build" = "$host"; then
6996  case $host_os in
6997  mingw* | pw32*)
6998    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6999      want_nocaseglob=yes
7000    else
7001      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7002    fi
7003    ;;
7004  esac
7005fi
7006
7007file_magic_cmd=$lt_cv_file_magic_cmd
7008deplibs_check_method=$lt_cv_deplibs_check_method
7009test -z "$deplibs_check_method" && deplibs_check_method=unknown
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032if test -n "$ac_tool_prefix"; then
7033  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7034set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7036printf %s "checking for $ac_word... " >&6; }
7037if test ${ac_cv_prog_DLLTOOL+y}
7038then :
7039  printf %s "(cached) " >&6
7040else $as_nop
7041  if test -n "$DLLTOOL"; then
7042  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047  IFS=$as_save_IFS
7048  case $as_dir in #(((
7049    '') as_dir=./ ;;
7050    */) ;;
7051    *) as_dir=$as_dir/ ;;
7052  esac
7053    for ac_exec_ext in '' $ac_executable_extensions; do
7054  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7055    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7056    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7057    break 2
7058  fi
7059done
7060  done
7061IFS=$as_save_IFS
7062
7063fi
7064fi
7065DLLTOOL=$ac_cv_prog_DLLTOOL
7066if test -n "$DLLTOOL"; then
7067  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7068printf "%s\n" "$DLLTOOL" >&6; }
7069else
7070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071printf "%s\n" "no" >&6; }
7072fi
7073
7074
7075fi
7076if test -z "$ac_cv_prog_DLLTOOL"; then
7077  ac_ct_DLLTOOL=$DLLTOOL
7078  # Extract the first word of "dlltool", so it can be a program name with args.
7079set dummy dlltool; ac_word=$2
7080{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081printf %s "checking for $ac_word... " >&6; }
7082if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7083then :
7084  printf %s "(cached) " >&6
7085else $as_nop
7086  if test -n "$ac_ct_DLLTOOL"; then
7087  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7088else
7089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090for as_dir in $PATH
7091do
7092  IFS=$as_save_IFS
7093  case $as_dir in #(((
7094    '') as_dir=./ ;;
7095    */) ;;
7096    *) as_dir=$as_dir/ ;;
7097  esac
7098    for ac_exec_ext in '' $ac_executable_extensions; do
7099  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7100    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7101    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7102    break 2
7103  fi
7104done
7105  done
7106IFS=$as_save_IFS
7107
7108fi
7109fi
7110ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7111if test -n "$ac_ct_DLLTOOL"; then
7112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7113printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7114else
7115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7116printf "%s\n" "no" >&6; }
7117fi
7118
7119  if test "x$ac_ct_DLLTOOL" = x; then
7120    DLLTOOL="false"
7121  else
7122    case $cross_compiling:$ac_tool_warned in
7123yes:)
7124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7125printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7126ac_tool_warned=yes ;;
7127esac
7128    DLLTOOL=$ac_ct_DLLTOOL
7129  fi
7130else
7131  DLLTOOL="$ac_cv_prog_DLLTOOL"
7132fi
7133
7134test -z "$DLLTOOL" && DLLTOOL=dlltool
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7146printf %s "checking how to associate runtime and link libraries... " >&6; }
7147if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7148then :
7149  printf %s "(cached) " >&6
7150else $as_nop
7151  lt_cv_sharedlib_from_linklib_cmd='unknown'
7152
7153case $host_os in
7154cygwin* | mingw* | pw32* | cegcc*)
7155  # two different shell functions defined in ltmain.sh;
7156  # decide which one to use based on capabilities of $DLLTOOL
7157  case `$DLLTOOL --help 2>&1` in
7158  *--identify-strict*)
7159    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7160    ;;
7161  *)
7162    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7163    ;;
7164  esac
7165  ;;
7166*)
7167  # fallback: assume linklib IS sharedlib
7168  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7169  ;;
7170esac
7171
7172fi
7173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7174printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7175sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7176test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7177
7178
7179
7180
7181
7182
7183
7184
7185if test -n "$ac_tool_prefix"; then
7186  for ac_prog in ar
7187  do
7188    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191printf %s "checking for $ac_word... " >&6; }
7192if test ${ac_cv_prog_AR+y}
7193then :
7194  printf %s "(cached) " >&6
7195else $as_nop
7196  if test -n "$AR"; then
7197  ac_cv_prog_AR="$AR" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202  IFS=$as_save_IFS
7203  case $as_dir in #(((
7204    '') as_dir=./ ;;
7205    */) ;;
7206    *) as_dir=$as_dir/ ;;
7207  esac
7208    for ac_exec_ext in '' $ac_executable_extensions; do
7209  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7210    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7211    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7212    break 2
7213  fi
7214done
7215  done
7216IFS=$as_save_IFS
7217
7218fi
7219fi
7220AR=$ac_cv_prog_AR
7221if test -n "$AR"; then
7222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7223printf "%s\n" "$AR" >&6; }
7224else
7225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226printf "%s\n" "no" >&6; }
7227fi
7228
7229
7230    test -n "$AR" && break
7231  done
7232fi
7233if test -z "$AR"; then
7234  ac_ct_AR=$AR
7235  for ac_prog in ar
7236do
7237  # Extract the first word of "$ac_prog", so it can be a program name with args.
7238set dummy $ac_prog; ac_word=$2
7239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240printf %s "checking for $ac_word... " >&6; }
7241if test ${ac_cv_prog_ac_ct_AR+y}
7242then :
7243  printf %s "(cached) " >&6
7244else $as_nop
7245  if test -n "$ac_ct_AR"; then
7246  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7247else
7248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249for as_dir in $PATH
7250do
7251  IFS=$as_save_IFS
7252  case $as_dir in #(((
7253    '') as_dir=./ ;;
7254    */) ;;
7255    *) as_dir=$as_dir/ ;;
7256  esac
7257    for ac_exec_ext in '' $ac_executable_extensions; do
7258  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7259    ac_cv_prog_ac_ct_AR="$ac_prog"
7260    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7261    break 2
7262  fi
7263done
7264  done
7265IFS=$as_save_IFS
7266
7267fi
7268fi
7269ac_ct_AR=$ac_cv_prog_ac_ct_AR
7270if test -n "$ac_ct_AR"; then
7271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7272printf "%s\n" "$ac_ct_AR" >&6; }
7273else
7274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275printf "%s\n" "no" >&6; }
7276fi
7277
7278
7279  test -n "$ac_ct_AR" && break
7280done
7281
7282  if test "x$ac_ct_AR" = x; then
7283    AR="false"
7284  else
7285    case $cross_compiling:$ac_tool_warned in
7286yes:)
7287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289ac_tool_warned=yes ;;
7290esac
7291    AR=$ac_ct_AR
7292  fi
7293fi
7294
7295: ${AR=ar}
7296: ${AR_FLAGS=cru}
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7309printf %s "checking for archiver @FILE support... " >&6; }
7310if test ${lt_cv_ar_at_file+y}
7311then :
7312  printf %s "(cached) " >&6
7313else $as_nop
7314  lt_cv_ar_at_file=no
7315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316/* end confdefs.h.  */
7317
7318int
7319main (void)
7320{
7321
7322  ;
7323  return 0;
7324}
7325_ACEOF
7326if ac_fn_c_try_compile "$LINENO"
7327then :
7328  echo conftest.$ac_objext > conftest.lst
7329      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7330      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7331  (eval $lt_ar_try) 2>&5
7332  ac_status=$?
7333  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7334  test $ac_status = 0; }
7335      if test 0 -eq "$ac_status"; then
7336	# Ensure the archiver fails upon bogus file names.
7337	rm -f conftest.$ac_objext libconftest.a
7338	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7339  (eval $lt_ar_try) 2>&5
7340  ac_status=$?
7341  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7342  test $ac_status = 0; }
7343	if test 0 -ne "$ac_status"; then
7344          lt_cv_ar_at_file=@
7345        fi
7346      fi
7347      rm -f conftest.* libconftest.a
7348
7349fi
7350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7351
7352fi
7353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7354printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7355
7356if test no = "$lt_cv_ar_at_file"; then
7357  archiver_list_spec=
7358else
7359  archiver_list_spec=$lt_cv_ar_at_file
7360fi
7361
7362
7363
7364
7365
7366
7367
7368if test -n "$ac_tool_prefix"; then
7369  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7370set dummy ${ac_tool_prefix}strip; ac_word=$2
7371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7372printf %s "checking for $ac_word... " >&6; }
7373if test ${ac_cv_prog_STRIP+y}
7374then :
7375  printf %s "(cached) " >&6
7376else $as_nop
7377  if test -n "$STRIP"; then
7378  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7379else
7380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381for as_dir in $PATH
7382do
7383  IFS=$as_save_IFS
7384  case $as_dir in #(((
7385    '') as_dir=./ ;;
7386    */) ;;
7387    *) as_dir=$as_dir/ ;;
7388  esac
7389    for ac_exec_ext in '' $ac_executable_extensions; do
7390  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7391    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7392    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7393    break 2
7394  fi
7395done
7396  done
7397IFS=$as_save_IFS
7398
7399fi
7400fi
7401STRIP=$ac_cv_prog_STRIP
7402if test -n "$STRIP"; then
7403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7404printf "%s\n" "$STRIP" >&6; }
7405else
7406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407printf "%s\n" "no" >&6; }
7408fi
7409
7410
7411fi
7412if test -z "$ac_cv_prog_STRIP"; then
7413  ac_ct_STRIP=$STRIP
7414  # Extract the first word of "strip", so it can be a program name with args.
7415set dummy strip; ac_word=$2
7416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417printf %s "checking for $ac_word... " >&6; }
7418if test ${ac_cv_prog_ac_ct_STRIP+y}
7419then :
7420  printf %s "(cached) " >&6
7421else $as_nop
7422  if test -n "$ac_ct_STRIP"; then
7423  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7424else
7425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426for as_dir in $PATH
7427do
7428  IFS=$as_save_IFS
7429  case $as_dir in #(((
7430    '') as_dir=./ ;;
7431    */) ;;
7432    *) as_dir=$as_dir/ ;;
7433  esac
7434    for ac_exec_ext in '' $ac_executable_extensions; do
7435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7436    ac_cv_prog_ac_ct_STRIP="strip"
7437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7438    break 2
7439  fi
7440done
7441  done
7442IFS=$as_save_IFS
7443
7444fi
7445fi
7446ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7447if test -n "$ac_ct_STRIP"; then
7448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7449printf "%s\n" "$ac_ct_STRIP" >&6; }
7450else
7451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452printf "%s\n" "no" >&6; }
7453fi
7454
7455  if test "x$ac_ct_STRIP" = x; then
7456    STRIP=":"
7457  else
7458    case $cross_compiling:$ac_tool_warned in
7459yes:)
7460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462ac_tool_warned=yes ;;
7463esac
7464    STRIP=$ac_ct_STRIP
7465  fi
7466else
7467  STRIP="$ac_cv_prog_STRIP"
7468fi
7469
7470test -z "$STRIP" && STRIP=:
7471
7472
7473
7474
7475
7476
7477if test -n "$ac_tool_prefix"; then
7478  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7479set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481printf %s "checking for $ac_word... " >&6; }
7482if test ${ac_cv_prog_RANLIB+y}
7483then :
7484  printf %s "(cached) " >&6
7485else $as_nop
7486  if test -n "$RANLIB"; then
7487  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7488else
7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492  IFS=$as_save_IFS
7493  case $as_dir in #(((
7494    '') as_dir=./ ;;
7495    */) ;;
7496    *) as_dir=$as_dir/ ;;
7497  esac
7498    for ac_exec_ext in '' $ac_executable_extensions; do
7499  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7500    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7501    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7502    break 2
7503  fi
7504done
7505  done
7506IFS=$as_save_IFS
7507
7508fi
7509fi
7510RANLIB=$ac_cv_prog_RANLIB
7511if test -n "$RANLIB"; then
7512  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7513printf "%s\n" "$RANLIB" >&6; }
7514else
7515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516printf "%s\n" "no" >&6; }
7517fi
7518
7519
7520fi
7521if test -z "$ac_cv_prog_RANLIB"; then
7522  ac_ct_RANLIB=$RANLIB
7523  # Extract the first word of "ranlib", so it can be a program name with args.
7524set dummy ranlib; ac_word=$2
7525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526printf %s "checking for $ac_word... " >&6; }
7527if test ${ac_cv_prog_ac_ct_RANLIB+y}
7528then :
7529  printf %s "(cached) " >&6
7530else $as_nop
7531  if test -n "$ac_ct_RANLIB"; then
7532  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7533else
7534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535for as_dir in $PATH
7536do
7537  IFS=$as_save_IFS
7538  case $as_dir in #(((
7539    '') as_dir=./ ;;
7540    */) ;;
7541    *) as_dir=$as_dir/ ;;
7542  esac
7543    for ac_exec_ext in '' $ac_executable_extensions; do
7544  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7545    ac_cv_prog_ac_ct_RANLIB="ranlib"
7546    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7547    break 2
7548  fi
7549done
7550  done
7551IFS=$as_save_IFS
7552
7553fi
7554fi
7555ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7556if test -n "$ac_ct_RANLIB"; then
7557  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7558printf "%s\n" "$ac_ct_RANLIB" >&6; }
7559else
7560  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561printf "%s\n" "no" >&6; }
7562fi
7563
7564  if test "x$ac_ct_RANLIB" = x; then
7565    RANLIB=":"
7566  else
7567    case $cross_compiling:$ac_tool_warned in
7568yes:)
7569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7570printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7571ac_tool_warned=yes ;;
7572esac
7573    RANLIB=$ac_ct_RANLIB
7574  fi
7575else
7576  RANLIB="$ac_cv_prog_RANLIB"
7577fi
7578
7579test -z "$RANLIB" && RANLIB=:
7580
7581
7582
7583
7584
7585
7586# Determine commands to create old-style static archives.
7587old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7588old_postinstall_cmds='chmod 644 $oldlib'
7589old_postuninstall_cmds=
7590
7591if test -n "$RANLIB"; then
7592  case $host_os in
7593  bitrig* | openbsd*)
7594    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7595    ;;
7596  *)
7597    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7598    ;;
7599  esac
7600  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7601fi
7602
7603case $host_os in
7604  darwin*)
7605    lock_old_archive_extraction=yes ;;
7606  *)
7607    lock_old_archive_extraction=no ;;
7608esac
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648# If no C compiler was specified, use CC.
7649LTCC=${LTCC-"$CC"}
7650
7651# If no C compiler flags were specified, use CFLAGS.
7652LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7653
7654# Allow CC to be a program name with arguments.
7655compiler=$CC
7656
7657
7658# Check for command to grab the raw symbol name followed by C symbol from nm.
7659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7660printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7661if test ${lt_cv_sys_global_symbol_pipe+y}
7662then :
7663  printf %s "(cached) " >&6
7664else $as_nop
7665
7666# These are sane defaults that work on at least a few old systems.
7667# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7668
7669# Character class describing NM global symbol codes.
7670symcode='[BCDEGRST]'
7671
7672# Regexp to match symbols that can be accessed directly from C.
7673sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7674
7675# Define system-specific variables.
7676case $host_os in
7677aix*)
7678  symcode='[BCDT]'
7679  ;;
7680cygwin* | mingw* | pw32* | cegcc*)
7681  symcode='[ABCDGISTW]'
7682  ;;
7683hpux*)
7684  if test ia64 = "$host_cpu"; then
7685    symcode='[ABCDEGRST]'
7686  fi
7687  ;;
7688irix* | nonstopux*)
7689  symcode='[BCDEGRST]'
7690  ;;
7691osf*)
7692  symcode='[BCDEGQRST]'
7693  ;;
7694solaris*)
7695  symcode='[BDRT]'
7696  ;;
7697sco3.2v5*)
7698  symcode='[DT]'
7699  ;;
7700sysv4.2uw2*)
7701  symcode='[DT]'
7702  ;;
7703sysv5* | sco5v6* | unixware* | OpenUNIX*)
7704  symcode='[ABDT]'
7705  ;;
7706sysv4)
7707  symcode='[DFNSTU]'
7708  ;;
7709esac
7710
7711# If we're using GNU nm, then use its standard symbol codes.
7712case `$NM -V 2>&1` in
7713*GNU* | *'with BFD'*)
7714  symcode='[ABCDGIRSTW]' ;;
7715esac
7716
7717if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7718  # Gets list of data symbols to import.
7719  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7720  # Adjust the below global symbol transforms to fixup imported variables.
7721  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7722  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7723  lt_c_name_lib_hook="\
7724  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7725  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7726else
7727  # Disable hooks by default.
7728  lt_cv_sys_global_symbol_to_import=
7729  lt_cdecl_hook=
7730  lt_c_name_hook=
7731  lt_c_name_lib_hook=
7732fi
7733
7734# Transform an extracted symbol line into a proper C declaration.
7735# Some systems (esp. on ia64) link data and code symbols differently,
7736# so use this general approach.
7737lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7738$lt_cdecl_hook\
7739" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7740" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7741
7742# Transform an extracted symbol line into symbol name and symbol address
7743lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7744$lt_c_name_hook\
7745" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7746" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7747
7748# Transform an extracted symbol line into symbol name with lib prefix and
7749# symbol address.
7750lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7751$lt_c_name_lib_hook\
7752" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7753" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7754" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7755
7756# Handle CRLF in mingw tool chain
7757opt_cr=
7758case $build_os in
7759mingw*)
7760  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7761  ;;
7762esac
7763
7764# Try without a prefix underscore, then with it.
7765for ac_symprfx in "" "_"; do
7766
7767  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7768  symxfrm="\\1 $ac_symprfx\\2 \\2"
7769
7770  # Write the raw and C identifiers.
7771  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7772    # Fake it for dumpbin and say T for any non-static function,
7773    # D for any global variable and I for any imported variable.
7774    # Also find C++ and __fastcall symbols from MSVC++,
7775    # which start with @ or ?.
7776    lt_cv_sys_global_symbol_pipe="$AWK '"\
7777"     {last_section=section; section=\$ 3};"\
7778"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7779"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7780"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7781"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7782"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7783"     \$ 0!~/External *\|/{next};"\
7784"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7785"     {if(hide[section]) next};"\
7786"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7787"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7788"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7789"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7790"     ' prfx=^$ac_symprfx"
7791  else
7792    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7793  fi
7794  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7795
7796  # Check to see that the pipe works correctly.
7797  pipe_works=no
7798
7799  rm -f conftest*
7800  cat > conftest.$ac_ext <<_LT_EOF
7801#ifdef __cplusplus
7802extern "C" {
7803#endif
7804char nm_test_var;
7805void nm_test_func(void);
7806void nm_test_func(void){}
7807#ifdef __cplusplus
7808}
7809#endif
7810int main(){nm_test_var='a';nm_test_func();return(0);}
7811_LT_EOF
7812
7813  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7814  (eval $ac_compile) 2>&5
7815  ac_status=$?
7816  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7817  test $ac_status = 0; }; then
7818    # Now try to grab the symbols.
7819    nlist=conftest.nm
7820    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7821  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7822  ac_status=$?
7823  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7824  test $ac_status = 0; } && test -s "$nlist"; then
7825      # Try sorting and uniquifying the output.
7826      if sort "$nlist" | uniq > "$nlist"T; then
7827	mv -f "$nlist"T "$nlist"
7828      else
7829	rm -f "$nlist"T
7830      fi
7831
7832      # Make sure that we snagged all the symbols we need.
7833      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7834	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7835	  cat <<_LT_EOF > conftest.$ac_ext
7836/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7837#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7838/* DATA imports from DLLs on WIN32 can't be const, because runtime
7839   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7840# define LT_DLSYM_CONST
7841#elif defined __osf__
7842/* This system does not cope well with relocations in const data.  */
7843# define LT_DLSYM_CONST
7844#else
7845# define LT_DLSYM_CONST const
7846#endif
7847
7848#ifdef __cplusplus
7849extern "C" {
7850#endif
7851
7852_LT_EOF
7853	  # Now generate the symbol file.
7854	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7855
7856	  cat <<_LT_EOF >> conftest.$ac_ext
7857
7858/* The mapping between symbol names and symbols.  */
7859LT_DLSYM_CONST struct {
7860  const char *name;
7861  void       *address;
7862}
7863lt__PROGRAM__LTX_preloaded_symbols[] =
7864{
7865  { "@PROGRAM@", (void *) 0 },
7866_LT_EOF
7867	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7868	  cat <<\_LT_EOF >> conftest.$ac_ext
7869  {0, (void *) 0}
7870};
7871
7872/* This works around a problem in FreeBSD linker */
7873#ifdef FREEBSD_WORKAROUND
7874static const void *lt_preloaded_setup() {
7875  return lt__PROGRAM__LTX_preloaded_symbols;
7876}
7877#endif
7878
7879#ifdef __cplusplus
7880}
7881#endif
7882_LT_EOF
7883	  # Now try linking the two files.
7884	  mv conftest.$ac_objext conftstm.$ac_objext
7885	  lt_globsym_save_LIBS=$LIBS
7886	  lt_globsym_save_CFLAGS=$CFLAGS
7887	  LIBS=conftstm.$ac_objext
7888	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7889	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7890  (eval $ac_link) 2>&5
7891  ac_status=$?
7892  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7894	    pipe_works=yes
7895	  fi
7896	  LIBS=$lt_globsym_save_LIBS
7897	  CFLAGS=$lt_globsym_save_CFLAGS
7898	else
7899	  echo "cannot find nm_test_func in $nlist" >&5
7900	fi
7901      else
7902	echo "cannot find nm_test_var in $nlist" >&5
7903      fi
7904    else
7905      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7906    fi
7907  else
7908    echo "$progname: failed program was:" >&5
7909    cat conftest.$ac_ext >&5
7910  fi
7911  rm -rf conftest* conftst*
7912
7913  # Do not use the global_symbol_pipe unless it works.
7914  if test yes = "$pipe_works"; then
7915    break
7916  else
7917    lt_cv_sys_global_symbol_pipe=
7918  fi
7919done
7920
7921fi
7922
7923if test -z "$lt_cv_sys_global_symbol_pipe"; then
7924  lt_cv_sys_global_symbol_to_cdecl=
7925fi
7926if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7928printf "%s\n" "failed" >&6; }
7929else
7930  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7931printf "%s\n" "ok" >&6; }
7932fi
7933
7934# Response file support.
7935if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7936  nm_file_list_spec='@'
7937elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7938  nm_file_list_spec='@'
7939fi
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7978printf %s "checking for sysroot... " >&6; }
7979
7980# Check whether --with-sysroot was given.
7981if test ${with_sysroot+y}
7982then :
7983  withval=$with_sysroot;
7984else $as_nop
7985  with_sysroot=no
7986fi
7987
7988
7989lt_sysroot=
7990case $with_sysroot in #(
7991 yes)
7992   if test yes = "$GCC"; then
7993     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7994   fi
7995   ;; #(
7996 /*)
7997   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7998   ;; #(
7999 no|'')
8000   ;; #(
8001 *)
8002   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8003printf "%s\n" "$with_sysroot" >&6; }
8004   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8005   ;;
8006esac
8007
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8009printf "%s\n" "${lt_sysroot:-no}" >&6; }
8010
8011
8012
8013
8014
8015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8016printf %s "checking for a working dd... " >&6; }
8017if test ${ac_cv_path_lt_DD+y}
8018then :
8019  printf %s "(cached) " >&6
8020else $as_nop
8021  printf 0123456789abcdef0123456789abcdef >conftest.i
8022cat conftest.i conftest.i >conftest2.i
8023: ${lt_DD:=$DD}
8024if test -z "$lt_DD"; then
8025  ac_path_lt_DD_found=false
8026  # Loop through the user's path and test for each of PROGNAME-LIST
8027  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028for as_dir in $PATH
8029do
8030  IFS=$as_save_IFS
8031  case $as_dir in #(((
8032    '') as_dir=./ ;;
8033    */) ;;
8034    *) as_dir=$as_dir/ ;;
8035  esac
8036    for ac_prog in dd
8037   do
8038    for ac_exec_ext in '' $ac_executable_extensions; do
8039      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8040      as_fn_executable_p "$ac_path_lt_DD" || continue
8041if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8042  cmp -s conftest.i conftest.out \
8043  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8044fi
8045      $ac_path_lt_DD_found && break 3
8046    done
8047  done
8048  done
8049IFS=$as_save_IFS
8050  if test -z "$ac_cv_path_lt_DD"; then
8051    :
8052  fi
8053else
8054  ac_cv_path_lt_DD=$lt_DD
8055fi
8056
8057rm -f conftest.i conftest2.i conftest.out
8058fi
8059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8060printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8061
8062
8063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8064printf %s "checking how to truncate binary pipes... " >&6; }
8065if test ${lt_cv_truncate_bin+y}
8066then :
8067  printf %s "(cached) " >&6
8068else $as_nop
8069  printf 0123456789abcdef0123456789abcdef >conftest.i
8070cat conftest.i conftest.i >conftest2.i
8071lt_cv_truncate_bin=
8072if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8073  cmp -s conftest.i conftest.out \
8074  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8075fi
8076rm -f conftest.i conftest2.i conftest.out
8077test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8078fi
8079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8080printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8081
8082
8083
8084
8085
8086
8087
8088# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8089func_cc_basename ()
8090{
8091    for cc_temp in $*""; do
8092      case $cc_temp in
8093        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8094        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095        \-*) ;;
8096        *) break;;
8097      esac
8098    done
8099    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8100}
8101
8102# Check whether --enable-libtool-lock was given.
8103if test ${enable_libtool_lock+y}
8104then :
8105  enableval=$enable_libtool_lock;
8106fi
8107
8108test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8109
8110# Some flags need to be propagated to the compiler or linker for good
8111# libtool support.
8112case $host in
8113ia64-*-hpux*)
8114  # Find out what ABI is being produced by ac_compile, and set mode
8115  # options accordingly.
8116  echo 'int i;' > conftest.$ac_ext
8117  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8118  (eval $ac_compile) 2>&5
8119  ac_status=$?
8120  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8121  test $ac_status = 0; }; then
8122    case `/usr/bin/file conftest.$ac_objext` in
8123      *ELF-32*)
8124	HPUX_IA64_MODE=32
8125	;;
8126      *ELF-64*)
8127	HPUX_IA64_MODE=64
8128	;;
8129    esac
8130  fi
8131  rm -rf conftest*
8132  ;;
8133*-*-irix6*)
8134  # Find out what ABI is being produced by ac_compile, and set linker
8135  # options accordingly.
8136  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8137  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8138  (eval $ac_compile) 2>&5
8139  ac_status=$?
8140  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8141  test $ac_status = 0; }; then
8142    if test yes = "$lt_cv_prog_gnu_ld"; then
8143      case `/usr/bin/file conftest.$ac_objext` in
8144	*32-bit*)
8145	  LD="${LD-ld} -melf32bsmip"
8146	  ;;
8147	*N32*)
8148	  LD="${LD-ld} -melf32bmipn32"
8149	  ;;
8150	*64-bit*)
8151	  LD="${LD-ld} -melf64bmip"
8152	;;
8153      esac
8154    else
8155      case `/usr/bin/file conftest.$ac_objext` in
8156	*32-bit*)
8157	  LD="${LD-ld} -32"
8158	  ;;
8159	*N32*)
8160	  LD="${LD-ld} -n32"
8161	  ;;
8162	*64-bit*)
8163	  LD="${LD-ld} -64"
8164	  ;;
8165      esac
8166    fi
8167  fi
8168  rm -rf conftest*
8169  ;;
8170
8171mips64*-*linux*)
8172  # Find out what ABI is being produced by ac_compile, and set linker
8173  # options accordingly.
8174  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8175  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8176  (eval $ac_compile) 2>&5
8177  ac_status=$?
8178  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8179  test $ac_status = 0; }; then
8180    emul=elf
8181    case `/usr/bin/file conftest.$ac_objext` in
8182      *32-bit*)
8183	emul="${emul}32"
8184	;;
8185      *64-bit*)
8186	emul="${emul}64"
8187	;;
8188    esac
8189    case `/usr/bin/file conftest.$ac_objext` in
8190      *MSB*)
8191	emul="${emul}btsmip"
8192	;;
8193      *LSB*)
8194	emul="${emul}ltsmip"
8195	;;
8196    esac
8197    case `/usr/bin/file conftest.$ac_objext` in
8198      *N32*)
8199	emul="${emul}n32"
8200	;;
8201    esac
8202    LD="${LD-ld} -m $emul"
8203  fi
8204  rm -rf conftest*
8205  ;;
8206
8207x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8208s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8209  # Find out what ABI is being produced by ac_compile, and set linker
8210  # options accordingly.  Note that the listed cases only cover the
8211  # situations where additional linker options are needed (such as when
8212  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8213  # vice versa); the common cases where no linker options are needed do
8214  # not appear in the list.
8215  echo 'int i;' > conftest.$ac_ext
8216  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8217  (eval $ac_compile) 2>&5
8218  ac_status=$?
8219  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8220  test $ac_status = 0; }; then
8221    case `/usr/bin/file conftest.o` in
8222      *32-bit*)
8223	case $host in
8224	  x86_64-*kfreebsd*-gnu)
8225	    LD="${LD-ld} -m elf_i386_fbsd"
8226	    ;;
8227	  x86_64-*linux*)
8228	    case `/usr/bin/file conftest.o` in
8229	      *x86-64*)
8230		LD="${LD-ld} -m elf32_x86_64"
8231		;;
8232	      *)
8233		LD="${LD-ld} -m elf_i386"
8234		;;
8235	    esac
8236	    ;;
8237	  powerpc64le-*linux*)
8238	    LD="${LD-ld} -m elf32lppclinux"
8239	    ;;
8240	  powerpc64-*linux*)
8241	    LD="${LD-ld} -m elf32ppclinux"
8242	    ;;
8243	  s390x-*linux*)
8244	    LD="${LD-ld} -m elf_s390"
8245	    ;;
8246	  sparc64-*linux*)
8247	    LD="${LD-ld} -m elf32_sparc"
8248	    ;;
8249	esac
8250	;;
8251      *64-bit*)
8252	case $host in
8253	  x86_64-*kfreebsd*-gnu)
8254	    LD="${LD-ld} -m elf_x86_64_fbsd"
8255	    ;;
8256	  x86_64-*linux*)
8257	    LD="${LD-ld} -m elf_x86_64"
8258	    ;;
8259	  powerpcle-*linux*)
8260	    LD="${LD-ld} -m elf64lppc"
8261	    ;;
8262	  powerpc-*linux*)
8263	    LD="${LD-ld} -m elf64ppc"
8264	    ;;
8265	  s390*-*linux*|s390*-*tpf*)
8266	    LD="${LD-ld} -m elf64_s390"
8267	    ;;
8268	  sparc*-*linux*)
8269	    LD="${LD-ld} -m elf64_sparc"
8270	    ;;
8271	esac
8272	;;
8273    esac
8274  fi
8275  rm -rf conftest*
8276  ;;
8277
8278*-*-sco3.2v5*)
8279  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8280  SAVE_CFLAGS=$CFLAGS
8281  CFLAGS="$CFLAGS -belf"
8282  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8283printf %s "checking whether the C compiler needs -belf... " >&6; }
8284if test ${lt_cv_cc_needs_belf+y}
8285then :
8286  printf %s "(cached) " >&6
8287else $as_nop
8288  ac_ext=c
8289ac_cpp='$CPP $CPPFLAGS'
8290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8292ac_compiler_gnu=$ac_cv_c_compiler_gnu
8293
8294     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295/* end confdefs.h.  */
8296
8297int
8298main (void)
8299{
8300
8301  ;
8302  return 0;
8303}
8304_ACEOF
8305if ac_fn_c_try_link "$LINENO"
8306then :
8307  lt_cv_cc_needs_belf=yes
8308else $as_nop
8309  lt_cv_cc_needs_belf=no
8310fi
8311rm -f core conftest.err conftest.$ac_objext conftest.beam \
8312    conftest$ac_exeext conftest.$ac_ext
8313     ac_ext=c
8314ac_cpp='$CPP $CPPFLAGS'
8315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8317ac_compiler_gnu=$ac_cv_c_compiler_gnu
8318
8319fi
8320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8321printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8322  if test yes != "$lt_cv_cc_needs_belf"; then
8323    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8324    CFLAGS=$SAVE_CFLAGS
8325  fi
8326  ;;
8327*-*solaris*)
8328  # Find out what ABI is being produced by ac_compile, and set linker
8329  # options accordingly.
8330  echo 'int i;' > conftest.$ac_ext
8331  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8332  (eval $ac_compile) 2>&5
8333  ac_status=$?
8334  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8335  test $ac_status = 0; }; then
8336    case `/usr/bin/file conftest.o` in
8337    *64-bit*)
8338      case $lt_cv_prog_gnu_ld in
8339      yes*)
8340        case $host in
8341        i?86-*-solaris*|x86_64-*-solaris*)
8342          LD="${LD-ld} -m elf_x86_64"
8343          ;;
8344        sparc*-*-solaris*)
8345          LD="${LD-ld} -m elf64_sparc"
8346          ;;
8347        esac
8348        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8349        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8350          LD=${LD-ld}_sol2
8351        fi
8352        ;;
8353      *)
8354	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8355	  LD="${LD-ld} -64"
8356	fi
8357	;;
8358      esac
8359      ;;
8360    esac
8361  fi
8362  rm -rf conftest*
8363  ;;
8364esac
8365
8366need_locks=$enable_libtool_lock
8367
8368if test -n "$ac_tool_prefix"; then
8369  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8370set dummy ${ac_tool_prefix}mt; ac_word=$2
8371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8372printf %s "checking for $ac_word... " >&6; }
8373if test ${ac_cv_prog_MANIFEST_TOOL+y}
8374then :
8375  printf %s "(cached) " >&6
8376else $as_nop
8377  if test -n "$MANIFEST_TOOL"; then
8378  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8379else
8380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381for as_dir in $PATH
8382do
8383  IFS=$as_save_IFS
8384  case $as_dir in #(((
8385    '') as_dir=./ ;;
8386    */) ;;
8387    *) as_dir=$as_dir/ ;;
8388  esac
8389    for ac_exec_ext in '' $ac_executable_extensions; do
8390  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8391    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8392    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8393    break 2
8394  fi
8395done
8396  done
8397IFS=$as_save_IFS
8398
8399fi
8400fi
8401MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8402if test -n "$MANIFEST_TOOL"; then
8403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8404printf "%s\n" "$MANIFEST_TOOL" >&6; }
8405else
8406  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8407printf "%s\n" "no" >&6; }
8408fi
8409
8410
8411fi
8412if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8413  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8414  # Extract the first word of "mt", so it can be a program name with args.
8415set dummy mt; ac_word=$2
8416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417printf %s "checking for $ac_word... " >&6; }
8418if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8419then :
8420  printf %s "(cached) " >&6
8421else $as_nop
8422  if test -n "$ac_ct_MANIFEST_TOOL"; then
8423  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8424else
8425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8426for as_dir in $PATH
8427do
8428  IFS=$as_save_IFS
8429  case $as_dir in #(((
8430    '') as_dir=./ ;;
8431    */) ;;
8432    *) as_dir=$as_dir/ ;;
8433  esac
8434    for ac_exec_ext in '' $ac_executable_extensions; do
8435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8436    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8438    break 2
8439  fi
8440done
8441  done
8442IFS=$as_save_IFS
8443
8444fi
8445fi
8446ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8447if test -n "$ac_ct_MANIFEST_TOOL"; then
8448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8449printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8450else
8451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452printf "%s\n" "no" >&6; }
8453fi
8454
8455  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8456    MANIFEST_TOOL=":"
8457  else
8458    case $cross_compiling:$ac_tool_warned in
8459yes:)
8460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8461printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8462ac_tool_warned=yes ;;
8463esac
8464    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8465  fi
8466else
8467  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8468fi
8469
8470test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8472printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8473if test ${lt_cv_path_mainfest_tool+y}
8474then :
8475  printf %s "(cached) " >&6
8476else $as_nop
8477  lt_cv_path_mainfest_tool=no
8478  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8479  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8480  cat conftest.err >&5
8481  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8482    lt_cv_path_mainfest_tool=yes
8483  fi
8484  rm -f conftest*
8485fi
8486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8487printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8488if test yes != "$lt_cv_path_mainfest_tool"; then
8489  MANIFEST_TOOL=:
8490fi
8491
8492
8493
8494
8495
8496
8497  case $host_os in
8498    rhapsody* | darwin*)
8499    if test -n "$ac_tool_prefix"; then
8500  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8501set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8503printf %s "checking for $ac_word... " >&6; }
8504if test ${ac_cv_prog_DSYMUTIL+y}
8505then :
8506  printf %s "(cached) " >&6
8507else $as_nop
8508  if test -n "$DSYMUTIL"; then
8509  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8510else
8511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512for as_dir in $PATH
8513do
8514  IFS=$as_save_IFS
8515  case $as_dir in #(((
8516    '') as_dir=./ ;;
8517    */) ;;
8518    *) as_dir=$as_dir/ ;;
8519  esac
8520    for ac_exec_ext in '' $ac_executable_extensions; do
8521  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8522    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8523    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8524    break 2
8525  fi
8526done
8527  done
8528IFS=$as_save_IFS
8529
8530fi
8531fi
8532DSYMUTIL=$ac_cv_prog_DSYMUTIL
8533if test -n "$DSYMUTIL"; then
8534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8535printf "%s\n" "$DSYMUTIL" >&6; }
8536else
8537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538printf "%s\n" "no" >&6; }
8539fi
8540
8541
8542fi
8543if test -z "$ac_cv_prog_DSYMUTIL"; then
8544  ac_ct_DSYMUTIL=$DSYMUTIL
8545  # Extract the first word of "dsymutil", so it can be a program name with args.
8546set dummy dsymutil; ac_word=$2
8547{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548printf %s "checking for $ac_word... " >&6; }
8549if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8550then :
8551  printf %s "(cached) " >&6
8552else $as_nop
8553  if test -n "$ac_ct_DSYMUTIL"; then
8554  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8555else
8556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557for as_dir in $PATH
8558do
8559  IFS=$as_save_IFS
8560  case $as_dir in #(((
8561    '') as_dir=./ ;;
8562    */) ;;
8563    *) as_dir=$as_dir/ ;;
8564  esac
8565    for ac_exec_ext in '' $ac_executable_extensions; do
8566  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8567    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8568    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8569    break 2
8570  fi
8571done
8572  done
8573IFS=$as_save_IFS
8574
8575fi
8576fi
8577ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8578if test -n "$ac_ct_DSYMUTIL"; then
8579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8580printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8581else
8582  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8583printf "%s\n" "no" >&6; }
8584fi
8585
8586  if test "x$ac_ct_DSYMUTIL" = x; then
8587    DSYMUTIL=":"
8588  else
8589    case $cross_compiling:$ac_tool_warned in
8590yes:)
8591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8592printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8593ac_tool_warned=yes ;;
8594esac
8595    DSYMUTIL=$ac_ct_DSYMUTIL
8596  fi
8597else
8598  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8599fi
8600
8601    if test -n "$ac_tool_prefix"; then
8602  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8603set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605printf %s "checking for $ac_word... " >&6; }
8606if test ${ac_cv_prog_NMEDIT+y}
8607then :
8608  printf %s "(cached) " >&6
8609else $as_nop
8610  if test -n "$NMEDIT"; then
8611  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8612else
8613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614for as_dir in $PATH
8615do
8616  IFS=$as_save_IFS
8617  case $as_dir in #(((
8618    '') as_dir=./ ;;
8619    */) ;;
8620    *) as_dir=$as_dir/ ;;
8621  esac
8622    for ac_exec_ext in '' $ac_executable_extensions; do
8623  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8624    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8625    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8626    break 2
8627  fi
8628done
8629  done
8630IFS=$as_save_IFS
8631
8632fi
8633fi
8634NMEDIT=$ac_cv_prog_NMEDIT
8635if test -n "$NMEDIT"; then
8636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8637printf "%s\n" "$NMEDIT" >&6; }
8638else
8639  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640printf "%s\n" "no" >&6; }
8641fi
8642
8643
8644fi
8645if test -z "$ac_cv_prog_NMEDIT"; then
8646  ac_ct_NMEDIT=$NMEDIT
8647  # Extract the first word of "nmedit", so it can be a program name with args.
8648set dummy nmedit; ac_word=$2
8649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650printf %s "checking for $ac_word... " >&6; }
8651if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8652then :
8653  printf %s "(cached) " >&6
8654else $as_nop
8655  if test -n "$ac_ct_NMEDIT"; then
8656  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8657else
8658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8659for as_dir in $PATH
8660do
8661  IFS=$as_save_IFS
8662  case $as_dir in #(((
8663    '') as_dir=./ ;;
8664    */) ;;
8665    *) as_dir=$as_dir/ ;;
8666  esac
8667    for ac_exec_ext in '' $ac_executable_extensions; do
8668  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8669    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8671    break 2
8672  fi
8673done
8674  done
8675IFS=$as_save_IFS
8676
8677fi
8678fi
8679ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8680if test -n "$ac_ct_NMEDIT"; then
8681  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8682printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8683else
8684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685printf "%s\n" "no" >&6; }
8686fi
8687
8688  if test "x$ac_ct_NMEDIT" = x; then
8689    NMEDIT=":"
8690  else
8691    case $cross_compiling:$ac_tool_warned in
8692yes:)
8693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8694printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8695ac_tool_warned=yes ;;
8696esac
8697    NMEDIT=$ac_ct_NMEDIT
8698  fi
8699else
8700  NMEDIT="$ac_cv_prog_NMEDIT"
8701fi
8702
8703    if test -n "$ac_tool_prefix"; then
8704  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8705set dummy ${ac_tool_prefix}lipo; ac_word=$2
8706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707printf %s "checking for $ac_word... " >&6; }
8708if test ${ac_cv_prog_LIPO+y}
8709then :
8710  printf %s "(cached) " >&6
8711else $as_nop
8712  if test -n "$LIPO"; then
8713  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8714else
8715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8716for as_dir in $PATH
8717do
8718  IFS=$as_save_IFS
8719  case $as_dir in #(((
8720    '') as_dir=./ ;;
8721    */) ;;
8722    *) as_dir=$as_dir/ ;;
8723  esac
8724    for ac_exec_ext in '' $ac_executable_extensions; do
8725  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8726    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8727    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8728    break 2
8729  fi
8730done
8731  done
8732IFS=$as_save_IFS
8733
8734fi
8735fi
8736LIPO=$ac_cv_prog_LIPO
8737if test -n "$LIPO"; then
8738  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8739printf "%s\n" "$LIPO" >&6; }
8740else
8741  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742printf "%s\n" "no" >&6; }
8743fi
8744
8745
8746fi
8747if test -z "$ac_cv_prog_LIPO"; then
8748  ac_ct_LIPO=$LIPO
8749  # Extract the first word of "lipo", so it can be a program name with args.
8750set dummy lipo; ac_word=$2
8751{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8752printf %s "checking for $ac_word... " >&6; }
8753if test ${ac_cv_prog_ac_ct_LIPO+y}
8754then :
8755  printf %s "(cached) " >&6
8756else $as_nop
8757  if test -n "$ac_ct_LIPO"; then
8758  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8759else
8760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8761for as_dir in $PATH
8762do
8763  IFS=$as_save_IFS
8764  case $as_dir in #(((
8765    '') as_dir=./ ;;
8766    */) ;;
8767    *) as_dir=$as_dir/ ;;
8768  esac
8769    for ac_exec_ext in '' $ac_executable_extensions; do
8770  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8771    ac_cv_prog_ac_ct_LIPO="lipo"
8772    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8773    break 2
8774  fi
8775done
8776  done
8777IFS=$as_save_IFS
8778
8779fi
8780fi
8781ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8782if test -n "$ac_ct_LIPO"; then
8783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8784printf "%s\n" "$ac_ct_LIPO" >&6; }
8785else
8786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8787printf "%s\n" "no" >&6; }
8788fi
8789
8790  if test "x$ac_ct_LIPO" = x; then
8791    LIPO=":"
8792  else
8793    case $cross_compiling:$ac_tool_warned in
8794yes:)
8795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8796printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8797ac_tool_warned=yes ;;
8798esac
8799    LIPO=$ac_ct_LIPO
8800  fi
8801else
8802  LIPO="$ac_cv_prog_LIPO"
8803fi
8804
8805    if test -n "$ac_tool_prefix"; then
8806  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8807set dummy ${ac_tool_prefix}otool; ac_word=$2
8808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809printf %s "checking for $ac_word... " >&6; }
8810if test ${ac_cv_prog_OTOOL+y}
8811then :
8812  printf %s "(cached) " >&6
8813else $as_nop
8814  if test -n "$OTOOL"; then
8815  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8816else
8817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8818for as_dir in $PATH
8819do
8820  IFS=$as_save_IFS
8821  case $as_dir in #(((
8822    '') as_dir=./ ;;
8823    */) ;;
8824    *) as_dir=$as_dir/ ;;
8825  esac
8826    for ac_exec_ext in '' $ac_executable_extensions; do
8827  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8828    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8829    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8830    break 2
8831  fi
8832done
8833  done
8834IFS=$as_save_IFS
8835
8836fi
8837fi
8838OTOOL=$ac_cv_prog_OTOOL
8839if test -n "$OTOOL"; then
8840  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8841printf "%s\n" "$OTOOL" >&6; }
8842else
8843  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8844printf "%s\n" "no" >&6; }
8845fi
8846
8847
8848fi
8849if test -z "$ac_cv_prog_OTOOL"; then
8850  ac_ct_OTOOL=$OTOOL
8851  # Extract the first word of "otool", so it can be a program name with args.
8852set dummy otool; ac_word=$2
8853{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8854printf %s "checking for $ac_word... " >&6; }
8855if test ${ac_cv_prog_ac_ct_OTOOL+y}
8856then :
8857  printf %s "(cached) " >&6
8858else $as_nop
8859  if test -n "$ac_ct_OTOOL"; then
8860  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8861else
8862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8863for as_dir in $PATH
8864do
8865  IFS=$as_save_IFS
8866  case $as_dir in #(((
8867    '') as_dir=./ ;;
8868    */) ;;
8869    *) as_dir=$as_dir/ ;;
8870  esac
8871    for ac_exec_ext in '' $ac_executable_extensions; do
8872  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8873    ac_cv_prog_ac_ct_OTOOL="otool"
8874    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8875    break 2
8876  fi
8877done
8878  done
8879IFS=$as_save_IFS
8880
8881fi
8882fi
8883ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8884if test -n "$ac_ct_OTOOL"; then
8885  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8886printf "%s\n" "$ac_ct_OTOOL" >&6; }
8887else
8888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889printf "%s\n" "no" >&6; }
8890fi
8891
8892  if test "x$ac_ct_OTOOL" = x; then
8893    OTOOL=":"
8894  else
8895    case $cross_compiling:$ac_tool_warned in
8896yes:)
8897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8898printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8899ac_tool_warned=yes ;;
8900esac
8901    OTOOL=$ac_ct_OTOOL
8902  fi
8903else
8904  OTOOL="$ac_cv_prog_OTOOL"
8905fi
8906
8907    if test -n "$ac_tool_prefix"; then
8908  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8909set dummy ${ac_tool_prefix}otool64; ac_word=$2
8910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8911printf %s "checking for $ac_word... " >&6; }
8912if test ${ac_cv_prog_OTOOL64+y}
8913then :
8914  printf %s "(cached) " >&6
8915else $as_nop
8916  if test -n "$OTOOL64"; then
8917  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8918else
8919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920for as_dir in $PATH
8921do
8922  IFS=$as_save_IFS
8923  case $as_dir in #(((
8924    '') as_dir=./ ;;
8925    */) ;;
8926    *) as_dir=$as_dir/ ;;
8927  esac
8928    for ac_exec_ext in '' $ac_executable_extensions; do
8929  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8930    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8931    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8932    break 2
8933  fi
8934done
8935  done
8936IFS=$as_save_IFS
8937
8938fi
8939fi
8940OTOOL64=$ac_cv_prog_OTOOL64
8941if test -n "$OTOOL64"; then
8942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8943printf "%s\n" "$OTOOL64" >&6; }
8944else
8945  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8946printf "%s\n" "no" >&6; }
8947fi
8948
8949
8950fi
8951if test -z "$ac_cv_prog_OTOOL64"; then
8952  ac_ct_OTOOL64=$OTOOL64
8953  # Extract the first word of "otool64", so it can be a program name with args.
8954set dummy otool64; ac_word=$2
8955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8956printf %s "checking for $ac_word... " >&6; }
8957if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8958then :
8959  printf %s "(cached) " >&6
8960else $as_nop
8961  if test -n "$ac_ct_OTOOL64"; then
8962  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8963else
8964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8965for as_dir in $PATH
8966do
8967  IFS=$as_save_IFS
8968  case $as_dir in #(((
8969    '') as_dir=./ ;;
8970    */) ;;
8971    *) as_dir=$as_dir/ ;;
8972  esac
8973    for ac_exec_ext in '' $ac_executable_extensions; do
8974  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8975    ac_cv_prog_ac_ct_OTOOL64="otool64"
8976    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8977    break 2
8978  fi
8979done
8980  done
8981IFS=$as_save_IFS
8982
8983fi
8984fi
8985ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8986if test -n "$ac_ct_OTOOL64"; then
8987  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8988printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8989else
8990  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991printf "%s\n" "no" >&6; }
8992fi
8993
8994  if test "x$ac_ct_OTOOL64" = x; then
8995    OTOOL64=":"
8996  else
8997    case $cross_compiling:$ac_tool_warned in
8998yes:)
8999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9000printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9001ac_tool_warned=yes ;;
9002esac
9003    OTOOL64=$ac_ct_OTOOL64
9004  fi
9005else
9006  OTOOL64="$ac_cv_prog_OTOOL64"
9007fi
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9036printf %s "checking for -single_module linker flag... " >&6; }
9037if test ${lt_cv_apple_cc_single_mod+y}
9038then :
9039  printf %s "(cached) " >&6
9040else $as_nop
9041  lt_cv_apple_cc_single_mod=no
9042      if test -z "$LT_MULTI_MODULE"; then
9043	# By default we will add the -single_module flag. You can override
9044	# by either setting the environment variable LT_MULTI_MODULE
9045	# non-empty at configure time, or by adding -multi_module to the
9046	# link flags.
9047	rm -rf libconftest.dylib*
9048	echo "int foo(void){return 1;}" > conftest.c
9049	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9050-dynamiclib -Wl,-single_module conftest.c" >&5
9051	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9052	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9053        _lt_result=$?
9054	# If there is a non-empty error log, and "single_module"
9055	# appears in it, assume the flag caused a linker warning
9056        if test -s conftest.err && $GREP single_module conftest.err; then
9057	  cat conftest.err >&5
9058	# Otherwise, if the output was created with a 0 exit code from
9059	# the compiler, it worked.
9060	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9061	  lt_cv_apple_cc_single_mod=yes
9062	else
9063	  cat conftest.err >&5
9064	fi
9065	rm -rf libconftest.dylib*
9066	rm -f conftest.*
9067      fi
9068fi
9069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9070printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9071
9072    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9073printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9074if test ${lt_cv_ld_exported_symbols_list+y}
9075then :
9076  printf %s "(cached) " >&6
9077else $as_nop
9078  lt_cv_ld_exported_symbols_list=no
9079      save_LDFLAGS=$LDFLAGS
9080      echo "_main" > conftest.sym
9081      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9082      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h.  */
9084
9085int
9086main (void)
9087{
9088
9089  ;
9090  return 0;
9091}
9092_ACEOF
9093if ac_fn_c_try_link "$LINENO"
9094then :
9095  lt_cv_ld_exported_symbols_list=yes
9096else $as_nop
9097  lt_cv_ld_exported_symbols_list=no
9098fi
9099rm -f core conftest.err conftest.$ac_objext conftest.beam \
9100    conftest$ac_exeext conftest.$ac_ext
9101	LDFLAGS=$save_LDFLAGS
9102
9103fi
9104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9105printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9106
9107    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9108printf %s "checking for -force_load linker flag... " >&6; }
9109if test ${lt_cv_ld_force_load+y}
9110then :
9111  printf %s "(cached) " >&6
9112else $as_nop
9113  lt_cv_ld_force_load=no
9114      cat > conftest.c << _LT_EOF
9115int forced_loaded() { return 2;}
9116_LT_EOF
9117      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9118      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9119      echo "$AR cru libconftest.a conftest.o" >&5
9120      $AR cru libconftest.a conftest.o 2>&5
9121      echo "$RANLIB libconftest.a" >&5
9122      $RANLIB libconftest.a 2>&5
9123      cat > conftest.c << _LT_EOF
9124int main() { return 0;}
9125_LT_EOF
9126      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9127      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9128      _lt_result=$?
9129      if test -s conftest.err && $GREP force_load conftest.err; then
9130	cat conftest.err >&5
9131      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9132	lt_cv_ld_force_load=yes
9133      else
9134	cat conftest.err >&5
9135      fi
9136        rm -f conftest.err libconftest.a conftest conftest.c
9137        rm -rf conftest.dSYM
9138
9139fi
9140{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9141printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9142    case $host_os in
9143    rhapsody* | darwin1.[012])
9144      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9145    darwin1.*)
9146      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9147    darwin*) # darwin 5.x on
9148      # if running on 10.5 or later, the deployment target defaults
9149      # to the OS version, if on x86, and 10.4, the deployment
9150      # target defaults to 10.4. Don't you love it?
9151      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9152	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9153	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9154	10.[012][,.]*)
9155	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9156	10.*)
9157	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9158      esac
9159    ;;
9160  esac
9161    if test yes = "$lt_cv_apple_cc_single_mod"; then
9162      _lt_dar_single_mod='$single_module'
9163    fi
9164    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9165      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9166    else
9167      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9168    fi
9169    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9170      _lt_dsymutil='~$DSYMUTIL $lib || :'
9171    else
9172      _lt_dsymutil=
9173    fi
9174    ;;
9175  esac
9176
9177# func_munge_path_list VARIABLE PATH
9178# -----------------------------------
9179# VARIABLE is name of variable containing _space_ separated list of
9180# directories to be munged by the contents of PATH, which is string
9181# having a format:
9182# "DIR[:DIR]:"
9183#       string "DIR[ DIR]" will be prepended to VARIABLE
9184# ":DIR[:DIR]"
9185#       string "DIR[ DIR]" will be appended to VARIABLE
9186# "DIRP[:DIRP]::[DIRA:]DIRA"
9187#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9188#       "DIRA[ DIRA]" will be appended to VARIABLE
9189# "DIR[:DIR]"
9190#       VARIABLE will be replaced by "DIR[ DIR]"
9191func_munge_path_list ()
9192{
9193    case x$2 in
9194    x)
9195        ;;
9196    *:)
9197        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9198        ;;
9199    x:*)
9200        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9201        ;;
9202    *::*)
9203        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9204        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9205        ;;
9206    *)
9207        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9208        ;;
9209    esac
9210}
9211
9212ac_header= ac_cache=
9213for ac_item in $ac_header_c_list
9214do
9215  if test $ac_cache; then
9216    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9217    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9218      printf "%s\n" "#define $ac_item 1" >> confdefs.h
9219    fi
9220    ac_header= ac_cache=
9221  elif test $ac_header; then
9222    ac_cache=$ac_item
9223  else
9224    ac_header=$ac_item
9225  fi
9226done
9227
9228
9229
9230
9231
9232
9233
9234
9235if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9236then :
9237
9238printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9239
9240fi
9241ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9242"
9243if test "x$ac_cv_header_dlfcn_h" = xyes
9244then :
9245  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9246
9247fi
9248
9249
9250
9251
9252func_stripname_cnf ()
9253{
9254  case $2 in
9255  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
9256  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
9257  esac
9258} # func_stripname_cnf
9259
9260
9261
9262
9263
9264# Set options
9265
9266
9267
9268        enable_dlopen=no
9269
9270
9271  enable_win32_dll=no
9272
9273
9274            # Check whether --enable-shared was given.
9275if test ${enable_shared+y}
9276then :
9277  enableval=$enable_shared; p=${PACKAGE-default}
9278    case $enableval in
9279    yes) enable_shared=yes ;;
9280    no) enable_shared=no ;;
9281    *)
9282      enable_shared=no
9283      # Look at the argument we got.  We use all the common list separators.
9284      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9285      for pkg in $enableval; do
9286	IFS=$lt_save_ifs
9287	if test "X$pkg" = "X$p"; then
9288	  enable_shared=yes
9289	fi
9290      done
9291      IFS=$lt_save_ifs
9292      ;;
9293    esac
9294else $as_nop
9295  enable_shared=yes
9296fi
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306  # Check whether --enable-static was given.
9307if test ${enable_static+y}
9308then :
9309  enableval=$enable_static; p=${PACKAGE-default}
9310    case $enableval in
9311    yes) enable_static=yes ;;
9312    no) enable_static=no ;;
9313    *)
9314     enable_static=no
9315      # Look at the argument we got.  We use all the common list separators.
9316      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9317      for pkg in $enableval; do
9318	IFS=$lt_save_ifs
9319	if test "X$pkg" = "X$p"; then
9320	  enable_static=yes
9321	fi
9322      done
9323      IFS=$lt_save_ifs
9324      ;;
9325    esac
9326else $as_nop
9327  enable_static=yes
9328fi
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339# Check whether --with-pic was given.
9340if test ${with_pic+y}
9341then :
9342  withval=$with_pic; lt_p=${PACKAGE-default}
9343    case $withval in
9344    yes|no) pic_mode=$withval ;;
9345    *)
9346      pic_mode=default
9347      # Look at the argument we got.  We use all the common list separators.
9348      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9349      for lt_pkg in $withval; do
9350	IFS=$lt_save_ifs
9351	if test "X$lt_pkg" = "X$lt_p"; then
9352	  pic_mode=yes
9353	fi
9354      done
9355      IFS=$lt_save_ifs
9356      ;;
9357    esac
9358else $as_nop
9359  pic_mode=default
9360fi
9361
9362
9363
9364
9365
9366
9367
9368
9369  # Check whether --enable-fast-install was given.
9370if test ${enable_fast_install+y}
9371then :
9372  enableval=$enable_fast_install; p=${PACKAGE-default}
9373    case $enableval in
9374    yes) enable_fast_install=yes ;;
9375    no) enable_fast_install=no ;;
9376    *)
9377      enable_fast_install=no
9378      # Look at the argument we got.  We use all the common list separators.
9379      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9380      for pkg in $enableval; do
9381	IFS=$lt_save_ifs
9382	if test "X$pkg" = "X$p"; then
9383	  enable_fast_install=yes
9384	fi
9385      done
9386      IFS=$lt_save_ifs
9387      ;;
9388    esac
9389else $as_nop
9390  enable_fast_install=yes
9391fi
9392
9393
9394
9395
9396
9397
9398
9399
9400  shared_archive_member_spec=
9401case $host,$enable_shared in
9402power*-*-aix[5-9]*,yes)
9403  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9404printf %s "checking which variant of shared library versioning to provide... " >&6; }
9405
9406# Check whether --with-aix-soname was given.
9407if test ${with_aix_soname+y}
9408then :
9409  withval=$with_aix_soname; case $withval in
9410    aix|svr4|both)
9411      ;;
9412    *)
9413      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9414      ;;
9415    esac
9416    lt_cv_with_aix_soname=$with_aix_soname
9417else $as_nop
9418  if test ${lt_cv_with_aix_soname+y}
9419then :
9420  printf %s "(cached) " >&6
9421else $as_nop
9422  lt_cv_with_aix_soname=aix
9423fi
9424
9425    with_aix_soname=$lt_cv_with_aix_soname
9426fi
9427
9428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9429printf "%s\n" "$with_aix_soname" >&6; }
9430  if test aix != "$with_aix_soname"; then
9431    # For the AIX way of multilib, we name the shared archive member
9432    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9433    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9434    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9435    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9436    if test 64 = "${OBJECT_MODE-32}"; then
9437      shared_archive_member_spec=shr_64
9438    else
9439      shared_archive_member_spec=shr
9440    fi
9441  fi
9442  ;;
9443*)
9444  with_aix_soname=aix
9445  ;;
9446esac
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457# This can be used to rebuild libtool when needed
9458LIBTOOL_DEPS=$ltmain
9459
9460# Always use our own libtool.
9461LIBTOOL="${CONFIG_SHELL-$SHELL} "'$(top_builddir)/libtool'
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492test -z "$LN_S" && LN_S="ln -s"
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507if test -n "${ZSH_VERSION+set}"; then
9508   setopt NO_GLOB_SUBST
9509fi
9510
9511{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9512printf %s "checking for objdir... " >&6; }
9513if test ${lt_cv_objdir+y}
9514then :
9515  printf %s "(cached) " >&6
9516else $as_nop
9517  rm -f .libs 2>/dev/null
9518mkdir .libs 2>/dev/null
9519if test -d .libs; then
9520  lt_cv_objdir=.libs
9521else
9522  # MS-DOS does not allow filenames that begin with a dot.
9523  lt_cv_objdir=_libs
9524fi
9525rmdir .libs 2>/dev/null
9526fi
9527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9528printf "%s\n" "$lt_cv_objdir" >&6; }
9529objdir=$lt_cv_objdir
9530
9531
9532
9533
9534
9535printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9536
9537
9538
9539
9540case $host_os in
9541aix3*)
9542  # AIX sometimes has problems with the GCC collect2 program.  For some
9543  # reason, if we set the COLLECT_NAMES environment variable, the problems
9544  # vanish in a puff of smoke.
9545  if test set != "${COLLECT_NAMES+set}"; then
9546    COLLECT_NAMES=
9547    export COLLECT_NAMES
9548  fi
9549  ;;
9550esac
9551
9552# Global variables:
9553ofile=libtool
9554can_build_shared=yes
9555
9556# All known linkers require a '.a' archive for static linking (except MSVC,
9557# which needs '.lib').
9558libext=a
9559
9560with_gnu_ld=$lt_cv_prog_gnu_ld
9561
9562old_CC=$CC
9563old_CFLAGS=$CFLAGS
9564
9565# Set sane defaults for various variables
9566test -z "$CC" && CC=cc
9567test -z "$LTCC" && LTCC=$CC
9568test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9569test -z "$LD" && LD=ld
9570test -z "$ac_objext" && ac_objext=o
9571
9572func_cc_basename $compiler
9573cc_basename=$func_cc_basename_result
9574
9575
9576# Only perform the check for file, if the check method requires it
9577test -z "$MAGIC_CMD" && MAGIC_CMD=file
9578case $deplibs_check_method in
9579file_magic*)
9580  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9581    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9582printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9583if test ${lt_cv_path_MAGIC_CMD+y}
9584then :
9585  printf %s "(cached) " >&6
9586else $as_nop
9587  case $MAGIC_CMD in
9588[\\/*] |  ?:[\\/]*)
9589  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9590  ;;
9591*)
9592  lt_save_MAGIC_CMD=$MAGIC_CMD
9593  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9594  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9595  for ac_dir in $ac_dummy; do
9596    IFS=$lt_save_ifs
9597    test -z "$ac_dir" && ac_dir=.
9598    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9599      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9600      if test -n "$file_magic_test_file"; then
9601	case $deplibs_check_method in
9602	"file_magic "*)
9603	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9604	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9605	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9606	    $EGREP "$file_magic_regex" > /dev/null; then
9607	    :
9608	  else
9609	    cat <<_LT_EOF 1>&2
9610
9611*** Warning: the command libtool uses to detect shared libraries,
9612*** $file_magic_cmd, produces output that libtool cannot recognize.
9613*** The result is that libtool may fail to recognize shared libraries
9614*** as such.  This will affect the creation of libtool libraries that
9615*** depend on shared libraries, but programs linked with such libtool
9616*** libraries will work regardless of this problem.  Nevertheless, you
9617*** may want to report the problem to your system manager and/or to
9618*** bug-libtool@gnu.org
9619
9620_LT_EOF
9621	  fi ;;
9622	esac
9623      fi
9624      break
9625    fi
9626  done
9627  IFS=$lt_save_ifs
9628  MAGIC_CMD=$lt_save_MAGIC_CMD
9629  ;;
9630esac
9631fi
9632
9633MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9634if test -n "$MAGIC_CMD"; then
9635  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9636printf "%s\n" "$MAGIC_CMD" >&6; }
9637else
9638  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9639printf "%s\n" "no" >&6; }
9640fi
9641
9642
9643
9644
9645
9646if test -z "$lt_cv_path_MAGIC_CMD"; then
9647  if test -n "$ac_tool_prefix"; then
9648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9649printf %s "checking for file... " >&6; }
9650if test ${lt_cv_path_MAGIC_CMD+y}
9651then :
9652  printf %s "(cached) " >&6
9653else $as_nop
9654  case $MAGIC_CMD in
9655[\\/*] |  ?:[\\/]*)
9656  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9657  ;;
9658*)
9659  lt_save_MAGIC_CMD=$MAGIC_CMD
9660  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9661  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9662  for ac_dir in $ac_dummy; do
9663    IFS=$lt_save_ifs
9664    test -z "$ac_dir" && ac_dir=.
9665    if test -f "$ac_dir/file"; then
9666      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9667      if test -n "$file_magic_test_file"; then
9668	case $deplibs_check_method in
9669	"file_magic "*)
9670	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9671	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9672	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9673	    $EGREP "$file_magic_regex" > /dev/null; then
9674	    :
9675	  else
9676	    cat <<_LT_EOF 1>&2
9677
9678*** Warning: the command libtool uses to detect shared libraries,
9679*** $file_magic_cmd, produces output that libtool cannot recognize.
9680*** The result is that libtool may fail to recognize shared libraries
9681*** as such.  This will affect the creation of libtool libraries that
9682*** depend on shared libraries, but programs linked with such libtool
9683*** libraries will work regardless of this problem.  Nevertheless, you
9684*** may want to report the problem to your system manager and/or to
9685*** bug-libtool@gnu.org
9686
9687_LT_EOF
9688	  fi ;;
9689	esac
9690      fi
9691      break
9692    fi
9693  done
9694  IFS=$lt_save_ifs
9695  MAGIC_CMD=$lt_save_MAGIC_CMD
9696  ;;
9697esac
9698fi
9699
9700MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9701if test -n "$MAGIC_CMD"; then
9702  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9703printf "%s\n" "$MAGIC_CMD" >&6; }
9704else
9705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9706printf "%s\n" "no" >&6; }
9707fi
9708
9709
9710  else
9711    MAGIC_CMD=:
9712  fi
9713fi
9714
9715  fi
9716  ;;
9717esac
9718
9719# Use C for the default configuration in the libtool script
9720
9721lt_save_CC=$CC
9722ac_ext=c
9723ac_cpp='$CPP $CPPFLAGS'
9724ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9725ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9726ac_compiler_gnu=$ac_cv_c_compiler_gnu
9727
9728
9729# Source file extension for C test sources.
9730ac_ext=c
9731
9732# Object file extension for compiled C test sources.
9733objext=o
9734objext=$objext
9735
9736# Code to be used in simple compile tests
9737lt_simple_compile_test_code="int some_variable = 0;"
9738
9739# Code to be used in simple link tests
9740lt_simple_link_test_code='int main(){return(0);}'
9741
9742
9743
9744
9745
9746
9747
9748# If no C compiler was specified, use CC.
9749LTCC=${LTCC-"$CC"}
9750
9751# If no C compiler flags were specified, use CFLAGS.
9752LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9753
9754# Allow CC to be a program name with arguments.
9755compiler=$CC
9756
9757# Save the default compiler, since it gets overwritten when the other
9758# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9759compiler_DEFAULT=$CC
9760
9761# save warnings/boilerplate of simple test code
9762ac_outfile=conftest.$ac_objext
9763echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9764eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9765_lt_compiler_boilerplate=`cat conftest.err`
9766$RM conftest*
9767
9768ac_outfile=conftest.$ac_objext
9769echo "$lt_simple_link_test_code" >conftest.$ac_ext
9770eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9771_lt_linker_boilerplate=`cat conftest.err`
9772$RM -r conftest*
9773
9774
9775## CAVEAT EMPTOR:
9776## There is no encapsulation within the following macros, do not change
9777## the running order or otherwise move them around unless you know exactly
9778## what you are doing...
9779if test -n "$compiler"; then
9780
9781lt_prog_compiler_no_builtin_flag=
9782
9783if test yes = "$GCC"; then
9784  case $cc_basename in
9785  nvcc*)
9786    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9787  *)
9788    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9789  esac
9790
9791  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9792printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9793if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9794then :
9795  printf %s "(cached) " >&6
9796else $as_nop
9797  lt_cv_prog_compiler_rtti_exceptions=no
9798   ac_outfile=conftest.$ac_objext
9799   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9800   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9801   # Insert the option either (1) after the last *FLAGS variable, or
9802   # (2) before a word containing "conftest.", or (3) at the end.
9803   # Note that $ac_compile itself does not contain backslashes and begins
9804   # with a dollar sign (not a hyphen), so the echo should work correctly.
9805   # The option is referenced via a variable to avoid confusing sed.
9806   lt_compile=`echo "$ac_compile" | $SED \
9807   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9808   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9809   -e 's:$: $lt_compiler_flag:'`
9810   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9811   (eval "$lt_compile" 2>conftest.err)
9812   ac_status=$?
9813   cat conftest.err >&5
9814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9815   if (exit $ac_status) && test -s "$ac_outfile"; then
9816     # The compiler can only warn and ignore the option if not recognized
9817     # So say no if there are warnings other than the usual output.
9818     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9819     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9820     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9821       lt_cv_prog_compiler_rtti_exceptions=yes
9822     fi
9823   fi
9824   $RM conftest*
9825
9826fi
9827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9828printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9829
9830if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9831    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9832else
9833    :
9834fi
9835
9836fi
9837
9838
9839
9840
9841
9842
9843  lt_prog_compiler_wl=
9844lt_prog_compiler_pic=
9845lt_prog_compiler_static=
9846
9847
9848  if test yes = "$GCC"; then
9849    lt_prog_compiler_wl='-Wl,'
9850    lt_prog_compiler_static='-static'
9851
9852    case $host_os in
9853      aix*)
9854      # All AIX code is PIC.
9855      if test ia64 = "$host_cpu"; then
9856	# AIX 5 now supports IA64 processor
9857	lt_prog_compiler_static='-Bstatic'
9858      fi
9859      lt_prog_compiler_pic='-fPIC'
9860      ;;
9861
9862    amigaos*)
9863      case $host_cpu in
9864      powerpc)
9865            # see comment about AmigaOS4 .so support
9866            lt_prog_compiler_pic='-fPIC'
9867        ;;
9868      m68k)
9869            # FIXME: we need at least 68020 code to build shared libraries, but
9870            # adding the '-m68020' flag to GCC prevents building anything better,
9871            # like '-m68040'.
9872            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9873        ;;
9874      esac
9875      ;;
9876
9877    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9878      # PIC is the default for these OSes.
9879      ;;
9880
9881    mingw* | cygwin* | pw32* | os2* | cegcc*)
9882      # This hack is so that the source file can tell whether it is being
9883      # built for inclusion in a dll (and should export symbols for example).
9884      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9885      # (--disable-auto-import) libraries
9886      lt_prog_compiler_pic='-DDLL_EXPORT'
9887      case $host_os in
9888      os2*)
9889	lt_prog_compiler_static='$wl-static'
9890	;;
9891      esac
9892      ;;
9893
9894    darwin* | rhapsody*)
9895      # PIC is the default on this platform
9896      # Common symbols not allowed in MH_DYLIB files
9897      lt_prog_compiler_pic='-fno-common'
9898      ;;
9899
9900    haiku*)
9901      # PIC is the default for Haiku.
9902      # The "-static" flag exists, but is broken.
9903      lt_prog_compiler_static=
9904      ;;
9905
9906    hpux*)
9907      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9908      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9909      # sets the default TLS model and affects inlining.
9910      case $host_cpu in
9911      hppa*64*)
9912	# +Z the default
9913	;;
9914      *)
9915	lt_prog_compiler_pic='-fPIC'
9916	;;
9917      esac
9918      ;;
9919
9920    interix[3-9]*)
9921      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9922      # Instead, we relocate shared libraries at runtime.
9923      ;;
9924
9925    msdosdjgpp*)
9926      # Just because we use GCC doesn't mean we suddenly get shared libraries
9927      # on systems that don't support them.
9928      lt_prog_compiler_can_build_shared=no
9929      enable_shared=no
9930      ;;
9931
9932    *nto* | *qnx*)
9933      # QNX uses GNU C++, but need to define -shared option too, otherwise
9934      # it will coredump.
9935      lt_prog_compiler_pic='-fPIC -shared'
9936      ;;
9937
9938    sysv4*MP*)
9939      if test -d /usr/nec; then
9940	lt_prog_compiler_pic=-Kconform_pic
9941      fi
9942      ;;
9943
9944    *)
9945      lt_prog_compiler_pic='-fPIC'
9946      ;;
9947    esac
9948
9949    case $cc_basename in
9950    nvcc*) # Cuda Compiler Driver 2.2
9951      lt_prog_compiler_wl='-Xlinker '
9952      if test -n "$lt_prog_compiler_pic"; then
9953        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9954      fi
9955      ;;
9956    esac
9957  else
9958    # PORTME Check for flag to pass linker flags through the system compiler.
9959    case $host_os in
9960    aix*)
9961      lt_prog_compiler_wl='-Wl,'
9962      if test ia64 = "$host_cpu"; then
9963	# AIX 5 now supports IA64 processor
9964	lt_prog_compiler_static='-Bstatic'
9965      else
9966	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9967      fi
9968      ;;
9969
9970    darwin* | rhapsody*)
9971      # PIC is the default on this platform
9972      # Common symbols not allowed in MH_DYLIB files
9973      lt_prog_compiler_pic='-fno-common'
9974      case $cc_basename in
9975      nagfor*)
9976        # NAG Fortran compiler
9977        lt_prog_compiler_wl='-Wl,-Wl,,'
9978        lt_prog_compiler_pic='-PIC'
9979        lt_prog_compiler_static='-Bstatic'
9980        ;;
9981      esac
9982      ;;
9983
9984    mingw* | cygwin* | pw32* | os2* | cegcc*)
9985      # This hack is so that the source file can tell whether it is being
9986      # built for inclusion in a dll (and should export symbols for example).
9987      lt_prog_compiler_pic='-DDLL_EXPORT'
9988      case $host_os in
9989      os2*)
9990	lt_prog_compiler_static='$wl-static'
9991	;;
9992      esac
9993      ;;
9994
9995    hpux9* | hpux10* | hpux11*)
9996      lt_prog_compiler_wl='-Wl,'
9997      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9998      # not for PA HP-UX.
9999      case $host_cpu in
10000      hppa*64*|ia64*)
10001	# +Z the default
10002	;;
10003      *)
10004	lt_prog_compiler_pic='+Z'
10005	;;
10006      esac
10007      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10008      lt_prog_compiler_static='$wl-a ${wl}archive'
10009      ;;
10010
10011    irix5* | irix6* | nonstopux*)
10012      lt_prog_compiler_wl='-Wl,'
10013      # PIC (with -KPIC) is the default.
10014      lt_prog_compiler_static='-non_shared'
10015      ;;
10016
10017    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10018      case $cc_basename in
10019      # old Intel for x86_64, which still supported -KPIC.
10020      ecc*)
10021	lt_prog_compiler_wl='-Wl,'
10022	lt_prog_compiler_pic='-KPIC'
10023	lt_prog_compiler_static='-static'
10024        ;;
10025      # icc used to be incompatible with GCC.
10026      # ICC 10 doesn't accept -KPIC any more.
10027      icc* | ifort*)
10028	lt_prog_compiler_wl='-Wl,'
10029	lt_prog_compiler_pic='-fPIC'
10030	lt_prog_compiler_static='-static'
10031        ;;
10032      # Lahey Fortran 8.1.
10033      lf95*)
10034	lt_prog_compiler_wl='-Wl,'
10035	lt_prog_compiler_pic='--shared'
10036	lt_prog_compiler_static='--static'
10037	;;
10038      nagfor*)
10039	# NAG Fortran compiler
10040	lt_prog_compiler_wl='-Wl,-Wl,,'
10041	lt_prog_compiler_pic='-PIC'
10042	lt_prog_compiler_static='-Bstatic'
10043	;;
10044      tcc*)
10045	# Fabrice Bellard et al's Tiny C Compiler
10046	lt_prog_compiler_wl='-Wl,'
10047	lt_prog_compiler_pic='-fPIC'
10048	lt_prog_compiler_static='-static'
10049	;;
10050      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10051        # Portland Group compilers (*not* the Pentium gcc compiler,
10052	# which looks to be a dead project)
10053	lt_prog_compiler_wl='-Wl,'
10054	lt_prog_compiler_pic='-fpic'
10055	lt_prog_compiler_static='-Bstatic'
10056        ;;
10057      ccc*)
10058        lt_prog_compiler_wl='-Wl,'
10059        # All Alpha code is PIC.
10060        lt_prog_compiler_static='-non_shared'
10061        ;;
10062      xl* | bgxl* | bgf* | mpixl*)
10063	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10064	lt_prog_compiler_wl='-Wl,'
10065	lt_prog_compiler_pic='-qpic'
10066	lt_prog_compiler_static='-qstaticlink'
10067	;;
10068      *)
10069	case `$CC -V 2>&1 | sed 5q` in
10070	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10071	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10072	  lt_prog_compiler_pic='-KPIC'
10073	  lt_prog_compiler_static='-Bstatic'
10074	  lt_prog_compiler_wl=''
10075	  ;;
10076	*Sun\ F* | *Sun*Fortran*)
10077	  lt_prog_compiler_pic='-KPIC'
10078	  lt_prog_compiler_static='-Bstatic'
10079	  lt_prog_compiler_wl='-Qoption ld '
10080	  ;;
10081	*Sun\ C*)
10082	  # Sun C 5.9
10083	  lt_prog_compiler_pic='-KPIC'
10084	  lt_prog_compiler_static='-Bstatic'
10085	  lt_prog_compiler_wl='-Wl,'
10086	  ;;
10087        *Intel*\ [CF]*Compiler*)
10088	  lt_prog_compiler_wl='-Wl,'
10089	  lt_prog_compiler_pic='-fPIC'
10090	  lt_prog_compiler_static='-static'
10091	  ;;
10092	*Portland\ Group*)
10093	  lt_prog_compiler_wl='-Wl,'
10094	  lt_prog_compiler_pic='-fpic'
10095	  lt_prog_compiler_static='-Bstatic'
10096	  ;;
10097	esac
10098	;;
10099      esac
10100      ;;
10101
10102    newsos6)
10103      lt_prog_compiler_pic='-KPIC'
10104      lt_prog_compiler_static='-Bstatic'
10105      ;;
10106
10107    *nto* | *qnx*)
10108      # QNX uses GNU C++, but need to define -shared option too, otherwise
10109      # it will coredump.
10110      lt_prog_compiler_pic='-fPIC -shared'
10111      ;;
10112
10113    osf3* | osf4* | osf5*)
10114      lt_prog_compiler_wl='-Wl,'
10115      # All OSF/1 code is PIC.
10116      lt_prog_compiler_static='-non_shared'
10117      ;;
10118
10119    rdos*)
10120      lt_prog_compiler_static='-non_shared'
10121      ;;
10122
10123    solaris*)
10124      lt_prog_compiler_pic='-KPIC'
10125      lt_prog_compiler_static='-Bstatic'
10126      case $cc_basename in
10127      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10128	lt_prog_compiler_wl='-Qoption ld ';;
10129      *)
10130	lt_prog_compiler_wl='-Wl,';;
10131      esac
10132      ;;
10133
10134    sunos4*)
10135      lt_prog_compiler_wl='-Qoption ld '
10136      lt_prog_compiler_pic='-PIC'
10137      lt_prog_compiler_static='-Bstatic'
10138      ;;
10139
10140    sysv4 | sysv4.2uw2* | sysv4.3*)
10141      lt_prog_compiler_wl='-Wl,'
10142      lt_prog_compiler_pic='-KPIC'
10143      lt_prog_compiler_static='-Bstatic'
10144      ;;
10145
10146    sysv4*MP*)
10147      if test -d /usr/nec; then
10148	lt_prog_compiler_pic='-Kconform_pic'
10149	lt_prog_compiler_static='-Bstatic'
10150      fi
10151      ;;
10152
10153    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10154      lt_prog_compiler_wl='-Wl,'
10155      lt_prog_compiler_pic='-KPIC'
10156      lt_prog_compiler_static='-Bstatic'
10157      ;;
10158
10159    unicos*)
10160      lt_prog_compiler_wl='-Wl,'
10161      lt_prog_compiler_can_build_shared=no
10162      ;;
10163
10164    uts4*)
10165      lt_prog_compiler_pic='-pic'
10166      lt_prog_compiler_static='-Bstatic'
10167      ;;
10168
10169    *)
10170      lt_prog_compiler_can_build_shared=no
10171      ;;
10172    esac
10173  fi
10174
10175case $host_os in
10176  # For platforms that do not support PIC, -DPIC is meaningless:
10177  *djgpp*)
10178    lt_prog_compiler_pic=
10179    ;;
10180  *)
10181    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10182    ;;
10183esac
10184
10185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10186printf %s "checking for $compiler option to produce PIC... " >&6; }
10187if test ${lt_cv_prog_compiler_pic+y}
10188then :
10189  printf %s "(cached) " >&6
10190else $as_nop
10191  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10192fi
10193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10194printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10195lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10196
10197#
10198# Check to make sure the PIC flag actually works.
10199#
10200if test -n "$lt_prog_compiler_pic"; then
10201  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10202printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10203if test ${lt_cv_prog_compiler_pic_works+y}
10204then :
10205  printf %s "(cached) " >&6
10206else $as_nop
10207  lt_cv_prog_compiler_pic_works=no
10208   ac_outfile=conftest.$ac_objext
10209   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10210   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10211   # Insert the option either (1) after the last *FLAGS variable, or
10212   # (2) before a word containing "conftest.", or (3) at the end.
10213   # Note that $ac_compile itself does not contain backslashes and begins
10214   # with a dollar sign (not a hyphen), so the echo should work correctly.
10215   # The option is referenced via a variable to avoid confusing sed.
10216   lt_compile=`echo "$ac_compile" | $SED \
10217   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10218   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10219   -e 's:$: $lt_compiler_flag:'`
10220   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10221   (eval "$lt_compile" 2>conftest.err)
10222   ac_status=$?
10223   cat conftest.err >&5
10224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225   if (exit $ac_status) && test -s "$ac_outfile"; then
10226     # The compiler can only warn and ignore the option if not recognized
10227     # So say no if there are warnings other than the usual output.
10228     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10229     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10230     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10231       lt_cv_prog_compiler_pic_works=yes
10232     fi
10233   fi
10234   $RM conftest*
10235
10236fi
10237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10238printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10239
10240if test yes = "$lt_cv_prog_compiler_pic_works"; then
10241    case $lt_prog_compiler_pic in
10242     "" | " "*) ;;
10243     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10244     esac
10245else
10246    lt_prog_compiler_pic=
10247     lt_prog_compiler_can_build_shared=no
10248fi
10249
10250fi
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262#
10263# Check to make sure the static flag actually works.
10264#
10265wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10267printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10268if test ${lt_cv_prog_compiler_static_works+y}
10269then :
10270  printf %s "(cached) " >&6
10271else $as_nop
10272  lt_cv_prog_compiler_static_works=no
10273   save_LDFLAGS=$LDFLAGS
10274   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10275   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10276   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10277     # The linker can only warn and ignore the option if not recognized
10278     # So say no if there are warnings
10279     if test -s conftest.err; then
10280       # Append any errors to the config.log.
10281       cat conftest.err 1>&5
10282       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10283       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10284       if diff conftest.exp conftest.er2 >/dev/null; then
10285         lt_cv_prog_compiler_static_works=yes
10286       fi
10287     else
10288       lt_cv_prog_compiler_static_works=yes
10289     fi
10290   fi
10291   $RM -r conftest*
10292   LDFLAGS=$save_LDFLAGS
10293
10294fi
10295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10296printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10297
10298if test yes = "$lt_cv_prog_compiler_static_works"; then
10299    :
10300else
10301    lt_prog_compiler_static=
10302fi
10303
10304
10305
10306
10307
10308
10309
10310  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10311printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10312if test ${lt_cv_prog_compiler_c_o+y}
10313then :
10314  printf %s "(cached) " >&6
10315else $as_nop
10316  lt_cv_prog_compiler_c_o=no
10317   $RM -r conftest 2>/dev/null
10318   mkdir conftest
10319   cd conftest
10320   mkdir out
10321   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10322
10323   lt_compiler_flag="-o out/conftest2.$ac_objext"
10324   # Insert the option either (1) after the last *FLAGS variable, or
10325   # (2) before a word containing "conftest.", or (3) at the end.
10326   # Note that $ac_compile itself does not contain backslashes and begins
10327   # with a dollar sign (not a hyphen), so the echo should work correctly.
10328   lt_compile=`echo "$ac_compile" | $SED \
10329   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10330   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10331   -e 's:$: $lt_compiler_flag:'`
10332   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10333   (eval "$lt_compile" 2>out/conftest.err)
10334   ac_status=$?
10335   cat out/conftest.err >&5
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10338   then
10339     # The compiler can only warn and ignore the option if not recognized
10340     # So say no if there are warnings
10341     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10342     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10343     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10344       lt_cv_prog_compiler_c_o=yes
10345     fi
10346   fi
10347   chmod u+w . 2>&5
10348   $RM conftest*
10349   # SGI C++ compiler will create directory out/ii_files/ for
10350   # template instantiation
10351   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10352   $RM out/* && rmdir out
10353   cd ..
10354   $RM -r conftest
10355   $RM conftest*
10356
10357fi
10358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10359printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10360
10361
10362
10363
10364
10365
10366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10367printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10368if test ${lt_cv_prog_compiler_c_o+y}
10369then :
10370  printf %s "(cached) " >&6
10371else $as_nop
10372  lt_cv_prog_compiler_c_o=no
10373   $RM -r conftest 2>/dev/null
10374   mkdir conftest
10375   cd conftest
10376   mkdir out
10377   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10378
10379   lt_compiler_flag="-o out/conftest2.$ac_objext"
10380   # Insert the option either (1) after the last *FLAGS variable, or
10381   # (2) before a word containing "conftest.", or (3) at the end.
10382   # Note that $ac_compile itself does not contain backslashes and begins
10383   # with a dollar sign (not a hyphen), so the echo should work correctly.
10384   lt_compile=`echo "$ac_compile" | $SED \
10385   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10386   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10387   -e 's:$: $lt_compiler_flag:'`
10388   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10389   (eval "$lt_compile" 2>out/conftest.err)
10390   ac_status=$?
10391   cat out/conftest.err >&5
10392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10394   then
10395     # The compiler can only warn and ignore the option if not recognized
10396     # So say no if there are warnings
10397     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10398     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10399     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10400       lt_cv_prog_compiler_c_o=yes
10401     fi
10402   fi
10403   chmod u+w . 2>&5
10404   $RM conftest*
10405   # SGI C++ compiler will create directory out/ii_files/ for
10406   # template instantiation
10407   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10408   $RM out/* && rmdir out
10409   cd ..
10410   $RM -r conftest
10411   $RM conftest*
10412
10413fi
10414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10415printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10416
10417
10418
10419
10420hard_links=nottested
10421if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10422  # do not overwrite the value of need_locks provided by the user
10423  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10424printf %s "checking if we can lock with hard links... " >&6; }
10425  hard_links=yes
10426  $RM conftest*
10427  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10428  touch conftest.a
10429  ln conftest.a conftest.b 2>&5 || hard_links=no
10430  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10432printf "%s\n" "$hard_links" >&6; }
10433  if test no = "$hard_links"; then
10434    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10435printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10436    need_locks=warn
10437  fi
10438else
10439  need_locks=no
10440fi
10441
10442
10443
10444
10445
10446
10447  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10448printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10449
10450  runpath_var=
10451  allow_undefined_flag=
10452  always_export_symbols=no
10453  archive_cmds=
10454  archive_expsym_cmds=
10455  compiler_needs_object=no
10456  enable_shared_with_static_runtimes=no
10457  export_dynamic_flag_spec=
10458  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10459  hardcode_automatic=no
10460  hardcode_direct=no
10461  hardcode_direct_absolute=no
10462  hardcode_libdir_flag_spec=
10463  hardcode_libdir_separator=
10464  hardcode_minus_L=no
10465  hardcode_shlibpath_var=unsupported
10466  inherit_rpath=no
10467  link_all_deplibs=unknown
10468  module_cmds=
10469  module_expsym_cmds=
10470  old_archive_from_new_cmds=
10471  old_archive_from_expsyms_cmds=
10472  thread_safe_flag_spec=
10473  whole_archive_flag_spec=
10474  # include_expsyms should be a list of space-separated symbols to be *always*
10475  # included in the symbol list
10476  include_expsyms=
10477  # exclude_expsyms can be an extended regexp of symbols to exclude
10478  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10479  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10480  # as well as any symbol that contains 'd'.
10481  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10482  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10483  # platforms (ab)use it in PIC code, but their linkers get confused if
10484  # the symbol is explicitly referenced.  Since portable code cannot
10485  # rely on this symbol name, it's probably fine to never include it in
10486  # preloaded symbol tables.
10487  # Exclude shared library initialization/finalization symbols.
10488  extract_expsyms_cmds=
10489
10490  case $host_os in
10491  cygwin* | mingw* | pw32* | cegcc*)
10492    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10493    # When not using gcc, we currently assume that we are using
10494    # Microsoft Visual C++.
10495    if test yes != "$GCC"; then
10496      with_gnu_ld=no
10497    fi
10498    ;;
10499  interix*)
10500    # we just hope/assume this is gcc and not c89 (= MSVC++)
10501    with_gnu_ld=yes
10502    ;;
10503  openbsd* | bitrig*)
10504    with_gnu_ld=no
10505    ;;
10506  esac
10507
10508  ld_shlibs=yes
10509
10510  # On some targets, GNU ld is compatible enough with the native linker
10511  # that we're better off using the native interface for both.
10512  lt_use_gnu_ld_interface=no
10513  if test yes = "$with_gnu_ld"; then
10514    case $host_os in
10515      aix*)
10516	# The AIX port of GNU ld has always aspired to compatibility
10517	# with the native linker.  However, as the warning in the GNU ld
10518	# block says, versions before 2.19.5* couldn't really create working
10519	# shared libraries, regardless of the interface used.
10520	case `$LD -v 2>&1` in
10521	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10522	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10523	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10524	  *)
10525	    lt_use_gnu_ld_interface=yes
10526	    ;;
10527	esac
10528	;;
10529      *)
10530	lt_use_gnu_ld_interface=yes
10531	;;
10532    esac
10533  fi
10534
10535  if test yes = "$lt_use_gnu_ld_interface"; then
10536    # If archive_cmds runs LD, not CC, wlarc should be empty
10537    wlarc='$wl'
10538
10539    # Set some defaults for GNU ld with shared library support. These
10540    # are reset later if shared libraries are not supported. Putting them
10541    # here allows them to be overridden if necessary.
10542    runpath_var=LD_RUN_PATH
10543    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10544    export_dynamic_flag_spec='$wl--export-dynamic'
10545    # ancient GNU ld didn't support --whole-archive et. al.
10546    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10547      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10548    else
10549      whole_archive_flag_spec=
10550    fi
10551    supports_anon_versioning=no
10552    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10553      *GNU\ gold*) supports_anon_versioning=yes ;;
10554      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10555      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10556      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10557      *\ 2.11.*) ;; # other 2.11 versions
10558      *) supports_anon_versioning=yes ;;
10559    esac
10560
10561    # See if GNU ld supports shared libraries.
10562    case $host_os in
10563    aix[3-9]*)
10564      # On AIX/PPC, the GNU linker is very broken
10565      if test ia64 != "$host_cpu"; then
10566	ld_shlibs=no
10567	cat <<_LT_EOF 1>&2
10568
10569*** Warning: the GNU linker, at least up to release 2.19, is reported
10570*** to be unable to reliably create shared libraries on AIX.
10571*** Therefore, libtool is disabling shared libraries support.  If you
10572*** really care for shared libraries, you may want to install binutils
10573*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10574*** You will then need to restart the configuration process.
10575
10576_LT_EOF
10577      fi
10578      ;;
10579
10580    amigaos*)
10581      case $host_cpu in
10582      powerpc)
10583            # see comment about AmigaOS4 .so support
10584            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10585            archive_expsym_cmds=''
10586        ;;
10587      m68k)
10588            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)'
10589            hardcode_libdir_flag_spec='-L$libdir'
10590            hardcode_minus_L=yes
10591        ;;
10592      esac
10593      ;;
10594
10595    beos*)
10596      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10597	allow_undefined_flag=unsupported
10598	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10599	# support --undefined.  This deserves some investigation.  FIXME
10600	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10601      else
10602	ld_shlibs=no
10603      fi
10604      ;;
10605
10606    cygwin* | mingw* | pw32* | cegcc*)
10607      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10608      # as there is no search path for DLLs.
10609      hardcode_libdir_flag_spec='-L$libdir'
10610      export_dynamic_flag_spec='$wl--export-all-symbols'
10611      allow_undefined_flag=unsupported
10612      always_export_symbols=no
10613      enable_shared_with_static_runtimes=yes
10614      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'
10615      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10616
10617      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10618        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10619	# If the export-symbols file already is a .def file, use it as
10620	# is; otherwise, prepend EXPORTS...
10621	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10622          cp $export_symbols $output_objdir/$soname.def;
10623        else
10624          echo EXPORTS > $output_objdir/$soname.def;
10625          cat $export_symbols >> $output_objdir/$soname.def;
10626        fi~
10627        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10628      else
10629	ld_shlibs=no
10630      fi
10631      ;;
10632
10633    haiku*)
10634      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10635      link_all_deplibs=yes
10636      ;;
10637
10638    os2*)
10639      hardcode_libdir_flag_spec='-L$libdir'
10640      hardcode_minus_L=yes
10641      allow_undefined_flag=unsupported
10642      shrext_cmds=.dll
10643      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10644	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10645	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10646	$ECHO EXPORTS >> $output_objdir/$libname.def~
10647	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10648	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10649	emximp -o $lib $output_objdir/$libname.def'
10650      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10651	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10652	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10653	$ECHO EXPORTS >> $output_objdir/$libname.def~
10654	prefix_cmds="$SED"~
10655	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10656	  prefix_cmds="$prefix_cmds -e 1d";
10657	fi~
10658	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10659	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10660	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10661	emximp -o $lib $output_objdir/$libname.def'
10662      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10663      enable_shared_with_static_runtimes=yes
10664      ;;
10665
10666    interix[3-9]*)
10667      hardcode_direct=no
10668      hardcode_shlibpath_var=no
10669      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10670      export_dynamic_flag_spec='$wl-E'
10671      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10672      # Instead, shared libraries are loaded at an image base (0x10000000 by
10673      # default) and relocated if they conflict, which is a slow very memory
10674      # consuming and fragmenting process.  To avoid this, we pick a random,
10675      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10676      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10677      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10678      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'
10679      ;;
10680
10681    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10682      tmp_diet=no
10683      if test linux-dietlibc = "$host_os"; then
10684	case $cc_basename in
10685	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10686	esac
10687      fi
10688      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10689	 && test no = "$tmp_diet"
10690      then
10691	tmp_addflag=' $pic_flag'
10692	tmp_sharedflag='-shared'
10693	case $cc_basename,$host_cpu in
10694        pgcc*)				# Portland Group C compiler
10695	  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'
10696	  tmp_addflag=' $pic_flag'
10697	  ;;
10698	pgf77* | pgf90* | pgf95* | pgfortran*)
10699					# Portland Group f77 and f90 compilers
10700	  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'
10701	  tmp_addflag=' $pic_flag -Mnomain' ;;
10702	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10703	  tmp_addflag=' -i_dynamic' ;;
10704	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10705	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10706	ifc* | ifort*)			# Intel Fortran compiler
10707	  tmp_addflag=' -nofor_main' ;;
10708	lf95*)				# Lahey Fortran 8.1
10709	  whole_archive_flag_spec=
10710	  tmp_sharedflag='--shared' ;;
10711        nagfor*)                        # NAGFOR 5.3
10712          tmp_sharedflag='-Wl,-shared' ;;
10713	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10714	  tmp_sharedflag='-qmkshrobj'
10715	  tmp_addflag= ;;
10716	nvcc*)	# Cuda Compiler Driver 2.2
10717	  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'
10718	  compiler_needs_object=yes
10719	  ;;
10720	esac
10721	case `$CC -V 2>&1 | sed 5q` in
10722	*Sun\ C*)			# Sun C 5.9
10723	  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'
10724	  compiler_needs_object=yes
10725	  tmp_sharedflag='-G' ;;
10726	*Sun\ F*)			# Sun Fortran 8.3
10727	  tmp_sharedflag='-G' ;;
10728	esac
10729	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10730
10731        if test yes = "$supports_anon_versioning"; then
10732          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10733            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10734            echo "local: *; };" >> $output_objdir/$libname.ver~
10735            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10736        fi
10737
10738	case $cc_basename in
10739	tcc*)
10740	  export_dynamic_flag_spec='-rdynamic'
10741	  ;;
10742	xlf* | bgf* | bgxlf* | mpixlf*)
10743	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10744	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10745	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10746	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10747	  if test yes = "$supports_anon_versioning"; then
10748	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10749              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10750              echo "local: *; };" >> $output_objdir/$libname.ver~
10751              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10752	  fi
10753	  ;;
10754	esac
10755      else
10756        ld_shlibs=no
10757      fi
10758      ;;
10759
10760    netbsd*)
10761      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10762	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10763	wlarc=
10764      else
10765	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10766	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10767      fi
10768      ;;
10769
10770    solaris*)
10771      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10772	ld_shlibs=no
10773	cat <<_LT_EOF 1>&2
10774
10775*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10776*** create shared libraries on Solaris systems.  Therefore, libtool
10777*** is disabling shared libraries support.  We urge you to upgrade GNU
10778*** binutils to release 2.9.1 or newer.  Another option is to modify
10779*** your PATH or compiler configuration so that the native linker is
10780*** used, and then restart.
10781
10782_LT_EOF
10783      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10784	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10785	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10786      else
10787	ld_shlibs=no
10788      fi
10789      ;;
10790
10791    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10792      case `$LD -v 2>&1` in
10793        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10794	ld_shlibs=no
10795	cat <<_LT_EOF 1>&2
10796
10797*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10798*** reliably create shared libraries on SCO systems.  Therefore, libtool
10799*** is disabling shared libraries support.  We urge you to upgrade GNU
10800*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10801*** your PATH or compiler configuration so that the native linker is
10802*** used, and then restart.
10803
10804_LT_EOF
10805	;;
10806	*)
10807	  # For security reasons, it is highly recommended that you always
10808	  # use absolute paths for naming shared libraries, and exclude the
10809	  # DT_RUNPATH tag from executables and libraries.  But doing so
10810	  # requires that you compile everything twice, which is a pain.
10811	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10812	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10813	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10814	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10815	  else
10816	    ld_shlibs=no
10817	  fi
10818	;;
10819      esac
10820      ;;
10821
10822    sunos4*)
10823      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10824      wlarc=
10825      hardcode_direct=yes
10826      hardcode_shlibpath_var=no
10827      ;;
10828
10829    *)
10830      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10831	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10832	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10833      else
10834	ld_shlibs=no
10835      fi
10836      ;;
10837    esac
10838
10839    if test no = "$ld_shlibs"; then
10840      runpath_var=
10841      hardcode_libdir_flag_spec=
10842      export_dynamic_flag_spec=
10843      whole_archive_flag_spec=
10844    fi
10845  else
10846    # PORTME fill in a description of your system's linker (not GNU ld)
10847    case $host_os in
10848    aix3*)
10849      allow_undefined_flag=unsupported
10850      always_export_symbols=yes
10851      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'
10852      # Note: this linker hardcodes the directories in LIBPATH if there
10853      # are no directories specified by -L.
10854      hardcode_minus_L=yes
10855      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10856	# Neither direct hardcoding nor static linking is supported with a
10857	# broken collect2.
10858	hardcode_direct=unsupported
10859      fi
10860      ;;
10861
10862    aix[4-9]*)
10863      if test ia64 = "$host_cpu"; then
10864	# On IA64, the linker does run time linking by default, so we don't
10865	# have to do anything special.
10866	aix_use_runtimelinking=no
10867	exp_sym_flag='-Bexport'
10868	no_entry_flag=
10869      else
10870	# If we're using GNU nm, then we don't want the "-C" option.
10871	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10872	# Without the "-l" option, or with the "-B" option, AIX nm treats
10873	# weak defined symbols like other global defined symbols, whereas
10874	# GNU nm marks them as "W".
10875	# While the 'weak' keyword is ignored in the Export File, we need
10876	# it in the Import File for the 'aix-soname' feature, so we have
10877	# to replace the "-B" option with "-P" for AIX nm.
10878	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10879	  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'
10880	else
10881	  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'
10882	fi
10883	aix_use_runtimelinking=no
10884
10885	# Test if we are trying to use run time linking or normal
10886	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10887	# have runtime linking enabled, and use it for executables.
10888	# For shared libraries, we enable/disable runtime linking
10889	# depending on the kind of the shared library created -
10890	# when "with_aix_soname,aix_use_runtimelinking" is:
10891	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10892	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10893	#            lib.a           static archive
10894	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10895	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10896	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10897	#            lib.a(lib.so.V) shared, rtl:no
10898	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10899	#            lib.a           static archive
10900	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10901	  for ld_flag in $LDFLAGS; do
10902	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10903	    aix_use_runtimelinking=yes
10904	    break
10905	  fi
10906	  done
10907	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10908	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10909	    # so we don't have lib.a shared libs to link our executables.
10910	    # We have to force runtime linking in this case.
10911	    aix_use_runtimelinking=yes
10912	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10913	  fi
10914	  ;;
10915	esac
10916
10917	exp_sym_flag='-bexport'
10918	no_entry_flag='-bnoentry'
10919      fi
10920
10921      # When large executables or shared objects are built, AIX ld can
10922      # have problems creating the table of contents.  If linking a library
10923      # or program results in "error TOC overflow" add -mminimal-toc to
10924      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10925      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10926
10927      archive_cmds=''
10928      hardcode_direct=yes
10929      hardcode_direct_absolute=yes
10930      hardcode_libdir_separator=':'
10931      link_all_deplibs=yes
10932      file_list_spec='$wl-f,'
10933      case $with_aix_soname,$aix_use_runtimelinking in
10934      aix,*) ;; # traditional, no import file
10935      svr4,* | *,yes) # use import file
10936	# The Import File defines what to hardcode.
10937	hardcode_direct=no
10938	hardcode_direct_absolute=no
10939	;;
10940      esac
10941
10942      if test yes = "$GCC"; then
10943	case $host_os in aix4.[012]|aix4.[012].*)
10944	# We only want to do this on AIX 4.2 and lower, the check
10945	# below for broken collect2 doesn't work under 4.3+
10946	  collect2name=`$CC -print-prog-name=collect2`
10947	  if test -f "$collect2name" &&
10948	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10949	  then
10950	  # We have reworked collect2
10951	  :
10952	  else
10953	  # We have old collect2
10954	  hardcode_direct=unsupported
10955	  # It fails to find uninstalled libraries when the uninstalled
10956	  # path is not listed in the libpath.  Setting hardcode_minus_L
10957	  # to unsupported forces relinking
10958	  hardcode_minus_L=yes
10959	  hardcode_libdir_flag_spec='-L$libdir'
10960	  hardcode_libdir_separator=
10961	  fi
10962	  ;;
10963	esac
10964	shared_flag='-shared'
10965	if test yes = "$aix_use_runtimelinking"; then
10966	  shared_flag="$shared_flag "'$wl-G'
10967	fi
10968	# Need to ensure runtime linking is disabled for the traditional
10969	# shared library, or the linker may eventually find shared libraries
10970	# /with/ Import File - we do not want to mix them.
10971	shared_flag_aix='-shared'
10972	shared_flag_svr4='-shared $wl-G'
10973      else
10974	# not using gcc
10975	if test ia64 = "$host_cpu"; then
10976	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10977	# chokes on -Wl,-G. The following line is correct:
10978	  shared_flag='-G'
10979	else
10980	  if test yes = "$aix_use_runtimelinking"; then
10981	    shared_flag='$wl-G'
10982	  else
10983	    shared_flag='$wl-bM:SRE'
10984	  fi
10985	  shared_flag_aix='$wl-bM:SRE'
10986	  shared_flag_svr4='$wl-G'
10987	fi
10988      fi
10989
10990      export_dynamic_flag_spec='$wl-bexpall'
10991      # It seems that -bexpall does not export symbols beginning with
10992      # underscore (_), so it is better to generate a list of symbols to export.
10993      always_export_symbols=yes
10994      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10995	# Warning - without using the other runtime loading flags (-brtl),
10996	# -berok will link without error, but may produce a broken library.
10997	allow_undefined_flag='-berok'
10998        # Determine the default libpath from the value encoded in an
10999        # empty executable.
11000        if test set = "${lt_cv_aix_libpath+set}"; then
11001  aix_libpath=$lt_cv_aix_libpath
11002else
11003  if test ${lt_cv_aix_libpath_+y}
11004then :
11005  printf %s "(cached) " >&6
11006else $as_nop
11007  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008/* end confdefs.h.  */
11009
11010int
11011main (void)
11012{
11013
11014  ;
11015  return 0;
11016}
11017_ACEOF
11018if ac_fn_c_try_link "$LINENO"
11019then :
11020
11021  lt_aix_libpath_sed='
11022      /Import File Strings/,/^$/ {
11023	  /^0/ {
11024	      s/^0  *\([^ ]*\) *$/\1/
11025	      p
11026	  }
11027      }'
11028  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11029  # Check for a 64-bit object if we didn't find anything.
11030  if test -z "$lt_cv_aix_libpath_"; then
11031    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11032  fi
11033fi
11034rm -f core conftest.err conftest.$ac_objext conftest.beam \
11035    conftest$ac_exeext conftest.$ac_ext
11036  if test -z "$lt_cv_aix_libpath_"; then
11037    lt_cv_aix_libpath_=/usr/lib:/lib
11038  fi
11039
11040fi
11041
11042  aix_libpath=$lt_cv_aix_libpath_
11043fi
11044
11045        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11046        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
11047      else
11048	if test ia64 = "$host_cpu"; then
11049	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11050	  allow_undefined_flag="-z nodefs"
11051	  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"
11052	else
11053	 # Determine the default libpath from the value encoded in an
11054	 # empty executable.
11055	 if test set = "${lt_cv_aix_libpath+set}"; then
11056  aix_libpath=$lt_cv_aix_libpath
11057else
11058  if test ${lt_cv_aix_libpath_+y}
11059then :
11060  printf %s "(cached) " >&6
11061else $as_nop
11062  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063/* end confdefs.h.  */
11064
11065int
11066main (void)
11067{
11068
11069  ;
11070  return 0;
11071}
11072_ACEOF
11073if ac_fn_c_try_link "$LINENO"
11074then :
11075
11076  lt_aix_libpath_sed='
11077      /Import File Strings/,/^$/ {
11078	  /^0/ {
11079	      s/^0  *\([^ ]*\) *$/\1/
11080	      p
11081	  }
11082      }'
11083  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11084  # Check for a 64-bit object if we didn't find anything.
11085  if test -z "$lt_cv_aix_libpath_"; then
11086    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11087  fi
11088fi
11089rm -f core conftest.err conftest.$ac_objext conftest.beam \
11090    conftest$ac_exeext conftest.$ac_ext
11091  if test -z "$lt_cv_aix_libpath_"; then
11092    lt_cv_aix_libpath_=/usr/lib:/lib
11093  fi
11094
11095fi
11096
11097  aix_libpath=$lt_cv_aix_libpath_
11098fi
11099
11100	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11101	  # Warning - without using the other run time loading flags,
11102	  # -berok will link without error, but may produce a broken library.
11103	  no_undefined_flag=' $wl-bernotok'
11104	  allow_undefined_flag=' $wl-berok'
11105	  if test yes = "$with_gnu_ld"; then
11106	    # We only use this code for GNU lds that support --whole-archive.
11107	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11108	  else
11109	    # Exported symbols can be pulled into shared objects from archives
11110	    whole_archive_flag_spec='$convenience'
11111	  fi
11112	  archive_cmds_need_lc=yes
11113	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11114	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11115	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11116	  if test svr4 != "$with_aix_soname"; then
11117	    # This is similar to how AIX traditionally builds its shared libraries.
11118	    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'
11119	  fi
11120	  if test aix != "$with_aix_soname"; then
11121	    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'
11122	  else
11123	    # used by -dlpreopen to get the symbols
11124	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11125	  fi
11126	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11127	fi
11128      fi
11129      ;;
11130
11131    amigaos*)
11132      case $host_cpu in
11133      powerpc)
11134            # see comment about AmigaOS4 .so support
11135            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11136            archive_expsym_cmds=''
11137        ;;
11138      m68k)
11139            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)'
11140            hardcode_libdir_flag_spec='-L$libdir'
11141            hardcode_minus_L=yes
11142        ;;
11143      esac
11144      ;;
11145
11146    bsdi[45]*)
11147      export_dynamic_flag_spec=-rdynamic
11148      ;;
11149
11150    cygwin* | mingw* | pw32* | cegcc*)
11151      # When not using gcc, we currently assume that we are using
11152      # Microsoft Visual C++.
11153      # hardcode_libdir_flag_spec is actually meaningless, as there is
11154      # no search path for DLLs.
11155      case $cc_basename in
11156      cl*)
11157	# Native MSVC
11158	hardcode_libdir_flag_spec=' '
11159	allow_undefined_flag=unsupported
11160	always_export_symbols=yes
11161	file_list_spec='@'
11162	# Tell ltmain to make .lib files, not .a files.
11163	libext=lib
11164	# Tell ltmain to make .dll files, not .so files.
11165	shrext_cmds=.dll
11166	# FIXME: Setting linknames here is a bad hack.
11167	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11168	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11169            cp "$export_symbols" "$output_objdir/$soname.def";
11170            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11171          else
11172            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11173          fi~
11174          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11175          linknames='
11176	# The linker will not automatically build a static lib if we build a DLL.
11177	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11178	enable_shared_with_static_runtimes=yes
11179	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11180	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11181	# Don't use ranlib
11182	old_postinstall_cmds='chmod 644 $oldlib'
11183	postlink_cmds='lt_outputfile="@OUTPUT@"~
11184          lt_tool_outputfile="@TOOL_OUTPUT@"~
11185          case $lt_outputfile in
11186            *.exe|*.EXE) ;;
11187            *)
11188              lt_outputfile=$lt_outputfile.exe
11189              lt_tool_outputfile=$lt_tool_outputfile.exe
11190              ;;
11191          esac~
11192          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11193            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11194            $RM "$lt_outputfile.manifest";
11195          fi'
11196	;;
11197      *)
11198	# Assume MSVC wrapper
11199	hardcode_libdir_flag_spec=' '
11200	allow_undefined_flag=unsupported
11201	# Tell ltmain to make .lib files, not .a files.
11202	libext=lib
11203	# Tell ltmain to make .dll files, not .so files.
11204	shrext_cmds=.dll
11205	# FIXME: Setting linknames here is a bad hack.
11206	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11207	# The linker will automatically build a .lib file if we build a DLL.
11208	old_archive_from_new_cmds='true'
11209	# FIXME: Should let the user specify the lib program.
11210	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11211	enable_shared_with_static_runtimes=yes
11212	;;
11213      esac
11214      ;;
11215
11216    darwin* | rhapsody*)
11217
11218
11219  archive_cmds_need_lc=no
11220  hardcode_direct=no
11221  hardcode_automatic=yes
11222  hardcode_shlibpath_var=unsupported
11223  if test yes = "$lt_cv_ld_force_load"; then
11224    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\"`'
11225
11226  else
11227    whole_archive_flag_spec=''
11228  fi
11229  link_all_deplibs=yes
11230  allow_undefined_flag=$_lt_dar_allow_undefined
11231  case $cc_basename in
11232     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11233     *) _lt_dar_can_shared=$GCC ;;
11234  esac
11235  if test yes = "$_lt_dar_can_shared"; then
11236    output_verbose_link_cmd=func_echo_all
11237    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11238    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11239    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"
11240    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"
11241
11242  else
11243  ld_shlibs=no
11244  fi
11245
11246      ;;
11247
11248    dgux*)
11249      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11250      hardcode_libdir_flag_spec='-L$libdir'
11251      hardcode_shlibpath_var=no
11252      ;;
11253
11254    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11255    # support.  Future versions do this automatically, but an explicit c++rt0.o
11256    # does not break anything, and helps significantly (at the cost of a little
11257    # extra space).
11258    freebsd2.2*)
11259      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11260      hardcode_libdir_flag_spec='-R$libdir'
11261      hardcode_direct=yes
11262      hardcode_shlibpath_var=no
11263      ;;
11264
11265    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11266    freebsd2.*)
11267      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11268      hardcode_direct=yes
11269      hardcode_minus_L=yes
11270      hardcode_shlibpath_var=no
11271      ;;
11272
11273    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11274    freebsd* | dragonfly*)
11275      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11276      hardcode_libdir_flag_spec='-R$libdir'
11277      hardcode_direct=yes
11278      hardcode_shlibpath_var=no
11279      ;;
11280
11281    hpux9*)
11282      if test yes = "$GCC"; then
11283	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'
11284      else
11285	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'
11286      fi
11287      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11288      hardcode_libdir_separator=:
11289      hardcode_direct=yes
11290
11291      # hardcode_minus_L: Not really in the search PATH,
11292      # but as the default location of the library.
11293      hardcode_minus_L=yes
11294      export_dynamic_flag_spec='$wl-E'
11295      ;;
11296
11297    hpux10*)
11298      if test yes,no = "$GCC,$with_gnu_ld"; then
11299	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11300      else
11301	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11302      fi
11303      if test no = "$with_gnu_ld"; then
11304	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11305	hardcode_libdir_separator=:
11306	hardcode_direct=yes
11307	hardcode_direct_absolute=yes
11308	export_dynamic_flag_spec='$wl-E'
11309	# hardcode_minus_L: Not really in the search PATH,
11310	# but as the default location of the library.
11311	hardcode_minus_L=yes
11312      fi
11313      ;;
11314
11315    hpux11*)
11316      if test yes,no = "$GCC,$with_gnu_ld"; then
11317	case $host_cpu in
11318	hppa*64*)
11319	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11320	  ;;
11321	ia64*)
11322	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11323	  ;;
11324	*)
11325	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11326	  ;;
11327	esac
11328      else
11329	case $host_cpu in
11330	hppa*64*)
11331	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11332	  ;;
11333	ia64*)
11334	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11335	  ;;
11336	*)
11337
11338	  # Older versions of the 11.00 compiler do not understand -b yet
11339	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11340	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11341printf %s "checking if $CC understands -b... " >&6; }
11342if test ${lt_cv_prog_compiler__b+y}
11343then :
11344  printf %s "(cached) " >&6
11345else $as_nop
11346  lt_cv_prog_compiler__b=no
11347   save_LDFLAGS=$LDFLAGS
11348   LDFLAGS="$LDFLAGS -b"
11349   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11350   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11351     # The linker can only warn and ignore the option if not recognized
11352     # So say no if there are warnings
11353     if test -s conftest.err; then
11354       # Append any errors to the config.log.
11355       cat conftest.err 1>&5
11356       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11357       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11358       if diff conftest.exp conftest.er2 >/dev/null; then
11359         lt_cv_prog_compiler__b=yes
11360       fi
11361     else
11362       lt_cv_prog_compiler__b=yes
11363     fi
11364   fi
11365   $RM -r conftest*
11366   LDFLAGS=$save_LDFLAGS
11367
11368fi
11369{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11370printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11371
11372if test yes = "$lt_cv_prog_compiler__b"; then
11373    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11374else
11375    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11376fi
11377
11378	  ;;
11379	esac
11380      fi
11381      if test no = "$with_gnu_ld"; then
11382	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11383	hardcode_libdir_separator=:
11384
11385	case $host_cpu in
11386	hppa*64*|ia64*)
11387	  hardcode_direct=no
11388	  hardcode_shlibpath_var=no
11389	  ;;
11390	*)
11391	  hardcode_direct=yes
11392	  hardcode_direct_absolute=yes
11393	  export_dynamic_flag_spec='$wl-E'
11394
11395	  # hardcode_minus_L: Not really in the search PATH,
11396	  # but as the default location of the library.
11397	  hardcode_minus_L=yes
11398	  ;;
11399	esac
11400      fi
11401      ;;
11402
11403    irix5* | irix6* | nonstopux*)
11404      if test yes = "$GCC"; then
11405	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'
11406	# Try to use the -exported_symbol ld option, if it does not
11407	# work, assume that -exports_file does not work either and
11408	# implicitly export all symbols.
11409	# This should be the same for all languages, so no per-tag cache variable.
11410	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11411printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11412if test ${lt_cv_irix_exported_symbol+y}
11413then :
11414  printf %s "(cached) " >&6
11415else $as_nop
11416  save_LDFLAGS=$LDFLAGS
11417	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11418	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419/* end confdefs.h.  */
11420int foo (void) { return 0; }
11421_ACEOF
11422if ac_fn_c_try_link "$LINENO"
11423then :
11424  lt_cv_irix_exported_symbol=yes
11425else $as_nop
11426  lt_cv_irix_exported_symbol=no
11427fi
11428rm -f core conftest.err conftest.$ac_objext conftest.beam \
11429    conftest$ac_exeext conftest.$ac_ext
11430           LDFLAGS=$save_LDFLAGS
11431fi
11432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11433printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11434	if test yes = "$lt_cv_irix_exported_symbol"; then
11435          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'
11436	fi
11437      else
11438	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'
11439	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'
11440      fi
11441      archive_cmds_need_lc='no'
11442      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11443      hardcode_libdir_separator=:
11444      inherit_rpath=yes
11445      link_all_deplibs=yes
11446      ;;
11447
11448    linux*)
11449      case $cc_basename in
11450      tcc*)
11451	# Fabrice Bellard et al's Tiny C Compiler
11452	ld_shlibs=yes
11453	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11454	;;
11455      esac
11456      ;;
11457
11458    netbsd*)
11459      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11460	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11461      else
11462	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11463      fi
11464      hardcode_libdir_flag_spec='-R$libdir'
11465      hardcode_direct=yes
11466      hardcode_shlibpath_var=no
11467      ;;
11468
11469    newsos6)
11470      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11471      hardcode_direct=yes
11472      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11473      hardcode_libdir_separator=:
11474      hardcode_shlibpath_var=no
11475      ;;
11476
11477    *nto* | *qnx*)
11478      ;;
11479
11480    openbsd* | bitrig*)
11481      if test -f /usr/libexec/ld.so; then
11482	hardcode_direct=yes
11483	hardcode_shlibpath_var=no
11484	hardcode_direct_absolute=yes
11485	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11486	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11487	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11488	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11489	  export_dynamic_flag_spec='$wl-E'
11490	else
11491	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11492	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11493	fi
11494      else
11495	ld_shlibs=no
11496      fi
11497      ;;
11498
11499    os2*)
11500      hardcode_libdir_flag_spec='-L$libdir'
11501      hardcode_minus_L=yes
11502      allow_undefined_flag=unsupported
11503      shrext_cmds=.dll
11504      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11505	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11506	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11507	$ECHO EXPORTS >> $output_objdir/$libname.def~
11508	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11509	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11510	emximp -o $lib $output_objdir/$libname.def'
11511      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11512	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11513	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11514	$ECHO EXPORTS >> $output_objdir/$libname.def~
11515	prefix_cmds="$SED"~
11516	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11517	  prefix_cmds="$prefix_cmds -e 1d";
11518	fi~
11519	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11520	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11521	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11522	emximp -o $lib $output_objdir/$libname.def'
11523      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11524      enable_shared_with_static_runtimes=yes
11525      ;;
11526
11527    osf3*)
11528      if test yes = "$GCC"; then
11529	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11530	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'
11531      else
11532	allow_undefined_flag=' -expect_unresolved \*'
11533	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'
11534      fi
11535      archive_cmds_need_lc='no'
11536      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11537      hardcode_libdir_separator=:
11538      ;;
11539
11540    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11541      if test yes = "$GCC"; then
11542	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11543	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'
11544	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11545      else
11546	allow_undefined_flag=' -expect_unresolved \*'
11547	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'
11548	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~
11549          $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'
11550
11551	# Both c and cxx compiler support -rpath directly
11552	hardcode_libdir_flag_spec='-rpath $libdir'
11553      fi
11554      archive_cmds_need_lc='no'
11555      hardcode_libdir_separator=:
11556      ;;
11557
11558    solaris*)
11559      no_undefined_flag=' -z defs'
11560      if test yes = "$GCC"; then
11561	wlarc='$wl'
11562	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11563	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11564          $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'
11565      else
11566	case `$CC -V 2>&1` in
11567	*"Compilers 5.0"*)
11568	  wlarc=''
11569	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11570	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11571            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11572	  ;;
11573	*)
11574	  wlarc='$wl'
11575	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11576	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11577            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11578	  ;;
11579	esac
11580      fi
11581      hardcode_libdir_flag_spec='-R$libdir'
11582      hardcode_shlibpath_var=no
11583      case $host_os in
11584      solaris2.[0-5] | solaris2.[0-5].*) ;;
11585      *)
11586	# The compiler driver will combine and reorder linker options,
11587	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11588	# but is careful enough not to reorder.
11589	# Supported since Solaris 2.6 (maybe 2.5.1?)
11590	if test yes = "$GCC"; then
11591	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11592	else
11593	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11594	fi
11595	;;
11596      esac
11597      link_all_deplibs=yes
11598      ;;
11599
11600    sunos4*)
11601      if test sequent = "$host_vendor"; then
11602	# Use $CC to link under sequent, because it throws in some extra .o
11603	# files that make .init and .fini sections work.
11604	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11605      else
11606	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11607      fi
11608      hardcode_libdir_flag_spec='-L$libdir'
11609      hardcode_direct=yes
11610      hardcode_minus_L=yes
11611      hardcode_shlibpath_var=no
11612      ;;
11613
11614    sysv4)
11615      case $host_vendor in
11616	sni)
11617	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11618	  hardcode_direct=yes # is this really true???
11619	;;
11620	siemens)
11621	  ## LD is ld it makes a PLAMLIB
11622	  ## CC just makes a GrossModule.
11623	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11624	  reload_cmds='$CC -r -o $output$reload_objs'
11625	  hardcode_direct=no
11626        ;;
11627	motorola)
11628	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11629	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11630	;;
11631      esac
11632      runpath_var='LD_RUN_PATH'
11633      hardcode_shlibpath_var=no
11634      ;;
11635
11636    sysv4.3*)
11637      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11638      hardcode_shlibpath_var=no
11639      export_dynamic_flag_spec='-Bexport'
11640      ;;
11641
11642    sysv4*MP*)
11643      if test -d /usr/nec; then
11644	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11645	hardcode_shlibpath_var=no
11646	runpath_var=LD_RUN_PATH
11647	hardcode_runpath_var=yes
11648	ld_shlibs=yes
11649      fi
11650      ;;
11651
11652    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11653      no_undefined_flag='$wl-z,text'
11654      archive_cmds_need_lc=no
11655      hardcode_shlibpath_var=no
11656      runpath_var='LD_RUN_PATH'
11657
11658      if test yes = "$GCC"; then
11659	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11660	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11661      else
11662	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11663	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11664      fi
11665      ;;
11666
11667    sysv5* | sco3.2v5* | sco5v6*)
11668      # Note: We CANNOT use -z defs as we might desire, because we do not
11669      # link with -lc, and that would cause any symbols used from libc to
11670      # always be unresolved, which means just about no library would
11671      # ever link correctly.  If we're not using GNU ld we use -z text
11672      # though, which does catch some bad symbols but isn't as heavy-handed
11673      # as -z defs.
11674      no_undefined_flag='$wl-z,text'
11675      allow_undefined_flag='$wl-z,nodefs'
11676      archive_cmds_need_lc=no
11677      hardcode_shlibpath_var=no
11678      hardcode_libdir_flag_spec='$wl-R,$libdir'
11679      hardcode_libdir_separator=':'
11680      link_all_deplibs=yes
11681      export_dynamic_flag_spec='$wl-Bexport'
11682      runpath_var='LD_RUN_PATH'
11683
11684      if test yes = "$GCC"; then
11685	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11686	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11687      else
11688	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11689	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11690      fi
11691      ;;
11692
11693    uts4*)
11694      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11695      hardcode_libdir_flag_spec='-L$libdir'
11696      hardcode_shlibpath_var=no
11697      ;;
11698
11699    *)
11700      ld_shlibs=no
11701      ;;
11702    esac
11703
11704    if test sni = "$host_vendor"; then
11705      case $host in
11706      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11707	export_dynamic_flag_spec='$wl-Blargedynsym'
11708	;;
11709      esac
11710    fi
11711  fi
11712
11713{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11714printf "%s\n" "$ld_shlibs" >&6; }
11715test no = "$ld_shlibs" && can_build_shared=no
11716
11717with_gnu_ld=$with_gnu_ld
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733#
11734# Do we need to explicitly link libc?
11735#
11736case "x$archive_cmds_need_lc" in
11737x|xyes)
11738  # Assume -lc should be added
11739  archive_cmds_need_lc=yes
11740
11741  if test yes,yes = "$GCC,$enable_shared"; then
11742    case $archive_cmds in
11743    *'~'*)
11744      # FIXME: we may have to deal with multi-command sequences.
11745      ;;
11746    '$CC '*)
11747      # Test whether the compiler implicitly links with -lc since on some
11748      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11749      # to ld, don't add -lc before -lgcc.
11750      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11751printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11752if test ${lt_cv_archive_cmds_need_lc+y}
11753then :
11754  printf %s "(cached) " >&6
11755else $as_nop
11756  $RM conftest*
11757	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11758
11759	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11760  (eval $ac_compile) 2>&5
11761  ac_status=$?
11762  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11763  test $ac_status = 0; } 2>conftest.err; then
11764	  soname=conftest
11765	  lib=conftest
11766	  libobjs=conftest.$ac_objext
11767	  deplibs=
11768	  wl=$lt_prog_compiler_wl
11769	  pic_flag=$lt_prog_compiler_pic
11770	  compiler_flags=-v
11771	  linker_flags=-v
11772	  verstring=
11773	  output_objdir=.
11774	  libname=conftest
11775	  lt_save_allow_undefined_flag=$allow_undefined_flag
11776	  allow_undefined_flag=
11777	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11778  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11779  ac_status=$?
11780  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11781  test $ac_status = 0; }
11782	  then
11783	    lt_cv_archive_cmds_need_lc=no
11784	  else
11785	    lt_cv_archive_cmds_need_lc=yes
11786	  fi
11787	  allow_undefined_flag=$lt_save_allow_undefined_flag
11788	else
11789	  cat conftest.err 1>&5
11790	fi
11791	$RM conftest*
11792
11793fi
11794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11795printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11796      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11797      ;;
11798    esac
11799  fi
11800  ;;
11801esac
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11955printf %s "checking dynamic linker characteristics... " >&6; }
11956
11957if test yes = "$GCC"; then
11958  case $host_os in
11959    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11960    *) lt_awk_arg='/^libraries:/' ;;
11961  esac
11962  case $host_os in
11963    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11964    *) lt_sed_strip_eq='s|=/|/|g' ;;
11965  esac
11966  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11967  case $lt_search_path_spec in
11968  *\;*)
11969    # if the path contains ";" then we assume it to be the separator
11970    # otherwise default to the standard path separator (i.e. ":") - it is
11971    # assumed that no part of a normal pathname contains ";" but that should
11972    # okay in the real world where ";" in dirpaths is itself problematic.
11973    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11974    ;;
11975  *)
11976    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11977    ;;
11978  esac
11979  # Ok, now we have the path, separated by spaces, we can step through it
11980  # and add multilib dir if necessary...
11981  lt_tmp_lt_search_path_spec=
11982  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11983  # ...but if some path component already ends with the multilib dir we assume
11984  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11985  case "$lt_multi_os_dir; $lt_search_path_spec " in
11986  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11987    lt_multi_os_dir=
11988    ;;
11989  esac
11990  for lt_sys_path in $lt_search_path_spec; do
11991    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11992      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11993    elif test -n "$lt_multi_os_dir"; then
11994      test -d "$lt_sys_path" && \
11995	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11996    fi
11997  done
11998  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11999BEGIN {RS = " "; FS = "/|\n";} {
12000  lt_foo = "";
12001  lt_count = 0;
12002  for (lt_i = NF; lt_i > 0; lt_i--) {
12003    if ($lt_i != "" && $lt_i != ".") {
12004      if ($lt_i == "..") {
12005        lt_count++;
12006      } else {
12007        if (lt_count == 0) {
12008          lt_foo = "/" $lt_i lt_foo;
12009        } else {
12010          lt_count--;
12011        }
12012      }
12013    }
12014  }
12015  if (lt_foo != "") { lt_freq[lt_foo]++; }
12016  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12017}'`
12018  # AWK program above erroneously prepends '/' to C:/dos/paths
12019  # for these hosts.
12020  case $host_os in
12021    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12022      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12023  esac
12024  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12025else
12026  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12027fi
12028library_names_spec=
12029libname_spec='lib$name'
12030soname_spec=
12031shrext_cmds=.so
12032postinstall_cmds=
12033postuninstall_cmds=
12034finish_cmds=
12035finish_eval=
12036shlibpath_var=
12037shlibpath_overrides_runpath=unknown
12038version_type=none
12039dynamic_linker="$host_os ld.so"
12040sys_lib_dlsearch_path_spec="/lib /usr/lib"
12041need_lib_prefix=unknown
12042hardcode_into_libs=no
12043
12044# when you set need_version to no, make sure it does not cause -set_version
12045# flags to be left without arguments
12046need_version=unknown
12047
12048
12049
12050case $host_os in
12051aix3*)
12052  version_type=linux # correct to gnu/linux during the next big refactor
12053  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12054  shlibpath_var=LIBPATH
12055
12056  # AIX 3 has no versioning support, so we append a major version to the name.
12057  soname_spec='$libname$release$shared_ext$major'
12058  ;;
12059
12060aix[4-9]*)
12061  version_type=linux # correct to gnu/linux during the next big refactor
12062  need_lib_prefix=no
12063  need_version=no
12064  hardcode_into_libs=yes
12065  if test ia64 = "$host_cpu"; then
12066    # AIX 5 supports IA64
12067    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12068    shlibpath_var=LD_LIBRARY_PATH
12069  else
12070    # With GCC up to 2.95.x, collect2 would create an import file
12071    # for dependence libraries.  The import file would start with
12072    # the line '#! .'.  This would cause the generated library to
12073    # depend on '.', always an invalid library.  This was fixed in
12074    # development snapshots of GCC prior to 3.0.
12075    case $host_os in
12076      aix4 | aix4.[01] | aix4.[01].*)
12077      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12078	   echo ' yes '
12079	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12080	:
12081      else
12082	can_build_shared=no
12083      fi
12084      ;;
12085    esac
12086    # Using Import Files as archive members, it is possible to support
12087    # filename-based versioning of shared library archives on AIX. While
12088    # this would work for both with and without runtime linking, it will
12089    # prevent static linking of such archives. So we do filename-based
12090    # shared library versioning with .so extension only, which is used
12091    # when both runtime linking and shared linking is enabled.
12092    # Unfortunately, runtime linking may impact performance, so we do
12093    # not want this to be the default eventually. Also, we use the
12094    # versioned .so libs for executables only if there is the -brtl
12095    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12096    # To allow for filename-based versioning support, we need to create
12097    # libNAME.so.V as an archive file, containing:
12098    # *) an Import File, referring to the versioned filename of the
12099    #    archive as well as the shared archive member, telling the
12100    #    bitwidth (32 or 64) of that shared object, and providing the
12101    #    list of exported symbols of that shared object, eventually
12102    #    decorated with the 'weak' keyword
12103    # *) the shared object with the F_LOADONLY flag set, to really avoid
12104    #    it being seen by the linker.
12105    # At run time we better use the real file rather than another symlink,
12106    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12107
12108    case $with_aix_soname,$aix_use_runtimelinking in
12109    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12110    # soname into executable. Probably we can add versioning support to
12111    # collect2, so additional links can be useful in future.
12112    aix,yes) # traditional libtool
12113      dynamic_linker='AIX unversionable lib.so'
12114      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12115      # instead of lib<name>.a to let people know that these are not
12116      # typical AIX shared libraries.
12117      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12118      ;;
12119    aix,no) # traditional AIX only
12120      dynamic_linker='AIX lib.a(lib.so.V)'
12121      # We preserve .a as extension for shared libraries through AIX4.2
12122      # and later when we are not doing run time linking.
12123      library_names_spec='$libname$release.a $libname.a'
12124      soname_spec='$libname$release$shared_ext$major'
12125      ;;
12126    svr4,*) # full svr4 only
12127      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12128      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12129      # We do not specify a path in Import Files, so LIBPATH fires.
12130      shlibpath_overrides_runpath=yes
12131      ;;
12132    *,yes) # both, prefer svr4
12133      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12134      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12135      # unpreferred sharedlib libNAME.a needs extra handling
12136      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"'
12137      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"'
12138      # We do not specify a path in Import Files, so LIBPATH fires.
12139      shlibpath_overrides_runpath=yes
12140      ;;
12141    *,no) # both, prefer aix
12142      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12143      library_names_spec='$libname$release.a $libname.a'
12144      soname_spec='$libname$release$shared_ext$major'
12145      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12146      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)'
12147      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"'
12148      ;;
12149    esac
12150    shlibpath_var=LIBPATH
12151  fi
12152  ;;
12153
12154amigaos*)
12155  case $host_cpu in
12156  powerpc)
12157    # Since July 2007 AmigaOS4 officially supports .so libraries.
12158    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12159    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12160    ;;
12161  m68k)
12162    library_names_spec='$libname.ixlibrary $libname.a'
12163    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12164    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'
12165    ;;
12166  esac
12167  ;;
12168
12169beos*)
12170  library_names_spec='$libname$shared_ext'
12171  dynamic_linker="$host_os ld.so"
12172  shlibpath_var=LIBRARY_PATH
12173  ;;
12174
12175bsdi[45]*)
12176  version_type=linux # correct to gnu/linux during the next big refactor
12177  need_version=no
12178  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12179  soname_spec='$libname$release$shared_ext$major'
12180  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12181  shlibpath_var=LD_LIBRARY_PATH
12182  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12183  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12184  # the default ld.so.conf also contains /usr/contrib/lib and
12185  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12186  # libtool to hard-code these into programs
12187  ;;
12188
12189cygwin* | mingw* | pw32* | cegcc*)
12190  version_type=windows
12191  shrext_cmds=.dll
12192  need_version=no
12193  need_lib_prefix=no
12194
12195  case $GCC,$cc_basename in
12196  yes,*)
12197    # gcc
12198    library_names_spec='$libname.dll.a'
12199    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12200    postinstall_cmds='base_file=`basename \$file`~
12201      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12202      dldir=$destdir/`dirname \$dlpath`~
12203      test -d \$dldir || mkdir -p \$dldir~
12204      $install_prog $dir/$dlname \$dldir/$dlname~
12205      chmod a+x \$dldir/$dlname~
12206      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12207        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12208      fi'
12209    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12210      dlpath=$dir/\$dldll~
12211       $RM \$dlpath'
12212    shlibpath_overrides_runpath=yes
12213
12214    case $host_os in
12215    cygwin*)
12216      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12217      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12218
12219      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12220      ;;
12221    mingw* | cegcc*)
12222      # MinGW DLLs use traditional 'lib' prefix
12223      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12224      ;;
12225    pw32*)
12226      # pw32 DLLs use 'pw' prefix rather than 'lib'
12227      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12228      ;;
12229    esac
12230    dynamic_linker='Win32 ld.exe'
12231    ;;
12232
12233  *,cl*)
12234    # Native MSVC
12235    libname_spec='$name'
12236    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12237    library_names_spec='$libname.dll.lib'
12238
12239    case $build_os in
12240    mingw*)
12241      sys_lib_search_path_spec=
12242      lt_save_ifs=$IFS
12243      IFS=';'
12244      for lt_path in $LIB
12245      do
12246        IFS=$lt_save_ifs
12247        # Let DOS variable expansion print the short 8.3 style file name.
12248        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12249        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12250      done
12251      IFS=$lt_save_ifs
12252      # Convert to MSYS style.
12253      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12254      ;;
12255    cygwin*)
12256      # Convert to unix form, then to dos form, then back to unix form
12257      # but this time dos style (no spaces!) so that the unix form looks
12258      # like /cygdrive/c/PROGRA~1:/cygdr...
12259      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12260      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12261      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12262      ;;
12263    *)
12264      sys_lib_search_path_spec=$LIB
12265      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12266        # It is most probably a Windows format PATH.
12267        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12268      else
12269        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12270      fi
12271      # FIXME: find the short name or the path components, as spaces are
12272      # common. (e.g. "Program Files" -> "PROGRA~1")
12273      ;;
12274    esac
12275
12276    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12277    postinstall_cmds='base_file=`basename \$file`~
12278      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12279      dldir=$destdir/`dirname \$dlpath`~
12280      test -d \$dldir || mkdir -p \$dldir~
12281      $install_prog $dir/$dlname \$dldir/$dlname'
12282    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12283      dlpath=$dir/\$dldll~
12284       $RM \$dlpath'
12285    shlibpath_overrides_runpath=yes
12286    dynamic_linker='Win32 link.exe'
12287    ;;
12288
12289  *)
12290    # Assume MSVC wrapper
12291    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12292    dynamic_linker='Win32 ld.exe'
12293    ;;
12294  esac
12295  # FIXME: first we should search . and the directory the executable is in
12296  shlibpath_var=PATH
12297  ;;
12298
12299darwin* | rhapsody*)
12300  dynamic_linker="$host_os dyld"
12301  version_type=darwin
12302  need_lib_prefix=no
12303  need_version=no
12304  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12305  soname_spec='$libname$release$major$shared_ext'
12306  shlibpath_overrides_runpath=yes
12307  shlibpath_var=DYLD_LIBRARY_PATH
12308  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12309
12310  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12311  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12312  ;;
12313
12314dgux*)
12315  version_type=linux # correct to gnu/linux during the next big refactor
12316  need_lib_prefix=no
12317  need_version=no
12318  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12319  soname_spec='$libname$release$shared_ext$major'
12320  shlibpath_var=LD_LIBRARY_PATH
12321  ;;
12322
12323freebsd* | dragonfly*)
12324  # DragonFly does not have aout.  When/if they implement a new
12325  # versioning mechanism, adjust this.
12326  if test -x /usr/bin/objformat; then
12327    objformat=`/usr/bin/objformat`
12328  else
12329    case $host_os in
12330    freebsd[23].*) objformat=aout ;;
12331    *) objformat=elf ;;
12332    esac
12333  fi
12334  version_type=freebsd-$objformat
12335  case $version_type in
12336    freebsd-elf*)
12337      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12338      soname_spec='$libname$release$shared_ext$major'
12339      need_version=no
12340      need_lib_prefix=no
12341      ;;
12342    freebsd-*)
12343      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12344      need_version=yes
12345      ;;
12346  esac
12347  shlibpath_var=LD_LIBRARY_PATH
12348  case $host_os in
12349  freebsd2.*)
12350    shlibpath_overrides_runpath=yes
12351    ;;
12352  freebsd3.[01]* | freebsdelf3.[01]*)
12353    shlibpath_overrides_runpath=yes
12354    hardcode_into_libs=yes
12355    ;;
12356  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12357  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12358    shlibpath_overrides_runpath=no
12359    hardcode_into_libs=yes
12360    ;;
12361  *) # from 4.6 on, and DragonFly
12362    shlibpath_overrides_runpath=yes
12363    hardcode_into_libs=yes
12364    ;;
12365  esac
12366  ;;
12367
12368haiku*)
12369  version_type=linux # correct to gnu/linux during the next big refactor
12370  need_lib_prefix=no
12371  need_version=no
12372  dynamic_linker="$host_os runtime_loader"
12373  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12374  soname_spec='$libname$release$shared_ext$major'
12375  shlibpath_var=LIBRARY_PATH
12376  shlibpath_overrides_runpath=no
12377  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12378  hardcode_into_libs=yes
12379  ;;
12380
12381hpux9* | hpux10* | hpux11*)
12382  # Give a soname corresponding to the major version so that dld.sl refuses to
12383  # link against other versions.
12384  version_type=sunos
12385  need_lib_prefix=no
12386  need_version=no
12387  case $host_cpu in
12388  ia64*)
12389    shrext_cmds='.so'
12390    hardcode_into_libs=yes
12391    dynamic_linker="$host_os dld.so"
12392    shlibpath_var=LD_LIBRARY_PATH
12393    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12394    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12395    soname_spec='$libname$release$shared_ext$major'
12396    if test 32 = "$HPUX_IA64_MODE"; then
12397      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12398      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12399    else
12400      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12401      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12402    fi
12403    ;;
12404  hppa*64*)
12405    shrext_cmds='.sl'
12406    hardcode_into_libs=yes
12407    dynamic_linker="$host_os dld.sl"
12408    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12409    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12410    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12411    soname_spec='$libname$release$shared_ext$major'
12412    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12413    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12414    ;;
12415  *)
12416    shrext_cmds='.sl'
12417    dynamic_linker="$host_os dld.sl"
12418    shlibpath_var=SHLIB_PATH
12419    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12420    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12421    soname_spec='$libname$release$shared_ext$major'
12422    ;;
12423  esac
12424  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12425  postinstall_cmds='chmod 555 $lib'
12426  # or fails outright, so override atomically:
12427  install_override_mode=555
12428  ;;
12429
12430interix[3-9]*)
12431  version_type=linux # correct to gnu/linux during the next big refactor
12432  need_lib_prefix=no
12433  need_version=no
12434  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12435  soname_spec='$libname$release$shared_ext$major'
12436  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12437  shlibpath_var=LD_LIBRARY_PATH
12438  shlibpath_overrides_runpath=no
12439  hardcode_into_libs=yes
12440  ;;
12441
12442irix5* | irix6* | nonstopux*)
12443  case $host_os in
12444    nonstopux*) version_type=nonstopux ;;
12445    *)
12446	if test yes = "$lt_cv_prog_gnu_ld"; then
12447		version_type=linux # correct to gnu/linux during the next big refactor
12448	else
12449		version_type=irix
12450	fi ;;
12451  esac
12452  need_lib_prefix=no
12453  need_version=no
12454  soname_spec='$libname$release$shared_ext$major'
12455  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12456  case $host_os in
12457  irix5* | nonstopux*)
12458    libsuff= shlibsuff=
12459    ;;
12460  *)
12461    case $LD in # libtool.m4 will add one of these switches to LD
12462    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12463      libsuff= shlibsuff= libmagic=32-bit;;
12464    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12465      libsuff=32 shlibsuff=N32 libmagic=N32;;
12466    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12467      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12468    *) libsuff= shlibsuff= libmagic=never-match;;
12469    esac
12470    ;;
12471  esac
12472  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12473  shlibpath_overrides_runpath=no
12474  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12475  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12476  hardcode_into_libs=yes
12477  ;;
12478
12479# No shared lib support for Linux oldld, aout, or coff.
12480linux*oldld* | linux*aout* | linux*coff*)
12481  dynamic_linker=no
12482  ;;
12483
12484linux*android*)
12485  version_type=none # Android doesn't support versioned libraries.
12486  need_lib_prefix=no
12487  need_version=no
12488  library_names_spec='$libname$release$shared_ext'
12489  soname_spec='$libname$release$shared_ext'
12490  finish_cmds=
12491  shlibpath_var=LD_LIBRARY_PATH
12492  shlibpath_overrides_runpath=yes
12493
12494  # This implies no fast_install, which is unacceptable.
12495  # Some rework will be needed to allow for fast_install
12496  # before this can be enabled.
12497  hardcode_into_libs=yes
12498
12499  dynamic_linker='Android linker'
12500  # Don't embed -rpath directories since the linker doesn't support them.
12501  hardcode_libdir_flag_spec='-L$libdir'
12502  ;;
12503
12504# This must be glibc/ELF.
12505linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12506  version_type=linux # correct to gnu/linux during the next big refactor
12507  need_lib_prefix=no
12508  need_version=no
12509  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12510  soname_spec='$libname$release$shared_ext$major'
12511  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12512  shlibpath_var=LD_LIBRARY_PATH
12513  shlibpath_overrides_runpath=no
12514
12515  # Some binutils ld are patched to set DT_RUNPATH
12516  if test ${lt_cv_shlibpath_overrides_runpath+y}
12517then :
12518  printf %s "(cached) " >&6
12519else $as_nop
12520  lt_cv_shlibpath_overrides_runpath=no
12521    save_LDFLAGS=$LDFLAGS
12522    save_libdir=$libdir
12523    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12524	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12525    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526/* end confdefs.h.  */
12527
12528int
12529main (void)
12530{
12531
12532  ;
12533  return 0;
12534}
12535_ACEOF
12536if ac_fn_c_try_link "$LINENO"
12537then :
12538  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12539then :
12540  lt_cv_shlibpath_overrides_runpath=yes
12541fi
12542fi
12543rm -f core conftest.err conftest.$ac_objext conftest.beam \
12544    conftest$ac_exeext conftest.$ac_ext
12545    LDFLAGS=$save_LDFLAGS
12546    libdir=$save_libdir
12547
12548fi
12549
12550  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12551
12552  # This implies no fast_install, which is unacceptable.
12553  # Some rework will be needed to allow for fast_install
12554  # before this can be enabled.
12555  hardcode_into_libs=yes
12556
12557  # Ideally, we could use ldconfig to report *all* directores which are
12558  # searched for libraries, however this is still not possible.  Aside from not
12559  # being certain /sbin/ldconfig is available, command
12560  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12561  # even though it is searched at run-time.  Try to do the best guess by
12562  # appending ld.so.conf contents (and includes) to the search path.
12563  if test -f /etc/ld.so.conf; then
12564    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' ' '`
12565    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12566  fi
12567
12568  # We used to test for /lib/ld.so.1 and disable shared libraries on
12569  # powerpc, because MkLinux only supported shared libraries with the
12570  # GNU dynamic linker.  Since this was broken with cross compilers,
12571  # most powerpc-linux boxes support dynamic linking these days and
12572  # people can always --disable-shared, the test was removed, and we
12573  # assume the GNU/Linux dynamic linker is in use.
12574  dynamic_linker='GNU/Linux ld.so'
12575  ;;
12576
12577netbsd*)
12578  version_type=sunos
12579  need_lib_prefix=no
12580  need_version=no
12581  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12582    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12583    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12584    dynamic_linker='NetBSD (a.out) ld.so'
12585  else
12586    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12587    soname_spec='$libname$release$shared_ext$major'
12588    dynamic_linker='NetBSD ld.elf_so'
12589  fi
12590  shlibpath_var=LD_LIBRARY_PATH
12591  shlibpath_overrides_runpath=yes
12592  hardcode_into_libs=yes
12593  ;;
12594
12595newsos6)
12596  version_type=linux # correct to gnu/linux during the next big refactor
12597  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12598  shlibpath_var=LD_LIBRARY_PATH
12599  shlibpath_overrides_runpath=yes
12600  ;;
12601
12602*nto* | *qnx*)
12603  version_type=qnx
12604  need_lib_prefix=no
12605  need_version=no
12606  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12607  soname_spec='$libname$release$shared_ext$major'
12608  shlibpath_var=LD_LIBRARY_PATH
12609  shlibpath_overrides_runpath=no
12610  hardcode_into_libs=yes
12611  dynamic_linker='ldqnx.so'
12612  ;;
12613
12614openbsd* | bitrig*)
12615  version_type=sunos
12616  sys_lib_dlsearch_path_spec=/usr/lib
12617  need_lib_prefix=no
12618  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12619    need_version=no
12620  else
12621    need_version=yes
12622  fi
12623  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12624  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12625  shlibpath_var=LD_LIBRARY_PATH
12626  shlibpath_overrides_runpath=yes
12627  ;;
12628
12629os2*)
12630  libname_spec='$name'
12631  version_type=windows
12632  shrext_cmds=.dll
12633  need_version=no
12634  need_lib_prefix=no
12635  # OS/2 can only load a DLL with a base name of 8 characters or less.
12636  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12637    v=$($ECHO $release$versuffix | tr -d .-);
12638    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12639    $ECHO $n$v`$shared_ext'
12640  library_names_spec='${libname}_dll.$libext'
12641  dynamic_linker='OS/2 ld.exe'
12642  shlibpath_var=BEGINLIBPATH
12643  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12644  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12645  postinstall_cmds='base_file=`basename \$file`~
12646    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12647    dldir=$destdir/`dirname \$dlpath`~
12648    test -d \$dldir || mkdir -p \$dldir~
12649    $install_prog $dir/$dlname \$dldir/$dlname~
12650    chmod a+x \$dldir/$dlname~
12651    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12652      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12653    fi'
12654  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12655    dlpath=$dir/\$dldll~
12656    $RM \$dlpath'
12657  ;;
12658
12659osf3* | osf4* | osf5*)
12660  version_type=osf
12661  need_lib_prefix=no
12662  need_version=no
12663  soname_spec='$libname$release$shared_ext$major'
12664  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12665  shlibpath_var=LD_LIBRARY_PATH
12666  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12667  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12668  ;;
12669
12670rdos*)
12671  dynamic_linker=no
12672  ;;
12673
12674solaris*)
12675  version_type=linux # correct to gnu/linux during the next big refactor
12676  need_lib_prefix=no
12677  need_version=no
12678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12679  soname_spec='$libname$release$shared_ext$major'
12680  shlibpath_var=LD_LIBRARY_PATH
12681  shlibpath_overrides_runpath=yes
12682  hardcode_into_libs=yes
12683  # ldd complains unless libraries are executable
12684  postinstall_cmds='chmod +x $lib'
12685  ;;
12686
12687sunos4*)
12688  version_type=sunos
12689  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12690  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12691  shlibpath_var=LD_LIBRARY_PATH
12692  shlibpath_overrides_runpath=yes
12693  if test yes = "$with_gnu_ld"; then
12694    need_lib_prefix=no
12695  fi
12696  need_version=yes
12697  ;;
12698
12699sysv4 | sysv4.3*)
12700  version_type=linux # correct to gnu/linux during the next big refactor
12701  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12702  soname_spec='$libname$release$shared_ext$major'
12703  shlibpath_var=LD_LIBRARY_PATH
12704  case $host_vendor in
12705    sni)
12706      shlibpath_overrides_runpath=no
12707      need_lib_prefix=no
12708      runpath_var=LD_RUN_PATH
12709      ;;
12710    siemens)
12711      need_lib_prefix=no
12712      ;;
12713    motorola)
12714      need_lib_prefix=no
12715      need_version=no
12716      shlibpath_overrides_runpath=no
12717      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12718      ;;
12719  esac
12720  ;;
12721
12722sysv4*MP*)
12723  if test -d /usr/nec; then
12724    version_type=linux # correct to gnu/linux during the next big refactor
12725    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12726    soname_spec='$libname$shared_ext.$major'
12727    shlibpath_var=LD_LIBRARY_PATH
12728  fi
12729  ;;
12730
12731sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12732  version_type=sco
12733  need_lib_prefix=no
12734  need_version=no
12735  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12736  soname_spec='$libname$release$shared_ext$major'
12737  shlibpath_var=LD_LIBRARY_PATH
12738  shlibpath_overrides_runpath=yes
12739  hardcode_into_libs=yes
12740  if test yes = "$with_gnu_ld"; then
12741    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12742  else
12743    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12744    case $host_os in
12745      sco3.2v5*)
12746        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12747	;;
12748    esac
12749  fi
12750  sys_lib_dlsearch_path_spec='/usr/lib'
12751  ;;
12752
12753tpf*)
12754  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12755  version_type=linux # correct to gnu/linux during the next big refactor
12756  need_lib_prefix=no
12757  need_version=no
12758  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12759  shlibpath_var=LD_LIBRARY_PATH
12760  shlibpath_overrides_runpath=no
12761  hardcode_into_libs=yes
12762  ;;
12763
12764uts4*)
12765  version_type=linux # correct to gnu/linux during the next big refactor
12766  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12767  soname_spec='$libname$release$shared_ext$major'
12768  shlibpath_var=LD_LIBRARY_PATH
12769  ;;
12770
12771*)
12772  dynamic_linker=no
12773  ;;
12774esac
12775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12776printf "%s\n" "$dynamic_linker" >&6; }
12777test no = "$dynamic_linker" && can_build_shared=no
12778
12779variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12780if test yes = "$GCC"; then
12781  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12782fi
12783
12784if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12785  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12786fi
12787
12788if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12789  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12790fi
12791
12792# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12793configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12794
12795# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12796func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12797
12798# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12799configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12898printf %s "checking how to hardcode library paths into programs... " >&6; }
12899hardcode_action=
12900if test -n "$hardcode_libdir_flag_spec" ||
12901   test -n "$runpath_var" ||
12902   test yes = "$hardcode_automatic"; then
12903
12904  # We can hardcode non-existent directories.
12905  if test no != "$hardcode_direct" &&
12906     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12907     # have to relink, otherwise we might link with an installed library
12908     # when we should be linking with a yet-to-be-installed one
12909     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12910     test no != "$hardcode_minus_L"; then
12911    # Linking always hardcodes the temporary library directory.
12912    hardcode_action=relink
12913  else
12914    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12915    hardcode_action=immediate
12916  fi
12917else
12918  # We cannot hardcode anything, or else we can only hardcode existing
12919  # directories.
12920  hardcode_action=unsupported
12921fi
12922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12923printf "%s\n" "$hardcode_action" >&6; }
12924
12925if test relink = "$hardcode_action" ||
12926   test yes = "$inherit_rpath"; then
12927  # Fast installation is not supported
12928  enable_fast_install=no
12929elif test yes = "$shlibpath_overrides_runpath" ||
12930     test no = "$enable_shared"; then
12931  # Fast installation is not necessary
12932  enable_fast_install=needless
12933fi
12934
12935
12936
12937
12938
12939
12940  if test yes != "$enable_dlopen"; then
12941  enable_dlopen=unknown
12942  enable_dlopen_self=unknown
12943  enable_dlopen_self_static=unknown
12944else
12945  lt_cv_dlopen=no
12946  lt_cv_dlopen_libs=
12947
12948  case $host_os in
12949  beos*)
12950    lt_cv_dlopen=load_add_on
12951    lt_cv_dlopen_libs=
12952    lt_cv_dlopen_self=yes
12953    ;;
12954
12955  mingw* | pw32* | cegcc*)
12956    lt_cv_dlopen=LoadLibrary
12957    lt_cv_dlopen_libs=
12958    ;;
12959
12960  cygwin*)
12961    lt_cv_dlopen=dlopen
12962    lt_cv_dlopen_libs=
12963    ;;
12964
12965  darwin*)
12966    # if libdl is installed we need to link against it
12967    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in " >&5
12968printf %s "checking for dlopen in ... " >&6; }
12969if test ${ac_cv_lib_dl_dlopen+y}
12970then :
12971  printf %s "(cached) " >&6
12972else $as_nop
12973  ac_check_lib_save_LIBS=$LIBS
12974LIBS="  $LIBS"
12975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976/* end confdefs.h.  */
12977
12978/* Override any GCC internal prototype to avoid an error.
12979   Use char because int might match the return type of a GCC
12980   builtin and then its argument prototype would still apply.  */
12981char dlopen ();
12982int
12983main (void)
12984{
12985return dlopen ();
12986  ;
12987  return 0;
12988}
12989_ACEOF
12990if ac_fn_c_try_link "$LINENO"
12991then :
12992  ac_cv_lib_dl_dlopen=yes
12993else $as_nop
12994  ac_cv_lib_dl_dlopen=no
12995fi
12996rm -f core conftest.err conftest.$ac_objext conftest.beam \
12997    conftest$ac_exeext conftest.$ac_ext
12998LIBS=$ac_check_lib_save_LIBS
12999fi
13000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13001printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13002if test "x$ac_cv_lib_dl_dlopen" = xyes
13003then :
13004  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=
13005else $as_nop
13006
13007    lt_cv_dlopen=dyld
13008    lt_cv_dlopen_libs=
13009    lt_cv_dlopen_self=yes
13010
13011fi
13012
13013    ;;
13014
13015  tpf*)
13016    # Don't try to run any link tests for TPF.  We know it's impossible
13017    # because TPF is a cross-compiler, and we know how we open DSOs.
13018    lt_cv_dlopen=dlopen
13019    lt_cv_dlopen_libs=
13020    lt_cv_dlopen_self=no
13021    ;;
13022
13023  *)
13024    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13025if test "x$ac_cv_func_shl_load" = xyes
13026then :
13027  lt_cv_dlopen=shl_load
13028else $as_nop
13029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in d" >&5
13030printf %s "checking for shl_load in d... " >&6; }
13031if test ${ac_cv_lib_dld_shl_load+y}
13032then :
13033  printf %s "(cached) " >&6
13034else $as_nop
13035  ac_check_lib_save_LIBS=$LIBS
13036LIBS="d  $LIBS"
13037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038/* end confdefs.h.  */
13039
13040/* Override any GCC internal prototype to avoid an error.
13041   Use char because int might match the return type of a GCC
13042   builtin and then its argument prototype would still apply.  */
13043char shl_load ();
13044int
13045main (void)
13046{
13047return shl_load ();
13048  ;
13049  return 0;
13050}
13051_ACEOF
13052if ac_fn_c_try_link "$LINENO"
13053then :
13054  ac_cv_lib_dld_shl_load=yes
13055else $as_nop
13056  ac_cv_lib_dld_shl_load=no
13057fi
13058rm -f core conftest.err conftest.$ac_objext conftest.beam \
13059    conftest$ac_exeext conftest.$ac_ext
13060LIBS=$ac_check_lib_save_LIBS
13061fi
13062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13063printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13064if test "x$ac_cv_lib_dld_shl_load" = xyes
13065then :
13066  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=d
13067else $as_nop
13068  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13069if test "x$ac_cv_func_dlopen" = xyes
13070then :
13071  lt_cv_dlopen=dlopen
13072else $as_nop
13073  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in " >&5
13074printf %s "checking for dlopen in ... " >&6; }
13075if test ${ac_cv_lib_dl_dlopen+y}
13076then :
13077  printf %s "(cached) " >&6
13078else $as_nop
13079  ac_check_lib_save_LIBS=$LIBS
13080LIBS="  $LIBS"
13081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h.  */
13083
13084/* Override any GCC internal prototype to avoid an error.
13085   Use char because int might match the return type of a GCC
13086   builtin and then its argument prototype would still apply.  */
13087char dlopen ();
13088int
13089main (void)
13090{
13091return dlopen ();
13092  ;
13093  return 0;
13094}
13095_ACEOF
13096if ac_fn_c_try_link "$LINENO"
13097then :
13098  ac_cv_lib_dl_dlopen=yes
13099else $as_nop
13100  ac_cv_lib_dl_dlopen=no
13101fi
13102rm -f core conftest.err conftest.$ac_objext conftest.beam \
13103    conftest$ac_exeext conftest.$ac_ext
13104LIBS=$ac_check_lib_save_LIBS
13105fi
13106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13107printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13108if test "x$ac_cv_lib_dl_dlopen" = xyes
13109then :
13110  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=
13111else $as_nop
13112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13113printf %s "checking for dlopen in -lsvld... " >&6; }
13114if test ${ac_cv_lib_svld_dlopen+y}
13115then :
13116  printf %s "(cached) " >&6
13117else $as_nop
13118  ac_check_lib_save_LIBS=$LIBS
13119LIBS="-lsvld  $LIBS"
13120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13121/* end confdefs.h.  */
13122
13123/* Override any GCC internal prototype to avoid an error.
13124   Use char because int might match the return type of a GCC
13125   builtin and then its argument prototype would still apply.  */
13126char dlopen ();
13127int
13128main (void)
13129{
13130return dlopen ();
13131  ;
13132  return 0;
13133}
13134_ACEOF
13135if ac_fn_c_try_link "$LINENO"
13136then :
13137  ac_cv_lib_svld_dlopen=yes
13138else $as_nop
13139  ac_cv_lib_svld_dlopen=no
13140fi
13141rm -f core conftest.err conftest.$ac_objext conftest.beam \
13142    conftest$ac_exeext conftest.$ac_ext
13143LIBS=$ac_check_lib_save_LIBS
13144fi
13145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13146printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13147if test "x$ac_cv_lib_svld_dlopen" = xyes
13148then :
13149  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13150else $as_nop
13151  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in d" >&5
13152printf %s "checking for dld_link in d... " >&6; }
13153if test ${ac_cv_lib_dld_dld_link+y}
13154then :
13155  printf %s "(cached) " >&6
13156else $as_nop
13157  ac_check_lib_save_LIBS=$LIBS
13158LIBS="d  $LIBS"
13159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160/* end confdefs.h.  */
13161
13162/* Override any GCC internal prototype to avoid an error.
13163   Use char because int might match the return type of a GCC
13164   builtin and then its argument prototype would still apply.  */
13165char dld_link ();
13166int
13167main (void)
13168{
13169return dld_link ();
13170  ;
13171  return 0;
13172}
13173_ACEOF
13174if ac_fn_c_try_link "$LINENO"
13175then :
13176  ac_cv_lib_dld_dld_link=yes
13177else $as_nop
13178  ac_cv_lib_dld_dld_link=no
13179fi
13180rm -f core conftest.err conftest.$ac_objext conftest.beam \
13181    conftest$ac_exeext conftest.$ac_ext
13182LIBS=$ac_check_lib_save_LIBS
13183fi
13184{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13185printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13186if test "x$ac_cv_lib_dld_dld_link" = xyes
13187then :
13188  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=d
13189fi
13190
13191
13192fi
13193
13194
13195fi
13196
13197
13198fi
13199
13200
13201fi
13202
13203
13204fi
13205
13206    ;;
13207  esac
13208
13209  if test no = "$lt_cv_dlopen"; then
13210    enable_dlopen=no
13211  else
13212    enable_dlopen=yes
13213  fi
13214
13215  case $lt_cv_dlopen in
13216  dlopen)
13217    save_CPPFLAGS=$CPPFLAGS
13218    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13219
13220    save_LDFLAGS=$LDFLAGS
13221    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13222
13223    save_LIBS=$LIBS
13224    LIBS="$lt_cv_dlopen_libs $LIBS"
13225
13226    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13227printf %s "checking whether a program can dlopen itself... " >&6; }
13228if test ${lt_cv_dlopen_self+y}
13229then :
13230  printf %s "(cached) " >&6
13231else $as_nop
13232  	  if test yes = "$cross_compiling"; then :
13233  lt_cv_dlopen_self=cross
13234else
13235  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13236  lt_status=$lt_dlunknown
13237  cat > conftest.$ac_ext <<_LT_EOF
13238#line $LINENO "configure"
13239#include "confdefs.h"
13240
13241#if HAVE_DLFCN_H
13242#include <dlfcn.h>
13243#endif
13244
13245#include <stdio.h>
13246
13247#ifdef RTLD_GLOBAL
13248#  define LT_DLGLOBAL		RTLD_GLOBAL
13249#else
13250#  ifdef DL_GLOBAL
13251#    define LT_DLGLOBAL		DL_GLOBAL
13252#  else
13253#    define LT_DLGLOBAL		0
13254#  endif
13255#endif
13256
13257/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13258   find out it does not work in some platform. */
13259#ifndef LT_DLLAZY_OR_NOW
13260#  ifdef RTLD_LAZY
13261#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13262#  else
13263#    ifdef DL_LAZY
13264#      define LT_DLLAZY_OR_NOW		DL_LAZY
13265#    else
13266#      ifdef RTLD_NOW
13267#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13268#      else
13269#        ifdef DL_NOW
13270#          define LT_DLLAZY_OR_NOW	DL_NOW
13271#        else
13272#          define LT_DLLAZY_OR_NOW	0
13273#        endif
13274#      endif
13275#    endif
13276#  endif
13277#endif
13278
13279/* When -fvisibility=hidden is used, assume the code has been annotated
13280   correspondingly for the symbols needed.  */
13281#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13282int fnord () __attribute__((visibility("default")));
13283#endif
13284
13285int fnord () { return 42; }
13286int main ()
13287{
13288  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13289  int status = $lt_dlunknown;
13290
13291  if (self)
13292    {
13293      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13294      else
13295        {
13296	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13297          else puts (dlerror ());
13298	}
13299      /* dlclose (self); */
13300    }
13301  else
13302    puts (dlerror ());
13303
13304  return status;
13305}
13306_LT_EOF
13307  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13308  (eval $ac_link) 2>&5
13309  ac_status=$?
13310  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13311  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13312    (./conftest; exit; ) >&5 2>/dev/null
13313    lt_status=$?
13314    case x$lt_status in
13315      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13316      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13317      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13318    esac
13319  else :
13320    # compilation failed
13321    lt_cv_dlopen_self=no
13322  fi
13323fi
13324rm -fr conftest*
13325
13326
13327fi
13328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13329printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13330
13331    if test yes = "$lt_cv_dlopen_self"; then
13332      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13333      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13334printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13335if test ${lt_cv_dlopen_self_static+y}
13336then :
13337  printf %s "(cached) " >&6
13338else $as_nop
13339  	  if test yes = "$cross_compiling"; then :
13340  lt_cv_dlopen_self_static=cross
13341else
13342  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13343  lt_status=$lt_dlunknown
13344  cat > conftest.$ac_ext <<_LT_EOF
13345#line $LINENO "configure"
13346#include "confdefs.h"
13347
13348#if HAVE_DLFCN_H
13349#include <dlfcn.h>
13350#endif
13351
13352#include <stdio.h>
13353
13354#ifdef RTLD_GLOBAL
13355#  define LT_DLGLOBAL		RTLD_GLOBAL
13356#else
13357#  ifdef DL_GLOBAL
13358#    define LT_DLGLOBAL		DL_GLOBAL
13359#  else
13360#    define LT_DLGLOBAL		0
13361#  endif
13362#endif
13363
13364/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13365   find out it does not work in some platform. */
13366#ifndef LT_DLLAZY_OR_NOW
13367#  ifdef RTLD_LAZY
13368#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13369#  else
13370#    ifdef DL_LAZY
13371#      define LT_DLLAZY_OR_NOW		DL_LAZY
13372#    else
13373#      ifdef RTLD_NOW
13374#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13375#      else
13376#        ifdef DL_NOW
13377#          define LT_DLLAZY_OR_NOW	DL_NOW
13378#        else
13379#          define LT_DLLAZY_OR_NOW	0
13380#        endif
13381#      endif
13382#    endif
13383#  endif
13384#endif
13385
13386/* When -fvisibility=hidden is used, assume the code has been annotated
13387   correspondingly for the symbols needed.  */
13388#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13389int fnord () __attribute__((visibility("default")));
13390#endif
13391
13392int fnord () { return 42; }
13393int main ()
13394{
13395  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13396  int status = $lt_dlunknown;
13397
13398  if (self)
13399    {
13400      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13401      else
13402        {
13403	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13404          else puts (dlerror ());
13405	}
13406      /* dlclose (self); */
13407    }
13408  else
13409    puts (dlerror ());
13410
13411  return status;
13412}
13413_LT_EOF
13414  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13415  (eval $ac_link) 2>&5
13416  ac_status=$?
13417  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13418  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13419    (./conftest; exit; ) >&5 2>/dev/null
13420    lt_status=$?
13421    case x$lt_status in
13422      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13423      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13424      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13425    esac
13426  else :
13427    # compilation failed
13428    lt_cv_dlopen_self_static=no
13429  fi
13430fi
13431rm -fr conftest*
13432
13433
13434fi
13435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13436printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13437    fi
13438
13439    CPPFLAGS=$save_CPPFLAGS
13440    LDFLAGS=$save_LDFLAGS
13441    LIBS=$save_LIBS
13442    ;;
13443  esac
13444
13445  case $lt_cv_dlopen_self in
13446  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13447  *) enable_dlopen_self=unknown ;;
13448  esac
13449
13450  case $lt_cv_dlopen_self_static in
13451  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13452  *) enable_dlopen_self_static=unknown ;;
13453  esac
13454fi
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472striplib=
13473old_striplib=
13474{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13475printf %s "checking whether stripping libraries is possible... " >&6; }
13476if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13477  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13478  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13479  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13480printf "%s\n" "yes" >&6; }
13481else
13482# FIXME - insert some real tests, host_os isn't really good enough
13483  case $host_os in
13484  darwin*)
13485    if test -n "$STRIP"; then
13486      striplib="$STRIP -x"
13487      old_striplib="$STRIP -S"
13488      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13489printf "%s\n" "yes" >&6; }
13490    else
13491      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492printf "%s\n" "no" >&6; }
13493    fi
13494    ;;
13495  *)
13496    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13497printf "%s\n" "no" >&6; }
13498    ;;
13499  esac
13500fi
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513  # Report what library types will actually be built
13514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13515printf %s "checking if libtool supports shared libraries... " >&6; }
13516  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13517printf "%s\n" "$can_build_shared" >&6; }
13518
13519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13520printf %s "checking whether to build shared libraries... " >&6; }
13521  test no = "$can_build_shared" && enable_shared=no
13522
13523  # On AIX, shared libraries and static libraries use the same namespace, and
13524  # are all built from PIC.
13525  case $host_os in
13526  aix3*)
13527    test yes = "$enable_shared" && enable_static=no
13528    if test -n "$RANLIB"; then
13529      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13530      postinstall_cmds='$RANLIB $lib'
13531    fi
13532    ;;
13533
13534  aix[4-9]*)
13535    if test ia64 != "$host_cpu"; then
13536      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13537      yes,aix,yes) ;;			# shared object as lib.so file only
13538      yes,svr4,*) ;;			# shared object as lib.so archive member only
13539      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13540      esac
13541    fi
13542    ;;
13543  esac
13544  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13545printf "%s\n" "$enable_shared" >&6; }
13546
13547  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13548printf %s "checking whether to build static libraries... " >&6; }
13549  # Make sure either enable_shared or enable_static is yes.
13550  test yes = "$enable_shared" || enable_static=yes
13551  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13552printf "%s\n" "$enable_static" >&6; }
13553
13554
13555
13556
13557fi
13558ac_ext=c
13559ac_cpp='$CPP $CPPFLAGS'
13560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13562ac_compiler_gnu=$ac_cv_c_compiler_gnu
13563
13564CC=$lt_save_CC
13565
13566      if test -n "$CXX" && ( test no != "$CXX" &&
13567    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13568    (test g++ != "$CXX"))); then
13569  ac_ext=cpp
13570ac_cpp='$CXXCPP $CPPFLAGS'
13571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13575printf %s "checking how to run the C++ preprocessor... " >&6; }
13576if test -z "$CXXCPP"; then
13577  if test ${ac_cv_prog_CXXCPP+y}
13578then :
13579  printf %s "(cached) " >&6
13580else $as_nop
13581      # Double quotes because $CXX needs to be expanded
13582    for CXXCPP in "$CXX -E" cpp /lib/cpp
13583    do
13584      ac_preproc_ok=false
13585for ac_cxx_preproc_warn_flag in '' yes
13586do
13587  # Use a header file that comes with gcc, so configuring glibc
13588  # with a fresh cross-compiler works.
13589  # On the NeXT, cc -E runs the code through the compiler's parser,
13590  # not just through cpp. "Syntax error" is here to catch this case.
13591  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592/* end confdefs.h.  */
13593#include <limits.h>
13594		     Syntax error
13595_ACEOF
13596if ac_fn_cxx_try_cpp "$LINENO"
13597then :
13598
13599else $as_nop
13600  # Broken: fails on valid input.
13601continue
13602fi
13603rm -f conftest.err conftest.i conftest.$ac_ext
13604
13605  # OK, works on sane cases.  Now check whether nonexistent headers
13606  # can be detected and how.
13607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608/* end confdefs.h.  */
13609#include <ac_nonexistent.h>
13610_ACEOF
13611if ac_fn_cxx_try_cpp "$LINENO"
13612then :
13613  # Broken: success on invalid input.
13614continue
13615else $as_nop
13616  # Passes both tests.
13617ac_preproc_ok=:
13618break
13619fi
13620rm -f conftest.err conftest.i conftest.$ac_ext
13621
13622done
13623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13624rm -f conftest.i conftest.err conftest.$ac_ext
13625if $ac_preproc_ok
13626then :
13627  break
13628fi
13629
13630    done
13631    ac_cv_prog_CXXCPP=$CXXCPP
13632
13633fi
13634  CXXCPP=$ac_cv_prog_CXXCPP
13635else
13636  ac_cv_prog_CXXCPP=$CXXCPP
13637fi
13638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13639printf "%s\n" "$CXXCPP" >&6; }
13640ac_preproc_ok=false
13641for ac_cxx_preproc_warn_flag in '' yes
13642do
13643  # Use a header file that comes with gcc, so configuring glibc
13644  # with a fresh cross-compiler works.
13645  # On the NeXT, cc -E runs the code through the compiler's parser,
13646  # not just through cpp. "Syntax error" is here to catch this case.
13647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13648/* end confdefs.h.  */
13649#include <limits.h>
13650		     Syntax error
13651_ACEOF
13652if ac_fn_cxx_try_cpp "$LINENO"
13653then :
13654
13655else $as_nop
13656  # Broken: fails on valid input.
13657continue
13658fi
13659rm -f conftest.err conftest.i conftest.$ac_ext
13660
13661  # OK, works on sane cases.  Now check whether nonexistent headers
13662  # can be detected and how.
13663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664/* end confdefs.h.  */
13665#include <ac_nonexistent.h>
13666_ACEOF
13667if ac_fn_cxx_try_cpp "$LINENO"
13668then :
13669  # Broken: success on invalid input.
13670continue
13671else $as_nop
13672  # Passes both tests.
13673ac_preproc_ok=:
13674break
13675fi
13676rm -f conftest.err conftest.i conftest.$ac_ext
13677
13678done
13679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13680rm -f conftest.i conftest.err conftest.$ac_ext
13681if $ac_preproc_ok
13682then :
13683
13684else $as_nop
13685  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13686printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13687as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13688See \`config.log' for more details" "$LINENO" 5; }
13689fi
13690
13691ac_ext=c
13692ac_cpp='$CPP $CPPFLAGS'
13693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13695ac_compiler_gnu=$ac_cv_c_compiler_gnu
13696
13697else
13698  _lt_caught_CXX_error=yes
13699fi
13700
13701ac_ext=cpp
13702ac_cpp='$CXXCPP $CPPFLAGS'
13703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13706
13707archive_cmds_need_lc_CXX=no
13708allow_undefined_flag_CXX=
13709always_export_symbols_CXX=no
13710archive_expsym_cmds_CXX=
13711compiler_needs_object_CXX=no
13712export_dynamic_flag_spec_CXX=
13713hardcode_direct_CXX=no
13714hardcode_direct_absolute_CXX=no
13715hardcode_libdir_flag_spec_CXX=
13716hardcode_libdir_separator_CXX=
13717hardcode_minus_L_CXX=no
13718hardcode_shlibpath_var_CXX=unsupported
13719hardcode_automatic_CXX=no
13720inherit_rpath_CXX=no
13721module_cmds_CXX=
13722module_expsym_cmds_CXX=
13723link_all_deplibs_CXX=unknown
13724old_archive_cmds_CXX=$old_archive_cmds
13725reload_flag_CXX=$reload_flag
13726reload_cmds_CXX=$reload_cmds
13727no_undefined_flag_CXX=
13728whole_archive_flag_spec_CXX=
13729enable_shared_with_static_runtimes_CXX=no
13730
13731# Source file extension for C++ test sources.
13732ac_ext=cpp
13733
13734# Object file extension for compiled C++ test sources.
13735objext=o
13736objext_CXX=$objext
13737
13738# No sense in running all these tests if we already determined that
13739# the CXX compiler isn't working.  Some variables (like enable_shared)
13740# are currently assumed to apply to all compilers on this platform,
13741# and will be corrupted by setting them based on a non-working compiler.
13742if test yes != "$_lt_caught_CXX_error"; then
13743  # Code to be used in simple compile tests
13744  lt_simple_compile_test_code="int some_variable = 0;"
13745
13746  # Code to be used in simple link tests
13747  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13748
13749  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13750
13751
13752
13753
13754
13755
13756# If no C compiler was specified, use CC.
13757LTCC=${LTCC-"$CC"}
13758
13759# If no C compiler flags were specified, use CFLAGS.
13760LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13761
13762# Allow CC to be a program name with arguments.
13763compiler=$CC
13764
13765
13766  # save warnings/boilerplate of simple test code
13767  ac_outfile=conftest.$ac_objext
13768echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13769eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13770_lt_compiler_boilerplate=`cat conftest.err`
13771$RM conftest*
13772
13773  ac_outfile=conftest.$ac_objext
13774echo "$lt_simple_link_test_code" >conftest.$ac_ext
13775eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13776_lt_linker_boilerplate=`cat conftest.err`
13777$RM -r conftest*
13778
13779
13780  # Allow CC to be a program name with arguments.
13781  lt_save_CC=$CC
13782  lt_save_CFLAGS=$CFLAGS
13783  lt_save_LD=$LD
13784  lt_save_GCC=$GCC
13785  GCC=$GXX
13786  lt_save_with_gnu_ld=$with_gnu_ld
13787  lt_save_path_LD=$lt_cv_path_LD
13788  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13789    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13790  else
13791    $as_unset lt_cv_prog_gnu_ld
13792  fi
13793  if test -n "${lt_cv_path_LDCXX+set}"; then
13794    lt_cv_path_LD=$lt_cv_path_LDCXX
13795  else
13796    $as_unset lt_cv_path_LD
13797  fi
13798  test -z "${LDCXX+set}" || LD=$LDCXX
13799  CC=${CXX-"c++"}
13800  CFLAGS=$CXXFLAGS
13801  compiler=$CC
13802  compiler_CXX=$CC
13803  func_cc_basename $compiler
13804cc_basename=$func_cc_basename_result
13805
13806
13807  if test -n "$compiler"; then
13808    # We don't want -fno-exception when compiling C++ code, so set the
13809    # no_builtin_flag separately
13810    if test yes = "$GXX"; then
13811      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13812    else
13813      lt_prog_compiler_no_builtin_flag_CXX=
13814    fi
13815
13816    if test yes = "$GXX"; then
13817      # Set up default GNU C++ configuration
13818
13819
13820
13821# Check whether --with-gnu-ld was given.
13822if test ${with_gnu_ld+y}
13823then :
13824  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13825else $as_nop
13826  with_gnu_ld=no
13827fi
13828
13829ac_prog=ld
13830if test yes = "$GCC"; then
13831  # Check if gcc -print-prog-name=ld gives a path.
13832  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13833printf %s "checking for ld used by $CC... " >&6; }
13834  case $host in
13835  *-*-mingw*)
13836    # gcc leaves a trailing carriage return, which upsets mingw
13837    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13838  *)
13839    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13840  esac
13841  case $ac_prog in
13842    # Accept absolute paths.
13843    [\\/]* | ?:[\\/]*)
13844      re_direlt='/[^/][^/]*/\.\./'
13845      # Canonicalize the pathname of ld
13846      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13847      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13848	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13849      done
13850      test -z "$LD" && LD=$ac_prog
13851      ;;
13852  "")
13853    # If it fails, then pretend we aren't using GCC.
13854    ac_prog=ld
13855    ;;
13856  *)
13857    # If it is relative, then search for the first ld in PATH.
13858    with_gnu_ld=unknown
13859    ;;
13860  esac
13861elif test yes = "$with_gnu_ld"; then
13862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13863printf %s "checking for GNU ld... " >&6; }
13864else
13865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13866printf %s "checking for non-GNU ld... " >&6; }
13867fi
13868if test ${lt_cv_path_LD+y}
13869then :
13870  printf %s "(cached) " >&6
13871else $as_nop
13872  if test -z "$LD"; then
13873  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13874  for ac_dir in $PATH; do
13875    IFS=$lt_save_ifs
13876    test -z "$ac_dir" && ac_dir=.
13877    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13878      lt_cv_path_LD=$ac_dir/$ac_prog
13879      # Check to see if the program is GNU ld.  I'd rather use --version,
13880      # but apparently some variants of GNU ld only accept -v.
13881      # Break only if it was the GNU/non-GNU ld that we prefer.
13882      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13883      *GNU* | *'with BFD'*)
13884	test no != "$with_gnu_ld" && break
13885	;;
13886      *)
13887	test yes != "$with_gnu_ld" && break
13888	;;
13889      esac
13890    fi
13891  done
13892  IFS=$lt_save_ifs
13893else
13894  lt_cv_path_LD=$LD # Let the user override the test with a path.
13895fi
13896fi
13897
13898LD=$lt_cv_path_LD
13899if test -n "$LD"; then
13900  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13901printf "%s\n" "$LD" >&6; }
13902else
13903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13904printf "%s\n" "no" >&6; }
13905fi
13906test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13908printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
13909if test ${lt_cv_prog_gnu_ld+y}
13910then :
13911  printf %s "(cached) " >&6
13912else $as_nop
13913  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13914case `$LD -v 2>&1 </dev/null` in
13915*GNU* | *'with BFD'*)
13916  lt_cv_prog_gnu_ld=yes
13917  ;;
13918*)
13919  lt_cv_prog_gnu_ld=no
13920  ;;
13921esac
13922fi
13923{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13924printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
13925with_gnu_ld=$lt_cv_prog_gnu_ld
13926
13927
13928
13929
13930
13931
13932
13933      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13934      # archiving commands below assume that GNU ld is being used.
13935      if test yes = "$with_gnu_ld"; then
13936        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13937        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'
13938
13939        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13940        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13941
13942        # If archive_cmds runs LD, not CC, wlarc should be empty
13943        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13944        #     investigate it a little bit more. (MM)
13945        wlarc='$wl'
13946
13947        # ancient GNU ld didn't support --whole-archive et. al.
13948        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13949	  $GREP 'no-whole-archive' > /dev/null; then
13950          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13951        else
13952          whole_archive_flag_spec_CXX=
13953        fi
13954      else
13955        with_gnu_ld=no
13956        wlarc=
13957
13958        # A generic and very simple default shared library creation
13959        # command for GNU C++ for the case where it uses the native
13960        # linker, instead of GNU ld.  If possible, this setting should
13961        # overridden to take advantage of the native linker features on
13962        # the platform it is being used on.
13963        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13964      fi
13965
13966      # Commands to make compiler produce verbose output that lists
13967      # what "hidden" libraries, object files and flags are used when
13968      # linking a shared library.
13969      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13970
13971    else
13972      GXX=no
13973      with_gnu_ld=no
13974      wlarc=
13975    fi
13976
13977    # PORTME: fill in a description of your system's C++ link characteristics
13978    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13979printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13980    ld_shlibs_CXX=yes
13981    case $host_os in
13982      aix3*)
13983        # FIXME: insert proper C++ library support
13984        ld_shlibs_CXX=no
13985        ;;
13986      aix[4-9]*)
13987        if test ia64 = "$host_cpu"; then
13988          # On IA64, the linker does run time linking by default, so we don't
13989          # have to do anything special.
13990          aix_use_runtimelinking=no
13991          exp_sym_flag='-Bexport'
13992          no_entry_flag=
13993        else
13994          aix_use_runtimelinking=no
13995
13996          # Test if we are trying to use run time linking or normal
13997          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13998          # have runtime linking enabled, and use it for executables.
13999          # For shared libraries, we enable/disable runtime linking
14000          # depending on the kind of the shared library created -
14001          # when "with_aix_soname,aix_use_runtimelinking" is:
14002          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
14003          # "aix,yes"  lib.so          shared, rtl:yes, for executables
14004          #            lib.a           static archive
14005          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
14006          #            lib.a(lib.so.V) shared, rtl:no,  for executables
14007          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
14008          #            lib.a(lib.so.V) shared, rtl:no
14009          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
14010          #            lib.a           static archive
14011          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14012	    for ld_flag in $LDFLAGS; do
14013	      case $ld_flag in
14014	      *-brtl*)
14015	        aix_use_runtimelinking=yes
14016	        break
14017	        ;;
14018	      esac
14019	    done
14020	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
14021	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
14022	      # so we don't have lib.a shared libs to link our executables.
14023	      # We have to force runtime linking in this case.
14024	      aix_use_runtimelinking=yes
14025	      LDFLAGS="$LDFLAGS -Wl,-brtl"
14026	    fi
14027	    ;;
14028          esac
14029
14030          exp_sym_flag='-bexport'
14031          no_entry_flag='-bnoentry'
14032        fi
14033
14034        # When large executables or shared objects are built, AIX ld can
14035        # have problems creating the table of contents.  If linking a library
14036        # or program results in "error TOC overflow" add -mminimal-toc to
14037        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14038        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14039
14040        archive_cmds_CXX=''
14041        hardcode_direct_CXX=yes
14042        hardcode_direct_absolute_CXX=yes
14043        hardcode_libdir_separator_CXX=':'
14044        link_all_deplibs_CXX=yes
14045        file_list_spec_CXX='$wl-f,'
14046        case $with_aix_soname,$aix_use_runtimelinking in
14047        aix,*) ;;	# no import file
14048        svr4,* | *,yes) # use import file
14049          # The Import File defines what to hardcode.
14050          hardcode_direct_CXX=no
14051          hardcode_direct_absolute_CXX=no
14052          ;;
14053        esac
14054
14055        if test yes = "$GXX"; then
14056          case $host_os in aix4.[012]|aix4.[012].*)
14057          # We only want to do this on AIX 4.2 and lower, the check
14058          # below for broken collect2 doesn't work under 4.3+
14059	  collect2name=`$CC -print-prog-name=collect2`
14060	  if test -f "$collect2name" &&
14061	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14062	  then
14063	    # We have reworked collect2
14064	    :
14065	  else
14066	    # We have old collect2
14067	    hardcode_direct_CXX=unsupported
14068	    # It fails to find uninstalled libraries when the uninstalled
14069	    # path is not listed in the libpath.  Setting hardcode_minus_L
14070	    # to unsupported forces relinking
14071	    hardcode_minus_L_CXX=yes
14072	    hardcode_libdir_flag_spec_CXX='-L$libdir'
14073	    hardcode_libdir_separator_CXX=
14074	  fi
14075          esac
14076          shared_flag='-shared'
14077	  if test yes = "$aix_use_runtimelinking"; then
14078	    shared_flag=$shared_flag' $wl-G'
14079	  fi
14080	  # Need to ensure runtime linking is disabled for the traditional
14081	  # shared library, or the linker may eventually find shared libraries
14082	  # /with/ Import File - we do not want to mix them.
14083	  shared_flag_aix='-shared'
14084	  shared_flag_svr4='-shared $wl-G'
14085        else
14086          # not using gcc
14087          if test ia64 = "$host_cpu"; then
14088	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14089	  # chokes on -Wl,-G. The following line is correct:
14090	  shared_flag='-G'
14091          else
14092	    if test yes = "$aix_use_runtimelinking"; then
14093	      shared_flag='$wl-G'
14094	    else
14095	      shared_flag='$wl-bM:SRE'
14096	    fi
14097	    shared_flag_aix='$wl-bM:SRE'
14098	    shared_flag_svr4='$wl-G'
14099          fi
14100        fi
14101
14102        export_dynamic_flag_spec_CXX='$wl-bexpall'
14103        # It seems that -bexpall does not export symbols beginning with
14104        # underscore (_), so it is better to generate a list of symbols to
14105	# export.
14106        always_export_symbols_CXX=yes
14107	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
14108          # Warning - without using the other runtime loading flags (-brtl),
14109          # -berok will link without error, but may produce a broken library.
14110          # The "-G" linker flag allows undefined symbols.
14111          no_undefined_flag_CXX='-bernotok'
14112          # Determine the default libpath from the value encoded in an empty
14113          # executable.
14114          if test set = "${lt_cv_aix_libpath+set}"; then
14115  aix_libpath=$lt_cv_aix_libpath
14116else
14117  if test ${lt_cv_aix_libpath__CXX+y}
14118then :
14119  printf %s "(cached) " >&6
14120else $as_nop
14121  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122/* end confdefs.h.  */
14123
14124int
14125main (void)
14126{
14127
14128  ;
14129  return 0;
14130}
14131_ACEOF
14132if ac_fn_cxx_try_link "$LINENO"
14133then :
14134
14135  lt_aix_libpath_sed='
14136      /Import File Strings/,/^$/ {
14137	  /^0/ {
14138	      s/^0  *\([^ ]*\) *$/\1/
14139	      p
14140	  }
14141      }'
14142  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14143  # Check for a 64-bit object if we didn't find anything.
14144  if test -z "$lt_cv_aix_libpath__CXX"; then
14145    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14146  fi
14147fi
14148rm -f core conftest.err conftest.$ac_objext conftest.beam \
14149    conftest$ac_exeext conftest.$ac_ext
14150  if test -z "$lt_cv_aix_libpath__CXX"; then
14151    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14152  fi
14153
14154fi
14155
14156  aix_libpath=$lt_cv_aix_libpath__CXX
14157fi
14158
14159          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14160
14161          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
14162        else
14163          if test ia64 = "$host_cpu"; then
14164	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
14165	    allow_undefined_flag_CXX="-z nodefs"
14166	    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"
14167          else
14168	    # Determine the default libpath from the value encoded in an
14169	    # empty executable.
14170	    if test set = "${lt_cv_aix_libpath+set}"; then
14171  aix_libpath=$lt_cv_aix_libpath
14172else
14173  if test ${lt_cv_aix_libpath__CXX+y}
14174then :
14175  printf %s "(cached) " >&6
14176else $as_nop
14177  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178/* end confdefs.h.  */
14179
14180int
14181main (void)
14182{
14183
14184  ;
14185  return 0;
14186}
14187_ACEOF
14188if ac_fn_cxx_try_link "$LINENO"
14189then :
14190
14191  lt_aix_libpath_sed='
14192      /Import File Strings/,/^$/ {
14193	  /^0/ {
14194	      s/^0  *\([^ ]*\) *$/\1/
14195	      p
14196	  }
14197      }'
14198  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14199  # Check for a 64-bit object if we didn't find anything.
14200  if test -z "$lt_cv_aix_libpath__CXX"; then
14201    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14202  fi
14203fi
14204rm -f core conftest.err conftest.$ac_objext conftest.beam \
14205    conftest$ac_exeext conftest.$ac_ext
14206  if test -z "$lt_cv_aix_libpath__CXX"; then
14207    lt_cv_aix_libpath__CXX=/usr/lib:/lib
14208  fi
14209
14210fi
14211
14212  aix_libpath=$lt_cv_aix_libpath__CXX
14213fi
14214
14215	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
14216	    # Warning - without using the other run time loading flags,
14217	    # -berok will link without error, but may produce a broken library.
14218	    no_undefined_flag_CXX=' $wl-bernotok'
14219	    allow_undefined_flag_CXX=' $wl-berok'
14220	    if test yes = "$with_gnu_ld"; then
14221	      # We only use this code for GNU lds that support --whole-archive.
14222	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14223	    else
14224	      # Exported symbols can be pulled into shared objects from archives
14225	      whole_archive_flag_spec_CXX='$convenience'
14226	    fi
14227	    archive_cmds_need_lc_CXX=yes
14228	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14229	    # -brtl affects multiple linker settings, -berok does not and is overridden later
14230	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14231	    if test svr4 != "$with_aix_soname"; then
14232	      # This is similar to how AIX traditionally builds its shared
14233	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
14234	      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'
14235	    fi
14236	    if test aix != "$with_aix_soname"; then
14237	      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'
14238	    else
14239	      # used by -dlpreopen to get the symbols
14240	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14241	    fi
14242	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
14243          fi
14244        fi
14245        ;;
14246
14247      beos*)
14248	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14249	  allow_undefined_flag_CXX=unsupported
14250	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14251	  # support --undefined.  This deserves some investigation.  FIXME
14252	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14253	else
14254	  ld_shlibs_CXX=no
14255	fi
14256	;;
14257
14258      chorus*)
14259        case $cc_basename in
14260          *)
14261	  # FIXME: insert proper C++ library support
14262	  ld_shlibs_CXX=no
14263	  ;;
14264        esac
14265        ;;
14266
14267      cygwin* | mingw* | pw32* | cegcc*)
14268	case $GXX,$cc_basename in
14269	,cl* | no,cl*)
14270	  # Native MSVC
14271	  # hardcode_libdir_flag_spec is actually meaningless, as there is
14272	  # no search path for DLLs.
14273	  hardcode_libdir_flag_spec_CXX=' '
14274	  allow_undefined_flag_CXX=unsupported
14275	  always_export_symbols_CXX=yes
14276	  file_list_spec_CXX='@'
14277	  # Tell ltmain to make .lib files, not .a files.
14278	  libext=lib
14279	  # Tell ltmain to make .dll files, not .so files.
14280	  shrext_cmds=.dll
14281	  # FIXME: Setting linknames here is a bad hack.
14282	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14283	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14284              cp "$export_symbols" "$output_objdir/$soname.def";
14285              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14286            else
14287              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14288            fi~
14289            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14290            linknames='
14291	  # The linker will not automatically build a static lib if we build a DLL.
14292	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
14293	  enable_shared_with_static_runtimes_CXX=yes
14294	  # Don't use ranlib
14295	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
14296	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
14297            lt_tool_outputfile="@TOOL_OUTPUT@"~
14298            case $lt_outputfile in
14299              *.exe|*.EXE) ;;
14300              *)
14301                lt_outputfile=$lt_outputfile.exe
14302                lt_tool_outputfile=$lt_tool_outputfile.exe
14303                ;;
14304            esac~
14305            func_to_tool_file "$lt_outputfile"~
14306            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14307              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14308              $RM "$lt_outputfile.manifest";
14309            fi'
14310	  ;;
14311	*)
14312	  # g++
14313	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14314	  # as there is no search path for DLLs.
14315	  hardcode_libdir_flag_spec_CXX='-L$libdir'
14316	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
14317	  allow_undefined_flag_CXX=unsupported
14318	  always_export_symbols_CXX=no
14319	  enable_shared_with_static_runtimes_CXX=yes
14320
14321	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14322	    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'
14323	    # If the export-symbols file already is a .def file, use it as
14324	    # is; otherwise, prepend EXPORTS...
14325	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14326              cp $export_symbols $output_objdir/$soname.def;
14327            else
14328              echo EXPORTS > $output_objdir/$soname.def;
14329              cat $export_symbols >> $output_objdir/$soname.def;
14330            fi~
14331            $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'
14332	  else
14333	    ld_shlibs_CXX=no
14334	  fi
14335	  ;;
14336	esac
14337	;;
14338      darwin* | rhapsody*)
14339
14340
14341  archive_cmds_need_lc_CXX=no
14342  hardcode_direct_CXX=no
14343  hardcode_automatic_CXX=yes
14344  hardcode_shlibpath_var_CXX=unsupported
14345  if test yes = "$lt_cv_ld_force_load"; then
14346    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\"`'
14347
14348  else
14349    whole_archive_flag_spec_CXX=''
14350  fi
14351  link_all_deplibs_CXX=yes
14352  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
14353  case $cc_basename in
14354     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14355     *) _lt_dar_can_shared=$GCC ;;
14356  esac
14357  if test yes = "$_lt_dar_can_shared"; then
14358    output_verbose_link_cmd=func_echo_all
14359    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"
14360    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14361    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"
14362    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"
14363       if test yes != "$lt_cv_apple_cc_single_mod"; then
14364      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"
14365      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"
14366    fi
14367
14368  else
14369  ld_shlibs_CXX=no
14370  fi
14371
14372	;;
14373
14374      os2*)
14375	hardcode_libdir_flag_spec_CXX='-L$libdir'
14376	hardcode_minus_L_CXX=yes
14377	allow_undefined_flag_CXX=unsupported
14378	shrext_cmds=.dll
14379	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14380	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14381	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14382	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14383	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14384	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14385	  emximp -o $lib $output_objdir/$libname.def'
14386	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14387	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14388	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14389	  $ECHO EXPORTS >> $output_objdir/$libname.def~
14390	  prefix_cmds="$SED"~
14391	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
14392	    prefix_cmds="$prefix_cmds -e 1d";
14393	  fi~
14394	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14395	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14396	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14397	  emximp -o $lib $output_objdir/$libname.def'
14398	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14399	enable_shared_with_static_runtimes_CXX=yes
14400	;;
14401
14402      dgux*)
14403        case $cc_basename in
14404          ec++*)
14405	    # FIXME: insert proper C++ library support
14406	    ld_shlibs_CXX=no
14407	    ;;
14408          ghcx*)
14409	    # Green Hills C++ Compiler
14410	    # FIXME: insert proper C++ library support
14411	    ld_shlibs_CXX=no
14412	    ;;
14413          *)
14414	    # FIXME: insert proper C++ library support
14415	    ld_shlibs_CXX=no
14416	    ;;
14417        esac
14418        ;;
14419
14420      freebsd2.*)
14421        # C++ shared libraries reported to be fairly broken before
14422	# switch to ELF
14423        ld_shlibs_CXX=no
14424        ;;
14425
14426      freebsd-elf*)
14427        archive_cmds_need_lc_CXX=no
14428        ;;
14429
14430      freebsd* | dragonfly*)
14431        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14432        # conventions
14433        ld_shlibs_CXX=yes
14434        ;;
14435
14436      haiku*)
14437        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14438        link_all_deplibs_CXX=yes
14439        ;;
14440
14441      hpux9*)
14442        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14443        hardcode_libdir_separator_CXX=:
14444        export_dynamic_flag_spec_CXX='$wl-E'
14445        hardcode_direct_CXX=yes
14446        hardcode_minus_L_CXX=yes # Not in the search PATH,
14447				             # but as the default
14448				             # location of the library.
14449
14450        case $cc_basename in
14451          CC*)
14452            # FIXME: insert proper C++ library support
14453            ld_shlibs_CXX=no
14454            ;;
14455          aCC*)
14456            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'
14457            # Commands to make compiler produce verbose output that lists
14458            # what "hidden" libraries, object files and flags are used when
14459            # linking a shared library.
14460            #
14461            # There doesn't appear to be a way to prevent this compiler from
14462            # explicitly linking system object files so we need to strip them
14463            # from the output so that they don't get included in the library
14464            # dependencies.
14465            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"'
14466            ;;
14467          *)
14468            if test yes = "$GXX"; then
14469              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'
14470            else
14471              # FIXME: insert proper C++ library support
14472              ld_shlibs_CXX=no
14473            fi
14474            ;;
14475        esac
14476        ;;
14477
14478      hpux10*|hpux11*)
14479        if test no = "$with_gnu_ld"; then
14480	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
14481	  hardcode_libdir_separator_CXX=:
14482
14483          case $host_cpu in
14484            hppa*64*|ia64*)
14485              ;;
14486            *)
14487	      export_dynamic_flag_spec_CXX='$wl-E'
14488              ;;
14489          esac
14490        fi
14491        case $host_cpu in
14492          hppa*64*|ia64*)
14493            hardcode_direct_CXX=no
14494            hardcode_shlibpath_var_CXX=no
14495            ;;
14496          *)
14497            hardcode_direct_CXX=yes
14498            hardcode_direct_absolute_CXX=yes
14499            hardcode_minus_L_CXX=yes # Not in the search PATH,
14500					         # but as the default
14501					         # location of the library.
14502            ;;
14503        esac
14504
14505        case $cc_basename in
14506          CC*)
14507	    # FIXME: insert proper C++ library support
14508	    ld_shlibs_CXX=no
14509	    ;;
14510          aCC*)
14511	    case $host_cpu in
14512	      hppa*64*)
14513	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14514	        ;;
14515	      ia64*)
14516	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14517	        ;;
14518	      *)
14519	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14520	        ;;
14521	    esac
14522	    # Commands to make compiler produce verbose output that lists
14523	    # what "hidden" libraries, object files and flags are used when
14524	    # linking a shared library.
14525	    #
14526	    # There doesn't appear to be a way to prevent this compiler from
14527	    # explicitly linking system object files so we need to strip them
14528	    # from the output so that they don't get included in the library
14529	    # dependencies.
14530	    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"'
14531	    ;;
14532          *)
14533	    if test yes = "$GXX"; then
14534	      if test no = "$with_gnu_ld"; then
14535	        case $host_cpu in
14536	          hppa*64*)
14537	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14538	            ;;
14539	          ia64*)
14540	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14541	            ;;
14542	          *)
14543	            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'
14544	            ;;
14545	        esac
14546	      fi
14547	    else
14548	      # FIXME: insert proper C++ library support
14549	      ld_shlibs_CXX=no
14550	    fi
14551	    ;;
14552        esac
14553        ;;
14554
14555      interix[3-9]*)
14556	hardcode_direct_CXX=no
14557	hardcode_shlibpath_var_CXX=no
14558	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14559	export_dynamic_flag_spec_CXX='$wl-E'
14560	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14561	# Instead, shared libraries are loaded at an image base (0x10000000 by
14562	# default) and relocated if they conflict, which is a slow very memory
14563	# consuming and fragmenting process.  To avoid this, we pick a random,
14564	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14565	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14566	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'
14567	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'
14568	;;
14569      irix5* | irix6*)
14570        case $cc_basename in
14571          CC*)
14572	    # SGI C++
14573	    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'
14574
14575	    # Archives containing C++ object files must be created using
14576	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14577	    # necessary to make sure instantiated templates are included
14578	    # in the archive.
14579	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14580	    ;;
14581          *)
14582	    if test yes = "$GXX"; then
14583	      if test no = "$with_gnu_ld"; then
14584	        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'
14585	      else
14586	        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'
14587	      fi
14588	    fi
14589	    link_all_deplibs_CXX=yes
14590	    ;;
14591        esac
14592        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14593        hardcode_libdir_separator_CXX=:
14594        inherit_rpath_CXX=yes
14595        ;;
14596
14597      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14598        case $cc_basename in
14599          KCC*)
14600	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14601
14602	    # KCC will only create a shared library if the output file
14603	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14604	    # to its proper name (with version) after linking.
14605	    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'
14606	    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'
14607	    # Commands to make compiler produce verbose output that lists
14608	    # what "hidden" libraries, object files and flags are used when
14609	    # linking a shared library.
14610	    #
14611	    # There doesn't appear to be a way to prevent this compiler from
14612	    # explicitly linking system object files so we need to strip them
14613	    # from the output so that they don't get included in the library
14614	    # dependencies.
14615	    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"'
14616
14617	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14618	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14619
14620	    # Archives containing C++ object files must be created using
14621	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14622	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14623	    ;;
14624	  icpc* | ecpc* )
14625	    # Intel C++
14626	    with_gnu_ld=yes
14627	    # version 8.0 and above of icpc choke on multiply defined symbols
14628	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14629	    # earlier do not add the objects themselves.
14630	    case `$CC -V 2>&1` in
14631	      *"Version 7."*)
14632	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14633		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'
14634		;;
14635	      *)  # Version 8.0 or newer
14636	        tmp_idyn=
14637	        case $host_cpu in
14638		  ia64*) tmp_idyn=' -i_dynamic';;
14639		esac
14640	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14641		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'
14642		;;
14643	    esac
14644	    archive_cmds_need_lc_CXX=no
14645	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14646	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14647	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14648	    ;;
14649          pgCC* | pgcpp*)
14650            # Portland Group C++ compiler
14651	    case `$CC -V` in
14652	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14653	      prelink_cmds_CXX='tpldir=Template.dir~
14654               rm -rf $tpldir~
14655               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14656               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14657	      old_archive_cmds_CXX='tpldir=Template.dir~
14658                rm -rf $tpldir~
14659                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14660                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14661                $RANLIB $oldlib'
14662	      archive_cmds_CXX='tpldir=Template.dir~
14663                rm -rf $tpldir~
14664                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14665                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14666	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14667                rm -rf $tpldir~
14668                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14669                $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'
14670	      ;;
14671	    *) # Version 6 and above use weak symbols
14672	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14673	      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'
14674	      ;;
14675	    esac
14676
14677	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14678	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14679	    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'
14680            ;;
14681	  cxx*)
14682	    # Compaq C++
14683	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14684	    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'
14685
14686	    runpath_var=LD_RUN_PATH
14687	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14688	    hardcode_libdir_separator_CXX=:
14689
14690	    # Commands to make compiler produce verbose output that lists
14691	    # what "hidden" libraries, object files and flags are used when
14692	    # linking a shared library.
14693	    #
14694	    # There doesn't appear to be a way to prevent this compiler from
14695	    # explicitly linking system object files so we need to strip them
14696	    # from the output so that they don't get included in the library
14697	    # dependencies.
14698	    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'
14699	    ;;
14700	  xl* | mpixl* | bgxl*)
14701	    # IBM XL 8.0 on PPC, with GNU ld
14702	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14703	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14704	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14705	    if test yes = "$supports_anon_versioning"; then
14706	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14707                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14708                echo "local: *; };" >> $output_objdir/$libname.ver~
14709                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14710	    fi
14711	    ;;
14712	  *)
14713	    case `$CC -V 2>&1 | sed 5q` in
14714	    *Sun\ C*)
14715	      # Sun C++ 5.9
14716	      no_undefined_flag_CXX=' -zdefs'
14717	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14718	      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'
14719	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14720	      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'
14721	      compiler_needs_object_CXX=yes
14722
14723	      # Not sure whether something based on
14724	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14725	      # would be better.
14726	      output_verbose_link_cmd='func_echo_all'
14727
14728	      # Archives containing C++ object files must be created using
14729	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14730	      # necessary to make sure instantiated templates are included
14731	      # in the archive.
14732	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14733	      ;;
14734	    esac
14735	    ;;
14736	esac
14737	;;
14738
14739      lynxos*)
14740        # FIXME: insert proper C++ library support
14741	ld_shlibs_CXX=no
14742	;;
14743
14744      m88k*)
14745        # FIXME: insert proper C++ library support
14746        ld_shlibs_CXX=no
14747	;;
14748
14749      mvs*)
14750        case $cc_basename in
14751          cxx*)
14752	    # FIXME: insert proper C++ library support
14753	    ld_shlibs_CXX=no
14754	    ;;
14755	  *)
14756	    # FIXME: insert proper C++ library support
14757	    ld_shlibs_CXX=no
14758	    ;;
14759	esac
14760	;;
14761
14762      netbsd*)
14763        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14764	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14765	  wlarc=
14766	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14767	  hardcode_direct_CXX=yes
14768	  hardcode_shlibpath_var_CXX=no
14769	fi
14770	# Workaround some broken pre-1.5 toolchains
14771	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14772	;;
14773
14774      *nto* | *qnx*)
14775        ld_shlibs_CXX=yes
14776	;;
14777
14778      openbsd* | bitrig*)
14779	if test -f /usr/libexec/ld.so; then
14780	  hardcode_direct_CXX=yes
14781	  hardcode_shlibpath_var_CXX=no
14782	  hardcode_direct_absolute_CXX=yes
14783	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14784	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14785	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14786	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14787	    export_dynamic_flag_spec_CXX='$wl-E'
14788	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14789	  fi
14790	  output_verbose_link_cmd=func_echo_all
14791	else
14792	  ld_shlibs_CXX=no
14793	fi
14794	;;
14795
14796      osf3* | osf4* | osf5*)
14797        case $cc_basename in
14798          KCC*)
14799	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14800
14801	    # KCC will only create a shared library if the output file
14802	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14803	    # to its proper name (with version) after linking.
14804	    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'
14805
14806	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14807	    hardcode_libdir_separator_CXX=:
14808
14809	    # Archives containing C++ object files must be created using
14810	    # the KAI C++ compiler.
14811	    case $host in
14812	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14813	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14814	    esac
14815	    ;;
14816          RCC*)
14817	    # Rational C++ 2.4.1
14818	    # FIXME: insert proper C++ library support
14819	    ld_shlibs_CXX=no
14820	    ;;
14821          cxx*)
14822	    case $host in
14823	      osf3*)
14824	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14825	        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'
14826	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14827		;;
14828	      *)
14829	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14830	        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'
14831	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14832                  echo "-hidden">> $lib.exp~
14833                  $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~
14834                  $RM $lib.exp'
14835	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14836		;;
14837	    esac
14838
14839	    hardcode_libdir_separator_CXX=:
14840
14841	    # Commands to make compiler produce verbose output that lists
14842	    # what "hidden" libraries, object files and flags are used when
14843	    # linking a shared library.
14844	    #
14845	    # There doesn't appear to be a way to prevent this compiler from
14846	    # explicitly linking system object files so we need to strip them
14847	    # from the output so that they don't get included in the library
14848	    # dependencies.
14849	    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"'
14850	    ;;
14851	  *)
14852	    if test yes,no = "$GXX,$with_gnu_ld"; then
14853	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14854	      case $host in
14855	        osf3*)
14856	          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'
14857		  ;;
14858	        *)
14859	          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'
14860		  ;;
14861	      esac
14862
14863	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14864	      hardcode_libdir_separator_CXX=:
14865
14866	      # Commands to make compiler produce verbose output that lists
14867	      # what "hidden" libraries, object files and flags are used when
14868	      # linking a shared library.
14869	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14870
14871	    else
14872	      # FIXME: insert proper C++ library support
14873	      ld_shlibs_CXX=no
14874	    fi
14875	    ;;
14876        esac
14877        ;;
14878
14879      psos*)
14880        # FIXME: insert proper C++ library support
14881        ld_shlibs_CXX=no
14882        ;;
14883
14884      sunos4*)
14885        case $cc_basename in
14886          CC*)
14887	    # Sun C++ 4.x
14888	    # FIXME: insert proper C++ library support
14889	    ld_shlibs_CXX=no
14890	    ;;
14891          lcc*)
14892	    # Lucid
14893	    # FIXME: insert proper C++ library support
14894	    ld_shlibs_CXX=no
14895	    ;;
14896          *)
14897	    # FIXME: insert proper C++ library support
14898	    ld_shlibs_CXX=no
14899	    ;;
14900        esac
14901        ;;
14902
14903      solaris*)
14904        case $cc_basename in
14905          CC* | sunCC*)
14906	    # Sun C++ 4.2, 5.x and Centerline C++
14907            archive_cmds_need_lc_CXX=yes
14908	    no_undefined_flag_CXX=' -zdefs'
14909	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14910	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14911              $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'
14912
14913	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14914	    hardcode_shlibpath_var_CXX=no
14915	    case $host_os in
14916	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14917	      *)
14918		# The compiler driver will combine and reorder linker options,
14919		# but understands '-z linker_flag'.
14920	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14921		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14922	        ;;
14923	    esac
14924	    link_all_deplibs_CXX=yes
14925
14926	    output_verbose_link_cmd='func_echo_all'
14927
14928	    # Archives containing C++ object files must be created using
14929	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14930	    # necessary to make sure instantiated templates are included
14931	    # in the archive.
14932	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14933	    ;;
14934          gcx*)
14935	    # Green Hills C++ Compiler
14936	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14937
14938	    # The C++ compiler must be used to create the archive.
14939	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14940	    ;;
14941          *)
14942	    # GNU C++ compiler with Solaris linker
14943	    if test yes,no = "$GXX,$with_gnu_ld"; then
14944	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
14945	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14946	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14947	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14948                  $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'
14949
14950	        # Commands to make compiler produce verbose output that lists
14951	        # what "hidden" libraries, object files and flags are used when
14952	        # linking a shared library.
14953	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14954	      else
14955	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
14956	        # platform.
14957	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14958	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14959                  $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'
14960
14961	        # Commands to make compiler produce verbose output that lists
14962	        # what "hidden" libraries, object files and flags are used when
14963	        # linking a shared library.
14964	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14965	      fi
14966
14967	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14968	      case $host_os in
14969		solaris2.[0-5] | solaris2.[0-5].*) ;;
14970		*)
14971		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14972		  ;;
14973	      esac
14974	    fi
14975	    ;;
14976        esac
14977        ;;
14978
14979    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14980      no_undefined_flag_CXX='$wl-z,text'
14981      archive_cmds_need_lc_CXX=no
14982      hardcode_shlibpath_var_CXX=no
14983      runpath_var='LD_RUN_PATH'
14984
14985      case $cc_basename in
14986        CC*)
14987	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14988	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14989	  ;;
14990	*)
14991	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993	  ;;
14994      esac
14995      ;;
14996
14997      sysv5* | sco3.2v5* | sco5v6*)
14998	# Note: We CANNOT use -z defs as we might desire, because we do not
14999	# link with -lc, and that would cause any symbols used from libc to
15000	# always be unresolved, which means just about no library would
15001	# ever link correctly.  If we're not using GNU ld we use -z text
15002	# though, which does catch some bad symbols but isn't as heavy-handed
15003	# as -z defs.
15004	no_undefined_flag_CXX='$wl-z,text'
15005	allow_undefined_flag_CXX='$wl-z,nodefs'
15006	archive_cmds_need_lc_CXX=no
15007	hardcode_shlibpath_var_CXX=no
15008	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
15009	hardcode_libdir_separator_CXX=':'
15010	link_all_deplibs_CXX=yes
15011	export_dynamic_flag_spec_CXX='$wl-Bexport'
15012	runpath_var='LD_RUN_PATH'
15013
15014	case $cc_basename in
15015          CC*)
15016	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15017	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15018	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15019              '"$old_archive_cmds_CXX"
15020	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15021              '"$reload_cmds_CXX"
15022	    ;;
15023	  *)
15024	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15025	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15026	    ;;
15027	esac
15028      ;;
15029
15030      tandem*)
15031        case $cc_basename in
15032          NCC*)
15033	    # NonStop-UX NCC 3.20
15034	    # FIXME: insert proper C++ library support
15035	    ld_shlibs_CXX=no
15036	    ;;
15037          *)
15038	    # FIXME: insert proper C++ library support
15039	    ld_shlibs_CXX=no
15040	    ;;
15041        esac
15042        ;;
15043
15044      vxworks*)
15045        # FIXME: insert proper C++ library support
15046        ld_shlibs_CXX=no
15047        ;;
15048
15049      *)
15050        # FIXME: insert proper C++ library support
15051        ld_shlibs_CXX=no
15052        ;;
15053    esac
15054
15055    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15056printf "%s\n" "$ld_shlibs_CXX" >&6; }
15057    test no = "$ld_shlibs_CXX" && can_build_shared=no
15058
15059    GCC_CXX=$GXX
15060    LD_CXX=$LD
15061
15062    ## CAVEAT EMPTOR:
15063    ## There is no encapsulation within the following macros, do not change
15064    ## the running order or otherwise move them around unless you know exactly
15065    ## what you are doing...
15066    # Dependencies to place before and after the object being linked:
15067predep_objects_CXX=
15068postdep_objects_CXX=
15069predeps_CXX=
15070postdeps_CXX=
15071compiler_lib_search_path_CXX=
15072
15073cat > conftest.$ac_ext <<_LT_EOF
15074class Foo
15075{
15076public:
15077  Foo (void) { a = 0; }
15078private:
15079  int a;
15080};
15081_LT_EOF
15082
15083
15084_lt_libdeps_save_CFLAGS=$CFLAGS
15085case "$CC $CFLAGS " in #(
15086*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15087*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15088*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15089esac
15090
15091if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15092  (eval $ac_compile) 2>&5
15093  ac_status=$?
15094  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15095  test $ac_status = 0; }; then
15096  # Parse the compiler output and extract the necessary
15097  # objects, libraries and library flags.
15098
15099  # Sentinel used to keep track of whether or not we are before
15100  # the conftest object file.
15101  pre_test_object_deps_done=no
15102
15103  for p in `eval "$output_verbose_link_cmd"`; do
15104    case $prev$p in
15105
15106    -L* | -R* | -l*)
15107       # Some compilers place space between "-{L,R}" and the path.
15108       # Remove the space.
15109       if test x-L = "$p" ||
15110          test x-R = "$p"; then
15111	 prev=$p
15112	 continue
15113       fi
15114
15115       # Expand the sysroot to ease extracting the directories later.
15116       if test -z "$prev"; then
15117         case $p in
15118         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15119         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15120         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15121         esac
15122       fi
15123       case $p in
15124       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15125       esac
15126       if test no = "$pre_test_object_deps_done"; then
15127	 case $prev in
15128	 -L | -R)
15129	   # Internal compiler library paths should come after those
15130	   # provided the user.  The postdeps already come after the
15131	   # user supplied libs so there is no need to process them.
15132	   if test -z "$compiler_lib_search_path_CXX"; then
15133	     compiler_lib_search_path_CXX=$prev$p
15134	   else
15135	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
15136	   fi
15137	   ;;
15138	 # The "-l" case would never come before the object being
15139	 # linked, so don't bother handling this case.
15140	 esac
15141       else
15142	 if test -z "$postdeps_CXX"; then
15143	   postdeps_CXX=$prev$p
15144	 else
15145	   postdeps_CXX="${postdeps_CXX} $prev$p"
15146	 fi
15147       fi
15148       prev=
15149       ;;
15150
15151    *.lto.$objext) ;; # Ignore GCC LTO objects
15152    *.$objext)
15153       # This assumes that the test object file only shows up
15154       # once in the compiler output.
15155       if test "$p" = "conftest.$objext"; then
15156	 pre_test_object_deps_done=yes
15157	 continue
15158       fi
15159
15160       if test no = "$pre_test_object_deps_done"; then
15161	 if test -z "$predep_objects_CXX"; then
15162	   predep_objects_CXX=$p
15163	 else
15164	   predep_objects_CXX="$predep_objects_CXX $p"
15165	 fi
15166       else
15167	 if test -z "$postdep_objects_CXX"; then
15168	   postdep_objects_CXX=$p
15169	 else
15170	   postdep_objects_CXX="$postdep_objects_CXX $p"
15171	 fi
15172       fi
15173       ;;
15174
15175    *) ;; # Ignore the rest.
15176
15177    esac
15178  done
15179
15180  # Clean up.
15181  rm -f a.out a.exe
15182else
15183  echo "libtool.m4: error: problem compiling CXX test program"
15184fi
15185
15186$RM -f confest.$objext
15187CFLAGS=$_lt_libdeps_save_CFLAGS
15188
15189# PORTME: override above test on systems where it is broken
15190case $host_os in
15191interix[3-9]*)
15192  # Interix 3.5 installs completely hosed .la files for C++, so rather than
15193  # hack all around it, let's just trust "g++" to DTRT.
15194  predep_objects_CXX=
15195  postdep_objects_CXX=
15196  postdeps_CXX=
15197  ;;
15198esac
15199
15200
15201case " $postdeps_CXX " in
15202*" -lc "*) archive_cmds_need_lc_CXX=no ;;
15203esac
15204 compiler_lib_search_dirs_CXX=
15205if test -n "${compiler_lib_search_path_CXX}"; then
15206 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
15207fi
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239    lt_prog_compiler_wl_CXX=
15240lt_prog_compiler_pic_CXX=
15241lt_prog_compiler_static_CXX=
15242
15243
15244  # C++ specific cases for pic, static, wl, etc.
15245  if test yes = "$GXX"; then
15246    lt_prog_compiler_wl_CXX='-Wl,'
15247    lt_prog_compiler_static_CXX='-static'
15248
15249    case $host_os in
15250    aix*)
15251      # All AIX code is PIC.
15252      if test ia64 = "$host_cpu"; then
15253	# AIX 5 now supports IA64 processor
15254	lt_prog_compiler_static_CXX='-Bstatic'
15255      fi
15256      lt_prog_compiler_pic_CXX='-fPIC'
15257      ;;
15258
15259    amigaos*)
15260      case $host_cpu in
15261      powerpc)
15262            # see comment about AmigaOS4 .so support
15263            lt_prog_compiler_pic_CXX='-fPIC'
15264        ;;
15265      m68k)
15266            # FIXME: we need at least 68020 code to build shared libraries, but
15267            # adding the '-m68020' flag to GCC prevents building anything better,
15268            # like '-m68040'.
15269            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15270        ;;
15271      esac
15272      ;;
15273
15274    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15275      # PIC is the default for these OSes.
15276      ;;
15277    mingw* | cygwin* | os2* | pw32* | cegcc*)
15278      # This hack is so that the source file can tell whether it is being
15279      # built for inclusion in a dll (and should export symbols for example).
15280      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15281      # (--disable-auto-import) libraries
15282      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15283      case $host_os in
15284      os2*)
15285	lt_prog_compiler_static_CXX='$wl-static'
15286	;;
15287      esac
15288      ;;
15289    darwin* | rhapsody*)
15290      # PIC is the default on this platform
15291      # Common symbols not allowed in MH_DYLIB files
15292      lt_prog_compiler_pic_CXX='-fno-common'
15293      ;;
15294    *djgpp*)
15295      # DJGPP does not support shared libraries at all
15296      lt_prog_compiler_pic_CXX=
15297      ;;
15298    haiku*)
15299      # PIC is the default for Haiku.
15300      # The "-static" flag exists, but is broken.
15301      lt_prog_compiler_static_CXX=
15302      ;;
15303    interix[3-9]*)
15304      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15305      # Instead, we relocate shared libraries at runtime.
15306      ;;
15307    sysv4*MP*)
15308      if test -d /usr/nec; then
15309	lt_prog_compiler_pic_CXX=-Kconform_pic
15310      fi
15311      ;;
15312    hpux*)
15313      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15314      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15315      # sets the default TLS model and affects inlining.
15316      case $host_cpu in
15317      hppa*64*)
15318	;;
15319      *)
15320	lt_prog_compiler_pic_CXX='-fPIC'
15321	;;
15322      esac
15323      ;;
15324    *qnx* | *nto*)
15325      # QNX uses GNU C++, but need to define -shared option too, otherwise
15326      # it will coredump.
15327      lt_prog_compiler_pic_CXX='-fPIC -shared'
15328      ;;
15329    *)
15330      lt_prog_compiler_pic_CXX='-fPIC'
15331      ;;
15332    esac
15333  else
15334    case $host_os in
15335      aix[4-9]*)
15336	# All AIX code is PIC.
15337	if test ia64 = "$host_cpu"; then
15338	  # AIX 5 now supports IA64 processor
15339	  lt_prog_compiler_static_CXX='-Bstatic'
15340	else
15341	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15342	fi
15343	;;
15344      chorus*)
15345	case $cc_basename in
15346	cxch68*)
15347	  # Green Hills C++ Compiler
15348	  # _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"
15349	  ;;
15350	esac
15351	;;
15352      mingw* | cygwin* | os2* | pw32* | cegcc*)
15353	# This hack is so that the source file can tell whether it is being
15354	# built for inclusion in a dll (and should export symbols for example).
15355	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15356	;;
15357      dgux*)
15358	case $cc_basename in
15359	  ec++*)
15360	    lt_prog_compiler_pic_CXX='-KPIC'
15361	    ;;
15362	  ghcx*)
15363	    # Green Hills C++ Compiler
15364	    lt_prog_compiler_pic_CXX='-pic'
15365	    ;;
15366	  *)
15367	    ;;
15368	esac
15369	;;
15370      freebsd* | dragonfly*)
15371	# FreeBSD uses GNU C++
15372	;;
15373      hpux9* | hpux10* | hpux11*)
15374	case $cc_basename in
15375	  CC*)
15376	    lt_prog_compiler_wl_CXX='-Wl,'
15377	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15378	    if test ia64 != "$host_cpu"; then
15379	      lt_prog_compiler_pic_CXX='+Z'
15380	    fi
15381	    ;;
15382	  aCC*)
15383	    lt_prog_compiler_wl_CXX='-Wl,'
15384	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
15385	    case $host_cpu in
15386	    hppa*64*|ia64*)
15387	      # +Z the default
15388	      ;;
15389	    *)
15390	      lt_prog_compiler_pic_CXX='+Z'
15391	      ;;
15392	    esac
15393	    ;;
15394	  *)
15395	    ;;
15396	esac
15397	;;
15398      interix*)
15399	# This is c89, which is MS Visual C++ (no shared libs)
15400	# Anyone wants to do a port?
15401	;;
15402      irix5* | irix6* | nonstopux*)
15403	case $cc_basename in
15404	  CC*)
15405	    lt_prog_compiler_wl_CXX='-Wl,'
15406	    lt_prog_compiler_static_CXX='-non_shared'
15407	    # CC pic flag -KPIC is the default.
15408	    ;;
15409	  *)
15410	    ;;
15411	esac
15412	;;
15413      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15414	case $cc_basename in
15415	  KCC*)
15416	    # KAI C++ Compiler
15417	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15418	    lt_prog_compiler_pic_CXX='-fPIC'
15419	    ;;
15420	  ecpc* )
15421	    # old Intel C++ for x86_64, which still supported -KPIC.
15422	    lt_prog_compiler_wl_CXX='-Wl,'
15423	    lt_prog_compiler_pic_CXX='-KPIC'
15424	    lt_prog_compiler_static_CXX='-static'
15425	    ;;
15426	  icpc* )
15427	    # Intel C++, used to be incompatible with GCC.
15428	    # ICC 10 doesn't accept -KPIC any more.
15429	    lt_prog_compiler_wl_CXX='-Wl,'
15430	    lt_prog_compiler_pic_CXX='-fPIC'
15431	    lt_prog_compiler_static_CXX='-static'
15432	    ;;
15433	  pgCC* | pgcpp*)
15434	    # Portland Group C++ compiler
15435	    lt_prog_compiler_wl_CXX='-Wl,'
15436	    lt_prog_compiler_pic_CXX='-fpic'
15437	    lt_prog_compiler_static_CXX='-Bstatic'
15438	    ;;
15439	  cxx*)
15440	    # Compaq C++
15441	    # Make sure the PIC flag is empty.  It appears that all Alpha
15442	    # Linux and Compaq Tru64 Unix objects are PIC.
15443	    lt_prog_compiler_pic_CXX=
15444	    lt_prog_compiler_static_CXX='-non_shared'
15445	    ;;
15446	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15447	    # IBM XL 8.0, 9.0 on PPC and BlueGene
15448	    lt_prog_compiler_wl_CXX='-Wl,'
15449	    lt_prog_compiler_pic_CXX='-qpic'
15450	    lt_prog_compiler_static_CXX='-qstaticlink'
15451	    ;;
15452	  *)
15453	    case `$CC -V 2>&1 | sed 5q` in
15454	    *Sun\ C*)
15455	      # Sun C++ 5.9
15456	      lt_prog_compiler_pic_CXX='-KPIC'
15457	      lt_prog_compiler_static_CXX='-Bstatic'
15458	      lt_prog_compiler_wl_CXX='-Qoption ld '
15459	      ;;
15460	    esac
15461	    ;;
15462	esac
15463	;;
15464      lynxos*)
15465	;;
15466      m88k*)
15467	;;
15468      mvs*)
15469	case $cc_basename in
15470	  cxx*)
15471	    lt_prog_compiler_pic_CXX='-W c,exportall'
15472	    ;;
15473	  *)
15474	    ;;
15475	esac
15476	;;
15477      netbsd*)
15478	;;
15479      *qnx* | *nto*)
15480        # QNX uses GNU C++, but need to define -shared option too, otherwise
15481        # it will coredump.
15482        lt_prog_compiler_pic_CXX='-fPIC -shared'
15483        ;;
15484      osf3* | osf4* | osf5*)
15485	case $cc_basename in
15486	  KCC*)
15487	    lt_prog_compiler_wl_CXX='--backend -Wl,'
15488	    ;;
15489	  RCC*)
15490	    # Rational C++ 2.4.1
15491	    lt_prog_compiler_pic_CXX='-pic'
15492	    ;;
15493	  cxx*)
15494	    # Digital/Compaq C++
15495	    lt_prog_compiler_wl_CXX='-Wl,'
15496	    # Make sure the PIC flag is empty.  It appears that all Alpha
15497	    # Linux and Compaq Tru64 Unix objects are PIC.
15498	    lt_prog_compiler_pic_CXX=
15499	    lt_prog_compiler_static_CXX='-non_shared'
15500	    ;;
15501	  *)
15502	    ;;
15503	esac
15504	;;
15505      psos*)
15506	;;
15507      solaris*)
15508	case $cc_basename in
15509	  CC* | sunCC*)
15510	    # Sun C++ 4.2, 5.x and Centerline C++
15511	    lt_prog_compiler_pic_CXX='-KPIC'
15512	    lt_prog_compiler_static_CXX='-Bstatic'
15513	    lt_prog_compiler_wl_CXX='-Qoption ld '
15514	    ;;
15515	  gcx*)
15516	    # Green Hills C++ Compiler
15517	    lt_prog_compiler_pic_CXX='-PIC'
15518	    ;;
15519	  *)
15520	    ;;
15521	esac
15522	;;
15523      sunos4*)
15524	case $cc_basename in
15525	  CC*)
15526	    # Sun C++ 4.x
15527	    lt_prog_compiler_pic_CXX='-pic'
15528	    lt_prog_compiler_static_CXX='-Bstatic'
15529	    ;;
15530	  lcc*)
15531	    # Lucid
15532	    lt_prog_compiler_pic_CXX='-pic'
15533	    ;;
15534	  *)
15535	    ;;
15536	esac
15537	;;
15538      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15539	case $cc_basename in
15540	  CC*)
15541	    lt_prog_compiler_wl_CXX='-Wl,'
15542	    lt_prog_compiler_pic_CXX='-KPIC'
15543	    lt_prog_compiler_static_CXX='-Bstatic'
15544	    ;;
15545	esac
15546	;;
15547      tandem*)
15548	case $cc_basename in
15549	  NCC*)
15550	    # NonStop-UX NCC 3.20
15551	    lt_prog_compiler_pic_CXX='-KPIC'
15552	    ;;
15553	  *)
15554	    ;;
15555	esac
15556	;;
15557      vxworks*)
15558	;;
15559      *)
15560	lt_prog_compiler_can_build_shared_CXX=no
15561	;;
15562    esac
15563  fi
15564
15565case $host_os in
15566  # For platforms that do not support PIC, -DPIC is meaningless:
15567  *djgpp*)
15568    lt_prog_compiler_pic_CXX=
15569    ;;
15570  *)
15571    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15572    ;;
15573esac
15574
15575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15576printf %s "checking for $compiler option to produce PIC... " >&6; }
15577if test ${lt_cv_prog_compiler_pic_CXX+y}
15578then :
15579  printf %s "(cached) " >&6
15580else $as_nop
15581  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15582fi
15583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15584printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
15585lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15586
15587#
15588# Check to make sure the PIC flag actually works.
15589#
15590if test -n "$lt_prog_compiler_pic_CXX"; then
15591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15592printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15593if test ${lt_cv_prog_compiler_pic_works_CXX+y}
15594then :
15595  printf %s "(cached) " >&6
15596else $as_nop
15597  lt_cv_prog_compiler_pic_works_CXX=no
15598   ac_outfile=conftest.$ac_objext
15599   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15600   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15601   # Insert the option either (1) after the last *FLAGS variable, or
15602   # (2) before a word containing "conftest.", or (3) at the end.
15603   # Note that $ac_compile itself does not contain backslashes and begins
15604   # with a dollar sign (not a hyphen), so the echo should work correctly.
15605   # The option is referenced via a variable to avoid confusing sed.
15606   lt_compile=`echo "$ac_compile" | $SED \
15607   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15608   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15609   -e 's:$: $lt_compiler_flag:'`
15610   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15611   (eval "$lt_compile" 2>conftest.err)
15612   ac_status=$?
15613   cat conftest.err >&5
15614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615   if (exit $ac_status) && test -s "$ac_outfile"; then
15616     # The compiler can only warn and ignore the option if not recognized
15617     # So say no if there are warnings other than the usual output.
15618     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15619     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15620     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15621       lt_cv_prog_compiler_pic_works_CXX=yes
15622     fi
15623   fi
15624   $RM conftest*
15625
15626fi
15627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15628printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15629
15630if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15631    case $lt_prog_compiler_pic_CXX in
15632     "" | " "*) ;;
15633     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15634     esac
15635else
15636    lt_prog_compiler_pic_CXX=
15637     lt_prog_compiler_can_build_shared_CXX=no
15638fi
15639
15640fi
15641
15642
15643
15644
15645
15646#
15647# Check to make sure the static flag actually works.
15648#
15649wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15651printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15652if test ${lt_cv_prog_compiler_static_works_CXX+y}
15653then :
15654  printf %s "(cached) " >&6
15655else $as_nop
15656  lt_cv_prog_compiler_static_works_CXX=no
15657   save_LDFLAGS=$LDFLAGS
15658   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15659   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15660   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15661     # The linker can only warn and ignore the option if not recognized
15662     # So say no if there are warnings
15663     if test -s conftest.err; then
15664       # Append any errors to the config.log.
15665       cat conftest.err 1>&5
15666       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15667       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15668       if diff conftest.exp conftest.er2 >/dev/null; then
15669         lt_cv_prog_compiler_static_works_CXX=yes
15670       fi
15671     else
15672       lt_cv_prog_compiler_static_works_CXX=yes
15673     fi
15674   fi
15675   $RM -r conftest*
15676   LDFLAGS=$save_LDFLAGS
15677
15678fi
15679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15680printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15681
15682if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15683    :
15684else
15685    lt_prog_compiler_static_CXX=
15686fi
15687
15688
15689
15690
15691    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15692printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15693if test ${lt_cv_prog_compiler_c_o_CXX+y}
15694then :
15695  printf %s "(cached) " >&6
15696else $as_nop
15697  lt_cv_prog_compiler_c_o_CXX=no
15698   $RM -r conftest 2>/dev/null
15699   mkdir conftest
15700   cd conftest
15701   mkdir out
15702   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15703
15704   lt_compiler_flag="-o out/conftest2.$ac_objext"
15705   # Insert the option either (1) after the last *FLAGS variable, or
15706   # (2) before a word containing "conftest.", or (3) at the end.
15707   # Note that $ac_compile itself does not contain backslashes and begins
15708   # with a dollar sign (not a hyphen), so the echo should work correctly.
15709   lt_compile=`echo "$ac_compile" | $SED \
15710   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15711   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15712   -e 's:$: $lt_compiler_flag:'`
15713   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15714   (eval "$lt_compile" 2>out/conftest.err)
15715   ac_status=$?
15716   cat out/conftest.err >&5
15717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15719   then
15720     # The compiler can only warn and ignore the option if not recognized
15721     # So say no if there are warnings
15722     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15723     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15724     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15725       lt_cv_prog_compiler_c_o_CXX=yes
15726     fi
15727   fi
15728   chmod u+w . 2>&5
15729   $RM conftest*
15730   # SGI C++ compiler will create directory out/ii_files/ for
15731   # template instantiation
15732   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15733   $RM out/* && rmdir out
15734   cd ..
15735   $RM -r conftest
15736   $RM conftest*
15737
15738fi
15739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15740printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15741
15742
15743
15744    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15745printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15746if test ${lt_cv_prog_compiler_c_o_CXX+y}
15747then :
15748  printf %s "(cached) " >&6
15749else $as_nop
15750  lt_cv_prog_compiler_c_o_CXX=no
15751   $RM -r conftest 2>/dev/null
15752   mkdir conftest
15753   cd conftest
15754   mkdir out
15755   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15756
15757   lt_compiler_flag="-o out/conftest2.$ac_objext"
15758   # Insert the option either (1) after the last *FLAGS variable, or
15759   # (2) before a word containing "conftest.", or (3) at the end.
15760   # Note that $ac_compile itself does not contain backslashes and begins
15761   # with a dollar sign (not a hyphen), so the echo should work correctly.
15762   lt_compile=`echo "$ac_compile" | $SED \
15763   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15764   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15765   -e 's:$: $lt_compiler_flag:'`
15766   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15767   (eval "$lt_compile" 2>out/conftest.err)
15768   ac_status=$?
15769   cat out/conftest.err >&5
15770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15772   then
15773     # The compiler can only warn and ignore the option if not recognized
15774     # So say no if there are warnings
15775     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15776     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15777     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15778       lt_cv_prog_compiler_c_o_CXX=yes
15779     fi
15780   fi
15781   chmod u+w . 2>&5
15782   $RM conftest*
15783   # SGI C++ compiler will create directory out/ii_files/ for
15784   # template instantiation
15785   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15786   $RM out/* && rmdir out
15787   cd ..
15788   $RM -r conftest
15789   $RM conftest*
15790
15791fi
15792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15793printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15794
15795
15796
15797
15798hard_links=nottested
15799if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15800  # do not overwrite the value of need_locks provided by the user
15801  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15802printf %s "checking if we can lock with hard links... " >&6; }
15803  hard_links=yes
15804  $RM conftest*
15805  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15806  touch conftest.a
15807  ln conftest.a conftest.b 2>&5 || hard_links=no
15808  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15809  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15810printf "%s\n" "$hard_links" >&6; }
15811  if test no = "$hard_links"; then
15812    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15813printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15814    need_locks=warn
15815  fi
15816else
15817  need_locks=no
15818fi
15819
15820
15821
15822    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15823printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15824
15825  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15826  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15827  case $host_os in
15828  aix[4-9]*)
15829    # If we're using GNU nm, then we don't want the "-C" option.
15830    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15831    # Without the "-l" option, or with the "-B" option, AIX nm treats
15832    # weak defined symbols like other global defined symbols, whereas
15833    # GNU nm marks them as "W".
15834    # While the 'weak' keyword is ignored in the Export File, we need
15835    # it in the Import File for the 'aix-soname' feature, so we have
15836    # to replace the "-B" option with "-P" for AIX nm.
15837    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15838      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'
15839    else
15840      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'
15841    fi
15842    ;;
15843  pw32*)
15844    export_symbols_cmds_CXX=$ltdll_cmds
15845    ;;
15846  cygwin* | mingw* | cegcc*)
15847    case $cc_basename in
15848    cl*)
15849      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15850      ;;
15851    *)
15852      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'
15853      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15854      ;;
15855    esac
15856    ;;
15857  *)
15858    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15859    ;;
15860  esac
15861
15862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15863printf "%s\n" "$ld_shlibs_CXX" >&6; }
15864test no = "$ld_shlibs_CXX" && can_build_shared=no
15865
15866with_gnu_ld_CXX=$with_gnu_ld
15867
15868
15869
15870
15871
15872
15873#
15874# Do we need to explicitly link libc?
15875#
15876case "x$archive_cmds_need_lc_CXX" in
15877x|xyes)
15878  # Assume -lc should be added
15879  archive_cmds_need_lc_CXX=yes
15880
15881  if test yes,yes = "$GCC,$enable_shared"; then
15882    case $archive_cmds_CXX in
15883    *'~'*)
15884      # FIXME: we may have to deal with multi-command sequences.
15885      ;;
15886    '$CC '*)
15887      # Test whether the compiler implicitly links with -lc since on some
15888      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15889      # to ld, don't add -lc before -lgcc.
15890      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15891printf %s "checking whether -lc should be explicitly linked in... " >&6; }
15892if test ${lt_cv_archive_cmds_need_lc_CXX+y}
15893then :
15894  printf %s "(cached) " >&6
15895else $as_nop
15896  $RM conftest*
15897	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15898
15899	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15900  (eval $ac_compile) 2>&5
15901  ac_status=$?
15902  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15903  test $ac_status = 0; } 2>conftest.err; then
15904	  soname=conftest
15905	  lib=conftest
15906	  libobjs=conftest.$ac_objext
15907	  deplibs=
15908	  wl=$lt_prog_compiler_wl_CXX
15909	  pic_flag=$lt_prog_compiler_pic_CXX
15910	  compiler_flags=-v
15911	  linker_flags=-v
15912	  verstring=
15913	  output_objdir=.
15914	  libname=conftest
15915	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15916	  allow_undefined_flag_CXX=
15917	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15918  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15919  ac_status=$?
15920  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15921  test $ac_status = 0; }
15922	  then
15923	    lt_cv_archive_cmds_need_lc_CXX=no
15924	  else
15925	    lt_cv_archive_cmds_need_lc_CXX=yes
15926	  fi
15927	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15928	else
15929	  cat conftest.err 1>&5
15930	fi
15931	$RM conftest*
15932
15933fi
15934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15935printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15936      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15937      ;;
15938    esac
15939  fi
15940  ;;
15941esac
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16005printf %s "checking dynamic linker characteristics... " >&6; }
16006
16007library_names_spec=
16008libname_spec='lib$name'
16009soname_spec=
16010shrext_cmds=.so
16011postinstall_cmds=
16012postuninstall_cmds=
16013finish_cmds=
16014finish_eval=
16015shlibpath_var=
16016shlibpath_overrides_runpath=unknown
16017version_type=none
16018dynamic_linker="$host_os ld.so"
16019sys_lib_dlsearch_path_spec="/lib /usr/lib"
16020need_lib_prefix=unknown
16021hardcode_into_libs=no
16022
16023# when you set need_version to no, make sure it does not cause -set_version
16024# flags to be left without arguments
16025need_version=unknown
16026
16027
16028
16029case $host_os in
16030aix3*)
16031  version_type=linux # correct to gnu/linux during the next big refactor
16032  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
16033  shlibpath_var=LIBPATH
16034
16035  # AIX 3 has no versioning support, so we append a major version to the name.
16036  soname_spec='$libname$release$shared_ext$major'
16037  ;;
16038
16039aix[4-9]*)
16040  version_type=linux # correct to gnu/linux during the next big refactor
16041  need_lib_prefix=no
16042  need_version=no
16043  hardcode_into_libs=yes
16044  if test ia64 = "$host_cpu"; then
16045    # AIX 5 supports IA64
16046    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
16047    shlibpath_var=LD_LIBRARY_PATH
16048  else
16049    # With GCC up to 2.95.x, collect2 would create an import file
16050    # for dependence libraries.  The import file would start with
16051    # the line '#! .'.  This would cause the generated library to
16052    # depend on '.', always an invalid library.  This was fixed in
16053    # development snapshots of GCC prior to 3.0.
16054    case $host_os in
16055      aix4 | aix4.[01] | aix4.[01].*)
16056      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16057	   echo ' yes '
16058	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
16059	:
16060      else
16061	can_build_shared=no
16062      fi
16063      ;;
16064    esac
16065    # Using Import Files as archive members, it is possible to support
16066    # filename-based versioning of shared library archives on AIX. While
16067    # this would work for both with and without runtime linking, it will
16068    # prevent static linking of such archives. So we do filename-based
16069    # shared library versioning with .so extension only, which is used
16070    # when both runtime linking and shared linking is enabled.
16071    # Unfortunately, runtime linking may impact performance, so we do
16072    # not want this to be the default eventually. Also, we use the
16073    # versioned .so libs for executables only if there is the -brtl
16074    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
16075    # To allow for filename-based versioning support, we need to create
16076    # libNAME.so.V as an archive file, containing:
16077    # *) an Import File, referring to the versioned filename of the
16078    #    archive as well as the shared archive member, telling the
16079    #    bitwidth (32 or 64) of that shared object, and providing the
16080    #    list of exported symbols of that shared object, eventually
16081    #    decorated with the 'weak' keyword
16082    # *) the shared object with the F_LOADONLY flag set, to really avoid
16083    #    it being seen by the linker.
16084    # At run time we better use the real file rather than another symlink,
16085    # but for link time we create the symlink libNAME.so -> libNAME.so.V
16086
16087    case $with_aix_soname,$aix_use_runtimelinking in
16088    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
16089    # soname into executable. Probably we can add versioning support to
16090    # collect2, so additional links can be useful in future.
16091    aix,yes) # traditional libtool
16092      dynamic_linker='AIX unversionable lib.so'
16093      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16094      # instead of lib<name>.a to let people know that these are not
16095      # typical AIX shared libraries.
16096      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16097      ;;
16098    aix,no) # traditional AIX only
16099      dynamic_linker='AIX lib.a(lib.so.V)'
16100      # We preserve .a as extension for shared libraries through AIX4.2
16101      # and later when we are not doing run time linking.
16102      library_names_spec='$libname$release.a $libname.a'
16103      soname_spec='$libname$release$shared_ext$major'
16104      ;;
16105    svr4,*) # full svr4 only
16106      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
16107      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16108      # We do not specify a path in Import Files, so LIBPATH fires.
16109      shlibpath_overrides_runpath=yes
16110      ;;
16111    *,yes) # both, prefer svr4
16112      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
16113      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
16114      # unpreferred sharedlib libNAME.a needs extra handling
16115      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"'
16116      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"'
16117      # We do not specify a path in Import Files, so LIBPATH fires.
16118      shlibpath_overrides_runpath=yes
16119      ;;
16120    *,no) # both, prefer aix
16121      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
16122      library_names_spec='$libname$release.a $libname.a'
16123      soname_spec='$libname$release$shared_ext$major'
16124      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
16125      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)'
16126      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"'
16127      ;;
16128    esac
16129    shlibpath_var=LIBPATH
16130  fi
16131  ;;
16132
16133amigaos*)
16134  case $host_cpu in
16135  powerpc)
16136    # Since July 2007 AmigaOS4 officially supports .so libraries.
16137    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16138    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16139    ;;
16140  m68k)
16141    library_names_spec='$libname.ixlibrary $libname.a'
16142    # Create ${libname}_ixlibrary.a entries in /sys/libs.
16143    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'
16144    ;;
16145  esac
16146  ;;
16147
16148beos*)
16149  library_names_spec='$libname$shared_ext'
16150  dynamic_linker="$host_os ld.so"
16151  shlibpath_var=LIBRARY_PATH
16152  ;;
16153
16154bsdi[45]*)
16155  version_type=linux # correct to gnu/linux during the next big refactor
16156  need_version=no
16157  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16158  soname_spec='$libname$release$shared_ext$major'
16159  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16160  shlibpath_var=LD_LIBRARY_PATH
16161  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16162  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16163  # the default ld.so.conf also contains /usr/contrib/lib and
16164  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16165  # libtool to hard-code these into programs
16166  ;;
16167
16168cygwin* | mingw* | pw32* | cegcc*)
16169  version_type=windows
16170  shrext_cmds=.dll
16171  need_version=no
16172  need_lib_prefix=no
16173
16174  case $GCC,$cc_basename in
16175  yes,*)
16176    # gcc
16177    library_names_spec='$libname.dll.a'
16178    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16179    postinstall_cmds='base_file=`basename \$file`~
16180      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16181      dldir=$destdir/`dirname \$dlpath`~
16182      test -d \$dldir || mkdir -p \$dldir~
16183      $install_prog $dir/$dlname \$dldir/$dlname~
16184      chmod a+x \$dldir/$dlname~
16185      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16186        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16187      fi'
16188    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16189      dlpath=$dir/\$dldll~
16190       $RM \$dlpath'
16191    shlibpath_overrides_runpath=yes
16192
16193    case $host_os in
16194    cygwin*)
16195      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16196      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16197
16198      ;;
16199    mingw* | cegcc*)
16200      # MinGW DLLs use traditional 'lib' prefix
16201      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16202      ;;
16203    pw32*)
16204      # pw32 DLLs use 'pw' prefix rather than 'lib'
16205      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16206      ;;
16207    esac
16208    dynamic_linker='Win32 ld.exe'
16209    ;;
16210
16211  *,cl*)
16212    # Native MSVC
16213    libname_spec='$name'
16214    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
16215    library_names_spec='$libname.dll.lib'
16216
16217    case $build_os in
16218    mingw*)
16219      sys_lib_search_path_spec=
16220      lt_save_ifs=$IFS
16221      IFS=';'
16222      for lt_path in $LIB
16223      do
16224        IFS=$lt_save_ifs
16225        # Let DOS variable expansion print the short 8.3 style file name.
16226        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16227        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16228      done
16229      IFS=$lt_save_ifs
16230      # Convert to MSYS style.
16231      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16232      ;;
16233    cygwin*)
16234      # Convert to unix form, then to dos form, then back to unix form
16235      # but this time dos style (no spaces!) so that the unix form looks
16236      # like /cygdrive/c/PROGRA~1:/cygdr...
16237      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16238      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16239      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16240      ;;
16241    *)
16242      sys_lib_search_path_spec=$LIB
16243      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16244        # It is most probably a Windows format PATH.
16245        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16246      else
16247        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16248      fi
16249      # FIXME: find the short name or the path components, as spaces are
16250      # common. (e.g. "Program Files" -> "PROGRA~1")
16251      ;;
16252    esac
16253
16254    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16255    postinstall_cmds='base_file=`basename \$file`~
16256      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
16257      dldir=$destdir/`dirname \$dlpath`~
16258      test -d \$dldir || mkdir -p \$dldir~
16259      $install_prog $dir/$dlname \$dldir/$dlname'
16260    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16261      dlpath=$dir/\$dldll~
16262       $RM \$dlpath'
16263    shlibpath_overrides_runpath=yes
16264    dynamic_linker='Win32 link.exe'
16265    ;;
16266
16267  *)
16268    # Assume MSVC wrapper
16269    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
16270    dynamic_linker='Win32 ld.exe'
16271    ;;
16272  esac
16273  # FIXME: first we should search . and the directory the executable is in
16274  shlibpath_var=PATH
16275  ;;
16276
16277darwin* | rhapsody*)
16278  dynamic_linker="$host_os dyld"
16279  version_type=darwin
16280  need_lib_prefix=no
16281  need_version=no
16282  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
16283  soname_spec='$libname$release$major$shared_ext'
16284  shlibpath_overrides_runpath=yes
16285  shlibpath_var=DYLD_LIBRARY_PATH
16286  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16287
16288  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16289  ;;
16290
16291dgux*)
16292  version_type=linux # correct to gnu/linux during the next big refactor
16293  need_lib_prefix=no
16294  need_version=no
16295  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16296  soname_spec='$libname$release$shared_ext$major'
16297  shlibpath_var=LD_LIBRARY_PATH
16298  ;;
16299
16300freebsd* | dragonfly*)
16301  # DragonFly does not have aout.  When/if they implement a new
16302  # versioning mechanism, adjust this.
16303  if test -x /usr/bin/objformat; then
16304    objformat=`/usr/bin/objformat`
16305  else
16306    case $host_os in
16307    freebsd[23].*) objformat=aout ;;
16308    *) objformat=elf ;;
16309    esac
16310  fi
16311  version_type=freebsd-$objformat
16312  case $version_type in
16313    freebsd-elf*)
16314      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16315      soname_spec='$libname$release$shared_ext$major'
16316      need_version=no
16317      need_lib_prefix=no
16318      ;;
16319    freebsd-*)
16320      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16321      need_version=yes
16322      ;;
16323  esac
16324  shlibpath_var=LD_LIBRARY_PATH
16325  case $host_os in
16326  freebsd2.*)
16327    shlibpath_overrides_runpath=yes
16328    ;;
16329  freebsd3.[01]* | freebsdelf3.[01]*)
16330    shlibpath_overrides_runpath=yes
16331    hardcode_into_libs=yes
16332    ;;
16333  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16334  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16335    shlibpath_overrides_runpath=no
16336    hardcode_into_libs=yes
16337    ;;
16338  *) # from 4.6 on, and DragonFly
16339    shlibpath_overrides_runpath=yes
16340    hardcode_into_libs=yes
16341    ;;
16342  esac
16343  ;;
16344
16345haiku*)
16346  version_type=linux # correct to gnu/linux during the next big refactor
16347  need_lib_prefix=no
16348  need_version=no
16349  dynamic_linker="$host_os runtime_loader"
16350  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16351  soname_spec='$libname$release$shared_ext$major'
16352  shlibpath_var=LIBRARY_PATH
16353  shlibpath_overrides_runpath=no
16354  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16355  hardcode_into_libs=yes
16356  ;;
16357
16358hpux9* | hpux10* | hpux11*)
16359  # Give a soname corresponding to the major version so that dld.sl refuses to
16360  # link against other versions.
16361  version_type=sunos
16362  need_lib_prefix=no
16363  need_version=no
16364  case $host_cpu in
16365  ia64*)
16366    shrext_cmds='.so'
16367    hardcode_into_libs=yes
16368    dynamic_linker="$host_os dld.so"
16369    shlibpath_var=LD_LIBRARY_PATH
16370    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16371    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16372    soname_spec='$libname$release$shared_ext$major'
16373    if test 32 = "$HPUX_IA64_MODE"; then
16374      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16375      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
16376    else
16377      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16378      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
16379    fi
16380    ;;
16381  hppa*64*)
16382    shrext_cmds='.sl'
16383    hardcode_into_libs=yes
16384    dynamic_linker="$host_os dld.sl"
16385    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16386    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16387    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16388    soname_spec='$libname$release$shared_ext$major'
16389    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16390    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16391    ;;
16392  *)
16393    shrext_cmds='.sl'
16394    dynamic_linker="$host_os dld.sl"
16395    shlibpath_var=SHLIB_PATH
16396    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16397    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16398    soname_spec='$libname$release$shared_ext$major'
16399    ;;
16400  esac
16401  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16402  postinstall_cmds='chmod 555 $lib'
16403  # or fails outright, so override atomically:
16404  install_override_mode=555
16405  ;;
16406
16407interix[3-9]*)
16408  version_type=linux # correct to gnu/linux during the next big refactor
16409  need_lib_prefix=no
16410  need_version=no
16411  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16412  soname_spec='$libname$release$shared_ext$major'
16413  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16414  shlibpath_var=LD_LIBRARY_PATH
16415  shlibpath_overrides_runpath=no
16416  hardcode_into_libs=yes
16417  ;;
16418
16419irix5* | irix6* | nonstopux*)
16420  case $host_os in
16421    nonstopux*) version_type=nonstopux ;;
16422    *)
16423	if test yes = "$lt_cv_prog_gnu_ld"; then
16424		version_type=linux # correct to gnu/linux during the next big refactor
16425	else
16426		version_type=irix
16427	fi ;;
16428  esac
16429  need_lib_prefix=no
16430  need_version=no
16431  soname_spec='$libname$release$shared_ext$major'
16432  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
16433  case $host_os in
16434  irix5* | nonstopux*)
16435    libsuff= shlibsuff=
16436    ;;
16437  *)
16438    case $LD in # libtool.m4 will add one of these switches to LD
16439    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16440      libsuff= shlibsuff= libmagic=32-bit;;
16441    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16442      libsuff=32 shlibsuff=N32 libmagic=N32;;
16443    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16444      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16445    *) libsuff= shlibsuff= libmagic=never-match;;
16446    esac
16447    ;;
16448  esac
16449  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16450  shlibpath_overrides_runpath=no
16451  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
16452  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
16453  hardcode_into_libs=yes
16454  ;;
16455
16456# No shared lib support for Linux oldld, aout, or coff.
16457linux*oldld* | linux*aout* | linux*coff*)
16458  dynamic_linker=no
16459  ;;
16460
16461linux*android*)
16462  version_type=none # Android doesn't support versioned libraries.
16463  need_lib_prefix=no
16464  need_version=no
16465  library_names_spec='$libname$release$shared_ext'
16466  soname_spec='$libname$release$shared_ext'
16467  finish_cmds=
16468  shlibpath_var=LD_LIBRARY_PATH
16469  shlibpath_overrides_runpath=yes
16470
16471  # This implies no fast_install, which is unacceptable.
16472  # Some rework will be needed to allow for fast_install
16473  # before this can be enabled.
16474  hardcode_into_libs=yes
16475
16476  dynamic_linker='Android linker'
16477  # Don't embed -rpath directories since the linker doesn't support them.
16478  hardcode_libdir_flag_spec_CXX='-L$libdir'
16479  ;;
16480
16481# This must be glibc/ELF.
16482linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16483  version_type=linux # correct to gnu/linux during the next big refactor
16484  need_lib_prefix=no
16485  need_version=no
16486  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16487  soname_spec='$libname$release$shared_ext$major'
16488  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16489  shlibpath_var=LD_LIBRARY_PATH
16490  shlibpath_overrides_runpath=no
16491
16492  # Some binutils ld are patched to set DT_RUNPATH
16493  if test ${lt_cv_shlibpath_overrides_runpath+y}
16494then :
16495  printf %s "(cached) " >&6
16496else $as_nop
16497  lt_cv_shlibpath_overrides_runpath=no
16498    save_LDFLAGS=$LDFLAGS
16499    save_libdir=$libdir
16500    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16501	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16502    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16503/* end confdefs.h.  */
16504
16505int
16506main (void)
16507{
16508
16509  ;
16510  return 0;
16511}
16512_ACEOF
16513if ac_fn_cxx_try_link "$LINENO"
16514then :
16515  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
16516then :
16517  lt_cv_shlibpath_overrides_runpath=yes
16518fi
16519fi
16520rm -f core conftest.err conftest.$ac_objext conftest.beam \
16521    conftest$ac_exeext conftest.$ac_ext
16522    LDFLAGS=$save_LDFLAGS
16523    libdir=$save_libdir
16524
16525fi
16526
16527  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16528
16529  # This implies no fast_install, which is unacceptable.
16530  # Some rework will be needed to allow for fast_install
16531  # before this can be enabled.
16532  hardcode_into_libs=yes
16533
16534  # Ideally, we could use ldconfig to report *all* directores which are
16535  # searched for libraries, however this is still not possible.  Aside from not
16536  # being certain /sbin/ldconfig is available, command
16537  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16538  # even though it is searched at run-time.  Try to do the best guess by
16539  # appending ld.so.conf contents (and includes) to the search path.
16540  if test -f /etc/ld.so.conf; then
16541    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' ' '`
16542    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16543  fi
16544
16545  # We used to test for /lib/ld.so.1 and disable shared libraries on
16546  # powerpc, because MkLinux only supported shared libraries with the
16547  # GNU dynamic linker.  Since this was broken with cross compilers,
16548  # most powerpc-linux boxes support dynamic linking these days and
16549  # people can always --disable-shared, the test was removed, and we
16550  # assume the GNU/Linux dynamic linker is in use.
16551  dynamic_linker='GNU/Linux ld.so'
16552  ;;
16553
16554netbsd*)
16555  version_type=sunos
16556  need_lib_prefix=no
16557  need_version=no
16558  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16559    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16560    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16561    dynamic_linker='NetBSD (a.out) ld.so'
16562  else
16563    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16564    soname_spec='$libname$release$shared_ext$major'
16565    dynamic_linker='NetBSD ld.elf_so'
16566  fi
16567  shlibpath_var=LD_LIBRARY_PATH
16568  shlibpath_overrides_runpath=yes
16569  hardcode_into_libs=yes
16570  ;;
16571
16572newsos6)
16573  version_type=linux # correct to gnu/linux during the next big refactor
16574  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16575  shlibpath_var=LD_LIBRARY_PATH
16576  shlibpath_overrides_runpath=yes
16577  ;;
16578
16579*nto* | *qnx*)
16580  version_type=qnx
16581  need_lib_prefix=no
16582  need_version=no
16583  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16584  soname_spec='$libname$release$shared_ext$major'
16585  shlibpath_var=LD_LIBRARY_PATH
16586  shlibpath_overrides_runpath=no
16587  hardcode_into_libs=yes
16588  dynamic_linker='ldqnx.so'
16589  ;;
16590
16591openbsd* | bitrig*)
16592  version_type=sunos
16593  sys_lib_dlsearch_path_spec=/usr/lib
16594  need_lib_prefix=no
16595  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16596    need_version=no
16597  else
16598    need_version=yes
16599  fi
16600  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16601  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16602  shlibpath_var=LD_LIBRARY_PATH
16603  shlibpath_overrides_runpath=yes
16604  ;;
16605
16606os2*)
16607  libname_spec='$name'
16608  version_type=windows
16609  shrext_cmds=.dll
16610  need_version=no
16611  need_lib_prefix=no
16612  # OS/2 can only load a DLL with a base name of 8 characters or less.
16613  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16614    v=$($ECHO $release$versuffix | tr -d .-);
16615    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16616    $ECHO $n$v`$shared_ext'
16617  library_names_spec='${libname}_dll.$libext'
16618  dynamic_linker='OS/2 ld.exe'
16619  shlibpath_var=BEGINLIBPATH
16620  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16621  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16622  postinstall_cmds='base_file=`basename \$file`~
16623    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16624    dldir=$destdir/`dirname \$dlpath`~
16625    test -d \$dldir || mkdir -p \$dldir~
16626    $install_prog $dir/$dlname \$dldir/$dlname~
16627    chmod a+x \$dldir/$dlname~
16628    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16629      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16630    fi'
16631  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16632    dlpath=$dir/\$dldll~
16633    $RM \$dlpath'
16634  ;;
16635
16636osf3* | osf4* | osf5*)
16637  version_type=osf
16638  need_lib_prefix=no
16639  need_version=no
16640  soname_spec='$libname$release$shared_ext$major'
16641  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16642  shlibpath_var=LD_LIBRARY_PATH
16643  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16644  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16645  ;;
16646
16647rdos*)
16648  dynamic_linker=no
16649  ;;
16650
16651solaris*)
16652  version_type=linux # correct to gnu/linux during the next big refactor
16653  need_lib_prefix=no
16654  need_version=no
16655  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16656  soname_spec='$libname$release$shared_ext$major'
16657  shlibpath_var=LD_LIBRARY_PATH
16658  shlibpath_overrides_runpath=yes
16659  hardcode_into_libs=yes
16660  # ldd complains unless libraries are executable
16661  postinstall_cmds='chmod +x $lib'
16662  ;;
16663
16664sunos4*)
16665  version_type=sunos
16666  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16667  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16668  shlibpath_var=LD_LIBRARY_PATH
16669  shlibpath_overrides_runpath=yes
16670  if test yes = "$with_gnu_ld"; then
16671    need_lib_prefix=no
16672  fi
16673  need_version=yes
16674  ;;
16675
16676sysv4 | sysv4.3*)
16677  version_type=linux # correct to gnu/linux during the next big refactor
16678  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16679  soname_spec='$libname$release$shared_ext$major'
16680  shlibpath_var=LD_LIBRARY_PATH
16681  case $host_vendor in
16682    sni)
16683      shlibpath_overrides_runpath=no
16684      need_lib_prefix=no
16685      runpath_var=LD_RUN_PATH
16686      ;;
16687    siemens)
16688      need_lib_prefix=no
16689      ;;
16690    motorola)
16691      need_lib_prefix=no
16692      need_version=no
16693      shlibpath_overrides_runpath=no
16694      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16695      ;;
16696  esac
16697  ;;
16698
16699sysv4*MP*)
16700  if test -d /usr/nec; then
16701    version_type=linux # correct to gnu/linux during the next big refactor
16702    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16703    soname_spec='$libname$shared_ext.$major'
16704    shlibpath_var=LD_LIBRARY_PATH
16705  fi
16706  ;;
16707
16708sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16709  version_type=sco
16710  need_lib_prefix=no
16711  need_version=no
16712  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16713  soname_spec='$libname$release$shared_ext$major'
16714  shlibpath_var=LD_LIBRARY_PATH
16715  shlibpath_overrides_runpath=yes
16716  hardcode_into_libs=yes
16717  if test yes = "$with_gnu_ld"; then
16718    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16719  else
16720    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16721    case $host_os in
16722      sco3.2v5*)
16723        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16724	;;
16725    esac
16726  fi
16727  sys_lib_dlsearch_path_spec='/usr/lib'
16728  ;;
16729
16730tpf*)
16731  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16732  version_type=linux # correct to gnu/linux during the next big refactor
16733  need_lib_prefix=no
16734  need_version=no
16735  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16736  shlibpath_var=LD_LIBRARY_PATH
16737  shlibpath_overrides_runpath=no
16738  hardcode_into_libs=yes
16739  ;;
16740
16741uts4*)
16742  version_type=linux # correct to gnu/linux during the next big refactor
16743  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16744  soname_spec='$libname$release$shared_ext$major'
16745  shlibpath_var=LD_LIBRARY_PATH
16746  ;;
16747
16748*)
16749  dynamic_linker=no
16750  ;;
16751esac
16752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16753printf "%s\n" "$dynamic_linker" >&6; }
16754test no = "$dynamic_linker" && can_build_shared=no
16755
16756variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16757if test yes = "$GCC"; then
16758  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16759fi
16760
16761if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16762  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16763fi
16764
16765if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16766  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16767fi
16768
16769# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16770configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16771
16772# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16773func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16774
16775# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16776configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16818printf %s "checking how to hardcode library paths into programs... " >&6; }
16819hardcode_action_CXX=
16820if test -n "$hardcode_libdir_flag_spec_CXX" ||
16821   test -n "$runpath_var_CXX" ||
16822   test yes = "$hardcode_automatic_CXX"; then
16823
16824  # We can hardcode non-existent directories.
16825  if test no != "$hardcode_direct_CXX" &&
16826     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16827     # have to relink, otherwise we might link with an installed library
16828     # when we should be linking with a yet-to-be-installed one
16829     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16830     test no != "$hardcode_minus_L_CXX"; then
16831    # Linking always hardcodes the temporary library directory.
16832    hardcode_action_CXX=relink
16833  else
16834    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16835    hardcode_action_CXX=immediate
16836  fi
16837else
16838  # We cannot hardcode anything, or else we can only hardcode existing
16839  # directories.
16840  hardcode_action_CXX=unsupported
16841fi
16842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16843printf "%s\n" "$hardcode_action_CXX" >&6; }
16844
16845if test relink = "$hardcode_action_CXX" ||
16846   test yes = "$inherit_rpath_CXX"; then
16847  # Fast installation is not supported
16848  enable_fast_install=no
16849elif test yes = "$shlibpath_overrides_runpath" ||
16850     test no = "$enable_shared"; then
16851  # Fast installation is not necessary
16852  enable_fast_install=needless
16853fi
16854
16855
16856
16857
16858
16859
16860
16861  fi # test -n "$compiler"
16862
16863  CC=$lt_save_CC
16864  CFLAGS=$lt_save_CFLAGS
16865  LDCXX=$LD
16866  LD=$lt_save_LD
16867  GCC=$lt_save_GCC
16868  with_gnu_ld=$lt_save_with_gnu_ld
16869  lt_cv_path_LDCXX=$lt_cv_path_LD
16870  lt_cv_path_LD=$lt_save_path_LD
16871  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16872  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16873fi # test yes != "$_lt_caught_CXX_error"
16874
16875ac_ext=c
16876ac_cpp='$CPP $CPPFLAGS'
16877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16879ac_compiler_gnu=$ac_cv_c_compiler_gnu
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895        ac_config_commands="$ac_config_commands libtool"
16896
16897
16898
16899
16900# Only expand once:
16901
16902
16903for ac_prog in flex lex
16904do
16905  # Extract the first word of "$ac_prog", so it can be a program name with args.
16906set dummy $ac_prog; ac_word=$2
16907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16908printf %s "checking for $ac_word... " >&6; }
16909if test ${ac_cv_prog_LEX+y}
16910then :
16911  printf %s "(cached) " >&6
16912else $as_nop
16913  if test -n "$LEX"; then
16914  ac_cv_prog_LEX="$LEX" # Let the user override the test.
16915else
16916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16917for as_dir in $PATH
16918do
16919  IFS=$as_save_IFS
16920  case $as_dir in #(((
16921    '') as_dir=./ ;;
16922    */) ;;
16923    *) as_dir=$as_dir/ ;;
16924  esac
16925    for ac_exec_ext in '' $ac_executable_extensions; do
16926  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16927    ac_cv_prog_LEX="$ac_prog"
16928    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16929    break 2
16930  fi
16931done
16932  done
16933IFS=$as_save_IFS
16934
16935fi
16936fi
16937LEX=$ac_cv_prog_LEX
16938if test -n "$LEX"; then
16939  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16940printf "%s\n" "$LEX" >&6; }
16941else
16942  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16943printf "%s\n" "no" >&6; }
16944fi
16945
16946
16947  test -n "$LEX" && break
16948done
16949test -n "$LEX" || LEX=":"
16950
16951  if test "x$LEX" != "x:"; then
16952    cat >conftest.l <<_ACEOF
16953%{
16954#ifdef __cplusplus
16955extern "C"
16956#endif
16957int yywrap(void);
16958%}
16959%%
16960a { ECHO; }
16961b { REJECT; }
16962c { yymore (); }
16963d { yyless (1); }
16964e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
16965#ifdef __cplusplus
16966    yyless ((yyinput () != 0));
16967#else
16968    yyless ((input () != 0));
16969#endif
16970  }
16971f { unput (yytext[0]); }
16972. { BEGIN INITIAL; }
16973%%
16974#ifdef YYTEXT_POINTER
16975extern char *yytext;
16976#endif
16977int
16978yywrap (void)
16979{
16980  return 1;
16981}
16982int
16983main (void)
16984{
16985  return ! yylex ();
16986}
16987_ACEOF
16988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
16989printf %s "checking for lex output file root... " >&6; }
16990if test ${ac_cv_prog_lex_root+y}
16991then :
16992  printf %s "(cached) " >&6
16993else $as_nop
16994
16995ac_cv_prog_lex_root=unknown
16996{ { ac_try="$LEX conftest.l"
16997case "(($ac_try" in
16998  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999  *) ac_try_echo=$ac_try;;
17000esac
17001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17002printf "%s\n" "$ac_try_echo"; } >&5
17003  (eval "$LEX conftest.l") 2>&5
17004  ac_status=$?
17005  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17006  test $ac_status = 0; } &&
17007if test -f lex.yy.c; then
17008  ac_cv_prog_lex_root=lex.yy
17009elif test -f lexyy.c; then
17010  ac_cv_prog_lex_root=lexyy
17011fi
17012fi
17013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
17014printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
17015if test "$ac_cv_prog_lex_root" = unknown
17016then :
17017  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
17018printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
17019   LEX=: LEXLIB=
17020fi
17021LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
17022
17023if test ${LEXLIB+y}
17024then :
17025
17026else $as_nop
17027
17028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
17029printf %s "checking for lex library... " >&6; }
17030if test ${ac_cv_lib_lex+y}
17031then :
17032  printf %s "(cached) " >&6
17033else $as_nop
17034
17035    ac_save_LIBS="$LIBS"
17036    ac_found=false
17037    for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
17038      case $ac_cv_lib_lex in #(
17039  'none needed') :
17040     ;; #(
17041  'not found') :
17042    break ;; #(
17043  *) :
17044    LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
17045  *) :
17046     ;;
17047esac
17048
17049      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17050/* end confdefs.h.  */
17051`cat $LEX_OUTPUT_ROOT.c`
17052_ACEOF
17053if ac_fn_c_try_link "$LINENO"
17054then :
17055  ac_found=:
17056fi
17057rm -f core conftest.err conftest.$ac_objext conftest.beam \
17058    conftest$ac_exeext conftest.$ac_ext
17059      if $ac_found; then
17060        break
17061      fi
17062    done
17063    LIBS="$ac_save_LIBS"
17064
17065fi
17066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
17067printf "%s\n" "$ac_cv_lib_lex" >&6; }
17068  if test "$ac_cv_lib_lex" = 'not found'
17069then :
17070  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
17071printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
17072	 LEX=: LEXLIB=
17073elif test "$ac_cv_lib_lex" = 'none needed'
17074then :
17075  LEXLIB=''
17076else $as_nop
17077  LEXLIB=$ac_cv_lib_lex
17078fi
17079  ac_save_LIBS="$LIBS"
17080      if test -n "$LEXLIB"
17081then :
17082  LIBS="$LEXLIB"
17083        ac_fn_c_check_func "$LINENO" "yywrap" "ac_cv_func_yywrap"
17084if test "x$ac_cv_func_yywrap" = xyes
17085then :
17086  :
17087else $as_nop
17088  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $LEXLIB does not contain yywrap; giving up on $LEX" >&5
17089printf "%s\n" "$as_me: WARNING: $LEXLIB does not contain yywrap; giving up on $LEX" >&2;}
17090          LEX=: LEXLIB=
17091fi
17092
17093
17094else $as_nop
17095  LIBS=
17096        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing yywrap" >&5
17097printf %s "checking for library containing yywrap... " >&6; }
17098if test ${ac_cv_search_yywrap+y}
17099then :
17100  printf %s "(cached) " >&6
17101else $as_nop
17102  ac_func_search_save_LIBS=$LIBS
17103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17104/* end confdefs.h.  */
17105
17106/* Override any GCC internal prototype to avoid an error.
17107   Use char because int might match the return type of a GCC
17108   builtin and then its argument prototype would still apply.  */
17109char yywrap ();
17110int
17111main (void)
17112{
17113return yywrap ();
17114  ;
17115  return 0;
17116}
17117_ACEOF
17118for ac_lib in '' fl l
17119do
17120  if test -z "$ac_lib"; then
17121    ac_res="none required"
17122  else
17123    ac_res=-l$ac_lib
17124    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17125  fi
17126  if ac_fn_c_try_link "$LINENO"
17127then :
17128  ac_cv_search_yywrap=$ac_res
17129fi
17130rm -f core conftest.err conftest.$ac_objext conftest.beam \
17131    conftest$ac_exeext
17132  if test ${ac_cv_search_yywrap+y}
17133then :
17134  break
17135fi
17136done
17137if test ${ac_cv_search_yywrap+y}
17138then :
17139
17140else $as_nop
17141  ac_cv_search_yywrap=no
17142fi
17143rm conftest.$ac_ext
17144LIBS=$ac_func_search_save_LIBS
17145fi
17146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yywrap" >&5
17147printf "%s\n" "$ac_cv_search_yywrap" >&6; }
17148ac_res=$ac_cv_search_yywrap
17149if test "$ac_res" != no
17150then :
17151  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17152  LEXLIB="$LIBS"
17153fi
17154
17155        if test x"$ac_cv_search_yywrap" = xno
17156then :
17157  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: yywrap not found; giving up on $LEX" >&5
17158printf "%s\n" "$as_me: WARNING: yywrap not found; giving up on $LEX" >&2;}
17159          LEX=: LEXLIB=
17160fi
17161fi
17162      LIBS="$ac_save_LIBS"
17163fi
17164
17165
17166if test "$LEX" != :
17167then :
17168
17169{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
17170printf %s "checking whether yytext is a pointer... " >&6; }
17171if test ${ac_cv_prog_lex_yytext_pointer+y}
17172then :
17173  printf %s "(cached) " >&6
17174else $as_nop
17175  # POSIX says lex can declare yytext either as a pointer or an array; the
17176# default is implementation-dependent.  Figure out which it is, since
17177# not all implementations provide the %pointer and %array declarations.
17178ac_cv_prog_lex_yytext_pointer=no
17179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17180/* end confdefs.h.  */
17181
17182  #define YYTEXT_POINTER 1
17183`cat $LEX_OUTPUT_ROOT.c`
17184_ACEOF
17185if ac_fn_c_try_compile "$LINENO"
17186then :
17187  ac_cv_prog_lex_yytext_pointer=yes
17188fi
17189rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17190
17191fi
17192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
17193printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
17194if test $ac_cv_prog_lex_yytext_pointer = yes; then
17195
17196printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
17197
17198fi
17199
17200fi
17201rm -f conftest.l $LEX_OUTPUT_ROOT.c
17202
17203fi
17204for ac_prog in 'bison -y' byacc
17205do
17206  # Extract the first word of "$ac_prog", so it can be a program name with args.
17207set dummy $ac_prog; ac_word=$2
17208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17209printf %s "checking for $ac_word... " >&6; }
17210if test ${ac_cv_prog_YACC+y}
17211then :
17212  printf %s "(cached) " >&6
17213else $as_nop
17214  if test -n "$YACC"; then
17215  ac_cv_prog_YACC="$YACC" # Let the user override the test.
17216else
17217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17218for as_dir in $PATH
17219do
17220  IFS=$as_save_IFS
17221  case $as_dir in #(((
17222    '') as_dir=./ ;;
17223    */) ;;
17224    *) as_dir=$as_dir/ ;;
17225  esac
17226    for ac_exec_ext in '' $ac_executable_extensions; do
17227  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17228    ac_cv_prog_YACC="$ac_prog"
17229    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17230    break 2
17231  fi
17232done
17233  done
17234IFS=$as_save_IFS
17235
17236fi
17237fi
17238YACC=$ac_cv_prog_YACC
17239if test -n "$YACC"; then
17240  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
17241printf "%s\n" "$YACC" >&6; }
17242else
17243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17244printf "%s\n" "no" >&6; }
17245fi
17246
17247
17248  test -n "$YACC" && break
17249done
17250test -n "$YACC" || YACC="yacc"
17251
17252# Extract the first word of "$YACC", so it can be a program name with args.
17253set dummy $YACC; ac_word=$2
17254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17255printf %s "checking for $ac_word... " >&6; }
17256if test ${ac_cv_path_YACCEXE+y}
17257then :
17258  printf %s "(cached) " >&6
17259else $as_nop
17260  case $YACCEXE in
17261  [\\/]* | ?:[\\/]*)
17262  ac_cv_path_YACCEXE="$YACCEXE" # Let the user override the test with a path.
17263  ;;
17264  *)
17265  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17266for as_dir in $PATH
17267do
17268  IFS=$as_save_IFS
17269  case $as_dir in #(((
17270    '') as_dir=./ ;;
17271    */) ;;
17272    *) as_dir=$as_dir/ ;;
17273  esac
17274    for ac_exec_ext in '' $ac_executable_extensions; do
17275  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
17276    ac_cv_path_YACCEXE="$as_dir$ac_word$ac_exec_ext"
17277    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17278    break 2
17279  fi
17280done
17281  done
17282IFS=$as_save_IFS
17283
17284  test -z "$ac_cv_path_YACCEXE" && ac_cv_path_YACCEXE=""""
17285  ;;
17286esac
17287fi
17288YACCEXE=$ac_cv_path_YACCEXE
17289if test -n "$YACCEXE"; then
17290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACCEXE" >&5
17291printf "%s\n" "$YACCEXE" >&6; }
17292else
17293  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17294printf "%s\n" "no" >&6; }
17295fi
17296
17297
17298if test "x$LEX" = "x:" -a ! -f $srcdir/ginsh/ginsh_lexer.cpp
17299then :
17300
17301ginac_warning_txt="$ginac_warning_txt
17302== ginsh will not compile, because lex/flex is missing
17303"
17304ginac_warning=yes
17305fi
17306if test -z "$YACCEXE" -a ! -f $srcdir/ginsh/ginsh_parser.hpp
17307then :
17308
17309ginac_warning_txt="$ginac_warning_txt
17310== ginsh will not compile, because yacc/bison is missing
17311"
17312ginac_warning=yes
17313fi
17314
17315ac_ext=cpp
17316ac_cpp='$CXXCPP $CPPFLAGS'
17317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17320
17321  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
17322  ac_ext=cpp
17323ac_cpp='$CXXCPP $CPPFLAGS'
17324ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17325ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17326ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17327  ac_success=no
17328
17329      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17330printf %s "checking whether $CXX supports C++11 features by default... " >&6; }
17331if test ${ax_cv_cxx_compile_cxx11+y}
17332then :
17333  printf %s "(cached) " >&6
17334else $as_nop
17335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336/* end confdefs.h.  */
17337
17338
17339// If the compiler admits that it is not ready for C++11, why torture it?
17340// Hopefully, this will speed up the test.
17341
17342#ifndef __cplusplus
17343
17344#error "This is not a C++ compiler"
17345
17346#elif __cplusplus < 201103L
17347
17348#error "This is not a C++11 compiler"
17349
17350#else
17351
17352namespace cxx11
17353{
17354
17355  namespace test_static_assert
17356  {
17357
17358    template <typename T>
17359    struct check
17360    {
17361      static_assert(sizeof(int) <= sizeof(T), "not big enough");
17362    };
17363
17364  }
17365
17366  namespace test_final_override
17367  {
17368
17369    struct Base
17370    {
17371      virtual ~Base() {}
17372      virtual void f() {}
17373    };
17374
17375    struct Derived : public Base
17376    {
17377      virtual ~Derived() override {}
17378      virtual void f() override {}
17379    };
17380
17381  }
17382
17383  namespace test_double_right_angle_brackets
17384  {
17385
17386    template < typename T >
17387    struct check {};
17388
17389    typedef check<void> single_type;
17390    typedef check<check<void>> double_type;
17391    typedef check<check<check<void>>> triple_type;
17392    typedef check<check<check<check<void>>>> quadruple_type;
17393
17394  }
17395
17396  namespace test_decltype
17397  {
17398
17399    int
17400    f()
17401    {
17402      int a = 1;
17403      decltype(a) b = 2;
17404      return a + b;
17405    }
17406
17407  }
17408
17409  namespace test_type_deduction
17410  {
17411
17412    template < typename T1, typename T2 >
17413    struct is_same
17414    {
17415      static const bool value = false;
17416    };
17417
17418    template < typename T >
17419    struct is_same<T, T>
17420    {
17421      static const bool value = true;
17422    };
17423
17424    template < typename T1, typename T2 >
17425    auto
17426    add(T1 a1, T2 a2) -> decltype(a1 + a2)
17427    {
17428      return a1 + a2;
17429    }
17430
17431    int
17432    test(const int c, volatile int v)
17433    {
17434      static_assert(is_same<int, decltype(0)>::value == true, "");
17435      static_assert(is_same<int, decltype(c)>::value == false, "");
17436      static_assert(is_same<int, decltype(v)>::value == false, "");
17437      auto ac = c;
17438      auto av = v;
17439      auto sumi = ac + av + 'x';
17440      auto sumf = ac + av + 1.0;
17441      static_assert(is_same<int, decltype(ac)>::value == true, "");
17442      static_assert(is_same<int, decltype(av)>::value == true, "");
17443      static_assert(is_same<int, decltype(sumi)>::value == true, "");
17444      static_assert(is_same<int, decltype(sumf)>::value == false, "");
17445      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17446      return (sumf > 0.0) ? sumi : add(c, v);
17447    }
17448
17449  }
17450
17451  namespace test_noexcept
17452  {
17453
17454    int f() { return 0; }
17455    int g() noexcept { return 0; }
17456
17457    static_assert(noexcept(f()) == false, "");
17458    static_assert(noexcept(g()) == true, "");
17459
17460  }
17461
17462  namespace test_constexpr
17463  {
17464
17465    template < typename CharT >
17466    unsigned long constexpr
17467    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17468    {
17469      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17470    }
17471
17472    template < typename CharT >
17473    unsigned long constexpr
17474    strlen_c(const CharT *const s) noexcept
17475    {
17476      return strlen_c_r(s, 0UL);
17477    }
17478
17479    static_assert(strlen_c("") == 0UL, "");
17480    static_assert(strlen_c("1") == 1UL, "");
17481    static_assert(strlen_c("example") == 7UL, "");
17482    static_assert(strlen_c("another\0example") == 7UL, "");
17483
17484  }
17485
17486  namespace test_rvalue_references
17487  {
17488
17489    template < int N >
17490    struct answer
17491    {
17492      static constexpr int value = N;
17493    };
17494
17495    answer<1> f(int&)       { return answer<1>(); }
17496    answer<2> f(const int&) { return answer<2>(); }
17497    answer<3> f(int&&)      { return answer<3>(); }
17498
17499    void
17500    test()
17501    {
17502      int i = 0;
17503      const int c = 0;
17504      static_assert(decltype(f(i))::value == 1, "");
17505      static_assert(decltype(f(c))::value == 2, "");
17506      static_assert(decltype(f(0))::value == 3, "");
17507    }
17508
17509  }
17510
17511  namespace test_uniform_initialization
17512  {
17513
17514    struct test
17515    {
17516      static const int zero {};
17517      static const int one {1};
17518    };
17519
17520    static_assert(test::zero == 0, "");
17521    static_assert(test::one == 1, "");
17522
17523  }
17524
17525  namespace test_lambdas
17526  {
17527
17528    void
17529    test1()
17530    {
17531      auto lambda1 = [](){};
17532      auto lambda2 = lambda1;
17533      lambda1();
17534      lambda2();
17535    }
17536
17537    int
17538    test2()
17539    {
17540      auto a = [](int i, int j){ return i + j; }(1, 2);
17541      auto b = []() -> int { return '0'; }();
17542      auto c = [=](){ return a + b; }();
17543      auto d = [&](){ return c; }();
17544      auto e = [a, &b](int x) mutable {
17545        const auto identity = [](int y){ return y; };
17546        for (auto i = 0; i < a; ++i)
17547          a += b--;
17548        return x + identity(a + b);
17549      }(0);
17550      return a + b + c + d + e;
17551    }
17552
17553    int
17554    test3()
17555    {
17556      const auto nullary = [](){ return 0; };
17557      const auto unary = [](int x){ return x; };
17558      using nullary_t = decltype(nullary);
17559      using unary_t = decltype(unary);
17560      const auto higher1st = [](nullary_t f){ return f(); };
17561      const auto higher2nd = [unary](nullary_t f1){
17562        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17563      };
17564      return higher1st(nullary) + higher2nd(nullary)(unary);
17565    }
17566
17567  }
17568
17569  namespace test_variadic_templates
17570  {
17571
17572    template <int...>
17573    struct sum;
17574
17575    template <int N0, int... N1toN>
17576    struct sum<N0, N1toN...>
17577    {
17578      static constexpr auto value = N0 + sum<N1toN...>::value;
17579    };
17580
17581    template <>
17582    struct sum<>
17583    {
17584      static constexpr auto value = 0;
17585    };
17586
17587    static_assert(sum<>::value == 0, "");
17588    static_assert(sum<1>::value == 1, "");
17589    static_assert(sum<23>::value == 23, "");
17590    static_assert(sum<1, 2>::value == 3, "");
17591    static_assert(sum<5, 5, 11>::value == 21, "");
17592    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17593
17594  }
17595
17596  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17597  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17598  // because of this.
17599  namespace test_template_alias_sfinae
17600  {
17601
17602    struct foo {};
17603
17604    template<typename T>
17605    using member = typename T::member_type;
17606
17607    template<typename T>
17608    void func(...) {}
17609
17610    template<typename T>
17611    void func(member<T>*) {}
17612
17613    void test();
17614
17615    void test() { func<foo>(0); }
17616
17617  }
17618
17619}  // namespace cxx11
17620
17621#endif  // __cplusplus >= 201103L
17622
17623
17624
17625_ACEOF
17626if ac_fn_cxx_try_compile "$LINENO"
17627then :
17628  ax_cv_cxx_compile_cxx11=yes
17629else $as_nop
17630  ax_cv_cxx_compile_cxx11=no
17631fi
17632rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17633fi
17634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
17635printf "%s\n" "$ax_cv_cxx_compile_cxx11" >&6; }
17636    if test x$ax_cv_cxx_compile_cxx11 = xyes; then
17637      ac_success=yes
17638    fi
17639
17640    if test x$ac_success = xno; then
17641    for alternative in ${ax_cxx_compile_alternatives}; do
17642      switch="-std=gnu++${alternative}"
17643      cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17644      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17645printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
17646if eval test \${$cachevar+y}
17647then :
17648  printf %s "(cached) " >&6
17649else $as_nop
17650  ac_save_CXX="$CXX"
17651         CXX="$CXX $switch"
17652         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653/* end confdefs.h.  */
17654
17655
17656// If the compiler admits that it is not ready for C++11, why torture it?
17657// Hopefully, this will speed up the test.
17658
17659#ifndef __cplusplus
17660
17661#error "This is not a C++ compiler"
17662
17663#elif __cplusplus < 201103L
17664
17665#error "This is not a C++11 compiler"
17666
17667#else
17668
17669namespace cxx11
17670{
17671
17672  namespace test_static_assert
17673  {
17674
17675    template <typename T>
17676    struct check
17677    {
17678      static_assert(sizeof(int) <= sizeof(T), "not big enough");
17679    };
17680
17681  }
17682
17683  namespace test_final_override
17684  {
17685
17686    struct Base
17687    {
17688      virtual ~Base() {}
17689      virtual void f() {}
17690    };
17691
17692    struct Derived : public Base
17693    {
17694      virtual ~Derived() override {}
17695      virtual void f() override {}
17696    };
17697
17698  }
17699
17700  namespace test_double_right_angle_brackets
17701  {
17702
17703    template < typename T >
17704    struct check {};
17705
17706    typedef check<void> single_type;
17707    typedef check<check<void>> double_type;
17708    typedef check<check<check<void>>> triple_type;
17709    typedef check<check<check<check<void>>>> quadruple_type;
17710
17711  }
17712
17713  namespace test_decltype
17714  {
17715
17716    int
17717    f()
17718    {
17719      int a = 1;
17720      decltype(a) b = 2;
17721      return a + b;
17722    }
17723
17724  }
17725
17726  namespace test_type_deduction
17727  {
17728
17729    template < typename T1, typename T2 >
17730    struct is_same
17731    {
17732      static const bool value = false;
17733    };
17734
17735    template < typename T >
17736    struct is_same<T, T>
17737    {
17738      static const bool value = true;
17739    };
17740
17741    template < typename T1, typename T2 >
17742    auto
17743    add(T1 a1, T2 a2) -> decltype(a1 + a2)
17744    {
17745      return a1 + a2;
17746    }
17747
17748    int
17749    test(const int c, volatile int v)
17750    {
17751      static_assert(is_same<int, decltype(0)>::value == true, "");
17752      static_assert(is_same<int, decltype(c)>::value == false, "");
17753      static_assert(is_same<int, decltype(v)>::value == false, "");
17754      auto ac = c;
17755      auto av = v;
17756      auto sumi = ac + av + 'x';
17757      auto sumf = ac + av + 1.0;
17758      static_assert(is_same<int, decltype(ac)>::value == true, "");
17759      static_assert(is_same<int, decltype(av)>::value == true, "");
17760      static_assert(is_same<int, decltype(sumi)>::value == true, "");
17761      static_assert(is_same<int, decltype(sumf)>::value == false, "");
17762      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
17763      return (sumf > 0.0) ? sumi : add(c, v);
17764    }
17765
17766  }
17767
17768  namespace test_noexcept
17769  {
17770
17771    int f() { return 0; }
17772    int g() noexcept { return 0; }
17773
17774    static_assert(noexcept(f()) == false, "");
17775    static_assert(noexcept(g()) == true, "");
17776
17777  }
17778
17779  namespace test_constexpr
17780  {
17781
17782    template < typename CharT >
17783    unsigned long constexpr
17784    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
17785    {
17786      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
17787    }
17788
17789    template < typename CharT >
17790    unsigned long constexpr
17791    strlen_c(const CharT *const s) noexcept
17792    {
17793      return strlen_c_r(s, 0UL);
17794    }
17795
17796    static_assert(strlen_c("") == 0UL, "");
17797    static_assert(strlen_c("1") == 1UL, "");
17798    static_assert(strlen_c("example") == 7UL, "");
17799    static_assert(strlen_c("another\0example") == 7UL, "");
17800
17801  }
17802
17803  namespace test_rvalue_references
17804  {
17805
17806    template < int N >
17807    struct answer
17808    {
17809      static constexpr int value = N;
17810    };
17811
17812    answer<1> f(int&)       { return answer<1>(); }
17813    answer<2> f(const int&) { return answer<2>(); }
17814    answer<3> f(int&&)      { return answer<3>(); }
17815
17816    void
17817    test()
17818    {
17819      int i = 0;
17820      const int c = 0;
17821      static_assert(decltype(f(i))::value == 1, "");
17822      static_assert(decltype(f(c))::value == 2, "");
17823      static_assert(decltype(f(0))::value == 3, "");
17824    }
17825
17826  }
17827
17828  namespace test_uniform_initialization
17829  {
17830
17831    struct test
17832    {
17833      static const int zero {};
17834      static const int one {1};
17835    };
17836
17837    static_assert(test::zero == 0, "");
17838    static_assert(test::one == 1, "");
17839
17840  }
17841
17842  namespace test_lambdas
17843  {
17844
17845    void
17846    test1()
17847    {
17848      auto lambda1 = [](){};
17849      auto lambda2 = lambda1;
17850      lambda1();
17851      lambda2();
17852    }
17853
17854    int
17855    test2()
17856    {
17857      auto a = [](int i, int j){ return i + j; }(1, 2);
17858      auto b = []() -> int { return '0'; }();
17859      auto c = [=](){ return a + b; }();
17860      auto d = [&](){ return c; }();
17861      auto e = [a, &b](int x) mutable {
17862        const auto identity = [](int y){ return y; };
17863        for (auto i = 0; i < a; ++i)
17864          a += b--;
17865        return x + identity(a + b);
17866      }(0);
17867      return a + b + c + d + e;
17868    }
17869
17870    int
17871    test3()
17872    {
17873      const auto nullary = [](){ return 0; };
17874      const auto unary = [](int x){ return x; };
17875      using nullary_t = decltype(nullary);
17876      using unary_t = decltype(unary);
17877      const auto higher1st = [](nullary_t f){ return f(); };
17878      const auto higher2nd = [unary](nullary_t f1){
17879        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
17880      };
17881      return higher1st(nullary) + higher2nd(nullary)(unary);
17882    }
17883
17884  }
17885
17886  namespace test_variadic_templates
17887  {
17888
17889    template <int...>
17890    struct sum;
17891
17892    template <int N0, int... N1toN>
17893    struct sum<N0, N1toN...>
17894    {
17895      static constexpr auto value = N0 + sum<N1toN...>::value;
17896    };
17897
17898    template <>
17899    struct sum<>
17900    {
17901      static constexpr auto value = 0;
17902    };
17903
17904    static_assert(sum<>::value == 0, "");
17905    static_assert(sum<1>::value == 1, "");
17906    static_assert(sum<23>::value == 23, "");
17907    static_assert(sum<1, 2>::value == 3, "");
17908    static_assert(sum<5, 5, 11>::value == 21, "");
17909    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
17910
17911  }
17912
17913  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
17914  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
17915  // because of this.
17916  namespace test_template_alias_sfinae
17917  {
17918
17919    struct foo {};
17920
17921    template<typename T>
17922    using member = typename T::member_type;
17923
17924    template<typename T>
17925    void func(...) {}
17926
17927    template<typename T>
17928    void func(member<T>*) {}
17929
17930    void test();
17931
17932    void test() { func<foo>(0); }
17933
17934  }
17935
17936}  // namespace cxx11
17937
17938#endif  // __cplusplus >= 201103L
17939
17940
17941
17942_ACEOF
17943if ac_fn_cxx_try_compile "$LINENO"
17944then :
17945  eval $cachevar=yes
17946else $as_nop
17947  eval $cachevar=no
17948fi
17949rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17950         CXX="$ac_save_CXX"
17951fi
17952eval ac_res=\$$cachevar
17953	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17954printf "%s\n" "$ac_res" >&6; }
17955      if eval test x\$$cachevar = xyes; then
17956        CXX="$CXX $switch"
17957        if test -n "$CXXCPP" ; then
17958          CXXCPP="$CXXCPP $switch"
17959        fi
17960        ac_success=yes
17961        break
17962      fi
17963    done
17964  fi
17965
17966    if test x$ac_success = xno; then
17967                for alternative in ${ax_cxx_compile_alternatives}; do
17968      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
17969        cachevar=`printf "%s\n" "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17970        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17971printf %s "checking whether $CXX supports C++11 features with $switch... " >&6; }
17972if eval test \${$cachevar+y}
17973then :
17974  printf %s "(cached) " >&6
17975else $as_nop
17976  ac_save_CXX="$CXX"
17977           CXX="$CXX $switch"
17978           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979/* end confdefs.h.  */
17980
17981
17982// If the compiler admits that it is not ready for C++11, why torture it?
17983// Hopefully, this will speed up the test.
17984
17985#ifndef __cplusplus
17986
17987#error "This is not a C++ compiler"
17988
17989#elif __cplusplus < 201103L
17990
17991#error "This is not a C++11 compiler"
17992
17993#else
17994
17995namespace cxx11
17996{
17997
17998  namespace test_static_assert
17999  {
18000
18001    template <typename T>
18002    struct check
18003    {
18004      static_assert(sizeof(int) <= sizeof(T), "not big enough");
18005    };
18006
18007  }
18008
18009  namespace test_final_override
18010  {
18011
18012    struct Base
18013    {
18014      virtual ~Base() {}
18015      virtual void f() {}
18016    };
18017
18018    struct Derived : public Base
18019    {
18020      virtual ~Derived() override {}
18021      virtual void f() override {}
18022    };
18023
18024  }
18025
18026  namespace test_double_right_angle_brackets
18027  {
18028
18029    template < typename T >
18030    struct check {};
18031
18032    typedef check<void> single_type;
18033    typedef check<check<void>> double_type;
18034    typedef check<check<check<void>>> triple_type;
18035    typedef check<check<check<check<void>>>> quadruple_type;
18036
18037  }
18038
18039  namespace test_decltype
18040  {
18041
18042    int
18043    f()
18044    {
18045      int a = 1;
18046      decltype(a) b = 2;
18047      return a + b;
18048    }
18049
18050  }
18051
18052  namespace test_type_deduction
18053  {
18054
18055    template < typename T1, typename T2 >
18056    struct is_same
18057    {
18058      static const bool value = false;
18059    };
18060
18061    template < typename T >
18062    struct is_same<T, T>
18063    {
18064      static const bool value = true;
18065    };
18066
18067    template < typename T1, typename T2 >
18068    auto
18069    add(T1 a1, T2 a2) -> decltype(a1 + a2)
18070    {
18071      return a1 + a2;
18072    }
18073
18074    int
18075    test(const int c, volatile int v)
18076    {
18077      static_assert(is_same<int, decltype(0)>::value == true, "");
18078      static_assert(is_same<int, decltype(c)>::value == false, "");
18079      static_assert(is_same<int, decltype(v)>::value == false, "");
18080      auto ac = c;
18081      auto av = v;
18082      auto sumi = ac + av + 'x';
18083      auto sumf = ac + av + 1.0;
18084      static_assert(is_same<int, decltype(ac)>::value == true, "");
18085      static_assert(is_same<int, decltype(av)>::value == true, "");
18086      static_assert(is_same<int, decltype(sumi)>::value == true, "");
18087      static_assert(is_same<int, decltype(sumf)>::value == false, "");
18088      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
18089      return (sumf > 0.0) ? sumi : add(c, v);
18090    }
18091
18092  }
18093
18094  namespace test_noexcept
18095  {
18096
18097    int f() { return 0; }
18098    int g() noexcept { return 0; }
18099
18100    static_assert(noexcept(f()) == false, "");
18101    static_assert(noexcept(g()) == true, "");
18102
18103  }
18104
18105  namespace test_constexpr
18106  {
18107
18108    template < typename CharT >
18109    unsigned long constexpr
18110    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
18111    {
18112      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
18113    }
18114
18115    template < typename CharT >
18116    unsigned long constexpr
18117    strlen_c(const CharT *const s) noexcept
18118    {
18119      return strlen_c_r(s, 0UL);
18120    }
18121
18122    static_assert(strlen_c("") == 0UL, "");
18123    static_assert(strlen_c("1") == 1UL, "");
18124    static_assert(strlen_c("example") == 7UL, "");
18125    static_assert(strlen_c("another\0example") == 7UL, "");
18126
18127  }
18128
18129  namespace test_rvalue_references
18130  {
18131
18132    template < int N >
18133    struct answer
18134    {
18135      static constexpr int value = N;
18136    };
18137
18138    answer<1> f(int&)       { return answer<1>(); }
18139    answer<2> f(const int&) { return answer<2>(); }
18140    answer<3> f(int&&)      { return answer<3>(); }
18141
18142    void
18143    test()
18144    {
18145      int i = 0;
18146      const int c = 0;
18147      static_assert(decltype(f(i))::value == 1, "");
18148      static_assert(decltype(f(c))::value == 2, "");
18149      static_assert(decltype(f(0))::value == 3, "");
18150    }
18151
18152  }
18153
18154  namespace test_uniform_initialization
18155  {
18156
18157    struct test
18158    {
18159      static const int zero {};
18160      static const int one {1};
18161    };
18162
18163    static_assert(test::zero == 0, "");
18164    static_assert(test::one == 1, "");
18165
18166  }
18167
18168  namespace test_lambdas
18169  {
18170
18171    void
18172    test1()
18173    {
18174      auto lambda1 = [](){};
18175      auto lambda2 = lambda1;
18176      lambda1();
18177      lambda2();
18178    }
18179
18180    int
18181    test2()
18182    {
18183      auto a = [](int i, int j){ return i + j; }(1, 2);
18184      auto b = []() -> int { return '0'; }();
18185      auto c = [=](){ return a + b; }();
18186      auto d = [&](){ return c; }();
18187      auto e = [a, &b](int x) mutable {
18188        const auto identity = [](int y){ return y; };
18189        for (auto i = 0; i < a; ++i)
18190          a += b--;
18191        return x + identity(a + b);
18192      }(0);
18193      return a + b + c + d + e;
18194    }
18195
18196    int
18197    test3()
18198    {
18199      const auto nullary = [](){ return 0; };
18200      const auto unary = [](int x){ return x; };
18201      using nullary_t = decltype(nullary);
18202      using unary_t = decltype(unary);
18203      const auto higher1st = [](nullary_t f){ return f(); };
18204      const auto higher2nd = [unary](nullary_t f1){
18205        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
18206      };
18207      return higher1st(nullary) + higher2nd(nullary)(unary);
18208    }
18209
18210  }
18211
18212  namespace test_variadic_templates
18213  {
18214
18215    template <int...>
18216    struct sum;
18217
18218    template <int N0, int... N1toN>
18219    struct sum<N0, N1toN...>
18220    {
18221      static constexpr auto value = N0 + sum<N1toN...>::value;
18222    };
18223
18224    template <>
18225    struct sum<>
18226    {
18227      static constexpr auto value = 0;
18228    };
18229
18230    static_assert(sum<>::value == 0, "");
18231    static_assert(sum<1>::value == 1, "");
18232    static_assert(sum<23>::value == 23, "");
18233    static_assert(sum<1, 2>::value == 3, "");
18234    static_assert(sum<5, 5, 11>::value == 21, "");
18235    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
18236
18237  }
18238
18239  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
18240  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
18241  // because of this.
18242  namespace test_template_alias_sfinae
18243  {
18244
18245    struct foo {};
18246
18247    template<typename T>
18248    using member = typename T::member_type;
18249
18250    template<typename T>
18251    void func(...) {}
18252
18253    template<typename T>
18254    void func(member<T>*) {}
18255
18256    void test();
18257
18258    void test() { func<foo>(0); }
18259
18260  }
18261
18262}  // namespace cxx11
18263
18264#endif  // __cplusplus >= 201103L
18265
18266
18267
18268_ACEOF
18269if ac_fn_cxx_try_compile "$LINENO"
18270then :
18271  eval $cachevar=yes
18272else $as_nop
18273  eval $cachevar=no
18274fi
18275rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18276           CXX="$ac_save_CXX"
18277fi
18278eval ac_res=\$$cachevar
18279	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18280printf "%s\n" "$ac_res" >&6; }
18281        if eval test x\$$cachevar = xyes; then
18282          CXX="$CXX $switch"
18283          if test -n "$CXXCPP" ; then
18284            CXXCPP="$CXXCPP $switch"
18285          fi
18286          ac_success=yes
18287          break
18288        fi
18289      done
18290      if test x$ac_success = xyes; then
18291        break
18292      fi
18293    done
18294  fi
18295  ac_ext=cpp
18296ac_cpp='$CXXCPP $CPPFLAGS'
18297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18300
18301  if test x$ax_cxx_compile_cxx11_required = xtrue; then
18302    if test x$ac_success = xno; then
18303      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
18304    fi
18305  fi
18306  if test x$ac_success = xno; then
18307    HAVE_CXX11=0
18308    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
18309printf "%s\n" "$as_me: No compiler with C++11 support was found" >&6;}
18310  else
18311    HAVE_CXX11=1
18312
18313printf "%s\n" "#define HAVE_CXX11 1" >>confdefs.h
18314
18315  fi
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18327	if test -n "$ac_tool_prefix"; then
18328  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18329set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18331printf %s "checking for $ac_word... " >&6; }
18332if test ${ac_cv_path_PKG_CONFIG+y}
18333then :
18334  printf %s "(cached) " >&6
18335else $as_nop
18336  case $PKG_CONFIG in
18337  [\\/]* | ?:[\\/]*)
18338  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18339  ;;
18340  *)
18341  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18342for as_dir in $PATH
18343do
18344  IFS=$as_save_IFS
18345  case $as_dir in #(((
18346    '') as_dir=./ ;;
18347    */) ;;
18348    *) as_dir=$as_dir/ ;;
18349  esac
18350    for ac_exec_ext in '' $ac_executable_extensions; do
18351  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18352    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18353    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18354    break 2
18355  fi
18356done
18357  done
18358IFS=$as_save_IFS
18359
18360  ;;
18361esac
18362fi
18363PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18364if test -n "$PKG_CONFIG"; then
18365  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18366printf "%s\n" "$PKG_CONFIG" >&6; }
18367else
18368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18369printf "%s\n" "no" >&6; }
18370fi
18371
18372
18373fi
18374if test -z "$ac_cv_path_PKG_CONFIG"; then
18375  ac_pt_PKG_CONFIG=$PKG_CONFIG
18376  # Extract the first word of "pkg-config", so it can be a program name with args.
18377set dummy pkg-config; ac_word=$2
18378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18379printf %s "checking for $ac_word... " >&6; }
18380if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
18381then :
18382  printf %s "(cached) " >&6
18383else $as_nop
18384  case $ac_pt_PKG_CONFIG in
18385  [\\/]* | ?:[\\/]*)
18386  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18387  ;;
18388  *)
18389  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18390for as_dir in $PATH
18391do
18392  IFS=$as_save_IFS
18393  case $as_dir in #(((
18394    '') as_dir=./ ;;
18395    */) ;;
18396    *) as_dir=$as_dir/ ;;
18397  esac
18398    for ac_exec_ext in '' $ac_executable_extensions; do
18399  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
18400    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
18401    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
18402    break 2
18403  fi
18404done
18405  done
18406IFS=$as_save_IFS
18407
18408  ;;
18409esac
18410fi
18411ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18412if test -n "$ac_pt_PKG_CONFIG"; then
18413  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18414printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
18415else
18416  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18417printf "%s\n" "no" >&6; }
18418fi
18419
18420  if test "x$ac_pt_PKG_CONFIG" = x; then
18421    PKG_CONFIG=""
18422  else
18423    case $cross_compiling:$ac_tool_warned in
18424yes:)
18425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18426printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18427ac_tool_warned=yes ;;
18428esac
18429    PKG_CONFIG=$ac_pt_PKG_CONFIG
18430  fi
18431else
18432  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18433fi
18434
18435fi
18436if test -n "$PKG_CONFIG"; then
18437	_pkg_min_version=0.9.0
18438	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18439printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18440	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18441		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18442printf "%s\n" "yes" >&6; }
18443	else
18444		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18445printf "%s\n" "no" >&6; }
18446		PKG_CONFIG=""
18447	fi
18448fi
18449
18450pkg_failed=no
18451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CLN" >&5
18452printf %s "checking for CLN... " >&6; }
18453
18454if test -n "$CLN_CFLAGS"; then
18455    pkg_cv_CLN_CFLAGS="$CLN_CFLAGS"
18456 elif test -n "$PKG_CONFIG"; then
18457    if test -n "$PKG_CONFIG" && \
18458    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cln >= 1.2.2\""; } >&5
18459  ($PKG_CONFIG --exists --print-errors "cln >= 1.2.2") 2>&5
18460  ac_status=$?
18461  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18462  test $ac_status = 0; }; then
18463  pkg_cv_CLN_CFLAGS=`$PKG_CONFIG --cflags "cln >= 1.2.2" 2>/dev/null`
18464		      test "x$?" != "x0" && pkg_failed=yes
18465else
18466  pkg_failed=yes
18467fi
18468 else
18469    pkg_failed=untried
18470fi
18471if test -n "$CLN_LIBS"; then
18472    pkg_cv_CLN_LIBS="$CLN_LIBS"
18473 elif test -n "$PKG_CONFIG"; then
18474    if test -n "$PKG_CONFIG" && \
18475    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cln >= 1.2.2\""; } >&5
18476  ($PKG_CONFIG --exists --print-errors "cln >= 1.2.2") 2>&5
18477  ac_status=$?
18478  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18479  test $ac_status = 0; }; then
18480  pkg_cv_CLN_LIBS=`$PKG_CONFIG --libs "cln >= 1.2.2" 2>/dev/null`
18481		      test "x$?" != "x0" && pkg_failed=yes
18482else
18483  pkg_failed=yes
18484fi
18485 else
18486    pkg_failed=untried
18487fi
18488
18489
18490
18491if test $pkg_failed = yes; then
18492   	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18493printf "%s\n" "no" >&6; }
18494
18495if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18496        _pkg_short_errors_supported=yes
18497else
18498        _pkg_short_errors_supported=no
18499fi
18500        if test $_pkg_short_errors_supported = yes; then
18501	        CLN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cln >= 1.2.2" 2>&1`
18502        else
18503	        CLN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cln >= 1.2.2" 2>&1`
18504        fi
18505	# Put the nasty error message in config.log where it belongs
18506	echo "$CLN_PKG_ERRORS" >&5
18507
18508	as_fn_error $? "Package requirements (cln >= 1.2.2) were not met:
18509
18510$CLN_PKG_ERRORS
18511
18512Consider adjusting the PKG_CONFIG_PATH environment variable if you
18513installed software in a non-standard prefix.
18514
18515Alternatively, you may set the environment variables CLN_CFLAGS
18516and CLN_LIBS to avoid the need to call pkg-config.
18517See the pkg-config man page for more details." "$LINENO" 5
18518elif test $pkg_failed = untried; then
18519     	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18520printf "%s\n" "no" >&6; }
18521	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18522printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18523as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
18524is in your PATH or set the PKG_CONFIG environment variable to the full
18525path to pkg-config.
18526
18527Alternatively, you may set the environment variables CLN_CFLAGS
18528and CLN_LIBS to avoid the need to call pkg-config.
18529See the pkg-config man page for more details.
18530
18531To get pkg-config, see <http://pkg-config.freedesktop.org/>.
18532See \`config.log' for more details" "$LINENO" 5; }
18533else
18534	CLN_CFLAGS=$pkg_cv_CLN_CFLAGS
18535	CLN_LIBS=$pkg_cv_CLN_LIBS
18536        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18537printf "%s\n" "yes" >&6; }
18538
18539fi
18540
18541
18542# Check whether --with-gnu-ld was given.
18543if test ${with_gnu_ld+y}
18544then :
18545  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18546else $as_nop
18547  with_gnu_ld=no
18548fi
18549
18550# Prepare PATH_SEPARATOR.
18551# The user is always right.
18552if test "${PATH_SEPARATOR+set}" != set; then
18553  # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
18554  # contains only /bin. Note that ksh looks also at the FPATH variable,
18555  # so we have to set that as well for the test.
18556  PATH_SEPARATOR=:
18557  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18558    && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
18559           || PATH_SEPARATOR=';'
18560       }
18561fi
18562
18563if test -n "$LD"; then
18564  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
18565printf %s "checking for ld... " >&6; }
18566elif test "$GCC" = yes; then
18567  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18568printf %s "checking for ld used by $CC... " >&6; }
18569elif test "$with_gnu_ld" = yes; then
18570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18571printf %s "checking for GNU ld... " >&6; }
18572else
18573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18574printf %s "checking for non-GNU ld... " >&6; }
18575fi
18576if test -n "$LD"; then
18577  # Let the user override the test with a path.
18578  :
18579else
18580  if test ${acl_cv_path_LD+y}
18581then :
18582  printf %s "(cached) " >&6
18583else $as_nop
18584
18585    acl_cv_path_LD= # Final result of this test
18586    ac_prog=ld # Program to search in $PATH
18587    if test "$GCC" = yes; then
18588      # Check if gcc -print-prog-name=ld gives a path.
18589      case $host in
18590        *-*-mingw*)
18591          # gcc leaves a trailing carriage return which upsets mingw
18592          acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18593        *)
18594          acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
18595      esac
18596      case $acl_output in
18597        # Accept absolute paths.
18598        [\\/]* | ?:[\\/]*)
18599          re_direlt='/[^/][^/]*/\.\./'
18600          # Canonicalize the pathname of ld
18601          acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
18602          while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
18603            acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
18604          done
18605          # Got the pathname. No search in PATH is needed.
18606          acl_cv_path_LD="$acl_output"
18607          ac_prog=
18608          ;;
18609        "")
18610          # If it fails, then pretend we aren't using GCC.
18611          ;;
18612        *)
18613          # If it is relative, then search for the first ld in PATH.
18614          with_gnu_ld=unknown
18615          ;;
18616      esac
18617    fi
18618    if test -n "$ac_prog"; then
18619      # Search for $ac_prog in $PATH.
18620      acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18621      for ac_dir in $PATH; do
18622        IFS="$acl_save_ifs"
18623        test -z "$ac_dir" && ac_dir=.
18624        if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18625          acl_cv_path_LD="$ac_dir/$ac_prog"
18626          # Check to see if the program is GNU ld.  I'd rather use --version,
18627          # but apparently some variants of GNU ld only accept -v.
18628          # Break only if it was the GNU/non-GNU ld that we prefer.
18629          case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
18630            *GNU* | *'with BFD'*)
18631              test "$with_gnu_ld" != no && break
18632              ;;
18633            *)
18634              test "$with_gnu_ld" != yes && break
18635              ;;
18636          esac
18637        fi
18638      done
18639      IFS="$acl_save_ifs"
18640    fi
18641    case $host in
18642      *-*-aix*)
18643        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18644/* end confdefs.h.  */
18645#if defined __powerpc64__ || defined __LP64__
18646                int ok;
18647               #else
18648                error fail
18649               #endif
18650
18651_ACEOF
18652if ac_fn_cxx_try_compile "$LINENO"
18653then :
18654  # The compiler produces 64-bit code. Add option '-b64' so that the
18655           # linker groks 64-bit object files.
18656           case "$acl_cv_path_LD " in
18657             *" -b64 "*) ;;
18658             *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
18659           esac
18660
18661fi
18662rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18663        ;;
18664      sparc64-*-netbsd*)
18665        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666/* end confdefs.h.  */
18667#if defined __sparcv9 || defined __arch64__
18668                int ok;
18669               #else
18670                error fail
18671               #endif
18672
18673_ACEOF
18674if ac_fn_cxx_try_compile "$LINENO"
18675then :
18676
18677else $as_nop
18678  # The compiler produces 32-bit code. Add option '-m elf32_sparc'
18679           # so that the linker groks 32-bit object files.
18680           case "$acl_cv_path_LD " in
18681             *" -m elf32_sparc "*) ;;
18682             *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
18683           esac
18684
18685fi
18686rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18687        ;;
18688    esac
18689
18690fi
18691
18692  LD="$acl_cv_path_LD"
18693fi
18694if test -n "$LD"; then
18695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18696printf "%s\n" "$LD" >&6; }
18697else
18698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18699printf "%s\n" "no" >&6; }
18700  as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18701fi
18702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18703printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
18704if test ${acl_cv_prog_gnu_ld+y}
18705then :
18706  printf %s "(cached) " >&6
18707else $as_nop
18708  # I'd rather use --version here, but apparently some GNU lds only accept -v.
18709case `$LD -v 2>&1 </dev/null` in
18710*GNU* | *'with BFD'*)
18711  acl_cv_prog_gnu_ld=yes
18712  ;;
18713*)
18714  acl_cv_prog_gnu_ld=no
18715  ;;
18716esac
18717fi
18718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18719printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
18720with_gnu_ld=$acl_cv_prog_gnu_ld
18721
18722
18723
18724
18725
18726                                                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18727printf %s "checking for shared library run path origin... " >&6; }
18728if test ${acl_cv_rpath+y}
18729then :
18730  printf %s "(cached) " >&6
18731else $as_nop
18732
18733    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18734    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18735    . ./conftest.sh
18736    rm -f ./conftest.sh
18737    acl_cv_rpath=done
18738
18739fi
18740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18741printf "%s\n" "$acl_cv_rpath" >&6; }
18742  wl="$acl_cv_wl"
18743  acl_libext="$acl_cv_libext"
18744  acl_shlibext="$acl_cv_shlibext"
18745  acl_libname_spec="$acl_cv_libname_spec"
18746  acl_library_names_spec="$acl_cv_library_names_spec"
18747  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18748  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18749  acl_hardcode_direct="$acl_cv_hardcode_direct"
18750  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18751    # Check whether --enable-rpath was given.
18752if test ${enable_rpath+y}
18753then :
18754  enableval=$enable_rpath; :
18755else $as_nop
18756  enable_rpath=yes
18757fi
18758
18759
18760
18761
18762  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
18763printf %s "checking 32-bit host C ABI... " >&6; }
18764if test ${gl_cv_host_cpu_c_abi_32bit+y}
18765then :
18766  printf %s "(cached) " >&6
18767else $as_nop
18768  if test -n "$gl_cv_host_cpu_c_abi"; then
18769       case "$gl_cv_host_cpu_c_abi" in
18770         i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
18771           gl_cv_host_cpu_c_abi_32bit=yes ;;
18772         x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
18773           gl_cv_host_cpu_c_abi_32bit=no ;;
18774         *)
18775           gl_cv_host_cpu_c_abi_32bit=unknown ;;
18776       esac
18777     else
18778       case "$host_cpu" in
18779
18780         # CPUs that only support a 32-bit ABI.
18781         arc \
18782         | bfin \
18783         | cris* \
18784         | csky \
18785         | epiphany \
18786         | ft32 \
18787         | h8300 \
18788         | m68k \
18789         | microblaze | microblazeel \
18790         | nds32 | nds32le | nds32be \
18791         | nios2 | nios2eb | nios2el \
18792         | or1k* \
18793         | or32 \
18794         | sh | sh1234 | sh1234elb \
18795         | tic6x \
18796         | xtensa* )
18797           gl_cv_host_cpu_c_abi_32bit=yes
18798           ;;
18799
18800         # CPUs that only support a 64-bit ABI.
18801         alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
18802         | mmix )
18803           gl_cv_host_cpu_c_abi_32bit=no
18804           ;;
18805
18806         i[34567]86 )
18807           gl_cv_host_cpu_c_abi_32bit=yes
18808           ;;
18809
18810         x86_64 )
18811           # On x86_64 systems, the C compiler may be generating code in one of
18812           # these ABIs:
18813           # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
18814           # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
18815           #   with native Windows (mingw, MSVC).
18816           # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
18817           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
18818           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18819/* end confdefs.h.  */
18820#if (defined __x86_64__ || defined __amd64__ \
18821                       || defined _M_X64 || defined _M_AMD64) \
18822                      && !(defined __ILP32__ || defined _ILP32)
18823                   int ok;
18824                  #else
18825                   error fail
18826                  #endif
18827
18828_ACEOF
18829if ac_fn_cxx_try_compile "$LINENO"
18830then :
18831  gl_cv_host_cpu_c_abi_32bit=no
18832else $as_nop
18833  gl_cv_host_cpu_c_abi_32bit=yes
18834fi
18835rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18836           ;;
18837
18838         arm* | aarch64 )
18839           # Assume arm with EABI.
18840           # On arm64 systems, the C compiler may be generating code in one of
18841           # these ABIs:
18842           # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
18843           # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
18844           # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
18845           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18846/* end confdefs.h.  */
18847#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
18848                   int ok;
18849                  #else
18850                   error fail
18851                  #endif
18852
18853_ACEOF
18854if ac_fn_cxx_try_compile "$LINENO"
18855then :
18856  gl_cv_host_cpu_c_abi_32bit=no
18857else $as_nop
18858  gl_cv_host_cpu_c_abi_32bit=yes
18859fi
18860rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18861           ;;
18862
18863         hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
18864           # On hppa, the C compiler may be generating 32-bit code or 64-bit
18865           # code. In the latter case, it defines _LP64 and __LP64__.
18866           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867/* end confdefs.h.  */
18868#ifdef __LP64__
18869                   int ok;
18870                  #else
18871                   error fail
18872                  #endif
18873
18874_ACEOF
18875if ac_fn_cxx_try_compile "$LINENO"
18876then :
18877  gl_cv_host_cpu_c_abi_32bit=no
18878else $as_nop
18879  gl_cv_host_cpu_c_abi_32bit=yes
18880fi
18881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18882           ;;
18883
18884         ia64* )
18885           # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
18886           # 32-bit code. In the latter case, it defines _ILP32.
18887           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888/* end confdefs.h.  */
18889#ifdef _ILP32
18890                   int ok;
18891                  #else
18892                   error fail
18893                  #endif
18894
18895_ACEOF
18896if ac_fn_cxx_try_compile "$LINENO"
18897then :
18898  gl_cv_host_cpu_c_abi_32bit=yes
18899else $as_nop
18900  gl_cv_host_cpu_c_abi_32bit=no
18901fi
18902rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18903           ;;
18904
18905         mips* )
18906           # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
18907           # at 32.
18908           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909/* end confdefs.h.  */
18910#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
18911                   int ok;
18912                  #else
18913                   error fail
18914                  #endif
18915
18916_ACEOF
18917if ac_fn_cxx_try_compile "$LINENO"
18918then :
18919  gl_cv_host_cpu_c_abi_32bit=no
18920else $as_nop
18921  gl_cv_host_cpu_c_abi_32bit=yes
18922fi
18923rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18924           ;;
18925
18926         powerpc* )
18927           # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
18928           # No need to distinguish them here; the caller may distinguish
18929           # them based on the OS.
18930           # On powerpc64 systems, the C compiler may still be generating
18931           # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
18932           # be generating 64-bit code.
18933           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18934/* end confdefs.h.  */
18935#if defined __powerpc64__ || defined __LP64__
18936                   int ok;
18937                  #else
18938                   error fail
18939                  #endif
18940
18941_ACEOF
18942if ac_fn_cxx_try_compile "$LINENO"
18943then :
18944  gl_cv_host_cpu_c_abi_32bit=no
18945else $as_nop
18946  gl_cv_host_cpu_c_abi_32bit=yes
18947fi
18948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18949           ;;
18950
18951         rs6000 )
18952           gl_cv_host_cpu_c_abi_32bit=yes
18953           ;;
18954
18955         riscv32 | riscv64 )
18956           # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
18957           # Size of 'long' and 'void *':
18958           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18959/* end confdefs.h.  */
18960#if defined __LP64__
18961                    int ok;
18962                  #else
18963                    error fail
18964                  #endif
18965
18966_ACEOF
18967if ac_fn_cxx_try_compile "$LINENO"
18968then :
18969  gl_cv_host_cpu_c_abi_32bit=no
18970else $as_nop
18971  gl_cv_host_cpu_c_abi_32bit=yes
18972fi
18973rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18974           ;;
18975
18976         s390* )
18977           # On s390x, the C compiler may be generating 64-bit (= s390x) code
18978           # or 31-bit (= s390) code.
18979           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980/* end confdefs.h.  */
18981#if defined __LP64__ || defined __s390x__
18982                    int ok;
18983                  #else
18984                    error fail
18985                  #endif
18986
18987_ACEOF
18988if ac_fn_cxx_try_compile "$LINENO"
18989then :
18990  gl_cv_host_cpu_c_abi_32bit=no
18991else $as_nop
18992  gl_cv_host_cpu_c_abi_32bit=yes
18993fi
18994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18995           ;;
18996
18997         sparc | sparc64 )
18998           # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
18999           # C compiler still generates 32-bit code.
19000           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19001/* end confdefs.h.  */
19002#if defined __sparcv9 || defined __arch64__
19003                   int ok;
19004                  #else
19005                   error fail
19006                  #endif
19007
19008_ACEOF
19009if ac_fn_cxx_try_compile "$LINENO"
19010then :
19011  gl_cv_host_cpu_c_abi_32bit=no
19012else $as_nop
19013  gl_cv_host_cpu_c_abi_32bit=yes
19014fi
19015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19016           ;;
19017
19018         *)
19019           gl_cv_host_cpu_c_abi_32bit=unknown
19020           ;;
19021       esac
19022     fi
19023
19024fi
19025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
19026printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
19027
19028  HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
19029
19030
19031
19032
19033
19034
19035  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
19036printf %s "checking for ELF binary format... " >&6; }
19037if test ${gl_cv_elf+y}
19038then :
19039  printf %s "(cached) " >&6
19040else $as_nop
19041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042/* end confdefs.h.  */
19043#ifdef __ELF__
19044        Extensible Linking Format
19045        #endif
19046
19047_ACEOF
19048if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19049  $EGREP "Extensible Linking Format" >/dev/null 2>&1
19050then :
19051  gl_cv_elf=yes
19052else $as_nop
19053  gl_cv_elf=no
19054fi
19055rm -rf conftest*
19056
19057
19058fi
19059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
19060printf "%s\n" "$gl_cv_elf" >&6; }
19061  if test $gl_cv_elf = yes; then
19062    # Extract the ELF class of a file (5th byte) in decimal.
19063    # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
19064    if od -A x < /dev/null >/dev/null 2>/dev/null; then
19065      # Use POSIX od.
19066      func_elfclass ()
19067      {
19068        od -A n -t d1 -j 4 -N 1
19069      }
19070    else
19071      # Use BSD hexdump.
19072      func_elfclass ()
19073      {
19074        dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
19075        echo
19076      }
19077    fi
19078    # Use 'expr', not 'test', to compare the values of func_elfclass, because on
19079    # Solaris 11 OpenIndiana and Solaris 11 OmniOS, the result is 001 or 002,
19080    # not 1 or 2.
19081    case $HOST_CPU_C_ABI_32BIT in
19082      yes)
19083        # 32-bit ABI.
19084        acl_is_expected_elfclass ()
19085        {
19086          expr "`func_elfclass | sed -e 's/[ 	]//g'`" = 1 > /dev/null
19087        }
19088        ;;
19089      no)
19090        # 64-bit ABI.
19091        acl_is_expected_elfclass ()
19092        {
19093          expr "`func_elfclass | sed -e 's/[ 	]//g'`" = 2 > /dev/null
19094        }
19095        ;;
19096      *)
19097        # Unknown.
19098        acl_is_expected_elfclass ()
19099        {
19100          :
19101        }
19102        ;;
19103    esac
19104  else
19105    acl_is_expected_elfclass ()
19106    {
19107      :
19108    }
19109  fi
19110
19111    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
19112printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
19113if test ${acl_cv_libdirstems+y}
19114then :
19115  printf %s "(cached) " >&6
19116else $as_nop
19117            acl_libdirstem=lib
19118     acl_libdirstem2=
19119     acl_libdirstem3=
19120     case "$host_os" in
19121       solaris*)
19122                                                      if test $HOST_CPU_C_ABI_32BIT = no; then
19123           acl_libdirstem2=lib/64
19124           case "$host_cpu" in
19125             sparc*)        acl_libdirstem3=lib/sparcv9 ;;
19126             i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
19127           esac
19128         fi
19129         ;;
19130       *)
19131                                                                                 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
19132                     | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
19133         if test $HOST_CPU_C_ABI_32BIT != no; then
19134           # 32-bit or unknown ABI.
19135           if test -d /usr/lib32; then
19136             acl_libdirstem2=lib32
19137           fi
19138         fi
19139         if test $HOST_CPU_C_ABI_32BIT != yes; then
19140           # 64-bit or unknown ABI.
19141           if test -d /usr/lib64; then
19142             acl_libdirstem3=lib64
19143           fi
19144         fi
19145         if test -n "$searchpath"; then
19146           acl_save_IFS="${IFS= 	}"; IFS=":"
19147           for searchdir in $searchpath; do
19148             if test -d "$searchdir"; then
19149               case "$searchdir" in
19150                 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
19151                 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
19152                 */../ | */.. )
19153                   # Better ignore directories of this form. They are misleading.
19154                   ;;
19155                 *) searchdir=`cd "$searchdir" && pwd`
19156                    case "$searchdir" in
19157                      */lib32 ) acl_libdirstem2=lib32 ;;
19158                      */lib64 ) acl_libdirstem3=lib64 ;;
19159                    esac ;;
19160               esac
19161             fi
19162           done
19163           IFS="$acl_save_IFS"
19164           if test $HOST_CPU_C_ABI_32BIT = yes; then
19165             # 32-bit ABI.
19166             acl_libdirstem3=
19167           fi
19168           if test $HOST_CPU_C_ABI_32BIT = no; then
19169             # 64-bit ABI.
19170             acl_libdirstem2=
19171           fi
19172         fi
19173         ;;
19174     esac
19175     test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
19176     test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
19177     acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
19178
19179fi
19180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
19181printf "%s\n" "$acl_cv_libdirstems" >&6; }
19182      acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
19183  acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
19184  acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
19185
19186
19187
19188
19189  CLN_RPATH=
19190  if test "$enable_rpath" != no; then
19191    if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19192                  rpathdirs=
19193      next=
19194      for opt in $CLN_LIBS; do
19195        if test -n "$next"; then
19196          dir="$next"
19197                    if test "X$dir" != "X/usr/$acl_libdirstem" \
19198             && test "X$dir" != "X/usr/$acl_libdirstem2" \
19199             && test "X$dir" != "X/usr/$acl_libdirstem3"; then
19200            rpathdirs="$rpathdirs $dir"
19201          fi
19202          next=
19203        else
19204          case $opt in
19205            -L) next=yes ;;
19206            -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
19207                                  if test "X$dir" != "X/usr/$acl_libdirstem" \
19208                    && test "X$dir" != "X/usr/$acl_libdirstem2" \
19209                    && test "X$dir" != "X/usr/$acl_libdirstem3"; then
19210                   rpathdirs="$rpathdirs $dir"
19211                 fi
19212                 next= ;;
19213            *) next= ;;
19214          esac
19215        fi
19216      done
19217      if test "X$rpathdirs" != "X"; then
19218        if test -n """"; then
19219                    for dir in $rpathdirs; do
19220            CLN_RPATH="${CLN_RPATH}${CLN_RPATH:+ }-R$dir"
19221          done
19222        else
19223                    if test -n "$acl_hardcode_libdir_separator"; then
19224                                    alldirs=
19225            for dir in $rpathdirs; do
19226              alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
19227            done
19228            acl_save_libdir="$libdir"
19229            libdir="$alldirs"
19230            eval flag=\"$acl_hardcode_libdir_flag_spec\"
19231            libdir="$acl_save_libdir"
19232            CLN_RPATH="$flag"
19233          else
19234                        for dir in $rpathdirs; do
19235              acl_save_libdir="$libdir"
19236              libdir="$dir"
19237              eval flag=\"$acl_hardcode_libdir_flag_spec\"
19238              libdir="$acl_save_libdir"
19239              CLN_RPATH="${CLN_RPATH}${CLN_RPATH:+ }$flag"
19240            done
19241          fi
19242        fi
19243      fi
19244    fi
19245  fi
19246
19247
19248LIBS="$LIBS $CLN_LIBS $CLN_RPATH"
19249CPPFLAGS="$CPPFLAGS $CLN_CFLAGS"
19250GINACLIB_LIBS='-L${libdir} -lginac'
19251
19252
19253
19254  GINACLIB_RPATH=
19255  if test "$enable_rpath" != no; then
19256    if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
19257                  rpathdirs=
19258      next=
19259      for opt in $GINACLIB_LIBS; do
19260        if test -n "$next"; then
19261          dir="$next"
19262                    if test "X$dir" != "X/usr/$acl_libdirstem" \
19263             && test "X$dir" != "X/usr/$acl_libdirstem2" \
19264             && test "X$dir" != "X/usr/$acl_libdirstem3"; then
19265            rpathdirs="$rpathdirs $dir"
19266          fi
19267          next=
19268        else
19269          case $opt in
19270            -L) next=yes ;;
19271            -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
19272                                  if test "X$dir" != "X/usr/$acl_libdirstem" \
19273                    && test "X$dir" != "X/usr/$acl_libdirstem2" \
19274                    && test "X$dir" != "X/usr/$acl_libdirstem3"; then
19275                   rpathdirs="$rpathdirs $dir"
19276                 fi
19277                 next= ;;
19278            *) next= ;;
19279          esac
19280        fi
19281      done
19282      if test "X$rpathdirs" != "X"; then
19283        if test -n """"; then
19284                    for dir in $rpathdirs; do
19285            GINACLIB_RPATH="${GINACLIB_RPATH}${GINACLIB_RPATH:+ }-R$dir"
19286          done
19287        else
19288                    if test -n "$acl_hardcode_libdir_separator"; then
19289                                    alldirs=
19290            for dir in $rpathdirs; do
19291              alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
19292            done
19293            acl_save_libdir="$libdir"
19294            libdir="$alldirs"
19295            eval flag=\"$acl_hardcode_libdir_flag_spec\"
19296            libdir="$acl_save_libdir"
19297            GINACLIB_RPATH="$flag"
19298          else
19299                        for dir in $rpathdirs; do
19300              acl_save_libdir="$libdir"
19301              libdir="$dir"
19302              eval flag=\"$acl_hardcode_libdir_flag_spec\"
19303              libdir="$acl_save_libdir"
19304              GINACLIB_RPATH="${GINACLIB_RPATH}${GINACLIB_RPATH:+ }$flag"
19305            done
19306          fi
19307        fi
19308      fi
19309    fi
19310  fi
19311
19312
19313
19314ac_fn_cxx_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
19315if test "x$ac_cv_header_unistd_h" = xyes
19316then :
19317  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
19318
19319fi
19320
19321{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct rusage is declared in <sys/resource.h>" >&5
19322printf %s "checking whether struct rusage is declared in <sys/resource.h>... " >&6; }
19323if test ${ac_cv_have_rusage+y}
19324then :
19325  printf %s "(cached) " >&6
19326else $as_nop
19327  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19328/* end confdefs.h.  */
19329#include <sys/times.h>
19330                                       #include <sys/resource.h>
19331int
19332main (void)
19333{
19334struct rusage resUsage;
19335                                       getrusage(RUSAGE_SELF, &resUsage);
19336                                       return 0;
19337  ;
19338  return 0;
19339}
19340_ACEOF
19341if ac_fn_cxx_try_compile "$LINENO"
19342then :
19343  ac_cv_have_rusage=yes
19344else $as_nop
19345  ac_cv_have_rusage=no
19346fi
19347rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19348
19349fi
19350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_rusage" >&5
19351printf "%s\n" "$ac_cv_have_rusage" >&6; }
19352CONFIG_RUSAGE="no"
19353if test "$ac_cv_have_rusage" = yes; then
19354  CONFIG_RUSAGE="yes"
19355
19356printf "%s\n" "#define HAVE_RUSAGE /**/" >>confdefs.h
19357
19358fi
19359
19360
19361LIBTERMCAP=
19362case $host_os in
19363*mingw32*)
19364 ;; *)
19365ac_fn_cxx_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
19366if test "x$ac_cv_func_tgetent" = xyes
19367then :
19368  printf "%s\n" "#define HAVE_TGETENT 1" >>confdefs.h
19369
19370fi
19371
19372if test "x$ac_cv_func_tgetent" = "xyes"; then
19373    :
19374else
19375    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
19376printf %s "checking for tgetent in -lncurses... " >&6; }
19377if test ${ac_cv_lib_ncurses_tgetent+y}
19378then :
19379  printf %s "(cached) " >&6
19380else $as_nop
19381  ac_check_lib_save_LIBS=$LIBS
19382LIBS="-lncurses  $LIBS"
19383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19384/* end confdefs.h.  */
19385
19386namespace conftest {
19387  extern "C" int tgetent ();
19388}
19389int
19390main (void)
19391{
19392return conftest::tgetent ();
19393  ;
19394  return 0;
19395}
19396_ACEOF
19397if ac_fn_cxx_try_link "$LINENO"
19398then :
19399  ac_cv_lib_ncurses_tgetent=yes
19400else $as_nop
19401  ac_cv_lib_ncurses_tgetent=no
19402fi
19403rm -f core conftest.err conftest.$ac_objext conftest.beam \
19404    conftest$ac_exeext conftest.$ac_ext
19405LIBS=$ac_check_lib_save_LIBS
19406fi
19407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
19408printf "%s\n" "$ac_cv_lib_ncurses_tgetent" >&6; }
19409if test "x$ac_cv_lib_ncurses_tgetent" = xyes
19410then :
19411  LIBTERMCAP="-lncurses"
19412fi
19413
19414    if test -z "$LIBTERMCAP"; then
19415        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
19416printf %s "checking for tgetent in -ltermcap... " >&6; }
19417if test ${ac_cv_lib_termcap_tgetent+y}
19418then :
19419  printf %s "(cached) " >&6
19420else $as_nop
19421  ac_check_lib_save_LIBS=$LIBS
19422LIBS="-ltermcap  $LIBS"
19423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424/* end confdefs.h.  */
19425
19426namespace conftest {
19427  extern "C" int tgetent ();
19428}
19429int
19430main (void)
19431{
19432return conftest::tgetent ();
19433  ;
19434  return 0;
19435}
19436_ACEOF
19437if ac_fn_cxx_try_link "$LINENO"
19438then :
19439  ac_cv_lib_termcap_tgetent=yes
19440else $as_nop
19441  ac_cv_lib_termcap_tgetent=no
19442fi
19443rm -f core conftest.err conftest.$ac_objext conftest.beam \
19444    conftest$ac_exeext conftest.$ac_ext
19445LIBS=$ac_check_lib_save_LIBS
19446fi
19447{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
19448printf "%s\n" "$ac_cv_lib_termcap_tgetent" >&6; }
19449if test "x$ac_cv_lib_termcap_tgetent" = xyes
19450then :
19451  LIBTERMCAP="-ltermcap"
19452fi
19453
19454    fi
19455fi
19456;;
19457esac
19458
19459
19460
19461
19462GINSH_LIBS=""
19463ac_fn_cxx_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
19464if test "x$ac_cv_header_readline_readline_h" = xyes
19465then :
19466  printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
19467
19468fi
19469ac_fn_cxx_check_header_compile "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
19470if test "x$ac_cv_header_readline_history_h" = xyes
19471then :
19472  printf "%s\n" "#define HAVE_READLINE_HISTORY_H 1" >>confdefs.h
19473
19474fi
19475
19476if test "x${ac_cv_header_readline_readline_h}" != "xyes" -o "x${ac_cv_header_readline_history_h}" != "xyes"; then
19477
19478ginac_warning_txt="$ginac_warning_txt
19479== ginsh will not compile, because readline headers could not be found.
19480"
19481ginac_warning=yes
19482else
19483	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for version of libreadline" >&5
19484printf %s "checking for version of libreadline... " >&6; }
19485if test ${ginac_cv_rl_supported+y}
19486then :
19487  printf %s "(cached) " >&6
19488else $as_nop
19489
19490		ginac_cv_rl_supported="no"
19491		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19492/* end confdefs.h.  */
19493
19494			#include <cstdio>
19495			#include <readline/readline.h>
19496			#if !defined(RL_VERSION_MAJOR) || !defined(RL_VERSION_MINOR)
19497			#error "Ancient/unsupported version of readline"
19498			#endif
19499int
19500main (void)
19501{
19502
19503  ;
19504  return 0;
19505}
19506_ACEOF
19507if ac_fn_cxx_try_compile "$LINENO"
19508then :
19509  ginac_cv_rl_supported="yes"
19510fi
19511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19512fi
19513{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ginac_cv_rl_supported" >&5
19514printf "%s\n" "$ginac_cv_rl_supported" >&6; }
19515	if test "x${ginac_cv_rl_supported}" != "xyes"; then
19516
19517ginac_warning_txt="$ginac_warning_txt
19518== ginsh will not compile, because of an unsupported version of readline (<= 4.2 or non-GNU).
19519"
19520ginac_warning=yes
19521	else
19522		save_LIBS="$LIBS"
19523		LIBS="$LIBTERMCAP $LIBS"
19524		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
19525printf %s "checking for readline in -lreadline... " >&6; }
19526if test ${ac_cv_lib_readline_readline+y}
19527then :
19528  printf %s "(cached) " >&6
19529else $as_nop
19530  ac_check_lib_save_LIBS=$LIBS
19531LIBS="-lreadline  $LIBS"
19532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19533/* end confdefs.h.  */
19534
19535namespace conftest {
19536  extern "C" int readline ();
19537}
19538int
19539main (void)
19540{
19541return conftest::readline ();
19542  ;
19543  return 0;
19544}
19545_ACEOF
19546if ac_fn_cxx_try_link "$LINENO"
19547then :
19548  ac_cv_lib_readline_readline=yes
19549else $as_nop
19550  ac_cv_lib_readline_readline=no
19551fi
19552rm -f core conftest.err conftest.$ac_objext conftest.beam \
19553    conftest$ac_exeext conftest.$ac_ext
19554LIBS=$ac_check_lib_save_LIBS
19555fi
19556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
19557printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
19558if test "x$ac_cv_lib_readline_readline" = xyes
19559then :
19560  printf "%s\n" "#define HAVE_LIBREADLINE 1" >>confdefs.h
19561
19562  LIBS="-lreadline $LIBS"
19563
19564fi
19565
19566		if test "x${ac_cv_lib_readline_readline}" != "xyes"; then
19567
19568ginac_warning_txt="$ginac_warning_txt
19569== ginsh will not compile, because libreadline could not be found.
19570"
19571ginac_warning=yes
19572		fi
19573		GINSH_LIBS="$LIBS"
19574		LIBS="$save_LIBS"
19575	fi
19576fi
19577
19578
19579
19580
19581
19582
19583
19584        if test -n "$PYTHON"; then
19585      # If the user set $PYTHON, use it and don't search something else.
19586      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
19587printf %s "checking whether $PYTHON version is >= 2.7... " >&6; }
19588      prog="import sys
19589# split strings by '.' and convert to numeric.  Append some zeros
19590# because we need at least 4 digits for the hex conversion.
19591# map returns an iterator in Python 3.0 and a list in 2.x
19592minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19593minverhex = 0
19594# xrange is not present in Python 3.0 and range returns an iterator
19595for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19596sys.exit(sys.hexversion < minverhex)"
19597  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
19598   ($PYTHON -c "$prog") >&5 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }
19602then :
19603  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19604printf "%s\n" "yes" >&6; }
19605else $as_nop
19606  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19607printf "%s\n" "no" >&6; }
19608			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
19609fi
19610      am_display_PYTHON=$PYTHON
19611    else
19612      # Otherwise, try each interpreter until we find one that satisfies
19613      # VERSION.
19614      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
19615printf %s "checking for a Python interpreter with version >= 2.7... " >&6; }
19616if test ${am_cv_pathless_PYTHON+y}
19617then :
19618  printf %s "(cached) " >&6
19619else $as_nop
19620
19621	for am_cv_pathless_PYTHON in python python2 python3  python3.11 python3.10  python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3  python3.2 python3.1 python3.0  python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1  python2.0 none; do
19622	  test "$am_cv_pathless_PYTHON" = none && break
19623	  prog="import sys
19624# split strings by '.' and convert to numeric.  Append some zeros
19625# because we need at least 4 digits for the hex conversion.
19626# map returns an iterator in Python 3.0 and a list in 2.x
19627minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
19628minverhex = 0
19629# xrange is not present in Python 3.0 and range returns an iterator
19630for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
19631sys.exit(sys.hexversion < minverhex)"
19632  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
19633   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
19634   ac_status=$?
19635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636   (exit $ac_status); }
19637then :
19638  break
19639fi
19640	done
19641fi
19642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
19643printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
19644      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
19645      if test "$am_cv_pathless_PYTHON" = none; then
19646	PYTHON=:
19647      else
19648        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
19649set dummy $am_cv_pathless_PYTHON; ac_word=$2
19650{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19651printf %s "checking for $ac_word... " >&6; }
19652if test ${ac_cv_path_PYTHON+y}
19653then :
19654  printf %s "(cached) " >&6
19655else $as_nop
19656  case $PYTHON in
19657  [\\/]* | ?:[\\/]*)
19658  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19659  ;;
19660  *)
19661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19662for as_dir in $PATH
19663do
19664  IFS=$as_save_IFS
19665  case $as_dir in #(((
19666    '') as_dir=./ ;;
19667    */) ;;
19668    *) as_dir=$as_dir/ ;;
19669  esac
19670    for ac_exec_ext in '' $ac_executable_extensions; do
19671  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19672    ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
19673    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19674    break 2
19675  fi
19676done
19677  done
19678IFS=$as_save_IFS
19679
19680  ;;
19681esac
19682fi
19683PYTHON=$ac_cv_path_PYTHON
19684if test -n "$PYTHON"; then
19685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
19686printf "%s\n" "$PYTHON" >&6; }
19687else
19688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19689printf "%s\n" "no" >&6; }
19690fi
19691
19692
19693      fi
19694      am_display_PYTHON=$am_cv_pathless_PYTHON
19695    fi
19696
19697
19698  if test "$PYTHON" = :; then
19699        as_fn_error $? "GiNaC will not compile because Python is missing" "$LINENO" 5
19700  else
19701
19702              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
19703printf %s "checking for $am_display_PYTHON version... " >&6; }
19704if test ${am_cv_python_version+y}
19705then :
19706  printf %s "(cached) " >&6
19707else $as_nop
19708  am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"`
19709fi
19710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
19711printf "%s\n" "$am_cv_python_version" >&6; }
19712  PYTHON_VERSION=$am_cv_python_version
19713
19714
19715        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
19716printf %s "checking for $am_display_PYTHON platform... " >&6; }
19717if test ${am_cv_python_platform+y}
19718then :
19719  printf %s "(cached) " >&6
19720else $as_nop
19721  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
19722fi
19723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
19724printf "%s\n" "$am_cv_python_platform" >&6; }
19725  PYTHON_PLATFORM=$am_cv_python_platform
19726
19727
19728                            if test "x$prefix" = xNONE; then
19729    am__usable_prefix=$ac_default_prefix
19730  else
19731    am__usable_prefix=$prefix
19732  fi
19733
19734  # Allow user to request using sys.* values from Python,
19735  # instead of the GNU $prefix values.
19736
19737# Check whether --with-python-sys-prefix was given.
19738if test ${with_python_sys_prefix+y}
19739then :
19740  withval=$with_python_sys_prefix; am_use_python_sys=:
19741else $as_nop
19742  am_use_python_sys=false
19743fi
19744
19745
19746  # Allow user to override whatever the default Python prefix is.
19747
19748# Check whether --with-python_prefix was given.
19749if test ${with_python_prefix+y}
19750then :
19751  withval=$with_python_prefix; am_python_prefix_subst=$withval
19752   am_cv_python_prefix=$withval
19753   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
19754printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
19755   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
19756printf "%s\n" "$am_cv_python_prefix" >&6; }
19757else $as_nop
19758
19759   if $am_use_python_sys; then
19760     # using python sys.prefix value, not GNU
19761     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
19762printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
19763if test ${am_cv_python_prefix+y}
19764then :
19765  printf %s "(cached) " >&6
19766else $as_nop
19767  am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
19768fi
19769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
19770printf "%s\n" "$am_cv_python_prefix" >&6; }
19771
19772               case $am_cv_python_prefix in
19773     $am__usable_prefix*)
19774       am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
19775       am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
19776       ;;
19777     *)
19778       am_python_prefix_subst=$am_cv_python_prefix
19779       ;;
19780     esac
19781   else # using GNU prefix value, not python sys.prefix
19782     am_python_prefix_subst='${prefix}'
19783     am_python_prefix=$am_python_prefix_subst
19784     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
19785printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
19786     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
19787printf "%s\n" "$am_python_prefix" >&6; }
19788   fi
19789fi
19790
19791  # Substituting python_prefix_subst value.
19792  PYTHON_PREFIX=$am_python_prefix_subst
19793
19794
19795  # emacs-page Now do it all over again for Python exec_prefix, but with yet
19796  # another conditional: fall back to regular prefix if that was specified.
19797
19798# Check whether --with-python_exec_prefix was given.
19799if test ${with_python_exec_prefix+y}
19800then :
19801  withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
19802   am_cv_python_exec_prefix=$withval
19803   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
19804printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
19805   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
19806printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
19807else $as_nop
19808
19809   # no explicit --with-python_exec_prefix, but if
19810   # --with-python_prefix was given, use its value for python_exec_prefix too.
19811   if test -n "$with_python_prefix"
19812then :
19813  am_python_exec_prefix_subst=$with_python_prefix
19814    am_cv_python_exec_prefix=$with_python_prefix
19815    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
19816printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
19817    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
19818printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
19819else $as_nop
19820
19821    # Set am__usable_exec_prefix whether using GNU or Python values,
19822    # since we use that variable for pyexecdir.
19823    if test "x$exec_prefix" = xNONE; then
19824      am__usable_exec_prefix=$am__usable_prefix
19825    else
19826      am__usable_exec_prefix=$exec_prefix
19827    fi
19828    #
19829    if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
19830      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
19831printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
19832if test ${am_cv_python_exec_prefix+y}
19833then :
19834  printf %s "(cached) " >&6
19835else $as_nop
19836  am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"`
19837fi
19838{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
19839printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
19840                        case $am_cv_python_exec_prefix in
19841      $am__usable_exec_prefix*)
19842        am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
19843        am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
19844        ;;
19845      *)
19846        am_python_exec_prefix_subst=$am_cv_python_exec_prefix
19847        ;;
19848     esac
19849   else # using GNU $exec_prefix, not python sys.exec_prefix
19850     am_python_exec_prefix_subst='${exec_prefix}'
19851     am_python_exec_prefix=$am_python_exec_prefix_subst
19852     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
19853printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
19854     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
19855printf "%s\n" "$am_python_exec_prefix" >&6; }
19856   fi
19857fi
19858fi
19859
19860  # Substituting python_exec_prefix_subst.
19861  PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
19862
19863
19864  # Factor out some code duplication into this shell variable.
19865  am_python_setup_sysconfig="\
19866import sys
19867# Prefer sysconfig over distutils.sysconfig, for better compatibility
19868# with python 3.x.  See automake bug#10227.
19869try:
19870    import sysconfig
19871except ImportError:
19872    can_use_sysconfig = 0
19873else:
19874    can_use_sysconfig = 1
19875# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
19876# <https://github.com/pypa/virtualenv/issues/118>
19877try:
19878    from platform import python_implementation
19879    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
19880        can_use_sysconfig = 0
19881except ImportError:
19882    pass"
19883
19884
19885              { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
19886printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
19887if test ${am_cv_python_pythondir+y}
19888then :
19889  printf %s "(cached) " >&6
19890else $as_nop
19891  if test "x$am_cv_python_prefix" = x; then
19892     am_py_prefix=$am__usable_prefix
19893   else
19894     am_py_prefix=$am_cv_python_prefix
19895   fi
19896   am_cv_python_pythondir=`$PYTHON -c "
19897$am_python_setup_sysconfig
19898if can_use_sysconfig:
19899  sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
19900else:
19901  from distutils import sysconfig
19902  sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
19903sys.stdout.write(sitedir)"`
19904   #
19905   case $am_cv_python_pythondir in
19906   $am_py_prefix*)
19907     am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
19908     am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
19909     ;;
19910   *)
19911     case $am_py_prefix in
19912       /usr|/System*) ;;
19913       *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
19914          ;;
19915     esac
19916     ;;
19917   esac
19918
19919fi
19920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
19921printf "%s\n" "$am_cv_python_pythondir" >&6; }
19922  pythondir=$am_cv_python_pythondir
19923
19924
19925          pkgpythondir=\${pythondir}/$PACKAGE
19926
19927
19928          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
19929printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
19930if test ${am_cv_python_pyexecdir+y}
19931then :
19932  printf %s "(cached) " >&6
19933else $as_nop
19934  if test "x$am_cv_python_exec_prefix" = x; then
19935     am_py_exec_prefix=$am__usable_exec_prefix
19936   else
19937     am_py_exec_prefix=$am_cv_python_exec_prefix
19938   fi
19939   am_cv_python_pyexecdir=`$PYTHON -c "
19940$am_python_setup_sysconfig
19941if can_use_sysconfig:
19942  sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
19943else:
19944  from distutils import sysconfig
19945  sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
19946sys.stdout.write(sitedir)"`
19947   #
19948   case $am_cv_python_pyexecdir in
19949   $am_py_exec_prefix*)
19950     am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
19951     am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
19952     ;;
19953   *)
19954     case $am_py_exec_prefix in
19955       /usr|/System*) ;;
19956       *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
19957          ;;
19958     esac
19959     ;;
19960   esac
19961
19962fi
19963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
19964printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
19965  pyexecdir=$am_cv_python_pyexecdir
19966
19967
19968      pkgpyexecdir=\${pyexecdir}/$PACKAGE
19969
19970
19971
19972  fi
19973
19974
19975
19976CONFIG_EXCOMPILER=yes
19977DL_LIBS=""
19978
19979# Check whether --enable-excompiler was given.
19980if test ${enable_excompiler+y}
19981then :
19982  enableval=$enable_excompiler; if test "$enableval" = "no"; then
19983		CONFIG_EXCOMPILER="no"
19984	fi
19985else $as_nop
19986  CONFIG_EXCOMPILER="yes"
19987fi
19988
19989
19990case $host_os in
19991	*mingw32*)
19992	CONFIG_EXCOMPILER="notsupported"
19993	;;
19994	*)
19995	;;
19996esac
19997
19998if test "$CONFIG_EXCOMPILER" = "yes"; then
19999	ac_fn_cxx_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
20000if test "x$ac_cv_header_dlfcn_h" = xyes
20001then :
20002  CONFIG_EXCOMPILER="yes"
20003else $as_nop
20004  CONFIG_EXCOMPILER="no"
20005fi
20006
20007elif test "$CONFIG_EXCOMPILER" = "no"; then
20008	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: GiNaC::compile_ex disabled at user request." >&5
20009printf "%s\n" "$as_me: GiNaC::compile_ex disabled at user request." >&6;}
20010else
20011	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: GiNaC::compile_ex is not supported on $host_os." >&5
20012printf "%s\n" "$as_me: GiNaC::compile_ex is not supported on $host_os." >&6;}
20013fi
20014
20015if test "$CONFIG_EXCOMPILER" = "yes"; then
20016			found_dlopen_lib="no"
20017	DL_LIBS=""
20018	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in " >&5
20019printf %s "checking for dlopen in ... " >&6; }
20020if test ${ac_cv_lib_dl_dlopen+y}
20021then :
20022  printf %s "(cached) " >&6
20023else $as_nop
20024  ac_check_lib_save_LIBS=$LIBS
20025LIBS="  $LIBS"
20026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027/* end confdefs.h.  */
20028
20029namespace conftest {
20030  extern "C" int dlopen ();
20031}
20032int
20033main (void)
20034{
20035return conftest::dlopen ();
20036  ;
20037  return 0;
20038}
20039_ACEOF
20040if ac_fn_cxx_try_link "$LINENO"
20041then :
20042  ac_cv_lib_dl_dlopen=yes
20043else $as_nop
20044  ac_cv_lib_dl_dlopen=no
20045fi
20046rm -f core conftest.err conftest.$ac_objext conftest.beam \
20047    conftest$ac_exeext conftest.$ac_ext
20048LIBS=$ac_check_lib_save_LIBS
20049fi
20050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20051printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
20052if test "x$ac_cv_lib_dl_dlopen" = xyes
20053then :
20054  found_dlopen_lib="yes"
20055fi
20056
20057	if test "$found_dlopen_lib" = "no"; then
20058		DL_LIBS=""
20059		ac_fn_cxx_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20060if test "x$ac_cv_func_dlopen" = xyes
20061then :
20062  found_dlopen_lib="yes"
20063fi
20064
20065	fi
20066	if test "$found_dlopen_lib" = "no"; then
20067		CONFIG_EXCOMPILER="no"
20068		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Could not found working dlopen(). GiNaC::compile_ex will be disabled." >&5
20069printf "%s\n" "$as_me: WARNING: Could not found working dlopen(). GiNaC::compile_ex will be disabled." >&2;}
20070	else
20071
20072printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
20073
20074	fi
20075fi
20076
20077
20078 if test "x${CONFIG_EXCOMPILER}" = "xyes"; then
20079  CONFIG_EXCOMPILER_TRUE=
20080  CONFIG_EXCOMPILER_FALSE='#'
20081else
20082  CONFIG_EXCOMPILER_TRUE='#'
20083  CONFIG_EXCOMPILER_FALSE=
20084fi
20085
20086
20087# Extract the first word of "doxygen", so it can be a program name with args.
20088set dummy doxygen; ac_word=$2
20089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20090printf %s "checking for $ac_word... " >&6; }
20091if test ${ac_cv_path_DOXYGEN+y}
20092then :
20093  printf %s "(cached) " >&6
20094else $as_nop
20095  case $DOXYGEN in
20096  [\\/]* | ?:[\\/]*)
20097  ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
20098  ;;
20099  *)
20100  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20101for as_dir in $PATH
20102do
20103  IFS=$as_save_IFS
20104  case $as_dir in #(((
20105    '') as_dir=./ ;;
20106    */) ;;
20107    *) as_dir=$as_dir/ ;;
20108  esac
20109    for ac_exec_ext in '' $ac_executable_extensions; do
20110  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20111    ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
20112    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20113    break 2
20114  fi
20115done
20116  done
20117IFS=$as_save_IFS
20118
20119  test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN=""""
20120  ;;
20121esac
20122fi
20123DOXYGEN=$ac_cv_path_DOXYGEN
20124if test -n "$DOXYGEN"; then
20125  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
20126printf "%s\n" "$DOXYGEN" >&6; }
20127else
20128  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20129printf "%s\n" "no" >&6; }
20130fi
20131
20132
20133 if test ! -z "$DOXYGEN"; then
20134  CONFIG_DOXYGEN_TRUE=
20135  CONFIG_DOXYGEN_FALSE='#'
20136else
20137  CONFIG_DOXYGEN_TRUE='#'
20138  CONFIG_DOXYGEN_FALSE=
20139fi
20140
20141# Extract the first word of "latex", so it can be a program name with args.
20142set dummy latex; ac_word=$2
20143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20144printf %s "checking for $ac_word... " >&6; }
20145if test ${ac_cv_path_LATEX+y}
20146then :
20147  printf %s "(cached) " >&6
20148else $as_nop
20149  case $LATEX in
20150  [\\/]* | ?:[\\/]*)
20151  ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
20152  ;;
20153  *)
20154  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20155for as_dir in $PATH
20156do
20157  IFS=$as_save_IFS
20158  case $as_dir in #(((
20159    '') as_dir=./ ;;
20160    */) ;;
20161    *) as_dir=$as_dir/ ;;
20162  esac
20163    for ac_exec_ext in '' $ac_executable_extensions; do
20164  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20165    ac_cv_path_LATEX="$as_dir$ac_word$ac_exec_ext"
20166    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20167    break 2
20168  fi
20169done
20170  done
20171IFS=$as_save_IFS
20172
20173  test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX=""""
20174  ;;
20175esac
20176fi
20177LATEX=$ac_cv_path_LATEX
20178if test -n "$LATEX"; then
20179  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
20180printf "%s\n" "$LATEX" >&6; }
20181else
20182  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20183printf "%s\n" "no" >&6; }
20184fi
20185
20186
20187# Extract the first word of "pdflatex", so it can be a program name with args.
20188set dummy pdflatex; ac_word=$2
20189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20190printf %s "checking for $ac_word... " >&6; }
20191if test ${ac_cv_path_PDFLATEX+y}
20192then :
20193  printf %s "(cached) " >&6
20194else $as_nop
20195  case $PDFLATEX in
20196  [\\/]* | ?:[\\/]*)
20197  ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
20198  ;;
20199  *)
20200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20201for as_dir in $PATH
20202do
20203  IFS=$as_save_IFS
20204  case $as_dir in #(((
20205    '') as_dir=./ ;;
20206    */) ;;
20207    *) as_dir=$as_dir/ ;;
20208  esac
20209    for ac_exec_ext in '' $ac_executable_extensions; do
20210  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20211    ac_cv_path_PDFLATEX="$as_dir$ac_word$ac_exec_ext"
20212    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20213    break 2
20214  fi
20215done
20216  done
20217IFS=$as_save_IFS
20218
20219  test -z "$ac_cv_path_PDFLATEX" && ac_cv_path_PDFLATEX=""""
20220  ;;
20221esac
20222fi
20223PDFLATEX=$ac_cv_path_PDFLATEX
20224if test -n "$PDFLATEX"; then
20225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
20226printf "%s\n" "$PDFLATEX" >&6; }
20227else
20228  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20229printf "%s\n" "no" >&6; }
20230fi
20231
20232
20233# Extract the first word of "makeindex", so it can be a program name with args.
20234set dummy makeindex; ac_word=$2
20235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20236printf %s "checking for $ac_word... " >&6; }
20237if test ${ac_cv_path_MAKEINDEX+y}
20238then :
20239  printf %s "(cached) " >&6
20240else $as_nop
20241  case $MAKEINDEX in
20242  [\\/]* | ?:[\\/]*)
20243  ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
20244  ;;
20245  *)
20246  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20247for as_dir in $PATH
20248do
20249  IFS=$as_save_IFS
20250  case $as_dir in #(((
20251    '') as_dir=./ ;;
20252    */) ;;
20253    *) as_dir=$as_dir/ ;;
20254  esac
20255    for ac_exec_ext in '' $ac_executable_extensions; do
20256  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20257    ac_cv_path_MAKEINDEX="$as_dir$ac_word$ac_exec_ext"
20258    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20259    break 2
20260  fi
20261done
20262  done
20263IFS=$as_save_IFS
20264
20265  test -z "$ac_cv_path_MAKEINDEX" && ac_cv_path_MAKEINDEX=""""
20266  ;;
20267esac
20268fi
20269MAKEINDEX=$ac_cv_path_MAKEINDEX
20270if test -n "$MAKEINDEX"; then
20271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINDEX" >&5
20272printf "%s\n" "$MAKEINDEX" >&6; }
20273else
20274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20275printf "%s\n" "no" >&6; }
20276fi
20277
20278
20279# Extract the first word of "makeinfo", so it can be a program name with args.
20280set dummy makeinfo; ac_word=$2
20281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20282printf %s "checking for $ac_word... " >&6; }
20283if test ${ac_cv_path_MAKEINFO+y}
20284then :
20285  printf %s "(cached) " >&6
20286else $as_nop
20287  case $MAKEINFO in
20288  [\\/]* | ?:[\\/]*)
20289  ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
20290  ;;
20291  *)
20292  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20293for as_dir in $PATH
20294do
20295  IFS=$as_save_IFS
20296  case $as_dir in #(((
20297    '') as_dir=./ ;;
20298    */) ;;
20299    *) as_dir=$as_dir/ ;;
20300  esac
20301    for ac_exec_ext in '' $ac_executable_extensions; do
20302  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20303    ac_cv_path_MAKEINFO="$as_dir$ac_word$ac_exec_ext"
20304    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20305    break 2
20306  fi
20307done
20308  done
20309IFS=$as_save_IFS
20310
20311  test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO=""""
20312  ;;
20313esac
20314fi
20315MAKEINFO=$ac_cv_path_MAKEINFO
20316if test -n "$MAKEINFO"; then
20317  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
20318printf "%s\n" "$MAKEINFO" >&6; }
20319else
20320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20321printf "%s\n" "no" >&6; }
20322fi
20323
20324
20325# Extract the first word of "dvips", so it can be a program name with args.
20326set dummy dvips; ac_word=$2
20327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20328printf %s "checking for $ac_word... " >&6; }
20329if test ${ac_cv_path_DVIPS+y}
20330then :
20331  printf %s "(cached) " >&6
20332else $as_nop
20333  case $DVIPS in
20334  [\\/]* | ?:[\\/]*)
20335  ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
20336  ;;
20337  *)
20338  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20339for as_dir in $PATH
20340do
20341  IFS=$as_save_IFS
20342  case $as_dir in #(((
20343    '') as_dir=./ ;;
20344    */) ;;
20345    *) as_dir=$as_dir/ ;;
20346  esac
20347    for ac_exec_ext in '' $ac_executable_extensions; do
20348  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20349    ac_cv_path_DVIPS="$as_dir$ac_word$ac_exec_ext"
20350    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20351    break 2
20352  fi
20353done
20354  done
20355IFS=$as_save_IFS
20356
20357  test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS=""""
20358  ;;
20359esac
20360fi
20361DVIPS=$ac_cv_path_DVIPS
20362if test -n "$DVIPS"; then
20363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
20364printf "%s\n" "$DVIPS" >&6; }
20365else
20366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20367printf "%s\n" "no" >&6; }
20368fi
20369
20370
20371 if test ! \( -z "$LATEX" -o -z $"PDFLATEX" -o -z "$MAKEINDEX" -o -z "$DVIPS" \); then
20372  CONFIG_TEX_TRUE=
20373  CONFIG_TEX_FALSE='#'
20374else
20375  CONFIG_TEX_TRUE='#'
20376  CONFIG_TEX_FALSE=
20377fi
20378
20379# Extract the first word of "fig2dev", so it can be a program name with args.
20380set dummy fig2dev; ac_word=$2
20381{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20382printf %s "checking for $ac_word... " >&6; }
20383if test ${ac_cv_path_FIG2DEV+y}
20384then :
20385  printf %s "(cached) " >&6
20386else $as_nop
20387  case $FIG2DEV in
20388  [\\/]* | ?:[\\/]*)
20389  ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
20390  ;;
20391  *)
20392  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20393for as_dir in $PATH
20394do
20395  IFS=$as_save_IFS
20396  case $as_dir in #(((
20397    '') as_dir=./ ;;
20398    */) ;;
20399    *) as_dir=$as_dir/ ;;
20400  esac
20401    for ac_exec_ext in '' $ac_executable_extensions; do
20402  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20403    ac_cv_path_FIG2DEV="$as_dir$ac_word$ac_exec_ext"
20404    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20405    break 2
20406  fi
20407done
20408  done
20409IFS=$as_save_IFS
20410
20411  test -z "$ac_cv_path_FIG2DEV" && ac_cv_path_FIG2DEV=""""
20412  ;;
20413esac
20414fi
20415FIG2DEV=$ac_cv_path_FIG2DEV
20416if test -n "$FIG2DEV"; then
20417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FIG2DEV" >&5
20418printf "%s\n" "$FIG2DEV" >&6; }
20419else
20420  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20421printf "%s\n" "no" >&6; }
20422fi
20423
20424
20425 if test ! -z "$FIG2DEV"; then
20426  CONFIG_FIG2DEV_TRUE=
20427  CONFIG_FIG2DEV_FALSE='#'
20428else
20429  CONFIG_FIG2DEV_TRUE='#'
20430  CONFIG_FIG2DEV_FALSE=
20431fi
20432
20433if test -z "$FIG2DEV" -o -z "$MAKEINFO"
20434then :
20435
20436ginac_warning_txt="$ginac_warning_txt
20437== Documentation may not build, because fig2dev/texinfo is missing.
20438"
20439ginac_warning=yes
20440fi
20441if test -z "$DOXYGEN"
20442then :
20443
20444ginac_warning_txt="$ginac_warning_txt
20445== Reference manual will not build, because doxygen is missing.
20446"
20447ginac_warning=yes
20448fi
20449if test -z "$LATEX" -o -z "$PDFLATEX" -o -z "$DVIPS"
20450then :
20451
20452ginac_warning_txt="$ginac_warning_txt
20453== Some documentation formats may not build, because latex/pdflatex/dvips is missing.
20454"
20455ginac_warning=yes
20456fi
20457
20458ac_config_files="$ac_config_files Makefile GiNaC.spec ginac.pc ginac/Makefile check/Makefile ginsh/Makefile ginsh/ginsh.1 tools/Makefile tools/viewgar.1 tools/ginac-excompiler doc/Makefile doc/examples/Makefile doc/tutorial/Makefile doc/reference/Makefile doc/reference/DoxyfileHTML doc/reference/DoxyfileTEX doc/reference/DoxyfilePDF doc/reference/Doxyfooter"
20459
20460cat >confcache <<\_ACEOF
20461# This file is a shell script that caches the results of configure
20462# tests run on this system so they can be shared between configure
20463# scripts and configure runs, see configure's option --config-cache.
20464# It is not useful on other systems.  If it contains results you don't
20465# want to keep, you may remove or edit it.
20466#
20467# config.status only pays attention to the cache file if you give it
20468# the --recheck option to rerun configure.
20469#
20470# `ac_cv_env_foo' variables (set or unset) will be overridden when
20471# loading this file, other *unset* `ac_cv_foo' will be assigned the
20472# following values.
20473
20474_ACEOF
20475
20476# The following way of writing the cache mishandles newlines in values,
20477# but we know of no workaround that is simple, portable, and efficient.
20478# So, we kill variables containing newlines.
20479# Ultrix sh set writes to stderr and can't be redirected directly,
20480# and sets the high bit in the cache file unless we assign to the vars.
20481(
20482  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20483    eval ac_val=\$$ac_var
20484    case $ac_val in #(
20485    *${as_nl}*)
20486      case $ac_var in #(
20487      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20488printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20489      esac
20490      case $ac_var in #(
20491      _ | IFS | as_nl) ;; #(
20492      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20493      *) { eval $ac_var=; unset $ac_var;} ;;
20494      esac ;;
20495    esac
20496  done
20497
20498  (set) 2>&1 |
20499    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20500    *${as_nl}ac_space=\ *)
20501      # `set' does not quote correctly, so add quotes: double-quote
20502      # substitution turns \\\\ into \\, and sed turns \\ into \.
20503      sed -n \
20504	"s/'/'\\\\''/g;
20505	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20506      ;; #(
20507    *)
20508      # `set' quotes correctly as required by POSIX, so do not add quotes.
20509      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20510      ;;
20511    esac |
20512    sort
20513) |
20514  sed '
20515     /^ac_cv_env_/b end
20516     t clear
20517     :clear
20518     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20519     t end
20520     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20521     :end' >>confcache
20522if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20523  if test -w "$cache_file"; then
20524    if test "x$cache_file" != "x/dev/null"; then
20525      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20526printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20527      if test ! -f "$cache_file" || test -h "$cache_file"; then
20528	cat confcache >"$cache_file"
20529      else
20530        case $cache_file in #(
20531        */* | ?:*)
20532	  mv -f confcache "$cache_file"$$ &&
20533	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20534        *)
20535	  mv -f confcache "$cache_file" ;;
20536	esac
20537      fi
20538    fi
20539  else
20540    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20541printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20542  fi
20543fi
20544rm -f confcache
20545
20546test "x$prefix" = xNONE && prefix=$ac_default_prefix
20547# Let make expand exec_prefix.
20548test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20549
20550DEFS=-DHAVE_CONFIG_H
20551
20552ac_libobjs=
20553ac_ltlibobjs=
20554U=
20555for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20556  # 1. Remove the extension, and $U if already installed.
20557  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20558  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20559  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20560  #    will be set to the directory where LIBOBJS objects are built.
20561  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20562  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20563done
20564LIBOBJS=$ac_libobjs
20565
20566LTLIBOBJS=$ac_ltlibobjs
20567
20568
20569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20570printf %s "checking that generated files are newer than configure... " >&6; }
20571   if test -n "$am_sleep_pid"; then
20572     # Hide warnings about reused PIDs.
20573     wait $am_sleep_pid 2>/dev/null
20574   fi
20575   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20576printf "%s\n" "done" >&6; }
20577 if test -n "$EXEEXT"; then
20578  am__EXEEXT_TRUE=
20579  am__EXEEXT_FALSE='#'
20580else
20581  am__EXEEXT_TRUE='#'
20582  am__EXEEXT_FALSE=
20583fi
20584
20585if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20586  as_fn_error $? "conditional \"AMDEP\" was never defined.
20587Usually this means the macro was only invoked conditionally." "$LINENO" 5
20588fi
20589if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20590  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20591Usually this means the macro was only invoked conditionally." "$LINENO" 5
20592fi
20593if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20594  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20595Usually this means the macro was only invoked conditionally." "$LINENO" 5
20596fi
20597if test -z "${CONFIG_EXCOMPILER_TRUE}" && test -z "${CONFIG_EXCOMPILER_FALSE}"; then
20598  as_fn_error $? "conditional \"CONFIG_EXCOMPILER\" was never defined.
20599Usually this means the macro was only invoked conditionally." "$LINENO" 5
20600fi
20601if test -z "${CONFIG_DOXYGEN_TRUE}" && test -z "${CONFIG_DOXYGEN_FALSE}"; then
20602  as_fn_error $? "conditional \"CONFIG_DOXYGEN\" was never defined.
20603Usually this means the macro was only invoked conditionally." "$LINENO" 5
20604fi
20605if test -z "${CONFIG_TEX_TRUE}" && test -z "${CONFIG_TEX_FALSE}"; then
20606  as_fn_error $? "conditional \"CONFIG_TEX\" was never defined.
20607Usually this means the macro was only invoked conditionally." "$LINENO" 5
20608fi
20609if test -z "${CONFIG_FIG2DEV_TRUE}" && test -z "${CONFIG_FIG2DEV_FALSE}"; then
20610  as_fn_error $? "conditional \"CONFIG_FIG2DEV\" was never defined.
20611Usually this means the macro was only invoked conditionally." "$LINENO" 5
20612fi
20613
20614: "${CONFIG_STATUS=./config.status}"
20615ac_write_fail=0
20616ac_clean_files_save=$ac_clean_files
20617ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20619printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20620as_write_fail=0
20621cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20622#! $SHELL
20623# Generated by $as_me.
20624# Run this file to recreate the current configuration.
20625# Compiler output produced by configure, useful for debugging
20626# configure, is in config.log if it exists.
20627
20628debug=false
20629ac_cs_recheck=false
20630ac_cs_silent=false
20631
20632SHELL=\${CONFIG_SHELL-$SHELL}
20633export SHELL
20634_ASEOF
20635cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20636## -------------------- ##
20637## M4sh Initialization. ##
20638## -------------------- ##
20639
20640# Be more Bourne compatible
20641DUALCASE=1; export DUALCASE # for MKS sh
20642as_nop=:
20643if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20644then :
20645  emulate sh
20646  NULLCMD=:
20647  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20648  # is contrary to our usage.  Disable this feature.
20649  alias -g '${1+"$@"}'='"$@"'
20650  setopt NO_GLOB_SUBST
20651else $as_nop
20652  case `(set -o) 2>/dev/null` in #(
20653  *posix*) :
20654    set -o posix ;; #(
20655  *) :
20656     ;;
20657esac
20658fi
20659
20660
20661
20662# Reset variables that may have inherited troublesome values from
20663# the environment.
20664
20665# IFS needs to be set, to space, tab, and newline, in precisely that order.
20666# (If _AS_PATH_WALK were called with IFS unset, it would have the
20667# side effect of setting IFS to empty, thus disabling word splitting.)
20668# Quoting is to prevent editors from complaining about space-tab.
20669as_nl='
20670'
20671export as_nl
20672IFS=" ""	$as_nl"
20673
20674PS1='$ '
20675PS2='> '
20676PS4='+ '
20677
20678# Ensure predictable behavior from utilities with locale-dependent output.
20679LC_ALL=C
20680export LC_ALL
20681LANGUAGE=C
20682export LANGUAGE
20683
20684# We cannot yet rely on "unset" to work, but we need these variables
20685# to be unset--not just set to an empty or harmless value--now, to
20686# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
20687# also avoids known problems related to "unset" and subshell syntax
20688# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20689for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20690do eval test \${$as_var+y} \
20691  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20692done
20693
20694# Ensure that fds 0, 1, and 2 are open.
20695if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20696if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20697if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
20698
20699# The user is always right.
20700if ${PATH_SEPARATOR+false} :; then
20701  PATH_SEPARATOR=:
20702  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20703    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20704      PATH_SEPARATOR=';'
20705  }
20706fi
20707
20708
20709# Find who we are.  Look in the path if we contain no directory separator.
20710as_myself=
20711case $0 in #((
20712  *[\\/]* ) as_myself=$0 ;;
20713  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20714for as_dir in $PATH
20715do
20716  IFS=$as_save_IFS
20717  case $as_dir in #(((
20718    '') as_dir=./ ;;
20719    */) ;;
20720    *) as_dir=$as_dir/ ;;
20721  esac
20722    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20723  done
20724IFS=$as_save_IFS
20725
20726     ;;
20727esac
20728# We did not find ourselves, most probably we were run as `sh COMMAND'
20729# in which case we are not to be found in the path.
20730if test "x$as_myself" = x; then
20731  as_myself=$0
20732fi
20733if test ! -f "$as_myself"; then
20734  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20735  exit 1
20736fi
20737
20738
20739
20740# as_fn_error STATUS ERROR [LINENO LOG_FD]
20741# ----------------------------------------
20742# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20743# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20744# script with STATUS, using 1 if that was 0.
20745as_fn_error ()
20746{
20747  as_status=$1; test $as_status -eq 0 && as_status=1
20748  if test "$4"; then
20749    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20750    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20751  fi
20752  printf "%s\n" "$as_me: error: $2" >&2
20753  as_fn_exit $as_status
20754} # as_fn_error
20755
20756
20757
20758# as_fn_set_status STATUS
20759# -----------------------
20760# Set $? to STATUS, without forking.
20761as_fn_set_status ()
20762{
20763  return $1
20764} # as_fn_set_status
20765
20766# as_fn_exit STATUS
20767# -----------------
20768# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20769as_fn_exit ()
20770{
20771  set +e
20772  as_fn_set_status $1
20773  exit $1
20774} # as_fn_exit
20775
20776# as_fn_unset VAR
20777# ---------------
20778# Portably unset VAR.
20779as_fn_unset ()
20780{
20781  { eval $1=; unset $1;}
20782}
20783as_unset=as_fn_unset
20784
20785# as_fn_append VAR VALUE
20786# ----------------------
20787# Append the text in VALUE to the end of the definition contained in VAR. Take
20788# advantage of any shell optimizations that allow amortized linear growth over
20789# repeated appends, instead of the typical quadratic growth present in naive
20790# implementations.
20791if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20792then :
20793  eval 'as_fn_append ()
20794  {
20795    eval $1+=\$2
20796  }'
20797else $as_nop
20798  as_fn_append ()
20799  {
20800    eval $1=\$$1\$2
20801  }
20802fi # as_fn_append
20803
20804# as_fn_arith ARG...
20805# ------------------
20806# Perform arithmetic evaluation on the ARGs, and store the result in the
20807# global $as_val. Take advantage of shells that can avoid forks. The arguments
20808# must be portable across $(()) and expr.
20809if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20810then :
20811  eval 'as_fn_arith ()
20812  {
20813    as_val=$(( $* ))
20814  }'
20815else $as_nop
20816  as_fn_arith ()
20817  {
20818    as_val=`expr "$@" || test $? -eq 1`
20819  }
20820fi # as_fn_arith
20821
20822
20823if expr a : '\(a\)' >/dev/null 2>&1 &&
20824   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20825  as_expr=expr
20826else
20827  as_expr=false
20828fi
20829
20830if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20831  as_basename=basename
20832else
20833  as_basename=false
20834fi
20835
20836if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20837  as_dirname=dirname
20838else
20839  as_dirname=false
20840fi
20841
20842as_me=`$as_basename -- "$0" ||
20843$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20844	 X"$0" : 'X\(//\)$' \| \
20845	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20846printf "%s\n" X/"$0" |
20847    sed '/^.*\/\([^/][^/]*\)\/*$/{
20848	    s//\1/
20849	    q
20850	  }
20851	  /^X\/\(\/\/\)$/{
20852	    s//\1/
20853	    q
20854	  }
20855	  /^X\/\(\/\).*/{
20856	    s//\1/
20857	    q
20858	  }
20859	  s/.*/./; q'`
20860
20861# Avoid depending upon Character Ranges.
20862as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20863as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20864as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20865as_cr_digits='0123456789'
20866as_cr_alnum=$as_cr_Letters$as_cr_digits
20867
20868
20869# Determine whether it's possible to make 'echo' print without a newline.
20870# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20871# for compatibility with existing Makefiles.
20872ECHO_C= ECHO_N= ECHO_T=
20873case `echo -n x` in #(((((
20874-n*)
20875  case `echo 'xy\c'` in
20876  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20877  xy)  ECHO_C='\c';;
20878  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20879       ECHO_T='	';;
20880  esac;;
20881*)
20882  ECHO_N='-n';;
20883esac
20884
20885# For backward compatibility with old third-party macros, we provide
20886# the shell variables $as_echo and $as_echo_n.  New code should use
20887# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20888as_echo='printf %s\n'
20889as_echo_n='printf %s'
20890
20891rm -f conf$$ conf$$.exe conf$$.file
20892if test -d conf$$.dir; then
20893  rm -f conf$$.dir/conf$$.file
20894else
20895  rm -f conf$$.dir
20896  mkdir conf$$.dir 2>/dev/null
20897fi
20898if (echo >conf$$.file) 2>/dev/null; then
20899  if ln -s conf$$.file conf$$ 2>/dev/null; then
20900    as_ln_s='ln -s'
20901    # ... but there are two gotchas:
20902    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20903    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20904    # In both cases, we have to default to `cp -pR'.
20905    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20906      as_ln_s='cp -pR'
20907  elif ln conf$$.file conf$$ 2>/dev/null; then
20908    as_ln_s=ln
20909  else
20910    as_ln_s='cp -pR'
20911  fi
20912else
20913  as_ln_s='cp -pR'
20914fi
20915rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20916rmdir conf$$.dir 2>/dev/null
20917
20918
20919# as_fn_mkdir_p
20920# -------------
20921# Create "$as_dir" as a directory, including parents if necessary.
20922as_fn_mkdir_p ()
20923{
20924
20925  case $as_dir in #(
20926  -*) as_dir=./$as_dir;;
20927  esac
20928  test -d "$as_dir" || eval $as_mkdir_p || {
20929    as_dirs=
20930    while :; do
20931      case $as_dir in #(
20932      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20933      *) as_qdir=$as_dir;;
20934      esac
20935      as_dirs="'$as_qdir' $as_dirs"
20936      as_dir=`$as_dirname -- "$as_dir" ||
20937$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20938	 X"$as_dir" : 'X\(//\)[^/]' \| \
20939	 X"$as_dir" : 'X\(//\)$' \| \
20940	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20941printf "%s\n" X"$as_dir" |
20942    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20943	    s//\1/
20944	    q
20945	  }
20946	  /^X\(\/\/\)[^/].*/{
20947	    s//\1/
20948	    q
20949	  }
20950	  /^X\(\/\/\)$/{
20951	    s//\1/
20952	    q
20953	  }
20954	  /^X\(\/\).*/{
20955	    s//\1/
20956	    q
20957	  }
20958	  s/.*/./; q'`
20959      test -d "$as_dir" && break
20960    done
20961    test -z "$as_dirs" || eval "mkdir $as_dirs"
20962  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20963
20964
20965} # as_fn_mkdir_p
20966if mkdir -p . 2>/dev/null; then
20967  as_mkdir_p='mkdir -p "$as_dir"'
20968else
20969  test -d ./-p && rmdir ./-p
20970  as_mkdir_p=false
20971fi
20972
20973
20974# as_fn_executable_p FILE
20975# -----------------------
20976# Test if FILE is an executable regular file.
20977as_fn_executable_p ()
20978{
20979  test -f "$1" && test -x "$1"
20980} # as_fn_executable_p
20981as_test_x='test -x'
20982as_executable_p=as_fn_executable_p
20983
20984# Sed expression to map a string onto a valid CPP name.
20985as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20986
20987# Sed expression to map a string onto a valid variable name.
20988as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20989
20990
20991exec 6>&1
20992## ----------------------------------- ##
20993## Main body of $CONFIG_STATUS script. ##
20994## ----------------------------------- ##
20995_ASEOF
20996test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20997
20998cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20999# Save the log message, to keep $0 and so on meaningful, and to
21000# report actual input values of CONFIG_FILES etc. instead of their
21001# values after options handling.
21002ac_log="
21003This file was extended by GiNaC $as_me 1.8.2, which was
21004generated by GNU Autoconf 2.71.  Invocation command line was
21005
21006  CONFIG_FILES    = $CONFIG_FILES
21007  CONFIG_HEADERS  = $CONFIG_HEADERS
21008  CONFIG_LINKS    = $CONFIG_LINKS
21009  CONFIG_COMMANDS = $CONFIG_COMMANDS
21010  $ $0 $@
21011
21012on `(hostname || uname -n) 2>/dev/null | sed 1q`
21013"
21014
21015_ACEOF
21016
21017case $ac_config_files in *"
21018"*) set x $ac_config_files; shift; ac_config_files=$*;;
21019esac
21020
21021case $ac_config_headers in *"
21022"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21023esac
21024
21025
21026cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21027# Files that config.status was made for.
21028config_files="$ac_config_files"
21029config_headers="$ac_config_headers"
21030config_commands="$ac_config_commands"
21031
21032_ACEOF
21033
21034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21035ac_cs_usage="\
21036\`$as_me' instantiates files and other configuration actions
21037from templates according to the current configuration.  Unless the files
21038and actions are specified as TAGs, all are instantiated by default.
21039
21040Usage: $0 [OPTION]... [TAG]...
21041
21042  -h, --help       print this help, then exit
21043  -V, --version    print version number and configuration settings, then exit
21044      --config     print configuration, then exit
21045  -q, --quiet, --silent
21046                   do not print progress messages
21047  -d, --debug      don't remove temporary files
21048      --recheck    update $as_me by reconfiguring in the same conditions
21049      --file=FILE[:TEMPLATE]
21050                   instantiate the configuration file FILE
21051      --header=FILE[:TEMPLATE]
21052                   instantiate the configuration header FILE
21053
21054Configuration files:
21055$config_files
21056
21057Configuration headers:
21058$config_headers
21059
21060Configuration commands:
21061$config_commands
21062
21063Report bugs to <ginac-list@ginac.de>.
21064GiNaC home page: <https://www.ginac.de/>."
21065
21066_ACEOF
21067ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21068ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21069cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21070ac_cs_config='$ac_cs_config_escaped'
21071ac_cs_version="\\
21072GiNaC config.status 1.8.2
21073configured by $0, generated by GNU Autoconf 2.71,
21074  with options \\"\$ac_cs_config\\"
21075
21076Copyright (C) 2021 Free Software Foundation, Inc.
21077This config.status script is free software; the Free Software Foundation
21078gives unlimited permission to copy, distribute and modify it."
21079
21080ac_pwd='$ac_pwd'
21081srcdir='$srcdir'
21082INSTALL='$INSTALL'
21083MKDIR_P='$MKDIR_P'
21084AWK='$AWK'
21085test -n "\$AWK" || AWK=awk
21086_ACEOF
21087
21088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21089# The default lists apply if the user does not specify any file.
21090ac_need_defaults=:
21091while test $# != 0
21092do
21093  case $1 in
21094  --*=?*)
21095    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21096    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21097    ac_shift=:
21098    ;;
21099  --*=)
21100    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21101    ac_optarg=
21102    ac_shift=:
21103    ;;
21104  *)
21105    ac_option=$1
21106    ac_optarg=$2
21107    ac_shift=shift
21108    ;;
21109  esac
21110
21111  case $ac_option in
21112  # Handling of the options.
21113  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21114    ac_cs_recheck=: ;;
21115  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21116    printf "%s\n" "$ac_cs_version"; exit ;;
21117  --config | --confi | --conf | --con | --co | --c )
21118    printf "%s\n" "$ac_cs_config"; exit ;;
21119  --debug | --debu | --deb | --de | --d | -d )
21120    debug=: ;;
21121  --file | --fil | --fi | --f )
21122    $ac_shift
21123    case $ac_optarg in
21124    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21125    '') as_fn_error $? "missing file argument" ;;
21126    esac
21127    as_fn_append CONFIG_FILES " '$ac_optarg'"
21128    ac_need_defaults=false;;
21129  --header | --heade | --head | --hea )
21130    $ac_shift
21131    case $ac_optarg in
21132    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21133    esac
21134    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21135    ac_need_defaults=false;;
21136  --he | --h)
21137    # Conflict between --help and --header
21138    as_fn_error $? "ambiguous option: \`$1'
21139Try \`$0 --help' for more information.";;
21140  --help | --hel | -h )
21141    printf "%s\n" "$ac_cs_usage"; exit ;;
21142  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21143  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21144    ac_cs_silent=: ;;
21145
21146  # This is an error.
21147  -*) as_fn_error $? "unrecognized option: \`$1'
21148Try \`$0 --help' for more information." ;;
21149
21150  *) as_fn_append ac_config_targets " $1"
21151     ac_need_defaults=false ;;
21152
21153  esac
21154  shift
21155done
21156
21157ac_configure_extra_args=
21158
21159if $ac_cs_silent; then
21160  exec 6>/dev/null
21161  ac_configure_extra_args="$ac_configure_extra_args --silent"
21162fi
21163
21164_ACEOF
21165cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21166if \$ac_cs_recheck; then
21167  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21168  shift
21169  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21170  CONFIG_SHELL='$SHELL'
21171  export CONFIG_SHELL
21172  exec "\$@"
21173fi
21174
21175_ACEOF
21176cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21177exec 5>>config.log
21178{
21179  echo
21180  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21181## Running $as_me. ##
21182_ASBOX
21183  printf "%s\n" "$ac_log"
21184} >&5
21185
21186_ACEOF
21187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21188#
21189# INIT-COMMANDS
21190#
21191AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21192
21193
21194# The HP-UX ksh and POSIX shell print the target directory to stdout
21195# if CDPATH is set.
21196(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21197
21198sed_quote_subst='$sed_quote_subst'
21199double_quote_subst='$double_quote_subst'
21200delay_variable_subst='$delay_variable_subst'
21201macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21202macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21203enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21204enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21205pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21206enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21207shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21208SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21209ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21210PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21211host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21212host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21213host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21214build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21215build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21216build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21217SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21218Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21219GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21220EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21221FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21222LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21223NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21224LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21225max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21226ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21227exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21228lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21229lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21230lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21231lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21232lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21233reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21234reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21235OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21236deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21237file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21238file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21239want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21240DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21241sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21242AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21243AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21244archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21245STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21246RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21247old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21248old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21249old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21250lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21251CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21252CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21253compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21254GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21255lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21256lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21257lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21258lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21259lt_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"`'
21260lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21261nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21262lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21263lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21264objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21265MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21266lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21267lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21268lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21269lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21270lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21271need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21272MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21273DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21274NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21275LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21276OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21277OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21278libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21279shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21280extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21281archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21282enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21283export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21284whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21285compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21286old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21287old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21288archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21289archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21290module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21291module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21292with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21293allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21294no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21295hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21296hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21297hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21298hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21299hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21300hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21301hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21302inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21303link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21304always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21305export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21306exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21307include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21308prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21309postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21310file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21311variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21312need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21313need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21314version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21315runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21316shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21317shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21318libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21319library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21320soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21321install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21322postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21323postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21324finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21325finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21326hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21327sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21328configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21329configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21330hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21331enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21332enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21333enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21334old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21335striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21336compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21337predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21338postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21339predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21340postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21341compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21342LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21343reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21344reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21345old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21346compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21347GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21348lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21349lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21350lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21351lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21352lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21353archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21354enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21355export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21356whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21357compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21358old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21359old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21360archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21361archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21362module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21363module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21364with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21365allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21366no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21367hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21368hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21369hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21370hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21371hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21372hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21373hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21374inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21375link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21376always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21377export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21378exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21379include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21380prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21381postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21382file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21383hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21384compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21385predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21386postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21387predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21388postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21389compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21390
21391LTCC='$LTCC'
21392LTCFLAGS='$LTCFLAGS'
21393compiler='$compiler_DEFAULT'
21394
21395# A function that is used when there is no print builtin or printf.
21396func_fallback_echo ()
21397{
21398  eval 'cat <<_LTECHO_EOF
21399\$1
21400_LTECHO_EOF'
21401}
21402
21403# Quote evaled strings.
21404for var in SHELL \
21405ECHO \
21406PATH_SEPARATOR \
21407SED \
21408GREP \
21409EGREP \
21410FGREP \
21411LD \
21412NM \
21413LN_S \
21414lt_SP2NL \
21415lt_NL2SP \
21416reload_flag \
21417OBJDUMP \
21418deplibs_check_method \
21419file_magic_cmd \
21420file_magic_glob \
21421want_nocaseglob \
21422DLLTOOL \
21423sharedlib_from_linklib_cmd \
21424AR \
21425AR_FLAGS \
21426archiver_list_spec \
21427STRIP \
21428RANLIB \
21429CC \
21430CFLAGS \
21431compiler \
21432lt_cv_sys_global_symbol_pipe \
21433lt_cv_sys_global_symbol_to_cdecl \
21434lt_cv_sys_global_symbol_to_import \
21435lt_cv_sys_global_symbol_to_c_name_address \
21436lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21437lt_cv_nm_interface \
21438nm_file_list_spec \
21439lt_cv_truncate_bin \
21440lt_prog_compiler_no_builtin_flag \
21441lt_prog_compiler_pic \
21442lt_prog_compiler_wl \
21443lt_prog_compiler_static \
21444lt_cv_prog_compiler_c_o \
21445need_locks \
21446MANIFEST_TOOL \
21447DSYMUTIL \
21448NMEDIT \
21449LIPO \
21450OTOOL \
21451OTOOL64 \
21452shrext_cmds \
21453export_dynamic_flag_spec \
21454whole_archive_flag_spec \
21455compiler_needs_object \
21456with_gnu_ld \
21457allow_undefined_flag \
21458no_undefined_flag \
21459hardcode_libdir_flag_spec \
21460hardcode_libdir_separator \
21461exclude_expsyms \
21462include_expsyms \
21463file_list_spec \
21464variables_saved_for_relink \
21465libname_spec \
21466library_names_spec \
21467soname_spec \
21468install_override_mode \
21469finish_eval \
21470old_striplib \
21471striplib \
21472compiler_lib_search_dirs \
21473predep_objects \
21474postdep_objects \
21475predeps \
21476postdeps \
21477compiler_lib_search_path \
21478LD_CXX \
21479reload_flag_CXX \
21480compiler_CXX \
21481lt_prog_compiler_no_builtin_flag_CXX \
21482lt_prog_compiler_pic_CXX \
21483lt_prog_compiler_wl_CXX \
21484lt_prog_compiler_static_CXX \
21485lt_cv_prog_compiler_c_o_CXX \
21486export_dynamic_flag_spec_CXX \
21487whole_archive_flag_spec_CXX \
21488compiler_needs_object_CXX \
21489with_gnu_ld_CXX \
21490allow_undefined_flag_CXX \
21491no_undefined_flag_CXX \
21492hardcode_libdir_flag_spec_CXX \
21493hardcode_libdir_separator_CXX \
21494exclude_expsyms_CXX \
21495include_expsyms_CXX \
21496file_list_spec_CXX \
21497compiler_lib_search_dirs_CXX \
21498predep_objects_CXX \
21499postdep_objects_CXX \
21500predeps_CXX \
21501postdeps_CXX \
21502compiler_lib_search_path_CXX; do
21503    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21504    *[\\\\\\\`\\"\\\$]*)
21505      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21506      ;;
21507    *)
21508      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21509      ;;
21510    esac
21511done
21512
21513# Double-quote double-evaled strings.
21514for var in reload_cmds \
21515old_postinstall_cmds \
21516old_postuninstall_cmds \
21517old_archive_cmds \
21518extract_expsyms_cmds \
21519old_archive_from_new_cmds \
21520old_archive_from_expsyms_cmds \
21521archive_cmds \
21522archive_expsym_cmds \
21523module_cmds \
21524module_expsym_cmds \
21525export_symbols_cmds \
21526prelink_cmds \
21527postlink_cmds \
21528postinstall_cmds \
21529postuninstall_cmds \
21530finish_cmds \
21531sys_lib_search_path_spec \
21532configure_time_dlsearch_path \
21533configure_time_lt_sys_library_path \
21534reload_cmds_CXX \
21535old_archive_cmds_CXX \
21536old_archive_from_new_cmds_CXX \
21537old_archive_from_expsyms_cmds_CXX \
21538archive_cmds_CXX \
21539archive_expsym_cmds_CXX \
21540module_cmds_CXX \
21541module_expsym_cmds_CXX \
21542export_symbols_cmds_CXX \
21543prelink_cmds_CXX \
21544postlink_cmds_CXX; do
21545    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21546    *[\\\\\\\`\\"\\\$]*)
21547      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21548      ;;
21549    *)
21550      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21551      ;;
21552    esac
21553done
21554
21555ac_aux_dir='$ac_aux_dir'
21556
21557# See if we are running on zsh, and set the options that allow our
21558# commands through without removal of \ escapes INIT.
21559if test -n "\${ZSH_VERSION+set}"; then
21560   setopt NO_GLOB_SUBST
21561fi
21562
21563
21564    PACKAGE='$PACKAGE'
21565    VERSION='$VERSION'
21566    RM='$RM'
21567    ofile='$ofile'
21568
21569
21570
21571
21572
21573
21574_ACEOF
21575
21576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21577
21578# Handling of arguments.
21579for ac_config_target in $ac_config_targets
21580do
21581  case $ac_config_target in
21582    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
21583    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21584    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21585    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21586    "GiNaC.spec") CONFIG_FILES="$CONFIG_FILES GiNaC.spec" ;;
21587    "ginac.pc") CONFIG_FILES="$CONFIG_FILES ginac.pc" ;;
21588    "ginac/Makefile") CONFIG_FILES="$CONFIG_FILES ginac/Makefile" ;;
21589    "check/Makefile") CONFIG_FILES="$CONFIG_FILES check/Makefile" ;;
21590    "ginsh/Makefile") CONFIG_FILES="$CONFIG_FILES ginsh/Makefile" ;;
21591    "ginsh/ginsh.1") CONFIG_FILES="$CONFIG_FILES ginsh/ginsh.1" ;;
21592    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21593    "tools/viewgar.1") CONFIG_FILES="$CONFIG_FILES tools/viewgar.1" ;;
21594    "tools/ginac-excompiler") CONFIG_FILES="$CONFIG_FILES tools/ginac-excompiler" ;;
21595    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21596    "doc/examples/Makefile") CONFIG_FILES="$CONFIG_FILES doc/examples/Makefile" ;;
21597    "doc/tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES doc/tutorial/Makefile" ;;
21598    "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
21599    "doc/reference/DoxyfileHTML") CONFIG_FILES="$CONFIG_FILES doc/reference/DoxyfileHTML" ;;
21600    "doc/reference/DoxyfileTEX") CONFIG_FILES="$CONFIG_FILES doc/reference/DoxyfileTEX" ;;
21601    "doc/reference/DoxyfilePDF") CONFIG_FILES="$CONFIG_FILES doc/reference/DoxyfilePDF" ;;
21602    "doc/reference/Doxyfooter") CONFIG_FILES="$CONFIG_FILES doc/reference/Doxyfooter" ;;
21603
21604  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21605  esac
21606done
21607
21608
21609# If the user did not use the arguments to specify the items to instantiate,
21610# then the envvar interface is used.  Set only those that are not.
21611# We use the long form for the default assignment because of an extremely
21612# bizarre bug on SunOS 4.1.3.
21613if $ac_need_defaults; then
21614  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
21615  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
21616  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
21617fi
21618
21619# Have a temporary directory for convenience.  Make it in the build tree
21620# simply because there is no reason against having it here, and in addition,
21621# creating and moving files from /tmp can sometimes cause problems.
21622# Hook for its removal unless debugging.
21623# Note that there is a small window in which the directory will not be cleaned:
21624# after its creation but before its name has been assigned to `$tmp'.
21625$debug ||
21626{
21627  tmp= ac_tmp=
21628  trap 'exit_status=$?
21629  : "${ac_tmp:=$tmp}"
21630  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21631' 0
21632  trap 'as_fn_exit 1' 1 2 13 15
21633}
21634# Create a (secure) tmp directory for tmp files.
21635
21636{
21637  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21638  test -d "$tmp"
21639}  ||
21640{
21641  tmp=./conf$$-$RANDOM
21642  (umask 077 && mkdir "$tmp")
21643} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21644ac_tmp=$tmp
21645
21646# Set up the scripts for CONFIG_FILES section.
21647# No need to generate them if there are no CONFIG_FILES.
21648# This happens for instance with `./config.status config.h'.
21649if test -n "$CONFIG_FILES"; then
21650
21651
21652ac_cr=`echo X | tr X '\015'`
21653# On cygwin, bash can eat \r inside `` if the user requested igncr.
21654# But we know of no other shell where ac_cr would be empty at this
21655# point, so we can use a bashism as a fallback.
21656if test "x$ac_cr" = x; then
21657  eval ac_cr=\$\'\\r\'
21658fi
21659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21661  ac_cs_awk_cr='\\r'
21662else
21663  ac_cs_awk_cr=$ac_cr
21664fi
21665
21666echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21667_ACEOF
21668
21669
21670{
21671  echo "cat >conf$$subs.awk <<_ACEOF" &&
21672  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21673  echo "_ACEOF"
21674} >conf$$subs.sh ||
21675  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21676ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21677ac_delim='%!_!# '
21678for ac_last_try in false false false false false :; do
21679  . ./conf$$subs.sh ||
21680    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21681
21682  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21683  if test $ac_delim_n = $ac_delim_num; then
21684    break
21685  elif $ac_last_try; then
21686    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21687  else
21688    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21689  fi
21690done
21691rm -f conf$$subs.sh
21692
21693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21694cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21695_ACEOF
21696sed -n '
21697h
21698s/^/S["/; s/!.*/"]=/
21699p
21700g
21701s/^[^!]*!//
21702:repl
21703t repl
21704s/'"$ac_delim"'$//
21705t delim
21706:nl
21707h
21708s/\(.\{148\}\)..*/\1/
21709t more1
21710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21711p
21712n
21713b repl
21714:more1
21715s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21716p
21717g
21718s/.\{148\}//
21719t nl
21720:delim
21721h
21722s/\(.\{148\}\)..*/\1/
21723t more2
21724s/["\\]/\\&/g; s/^/"/; s/$/"/
21725p
21726b
21727:more2
21728s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21729p
21730g
21731s/.\{148\}//
21732t delim
21733' <conf$$subs.awk | sed '
21734/^[^""]/{
21735  N
21736  s/\n//
21737}
21738' >>$CONFIG_STATUS || ac_write_fail=1
21739rm -f conf$$subs.awk
21740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21741_ACAWK
21742cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21743  for (key in S) S_is_set[key] = 1
21744  FS = ""
21745
21746}
21747{
21748  line = $ 0
21749  nfields = split(line, field, "@")
21750  substed = 0
21751  len = length(field[1])
21752  for (i = 2; i < nfields; i++) {
21753    key = field[i]
21754    keylen = length(key)
21755    if (S_is_set[key]) {
21756      value = S[key]
21757      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21758      len += length(value) + length(field[++i])
21759      substed = 1
21760    } else
21761      len += 1 + keylen
21762  }
21763
21764  print line
21765}
21766
21767_ACAWK
21768_ACEOF
21769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21771  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21772else
21773  cat
21774fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21775  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21776_ACEOF
21777
21778# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21779# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21780# trailing colons and then remove the whole line if VPATH becomes empty
21781# (actually we leave an empty line to preserve line numbers).
21782if test "x$srcdir" = x.; then
21783  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21784h
21785s///
21786s/^/:/
21787s/[	 ]*$/:/
21788s/:\$(srcdir):/:/g
21789s/:\${srcdir}:/:/g
21790s/:@srcdir@:/:/g
21791s/^:*//
21792s/:*$//
21793x
21794s/\(=[	 ]*\).*/\1/
21795G
21796s/\n//
21797s/^[^=]*=[	 ]*$//
21798}'
21799fi
21800
21801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21802fi # test -n "$CONFIG_FILES"
21803
21804# Set up the scripts for CONFIG_HEADERS section.
21805# No need to generate them if there are no CONFIG_HEADERS.
21806# This happens for instance with `./config.status Makefile'.
21807if test -n "$CONFIG_HEADERS"; then
21808cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21809BEGIN {
21810_ACEOF
21811
21812# Transform confdefs.h into an awk script `defines.awk', embedded as
21813# here-document in config.status, that substitutes the proper values into
21814# config.h.in to produce config.h.
21815
21816# Create a delimiter string that does not exist in confdefs.h, to ease
21817# handling of long lines.
21818ac_delim='%!_!# '
21819for ac_last_try in false false :; do
21820  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21821  if test -z "$ac_tt"; then
21822    break
21823  elif $ac_last_try; then
21824    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21825  else
21826    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21827  fi
21828done
21829
21830# For the awk script, D is an array of macro values keyed by name,
21831# likewise P contains macro parameters if any.  Preserve backslash
21832# newline sequences.
21833
21834ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21835sed -n '
21836s/.\{148\}/&'"$ac_delim"'/g
21837t rset
21838:rset
21839s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21840t def
21841d
21842:def
21843s/\\$//
21844t bsnl
21845s/["\\]/\\&/g
21846s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21847D["\1"]=" \3"/p
21848s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21849d
21850:bsnl
21851s/["\\]/\\&/g
21852s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21853D["\1"]=" \3\\\\\\n"\\/p
21854t cont
21855s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21856t cont
21857d
21858:cont
21859n
21860s/.\{148\}/&'"$ac_delim"'/g
21861t clear
21862:clear
21863s/\\$//
21864t bsnlc
21865s/["\\]/\\&/g; s/^/"/; s/$/"/p
21866d
21867:bsnlc
21868s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21869b cont
21870' <confdefs.h | sed '
21871s/'"$ac_delim"'/"\\\
21872"/g' >>$CONFIG_STATUS || ac_write_fail=1
21873
21874cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21875  for (key in D) D_is_set[key] = 1
21876  FS = ""
21877}
21878/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21879  line = \$ 0
21880  split(line, arg, " ")
21881  if (arg[1] == "#") {
21882    defundef = arg[2]
21883    mac1 = arg[3]
21884  } else {
21885    defundef = substr(arg[1], 2)
21886    mac1 = arg[2]
21887  }
21888  split(mac1, mac2, "(") #)
21889  macro = mac2[1]
21890  prefix = substr(line, 1, index(line, defundef) - 1)
21891  if (D_is_set[macro]) {
21892    # Preserve the white space surrounding the "#".
21893    print prefix "define", macro P[macro] D[macro]
21894    next
21895  } else {
21896    # Replace #undef with comments.  This is necessary, for example,
21897    # in the case of _POSIX_SOURCE, which is predefined and required
21898    # on some systems where configure will not decide to define it.
21899    if (defundef == "undef") {
21900      print "/*", prefix defundef, macro, "*/"
21901      next
21902    }
21903  }
21904}
21905{ print }
21906_ACAWK
21907_ACEOF
21908cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21909  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21910fi # test -n "$CONFIG_HEADERS"
21911
21912
21913eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21914shift
21915for ac_tag
21916do
21917  case $ac_tag in
21918  :[FHLC]) ac_mode=$ac_tag; continue;;
21919  esac
21920  case $ac_mode$ac_tag in
21921  :[FHL]*:*);;
21922  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21923  :[FH]-) ac_tag=-:-;;
21924  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21925  esac
21926  ac_save_IFS=$IFS
21927  IFS=:
21928  set x $ac_tag
21929  IFS=$ac_save_IFS
21930  shift
21931  ac_file=$1
21932  shift
21933
21934  case $ac_mode in
21935  :L) ac_source=$1;;
21936  :[FH])
21937    ac_file_inputs=
21938    for ac_f
21939    do
21940      case $ac_f in
21941      -) ac_f="$ac_tmp/stdin";;
21942      *) # Look for the file first in the build tree, then in the source tree
21943	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21944	 # because $ac_f cannot contain `:'.
21945	 test -f "$ac_f" ||
21946	   case $ac_f in
21947	   [\\/$]*) false;;
21948	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21949	   esac ||
21950	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21951      esac
21952      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21953      as_fn_append ac_file_inputs " '$ac_f'"
21954    done
21955
21956    # Let's still pretend it is `configure' which instantiates (i.e., don't
21957    # use $as_me), people would be surprised to read:
21958    #    /* config.h.  Generated by config.status.  */
21959    configure_input='Generated from '`
21960	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21961	`' by configure.'
21962    if test x"$ac_file" != x-; then
21963      configure_input="$ac_file.  $configure_input"
21964      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21965printf "%s\n" "$as_me: creating $ac_file" >&6;}
21966    fi
21967    # Neutralize special characters interpreted by sed in replacement strings.
21968    case $configure_input in #(
21969    *\&* | *\|* | *\\* )
21970       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21971       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21972    *) ac_sed_conf_input=$configure_input;;
21973    esac
21974
21975    case $ac_tag in
21976    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21977      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21978    esac
21979    ;;
21980  esac
21981
21982  ac_dir=`$as_dirname -- "$ac_file" ||
21983$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21984	 X"$ac_file" : 'X\(//\)[^/]' \| \
21985	 X"$ac_file" : 'X\(//\)$' \| \
21986	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21987printf "%s\n" X"$ac_file" |
21988    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21989	    s//\1/
21990	    q
21991	  }
21992	  /^X\(\/\/\)[^/].*/{
21993	    s//\1/
21994	    q
21995	  }
21996	  /^X\(\/\/\)$/{
21997	    s//\1/
21998	    q
21999	  }
22000	  /^X\(\/\).*/{
22001	    s//\1/
22002	    q
22003	  }
22004	  s/.*/./; q'`
22005  as_dir="$ac_dir"; as_fn_mkdir_p
22006  ac_builddir=.
22007
22008case "$ac_dir" in
22009.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22010*)
22011  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22012  # A ".." for each directory in $ac_dir_suffix.
22013  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22014  case $ac_top_builddir_sub in
22015  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22016  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22017  esac ;;
22018esac
22019ac_abs_top_builddir=$ac_pwd
22020ac_abs_builddir=$ac_pwd$ac_dir_suffix
22021# for backward compatibility:
22022ac_top_builddir=$ac_top_build_prefix
22023
22024case $srcdir in
22025  .)  # We are building in place.
22026    ac_srcdir=.
22027    ac_top_srcdir=$ac_top_builddir_sub
22028    ac_abs_top_srcdir=$ac_pwd ;;
22029  [\\/]* | ?:[\\/]* )  # Absolute name.
22030    ac_srcdir=$srcdir$ac_dir_suffix;
22031    ac_top_srcdir=$srcdir
22032    ac_abs_top_srcdir=$srcdir ;;
22033  *) # Relative name.
22034    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22035    ac_top_srcdir=$ac_top_build_prefix$srcdir
22036    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22037esac
22038ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22039
22040
22041  case $ac_mode in
22042  :F)
22043  #
22044  # CONFIG_FILE
22045  #
22046
22047  case $INSTALL in
22048  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22049  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22050  esac
22051  ac_MKDIR_P=$MKDIR_P
22052  case $MKDIR_P in
22053  [\\/$]* | ?:[\\/]* ) ;;
22054  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22055  esac
22056_ACEOF
22057
22058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22059# If the template does not know about datarootdir, expand it.
22060# FIXME: This hack should be removed a few years after 2.60.
22061ac_datarootdir_hack=; ac_datarootdir_seen=
22062ac_sed_dataroot='
22063/datarootdir/ {
22064  p
22065  q
22066}
22067/@datadir@/p
22068/@docdir@/p
22069/@infodir@/p
22070/@localedir@/p
22071/@mandir@/p'
22072case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22073*datarootdir*) ac_datarootdir_seen=yes;;
22074*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22075  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22076printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22077_ACEOF
22078cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22079  ac_datarootdir_hack='
22080  s&@datadir@&$datadir&g
22081  s&@docdir@&$docdir&g
22082  s&@infodir@&$infodir&g
22083  s&@localedir@&$localedir&g
22084  s&@mandir@&$mandir&g
22085  s&\\\${datarootdir}&$datarootdir&g' ;;
22086esac
22087_ACEOF
22088
22089# Neutralize VPATH when `$srcdir' = `.'.
22090# Shell code in configure.ac might set extrasub.
22091# FIXME: do we really want to maintain this feature?
22092cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22093ac_sed_extra="$ac_vpsub
22094$extrasub
22095_ACEOF
22096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22097:t
22098/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22099s|@configure_input@|$ac_sed_conf_input|;t t
22100s&@top_builddir@&$ac_top_builddir_sub&;t t
22101s&@top_build_prefix@&$ac_top_build_prefix&;t t
22102s&@srcdir@&$ac_srcdir&;t t
22103s&@abs_srcdir@&$ac_abs_srcdir&;t t
22104s&@top_srcdir@&$ac_top_srcdir&;t t
22105s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22106s&@builddir@&$ac_builddir&;t t
22107s&@abs_builddir@&$ac_abs_builddir&;t t
22108s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22109s&@INSTALL@&$ac_INSTALL&;t t
22110s&@MKDIR_P@&$ac_MKDIR_P&;t t
22111$ac_datarootdir_hack
22112"
22113eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22114  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22115
22116test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22117  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22118  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22119      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22121which seems to be undefined.  Please make sure it is defined" >&5
22122printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22123which seems to be undefined.  Please make sure it is defined" >&2;}
22124
22125  rm -f "$ac_tmp/stdin"
22126  case $ac_file in
22127  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22128  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22129  esac \
22130  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22131 ;;
22132  :H)
22133  #
22134  # CONFIG_HEADER
22135  #
22136  if test x"$ac_file" != x-; then
22137    {
22138      printf "%s\n" "/* $configure_input  */" >&1 \
22139      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22140    } >"$ac_tmp/config.h" \
22141      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22142    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22143      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22144printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22145    else
22146      rm -f "$ac_file"
22147      mv "$ac_tmp/config.h" "$ac_file" \
22148	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22149    fi
22150  else
22151    printf "%s\n" "/* $configure_input  */" >&1 \
22152      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22153      || as_fn_error $? "could not create -" "$LINENO" 5
22154  fi
22155# Compute "$ac_file"'s index in $config_headers.
22156_am_arg="$ac_file"
22157_am_stamp_count=1
22158for _am_header in $config_headers :; do
22159  case $_am_header in
22160    $_am_arg | $_am_arg:* )
22161      break ;;
22162    * )
22163      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22164  esac
22165done
22166echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22167$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22168	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22169	 X"$_am_arg" : 'X\(//\)$' \| \
22170	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22171printf "%s\n" X"$_am_arg" |
22172    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22173	    s//\1/
22174	    q
22175	  }
22176	  /^X\(\/\/\)[^/].*/{
22177	    s//\1/
22178	    q
22179	  }
22180	  /^X\(\/\/\)$/{
22181	    s//\1/
22182	    q
22183	  }
22184	  /^X\(\/\).*/{
22185	    s//\1/
22186	    q
22187	  }
22188	  s/.*/./; q'`/stamp-h$_am_stamp_count
22189 ;;
22190
22191  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22192printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22193 ;;
22194  esac
22195
22196
22197  case $ac_file$ac_mode in
22198    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22199  # Older Autoconf quotes --file arguments for eval, but not when files
22200  # are listed without --file.  Let's play safe and only enable the eval
22201  # if we detect the quoting.
22202  # TODO: see whether this extra hack can be removed once we start
22203  # requiring Autoconf 2.70 or later.
22204  case $CONFIG_FILES in #(
22205  *\'*) :
22206    eval set x "$CONFIG_FILES" ;; #(
22207  *) :
22208    set x $CONFIG_FILES ;; #(
22209  *) :
22210     ;;
22211esac
22212  shift
22213  # Used to flag and report bootstrapping failures.
22214  am_rc=0
22215  for am_mf
22216  do
22217    # Strip MF so we end up with the name of the file.
22218    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22219    # Check whether this is an Automake generated Makefile which includes
22220    # dependency-tracking related rules and includes.
22221    # Grep'ing the whole file directly is not great: AIX grep has a line
22222    # limit of 2048, but all sed's we know have understand at least 4000.
22223    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22224      || continue
22225    am_dirpart=`$as_dirname -- "$am_mf" ||
22226$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22227	 X"$am_mf" : 'X\(//\)[^/]' \| \
22228	 X"$am_mf" : 'X\(//\)$' \| \
22229	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22230printf "%s\n" X"$am_mf" |
22231    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22232	    s//\1/
22233	    q
22234	  }
22235	  /^X\(\/\/\)[^/].*/{
22236	    s//\1/
22237	    q
22238	  }
22239	  /^X\(\/\/\)$/{
22240	    s//\1/
22241	    q
22242	  }
22243	  /^X\(\/\).*/{
22244	    s//\1/
22245	    q
22246	  }
22247	  s/.*/./; q'`
22248    am_filepart=`$as_basename -- "$am_mf" ||
22249$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22250	 X"$am_mf" : 'X\(//\)$' \| \
22251	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22252printf "%s\n" X/"$am_mf" |
22253    sed '/^.*\/\([^/][^/]*\)\/*$/{
22254	    s//\1/
22255	    q
22256	  }
22257	  /^X\/\(\/\/\)$/{
22258	    s//\1/
22259	    q
22260	  }
22261	  /^X\/\(\/\).*/{
22262	    s//\1/
22263	    q
22264	  }
22265	  s/.*/./; q'`
22266    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22267      && sed -e '/# am--include-marker/d' "$am_filepart" \
22268        | $MAKE -f - am--depfiles" >&5
22269   (cd "$am_dirpart" \
22270      && sed -e '/# am--include-marker/d' "$am_filepart" \
22271        | $MAKE -f - am--depfiles) >&5 2>&5
22272   ac_status=$?
22273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274   (exit $ac_status); } || am_rc=$?
22275  done
22276  if test $am_rc -ne 0; then
22277    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22278printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22279as_fn_error $? "Something went wrong bootstrapping makefile fragments
22280    for automatic dependency tracking.  If GNU make was not used, consider
22281    re-running the configure script with MAKE=\"gmake\" (or whatever is
22282    necessary).  You can also try re-running configure with the
22283    '--disable-dependency-tracking' option to at least be able to build
22284    the package (albeit without support for automatic dependency tracking).
22285See \`config.log' for more details" "$LINENO" 5; }
22286  fi
22287  { am_dirpart=; unset am_dirpart;}
22288  { am_filepart=; unset am_filepart;}
22289  { am_mf=; unset am_mf;}
22290  { am_rc=; unset am_rc;}
22291  rm -f conftest-deps.mk
22292}
22293 ;;
22294    "libtool":C)
22295
22296    # See if we are running on zsh, and set the options that allow our
22297    # commands through without removal of \ escapes.
22298    if test -n "${ZSH_VERSION+set}"; then
22299      setopt NO_GLOB_SUBST
22300    fi
22301
22302    cfgfile=${ofile}T
22303    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22304    $RM "$cfgfile"
22305
22306    cat <<_LT_EOF >> "$cfgfile"
22307#! $SHELL
22308# Generated automatically by $as_me ($PACKAGE) $VERSION
22309# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22310# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22311
22312# Provide generalized library-building support services.
22313# Written by Gordon Matzigkeit, 1996
22314
22315# Copyright (C) 2014 Free Software Foundation, Inc.
22316# This is free software; see the source for copying conditions.  There is NO
22317# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22318
22319# GNU Libtool is free software; you can redistribute it and/or modify
22320# it under the terms of the GNU General Public License as published by
22321# the Free Software Foundation; either version 2 of of the License, or
22322# (at your option) any later version.
22323#
22324# As a special exception to the GNU General Public License, if you
22325# distribute this file as part of a program or library that is built
22326# using GNU Libtool, you may include this file under the  same
22327# distribution terms that you use for the rest of that program.
22328#
22329# GNU Libtool is distributed in the hope that it will be useful, but
22330# WITHOUT ANY WARRANTY; without even the implied warranty of
22331# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22332# GNU General Public License for more details.
22333#
22334# You should have received a copy of the GNU General Public License
22335# along with this program.  If not, see <https://www.gnu.org/licenses/>.
22336
22337
22338# The names of the tagged configurations supported by this script.
22339available_tags='CXX '
22340
22341# Configured defaults for sys_lib_dlsearch_path munging.
22342: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22343
22344# ### BEGIN LIBTOOL CONFIG
22345
22346# Which release of libtool.m4 was used?
22347macro_version=$macro_version
22348macro_revision=$macro_revision
22349
22350# Whether or not to build shared libraries.
22351build_libtool_libs=$enable_shared
22352
22353# Whether or not to build static libraries.
22354build_old_libs=$enable_static
22355
22356# What type of objects to build.
22357pic_mode=$pic_mode
22358
22359# Whether or not to optimize for fast installation.
22360fast_install=$enable_fast_install
22361
22362# Shared archive member basename,for filename based shared library versioning on AIX.
22363shared_archive_member_spec=$shared_archive_member_spec
22364
22365# Shell to use when invoking shell scripts.
22366SHELL=$lt_SHELL
22367
22368# An echo program that protects backslashes.
22369ECHO=$lt_ECHO
22370
22371# The PATH separator for the build system.
22372PATH_SEPARATOR=$lt_PATH_SEPARATOR
22373
22374# The host system.
22375host_alias=$host_alias
22376host=$host
22377host_os=$host_os
22378
22379# The build system.
22380build_alias=$build_alias
22381build=$build
22382build_os=$build_os
22383
22384# A sed program that does not truncate output.
22385SED=$lt_SED
22386
22387# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22388Xsed="\$SED -e 1s/^X//"
22389
22390# A grep program that handles long lines.
22391GREP=$lt_GREP
22392
22393# An ERE matcher.
22394EGREP=$lt_EGREP
22395
22396# A literal string matcher.
22397FGREP=$lt_FGREP
22398
22399# A BSD- or MS-compatible name lister.
22400NM=$lt_NM
22401
22402# Whether we need soft or hard links.
22403LN_S=$lt_LN_S
22404
22405# What is the maximum length of a command?
22406max_cmd_len=$max_cmd_len
22407
22408# Object file suffix (normally "o").
22409objext=$ac_objext
22410
22411# Executable file suffix (normally "").
22412exeext=$exeext
22413
22414# whether the shell understands "unset".
22415lt_unset=$lt_unset
22416
22417# turn spaces into newlines.
22418SP2NL=$lt_lt_SP2NL
22419
22420# turn newlines into spaces.
22421NL2SP=$lt_lt_NL2SP
22422
22423# convert \$build file names to \$host format.
22424to_host_file_cmd=$lt_cv_to_host_file_cmd
22425
22426# convert \$build files to toolchain format.
22427to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22428
22429# An object symbol dumper.
22430OBJDUMP=$lt_OBJDUMP
22431
22432# Method to check whether dependent libraries are shared objects.
22433deplibs_check_method=$lt_deplibs_check_method
22434
22435# Command to use when deplibs_check_method = "file_magic".
22436file_magic_cmd=$lt_file_magic_cmd
22437
22438# How to find potential files when deplibs_check_method = "file_magic".
22439file_magic_glob=$lt_file_magic_glob
22440
22441# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22442want_nocaseglob=$lt_want_nocaseglob
22443
22444# DLL creation program.
22445DLLTOOL=$lt_DLLTOOL
22446
22447# Command to associate shared and link libraries.
22448sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22449
22450# The archiver.
22451AR=$lt_AR
22452
22453# Flags to create an archive.
22454AR_FLAGS=$lt_AR_FLAGS
22455
22456# How to feed a file listing to the archiver.
22457archiver_list_spec=$lt_archiver_list_spec
22458
22459# A symbol stripping program.
22460STRIP=$lt_STRIP
22461
22462# Commands used to install an old-style archive.
22463RANLIB=$lt_RANLIB
22464old_postinstall_cmds=$lt_old_postinstall_cmds
22465old_postuninstall_cmds=$lt_old_postuninstall_cmds
22466
22467# Whether to use a lock for old archive extraction.
22468lock_old_archive_extraction=$lock_old_archive_extraction
22469
22470# A C compiler.
22471LTCC=$lt_CC
22472
22473# LTCC compiler flags.
22474LTCFLAGS=$lt_CFLAGS
22475
22476# Take the output of nm and produce a listing of raw symbols and C names.
22477global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22478
22479# Transform the output of nm in a proper C declaration.
22480global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22481
22482# Transform the output of nm into a list of symbols to manually relocate.
22483global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22484
22485# Transform the output of nm in a C name address pair.
22486global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22487
22488# Transform the output of nm in a C name address pair when lib prefix is needed.
22489global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22490
22491# The name lister interface.
22492nm_interface=$lt_lt_cv_nm_interface
22493
22494# Specify filename containing input files for \$NM.
22495nm_file_list_spec=$lt_nm_file_list_spec
22496
22497# The root where to search for dependent libraries,and where our libraries should be installed.
22498lt_sysroot=$lt_sysroot
22499
22500# Command to truncate a binary pipe.
22501lt_truncate_bin=$lt_lt_cv_truncate_bin
22502
22503# The name of the directory that contains temporary libtool files.
22504objdir=$objdir
22505
22506# Used to examine libraries when file_magic_cmd begins with "file".
22507MAGIC_CMD=$MAGIC_CMD
22508
22509# Must we lock files when doing compilation?
22510need_locks=$lt_need_locks
22511
22512# Manifest tool.
22513MANIFEST_TOOL=$lt_MANIFEST_TOOL
22514
22515# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22516DSYMUTIL=$lt_DSYMUTIL
22517
22518# Tool to change global to local symbols on Mac OS X.
22519NMEDIT=$lt_NMEDIT
22520
22521# Tool to manipulate fat objects and archives on Mac OS X.
22522LIPO=$lt_LIPO
22523
22524# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22525OTOOL=$lt_OTOOL
22526
22527# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22528OTOOL64=$lt_OTOOL64
22529
22530# Old archive suffix (normally "a").
22531libext=$libext
22532
22533# Shared library suffix (normally ".so").
22534shrext_cmds=$lt_shrext_cmds
22535
22536# The commands to extract the exported symbol list from a shared archive.
22537extract_expsyms_cmds=$lt_extract_expsyms_cmds
22538
22539# Variables whose values should be saved in libtool wrapper scripts and
22540# restored at link time.
22541variables_saved_for_relink=$lt_variables_saved_for_relink
22542
22543# Do we need the "lib" prefix for modules?
22544need_lib_prefix=$need_lib_prefix
22545
22546# Do we need a version for libraries?
22547need_version=$need_version
22548
22549# Library versioning type.
22550version_type=$version_type
22551
22552# Shared library runtime path variable.
22553runpath_var=$runpath_var
22554
22555# Shared library path variable.
22556shlibpath_var=$shlibpath_var
22557
22558# Is shlibpath searched before the hard-coded library search path?
22559shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22560
22561# Format of library name prefix.
22562libname_spec=$lt_libname_spec
22563
22564# List of archive names.  First name is the real one, the rest are links.
22565# The last name is the one that the linker finds with -lNAME
22566library_names_spec=$lt_library_names_spec
22567
22568# The coded name of the library, if different from the real name.
22569soname_spec=$lt_soname_spec
22570
22571# Permission mode override for installation of shared libraries.
22572install_override_mode=$lt_install_override_mode
22573
22574# Command to use after installation of a shared archive.
22575postinstall_cmds=$lt_postinstall_cmds
22576
22577# Command to use after uninstallation of a shared archive.
22578postuninstall_cmds=$lt_postuninstall_cmds
22579
22580# Commands used to finish a libtool library installation in a directory.
22581finish_cmds=$lt_finish_cmds
22582
22583# As "finish_cmds", except a single script fragment to be evaled but
22584# not shown.
22585finish_eval=$lt_finish_eval
22586
22587# Whether we should hardcode library paths into libraries.
22588hardcode_into_libs=$hardcode_into_libs
22589
22590# Compile-time system search path for libraries.
22591sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22592
22593# Detected run-time system search path for libraries.
22594sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22595
22596# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22597configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22598
22599# Whether dlopen is supported.
22600dlopen_support=$enable_dlopen
22601
22602# Whether dlopen of programs is supported.
22603dlopen_self=$enable_dlopen_self
22604
22605# Whether dlopen of statically linked programs is supported.
22606dlopen_self_static=$enable_dlopen_self_static
22607
22608# Commands to strip libraries.
22609old_striplib=$lt_old_striplib
22610striplib=$lt_striplib
22611
22612
22613# The linker used to build libraries.
22614LD=$lt_LD
22615
22616# How to create reloadable object files.
22617reload_flag=$lt_reload_flag
22618reload_cmds=$lt_reload_cmds
22619
22620# Commands used to build an old-style archive.
22621old_archive_cmds=$lt_old_archive_cmds
22622
22623# A language specific compiler.
22624CC=$lt_compiler
22625
22626# Is the compiler the GNU compiler?
22627with_gcc=$GCC
22628
22629# Compiler flag to turn off builtin functions.
22630no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22631
22632# Additional compiler flags for building library objects.
22633pic_flag=$lt_lt_prog_compiler_pic
22634
22635# How to pass a linker flag through the compiler.
22636wl=$lt_lt_prog_compiler_wl
22637
22638# Compiler flag to prevent dynamic linking.
22639link_static_flag=$lt_lt_prog_compiler_static
22640
22641# Does compiler simultaneously support -c and -o options?
22642compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22643
22644# Whether or not to add -lc for building shared libraries.
22645build_libtool_need_lc=$archive_cmds_need_lc
22646
22647# Whether or not to disallow shared libs when runtime libs are static.
22648allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22649
22650# Compiler flag to allow reflexive dlopens.
22651export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22652
22653# Compiler flag to generate shared objects directly from archives.
22654whole_archive_flag_spec=$lt_whole_archive_flag_spec
22655
22656# Whether the compiler copes with passing no objects directly.
22657compiler_needs_object=$lt_compiler_needs_object
22658
22659# Create an old-style archive from a shared archive.
22660old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22661
22662# Create a temporary old-style archive to link instead of a shared archive.
22663old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22664
22665# Commands used to build a shared archive.
22666archive_cmds=$lt_archive_cmds
22667archive_expsym_cmds=$lt_archive_expsym_cmds
22668
22669# Commands used to build a loadable module if different from building
22670# a shared archive.
22671module_cmds=$lt_module_cmds
22672module_expsym_cmds=$lt_module_expsym_cmds
22673
22674# Whether we are building with GNU ld or not.
22675with_gnu_ld=$lt_with_gnu_ld
22676
22677# Flag that allows shared libraries with undefined symbols to be built.
22678allow_undefined_flag=$lt_allow_undefined_flag
22679
22680# Flag that enforces no undefined symbols.
22681no_undefined_flag=$lt_no_undefined_flag
22682
22683# Flag to hardcode \$libdir into a binary during linking.
22684# This must work even if \$libdir does not exist
22685hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22686
22687# Whether we need a single "-rpath" flag with a separated argument.
22688hardcode_libdir_separator=$lt_hardcode_libdir_separator
22689
22690# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22691# DIR into the resulting binary.
22692hardcode_direct=$hardcode_direct
22693
22694# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22695# DIR into the resulting binary and the resulting library dependency is
22696# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22697# library is relocated.
22698hardcode_direct_absolute=$hardcode_direct_absolute
22699
22700# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22701# into the resulting binary.
22702hardcode_minus_L=$hardcode_minus_L
22703
22704# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22705# into the resulting binary.
22706hardcode_shlibpath_var=$hardcode_shlibpath_var
22707
22708# Set to "yes" if building a shared library automatically hardcodes DIR
22709# into the library and all subsequent libraries and executables linked
22710# against it.
22711hardcode_automatic=$hardcode_automatic
22712
22713# Set to yes if linker adds runtime paths of dependent libraries
22714# to runtime path list.
22715inherit_rpath=$inherit_rpath
22716
22717# Whether libtool must link a program against all its dependency libraries.
22718link_all_deplibs=$link_all_deplibs
22719
22720# Set to "yes" if exported symbols are required.
22721always_export_symbols=$always_export_symbols
22722
22723# The commands to list exported symbols.
22724export_symbols_cmds=$lt_export_symbols_cmds
22725
22726# Symbols that should not be listed in the preloaded symbols.
22727exclude_expsyms=$lt_exclude_expsyms
22728
22729# Symbols that must always be exported.
22730include_expsyms=$lt_include_expsyms
22731
22732# Commands necessary for linking programs (against libraries) with templates.
22733prelink_cmds=$lt_prelink_cmds
22734
22735# Commands necessary for finishing linking programs.
22736postlink_cmds=$lt_postlink_cmds
22737
22738# Specify filename containing input files.
22739file_list_spec=$lt_file_list_spec
22740
22741# How to hardcode a shared library path into an executable.
22742hardcode_action=$hardcode_action
22743
22744# The directories searched by this compiler when creating a shared library.
22745compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22746
22747# Dependencies to place before and after the objects being linked to
22748# create a shared library.
22749predep_objects=$lt_predep_objects
22750postdep_objects=$lt_postdep_objects
22751predeps=$lt_predeps
22752postdeps=$lt_postdeps
22753
22754# The library search path used internally by the compiler when linking
22755# a shared library.
22756compiler_lib_search_path=$lt_compiler_lib_search_path
22757
22758# ### END LIBTOOL CONFIG
22759
22760_LT_EOF
22761
22762    cat <<'_LT_EOF' >> "$cfgfile"
22763
22764# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22765
22766# func_munge_path_list VARIABLE PATH
22767# -----------------------------------
22768# VARIABLE is name of variable containing _space_ separated list of
22769# directories to be munged by the contents of PATH, which is string
22770# having a format:
22771# "DIR[:DIR]:"
22772#       string "DIR[ DIR]" will be prepended to VARIABLE
22773# ":DIR[:DIR]"
22774#       string "DIR[ DIR]" will be appended to VARIABLE
22775# "DIRP[:DIRP]::[DIRA:]DIRA"
22776#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22777#       "DIRA[ DIRA]" will be appended to VARIABLE
22778# "DIR[:DIR]"
22779#       VARIABLE will be replaced by "DIR[ DIR]"
22780func_munge_path_list ()
22781{
22782    case x$2 in
22783    x)
22784        ;;
22785    *:)
22786        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22787        ;;
22788    x:*)
22789        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22790        ;;
22791    *::*)
22792        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22793        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22794        ;;
22795    *)
22796        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22797        ;;
22798    esac
22799}
22800
22801
22802# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
22803func_cc_basename ()
22804{
22805    for cc_temp in $*""; do
22806      case $cc_temp in
22807        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22808        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22809        \-*) ;;
22810        *) break;;
22811      esac
22812    done
22813    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22814}
22815
22816
22817# ### END FUNCTIONS SHARED WITH CONFIGURE
22818
22819_LT_EOF
22820
22821  case $host_os in
22822  aix3*)
22823    cat <<\_LT_EOF >> "$cfgfile"
22824# AIX sometimes has problems with the GCC collect2 program.  For some
22825# reason, if we set the COLLECT_NAMES environment variable, the problems
22826# vanish in a puff of smoke.
22827if test set != "${COLLECT_NAMES+set}"; then
22828  COLLECT_NAMES=
22829  export COLLECT_NAMES
22830fi
22831_LT_EOF
22832    ;;
22833  esac
22834
22835
22836
22837ltmain=$ac_aux_dir/ltmain.sh
22838
22839
22840  # We use sed instead of cat because bash on DJGPP gets confused if
22841  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22842  # text mode, it properly converts lines to CR/LF.  This bash problem
22843  # is reportedly fixed, but why not run on old versions too?
22844  sed '$q' "$ltmain" >> "$cfgfile" \
22845     || (rm -f "$cfgfile"; exit 1)
22846
22847   mv -f "$cfgfile" "$ofile" ||
22848    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22849  chmod +x "$ofile"
22850
22851
22852    cat <<_LT_EOF >> "$ofile"
22853
22854# ### BEGIN LIBTOOL TAG CONFIG: CXX
22855
22856# The linker used to build libraries.
22857LD=$lt_LD_CXX
22858
22859# How to create reloadable object files.
22860reload_flag=$lt_reload_flag_CXX
22861reload_cmds=$lt_reload_cmds_CXX
22862
22863# Commands used to build an old-style archive.
22864old_archive_cmds=$lt_old_archive_cmds_CXX
22865
22866# A language specific compiler.
22867CC=$lt_compiler_CXX
22868
22869# Is the compiler the GNU compiler?
22870with_gcc=$GCC_CXX
22871
22872# Compiler flag to turn off builtin functions.
22873no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22874
22875# Additional compiler flags for building library objects.
22876pic_flag=$lt_lt_prog_compiler_pic_CXX
22877
22878# How to pass a linker flag through the compiler.
22879wl=$lt_lt_prog_compiler_wl_CXX
22880
22881# Compiler flag to prevent dynamic linking.
22882link_static_flag=$lt_lt_prog_compiler_static_CXX
22883
22884# Does compiler simultaneously support -c and -o options?
22885compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22886
22887# Whether or not to add -lc for building shared libraries.
22888build_libtool_need_lc=$archive_cmds_need_lc_CXX
22889
22890# Whether or not to disallow shared libs when runtime libs are static.
22891allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22892
22893# Compiler flag to allow reflexive dlopens.
22894export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22895
22896# Compiler flag to generate shared objects directly from archives.
22897whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22898
22899# Whether the compiler copes with passing no objects directly.
22900compiler_needs_object=$lt_compiler_needs_object_CXX
22901
22902# Create an old-style archive from a shared archive.
22903old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22904
22905# Create a temporary old-style archive to link instead of a shared archive.
22906old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22907
22908# Commands used to build a shared archive.
22909archive_cmds=$lt_archive_cmds_CXX
22910archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22911
22912# Commands used to build a loadable module if different from building
22913# a shared archive.
22914module_cmds=$lt_module_cmds_CXX
22915module_expsym_cmds=$lt_module_expsym_cmds_CXX
22916
22917# Whether we are building with GNU ld or not.
22918with_gnu_ld=$lt_with_gnu_ld_CXX
22919
22920# Flag that allows shared libraries with undefined symbols to be built.
22921allow_undefined_flag=$lt_allow_undefined_flag_CXX
22922
22923# Flag that enforces no undefined symbols.
22924no_undefined_flag=$lt_no_undefined_flag_CXX
22925
22926# Flag to hardcode \$libdir into a binary during linking.
22927# This must work even if \$libdir does not exist
22928hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22929
22930# Whether we need a single "-rpath" flag with a separated argument.
22931hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22932
22933# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22934# DIR into the resulting binary.
22935hardcode_direct=$hardcode_direct_CXX
22936
22937# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22938# DIR into the resulting binary and the resulting library dependency is
22939# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22940# library is relocated.
22941hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22942
22943# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22944# into the resulting binary.
22945hardcode_minus_L=$hardcode_minus_L_CXX
22946
22947# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22948# into the resulting binary.
22949hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22950
22951# Set to "yes" if building a shared library automatically hardcodes DIR
22952# into the library and all subsequent libraries and executables linked
22953# against it.
22954hardcode_automatic=$hardcode_automatic_CXX
22955
22956# Set to yes if linker adds runtime paths of dependent libraries
22957# to runtime path list.
22958inherit_rpath=$inherit_rpath_CXX
22959
22960# Whether libtool must link a program against all its dependency libraries.
22961link_all_deplibs=$link_all_deplibs_CXX
22962
22963# Set to "yes" if exported symbols are required.
22964always_export_symbols=$always_export_symbols_CXX
22965
22966# The commands to list exported symbols.
22967export_symbols_cmds=$lt_export_symbols_cmds_CXX
22968
22969# Symbols that should not be listed in the preloaded symbols.
22970exclude_expsyms=$lt_exclude_expsyms_CXX
22971
22972# Symbols that must always be exported.
22973include_expsyms=$lt_include_expsyms_CXX
22974
22975# Commands necessary for linking programs (against libraries) with templates.
22976prelink_cmds=$lt_prelink_cmds_CXX
22977
22978# Commands necessary for finishing linking programs.
22979postlink_cmds=$lt_postlink_cmds_CXX
22980
22981# Specify filename containing input files.
22982file_list_spec=$lt_file_list_spec_CXX
22983
22984# How to hardcode a shared library path into an executable.
22985hardcode_action=$hardcode_action_CXX
22986
22987# The directories searched by this compiler when creating a shared library.
22988compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22989
22990# Dependencies to place before and after the objects being linked to
22991# create a shared library.
22992predep_objects=$lt_predep_objects_CXX
22993postdep_objects=$lt_postdep_objects_CXX
22994predeps=$lt_predeps_CXX
22995postdeps=$lt_postdeps_CXX
22996
22997# The library search path used internally by the compiler when linking
22998# a shared library.
22999compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23000
23001# ### END LIBTOOL TAG CONFIG: CXX
23002_LT_EOF
23003
23004 ;;
23005
23006  esac
23007done # for ac_tag
23008
23009
23010as_fn_exit 0
23011_ACEOF
23012ac_clean_files=$ac_clean_files_save
23013
23014test $ac_write_fail = 0 ||
23015  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23016
23017
23018# configure is writing to config.log, and then calls config.status.
23019# config.status does its own redirection, appending to config.log.
23020# Unfortunately, on DOS this fails, as config.log is still kept open
23021# by configure, so config.status won't be able to write to it; its
23022# output is simply discarded.  So we exec the FD to /dev/null,
23023# effectively closing config.log, so it can be properly (re)opened and
23024# appended to by config.status.  When coming back to configure, we
23025# need to make the FD available again.
23026if test "$no_create" != yes; then
23027  ac_cs_success=:
23028  ac_config_status_args=
23029  test "$silent" = yes &&
23030    ac_config_status_args="$ac_config_status_args --quiet"
23031  exec 5>/dev/null
23032  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23033  exec 5>>config.log
23034  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23035  # would make configure fail if this is the last instruction.
23036  $ac_cs_success || as_fn_exit 1
23037fi
23038if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23039  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23040printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23041fi
23042
23043
23044
23045if test "x${ginac_error}" = "xyes"; then
23046	echo
23047    echo "**** The following problems have been detected by configure."
23048    echo "**** Please check the messages below before running \"make\"."
23049    echo "**** (see the section 'Common Problems' in the INSTALL file)"
23050    echo "$ginac_error_txt"
23051    if test "x${ginac_warning_txt}" != "x"; then
23052        echo "${ginac_warning_txt}"
23053    fi
23054    if test "x$cache_file" != "x/dev/null"; then
23055        echo "deleting cache ${cache_file}"
23056        rm -f $cache_file
23057    fi
23058    exit 1
23059else
23060    if test "x${ginac_warning}" = "xyes"; then
23061		echo
23062        echo "=== The following minor problems have been detected by configure."
23063        echo "=== Please check the messages below before running \"make\"."
23064        echo "=== (see the section 'Common Problems' in the INSTALL file)"
23065        echo "$ginac_warning_txt"
23066    fi
23067    echo "Configuration of GiNaC $VERSION done. Now type \"make\"."
23068fi
23069
23070