1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for qd 2.3.23.
4#
5# Report bugs to <dhbailey@lbl.gov>.
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 dhbailey@lbl.gov
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: 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='qd'
623PACKAGE_TARNAME='qd'
624PACKAGE_VERSION='2.3.23'
625PACKAGE_STRING='qd 2.3.23'
626PACKAGE_BUGREPORT='dhbailey@lbl.gov'
627PACKAGE_URL=''
628
629ac_unique_file="src/qd_real.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_cxx_list=
662ac_subst_vars='am__EXEEXT_FALSE
663am__EXEEXT_TRUE
664LTLIBOBJS
665LIBOBJS
666CXXCPP
667LT_SYS_LIBRARY_PATH
668OTOOL64
669OTOOL
670LIPO
671NMEDIT
672DSYMUTIL
673MANIFEST_TOOL
674RANLIB
675ac_ct_AR
676AR
677DLLTOOL
678OBJDUMP
679LN_S
680NM
681ac_ct_DUMPBIN
682DUMPBIN
683LD
684FGREP
685EGREP
686GREP
687SED
688LIBTOOL
689FFLAGS
690F77
691HAVE_FORTRAN_FALSE
692HAVE_FORTRAN_TRUE
693UPCASE_MODULE_FALSE
694UPCASE_MODULE_TRUE
695REQ_FCFLAGS
696module_ext
697ax_f90_modflag
698ETIME
699FCLIBS
700ac_ct_FC
701FCFLAGS
702FC
703CONFIGURE_ARGS
704am__fastdepCC_FALSE
705am__fastdepCC_TRUE
706CCDEPMODE
707ac_ct_CC
708CFLAGS
709CC
710am__fastdepCXX_FALSE
711am__fastdepCXX_TRUE
712CXXDEPMODE
713am__nodep
714AMDEPBACKSLASH
715AMDEP_FALSE
716AMDEP_TRUE
717am__include
718DEPDIR
719OBJEXT
720EXEEXT
721ac_ct_CXX
722CPPFLAGS
723LDFLAGS
724CXXFLAGS
725CXX
726host_os
727host_vendor
728host_cpu
729host
730build_os
731build_vendor
732build_cpu
733build
734AM_BACKSLASH
735AM_DEFAULT_VERBOSITY
736AM_DEFAULT_V
737AM_V
738am__untar
739am__tar
740AMTAR
741am__leading_dot
742SET_MAKE
743AWK
744mkdir_p
745MKDIR_P
746INSTALL_STRIP_PROGRAM
747STRIP
748install_sh
749MAKEINFO
750AUTOHEADER
751AUTOMAKE
752AUTOCONF
753ACLOCAL
754VERSION
755PACKAGE
756CYGPATH_W
757am__isrc
758INSTALL_DATA
759INSTALL_SCRIPT
760INSTALL_PROGRAM
761target_alias
762host_alias
763build_alias
764LIBS
765ECHO_T
766ECHO_N
767ECHO_C
768DEFS
769mandir
770localedir
771libdir
772psdir
773pdfdir
774dvidir
775htmldir
776infodir
777docdir
778oldincludedir
779includedir
780runstatedir
781localstatedir
782sharedstatedir
783sysconfdir
784datadir
785datarootdir
786libexecdir
787sbindir
788bindir
789program_transform_name
790prefix
791exec_prefix
792PACKAGE_URL
793PACKAGE_BUGREPORT
794PACKAGE_STRING
795PACKAGE_VERSION
796PACKAGE_TARNAME
797PACKAGE_NAME
798PATH_SEPARATOR
799SHELL
800am__quote'
801ac_subst_files=''
802ac_user_opts='
803enable_option_checking
804enable_silent_rules
805enable_inline
806enable_ieee_add
807enable_sloppy_mul
808enable_sloppy_div
809enable_dependency_tracking
810enable_fma
811enable_fortran
812enable_shared
813enable_static
814with_pic
815enable_fast_install
816with_aix_soname
817with_gnu_ld
818with_sysroot
819enable_libtool_lock
820'
821      ac_precious_vars='build_alias
822host_alias
823target_alias
824CXX
825CXXFLAGS
826LDFLAGS
827LIBS
828CPPFLAGS
829CCC
830CC
831CFLAGS
832FC
833FCFLAGS
834LT_SYS_LIBRARY_PATH
835CXXCPP'
836
837
838# Initialize some variables set by options.
839ac_init_help=
840ac_init_version=false
841ac_unrecognized_opts=
842ac_unrecognized_sep=
843# The variables have the same names as the options, with
844# dashes changed to underlines.
845cache_file=/dev/null
846exec_prefix=NONE
847no_create=
848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
856verbose=
857x_includes=NONE
858x_libraries=NONE
859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
865# (The list follows the same order as the GNU Coding Standards.)
866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
874runstatedir='${localstatedir}/run'
875includedir='${prefix}/include'
876oldincludedir='/usr/include'
877docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878infodir='${datarootdir}/info'
879htmldir='${docdir}'
880dvidir='${docdir}'
881pdfdir='${docdir}'
882psdir='${docdir}'
883libdir='${exec_prefix}/lib'
884localedir='${datarootdir}/locale'
885mandir='${datarootdir}/man'
886
887ac_prev=
888ac_dashdash=
889for ac_option
890do
891  # If the previous option needs an argument, assign it.
892  if test -n "$ac_prev"; then
893    eval $ac_prev=\$ac_option
894    ac_prev=
895    continue
896  fi
897
898  case $ac_option in
899  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900  *=)   ac_optarg= ;;
901  *)    ac_optarg=yes ;;
902  esac
903
904  case $ac_dashdash$ac_option in
905  --)
906    ac_dashdash=yes ;;
907
908  -bindir | --bindir | --bindi | --bind | --bin | --bi)
909    ac_prev=bindir ;;
910  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911    bindir=$ac_optarg ;;
912
913  -build | --build | --buil | --bui | --bu)
914    ac_prev=build_alias ;;
915  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916    build_alias=$ac_optarg ;;
917
918  -cache-file | --cache-file | --cache-fil | --cache-fi \
919  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920    ac_prev=cache_file ;;
921  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923    cache_file=$ac_optarg ;;
924
925  --config-cache | -C)
926    cache_file=config.cache ;;
927
928  -datadir | --datadir | --datadi | --datad)
929    ac_prev=datadir ;;
930  -datadir=* | --datadir=* | --datadi=* | --datad=*)
931    datadir=$ac_optarg ;;
932
933  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934  | --dataroo | --dataro | --datar)
935    ac_prev=datarootdir ;;
936  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938    datarootdir=$ac_optarg ;;
939
940  -disable-* | --disable-*)
941    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942    # Reject names that are not valid shell variable names.
943    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944      as_fn_error $? "invalid feature name: \`$ac_useropt'"
945    ac_useropt_orig=$ac_useropt
946    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
947    case $ac_user_opts in
948      *"
949"enable_$ac_useropt"
950"*) ;;
951      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952	 ac_unrecognized_sep=', ';;
953    esac
954    eval enable_$ac_useropt=no ;;
955
956  -docdir | --docdir | --docdi | --doc | --do)
957    ac_prev=docdir ;;
958  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959    docdir=$ac_optarg ;;
960
961  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962    ac_prev=dvidir ;;
963  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964    dvidir=$ac_optarg ;;
965
966  -enable-* | --enable-*)
967    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968    # Reject names that are not valid shell variable names.
969    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970      as_fn_error $? "invalid feature name: \`$ac_useropt'"
971    ac_useropt_orig=$ac_useropt
972    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
973    case $ac_user_opts in
974      *"
975"enable_$ac_useropt"
976"*) ;;
977      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978	 ac_unrecognized_sep=', ';;
979    esac
980    eval enable_$ac_useropt=\$ac_optarg ;;
981
982  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984  | --exec | --exe | --ex)
985    ac_prev=exec_prefix ;;
986  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988  | --exec=* | --exe=* | --ex=*)
989    exec_prefix=$ac_optarg ;;
990
991  -gas | --gas | --ga | --g)
992    # Obsolete; use --with-gas.
993    with_gas=yes ;;
994
995  -help | --help | --hel | --he | -h)
996    ac_init_help=long ;;
997  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998    ac_init_help=recursive ;;
999  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000    ac_init_help=short ;;
1001
1002  -host | --host | --hos | --ho)
1003    ac_prev=host_alias ;;
1004  -host=* | --host=* | --hos=* | --ho=*)
1005    host_alias=$ac_optarg ;;
1006
1007  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008    ac_prev=htmldir ;;
1009  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010  | --ht=*)
1011    htmldir=$ac_optarg ;;
1012
1013  -includedir | --includedir | --includedi | --included | --include \
1014  | --includ | --inclu | --incl | --inc)
1015    ac_prev=includedir ;;
1016  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017  | --includ=* | --inclu=* | --incl=* | --inc=*)
1018    includedir=$ac_optarg ;;
1019
1020  -infodir | --infodir | --infodi | --infod | --info | --inf)
1021    ac_prev=infodir ;;
1022  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023    infodir=$ac_optarg ;;
1024
1025  -libdir | --libdir | --libdi | --libd)
1026    ac_prev=libdir ;;
1027  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028    libdir=$ac_optarg ;;
1029
1030  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031  | --libexe | --libex | --libe)
1032    ac_prev=libexecdir ;;
1033  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034  | --libexe=* | --libex=* | --libe=*)
1035    libexecdir=$ac_optarg ;;
1036
1037  -localedir | --localedir | --localedi | --localed | --locale)
1038    ac_prev=localedir ;;
1039  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040    localedir=$ac_optarg ;;
1041
1042  -localstatedir | --localstatedir | --localstatedi | --localstated \
1043  | --localstate | --localstat | --localsta | --localst | --locals)
1044    ac_prev=localstatedir ;;
1045  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047    localstatedir=$ac_optarg ;;
1048
1049  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050    ac_prev=mandir ;;
1051  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052    mandir=$ac_optarg ;;
1053
1054  -nfp | --nfp | --nf)
1055    # Obsolete; use --without-fp.
1056    with_fp=no ;;
1057
1058  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059  | --no-cr | --no-c | -n)
1060    no_create=yes ;;
1061
1062  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064    no_recursion=yes ;;
1065
1066  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068  | --oldin | --oldi | --old | --ol | --o)
1069    ac_prev=oldincludedir ;;
1070  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073    oldincludedir=$ac_optarg ;;
1074
1075  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076    ac_prev=prefix ;;
1077  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078    prefix=$ac_optarg ;;
1079
1080  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081  | --program-pre | --program-pr | --program-p)
1082    ac_prev=program_prefix ;;
1083  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085    program_prefix=$ac_optarg ;;
1086
1087  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088  | --program-suf | --program-su | --program-s)
1089    ac_prev=program_suffix ;;
1090  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092    program_suffix=$ac_optarg ;;
1093
1094  -program-transform-name | --program-transform-name \
1095  | --program-transform-nam | --program-transform-na \
1096  | --program-transform-n | --program-transform- \
1097  | --program-transform | --program-transfor \
1098  | --program-transfo | --program-transf \
1099  | --program-trans | --program-tran \
1100  | --progr-tra | --program-tr | --program-t)
1101    ac_prev=program_transform_name ;;
1102  -program-transform-name=* | --program-transform-name=* \
1103  | --program-transform-nam=* | --program-transform-na=* \
1104  | --program-transform-n=* | --program-transform-=* \
1105  | --program-transform=* | --program-transfor=* \
1106  | --program-transfo=* | --program-transf=* \
1107  | --program-trans=* | --program-tran=* \
1108  | --progr-tra=* | --program-tr=* | --program-t=*)
1109    program_transform_name=$ac_optarg ;;
1110
1111  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112    ac_prev=pdfdir ;;
1113  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114    pdfdir=$ac_optarg ;;
1115
1116  -psdir | --psdir | --psdi | --psd | --ps)
1117    ac_prev=psdir ;;
1118  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119    psdir=$ac_optarg ;;
1120
1121  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122  | -silent | --silent | --silen | --sile | --sil)
1123    silent=yes ;;
1124
1125  -runstatedir | --runstatedir | --runstatedi | --runstated \
1126  | --runstate | --runstat | --runsta | --runst | --runs \
1127  | --run | --ru | --r)
1128    ac_prev=runstatedir ;;
1129  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1130  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1131  | --run=* | --ru=* | --r=*)
1132    runstatedir=$ac_optarg ;;
1133
1134  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1135    ac_prev=sbindir ;;
1136  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1137  | --sbi=* | --sb=*)
1138    sbindir=$ac_optarg ;;
1139
1140  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1141  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1142  | --sharedst | --shareds | --shared | --share | --shar \
1143  | --sha | --sh)
1144    ac_prev=sharedstatedir ;;
1145  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1146  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1147  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1148  | --sha=* | --sh=*)
1149    sharedstatedir=$ac_optarg ;;
1150
1151  -site | --site | --sit)
1152    ac_prev=site ;;
1153  -site=* | --site=* | --sit=*)
1154    site=$ac_optarg ;;
1155
1156  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1157    ac_prev=srcdir ;;
1158  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1159    srcdir=$ac_optarg ;;
1160
1161  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1162  | --syscon | --sysco | --sysc | --sys | --sy)
1163    ac_prev=sysconfdir ;;
1164  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1165  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1166    sysconfdir=$ac_optarg ;;
1167
1168  -target | --target | --targe | --targ | --tar | --ta | --t)
1169    ac_prev=target_alias ;;
1170  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1171    target_alias=$ac_optarg ;;
1172
1173  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1174    verbose=yes ;;
1175
1176  -version | --version | --versio | --versi | --vers | -V)
1177    ac_init_version=: ;;
1178
1179  -with-* | --with-*)
1180    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1181    # Reject names that are not valid shell variable names.
1182    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183      as_fn_error $? "invalid package name: \`$ac_useropt'"
1184    ac_useropt_orig=$ac_useropt
1185    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1186    case $ac_user_opts in
1187      *"
1188"with_$ac_useropt"
1189"*) ;;
1190      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1191	 ac_unrecognized_sep=', ';;
1192    esac
1193    eval with_$ac_useropt=\$ac_optarg ;;
1194
1195  -without-* | --without-*)
1196    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1197    # Reject names that are not valid shell variable names.
1198    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199      as_fn_error $? "invalid package name: \`$ac_useropt'"
1200    ac_useropt_orig=$ac_useropt
1201    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1202    case $ac_user_opts in
1203      *"
1204"with_$ac_useropt"
1205"*) ;;
1206      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1207	 ac_unrecognized_sep=', ';;
1208    esac
1209    eval with_$ac_useropt=no ;;
1210
1211  --x)
1212    # Obsolete; use --with-x.
1213    with_x=yes ;;
1214
1215  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1216  | --x-incl | --x-inc | --x-in | --x-i)
1217    ac_prev=x_includes ;;
1218  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1219  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1220    x_includes=$ac_optarg ;;
1221
1222  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1223  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1224    ac_prev=x_libraries ;;
1225  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1226  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1227    x_libraries=$ac_optarg ;;
1228
1229  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1230Try \`$0 --help' for more information"
1231    ;;
1232
1233  *=*)
1234    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1235    # Reject names that are not valid shell variable names.
1236    case $ac_envvar in #(
1237      '' | [0-9]* | *[!_$as_cr_alnum]* )
1238      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1239    esac
1240    eval $ac_envvar=\$ac_optarg
1241    export $ac_envvar ;;
1242
1243  *)
1244    # FIXME: should be removed in autoconf 3.0.
1245    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1246    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1247      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1248    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1249    ;;
1250
1251  esac
1252done
1253
1254if test -n "$ac_prev"; then
1255  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1256  as_fn_error $? "missing argument to $ac_option"
1257fi
1258
1259if test -n "$ac_unrecognized_opts"; then
1260  case $enable_option_checking in
1261    no) ;;
1262    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1263    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1264  esac
1265fi
1266
1267# Check all directory arguments for consistency.
1268for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1269		datadir sysconfdir sharedstatedir localstatedir includedir \
1270		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1271		libdir localedir mandir runstatedir
1272do
1273  eval ac_val=\$$ac_var
1274  # Remove trailing slashes.
1275  case $ac_val in
1276    */ )
1277      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1278      eval $ac_var=\$ac_val;;
1279  esac
1280  # Be sure to have absolute directory names.
1281  case $ac_val in
1282    [\\/$]* | ?:[\\/]* )  continue;;
1283    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1284  esac
1285  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1286done
1287
1288# There might be people who depend on the old broken behavior: `$host'
1289# used to hold the argument of --host etc.
1290# FIXME: To remove some day.
1291build=$build_alias
1292host=$host_alias
1293target=$target_alias
1294
1295# FIXME: To remove some day.
1296if test "x$host_alias" != x; then
1297  if test "x$build_alias" = x; then
1298    cross_compiling=maybe
1299  elif test "x$build_alias" != "x$host_alias"; then
1300    cross_compiling=yes
1301  fi
1302fi
1303
1304ac_tool_prefix=
1305test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307test "$silent" = yes && exec 6>/dev/null
1308
1309
1310ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311ac_ls_di=`ls -di .` &&
1312ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313  as_fn_error $? "working directory cannot be determined"
1314test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315  as_fn_error $? "pwd does not report name of working directory"
1316
1317
1318# Find the source files, if location was not specified.
1319if test -z "$srcdir"; then
1320  ac_srcdir_defaulted=yes
1321  # Try the directory containing this script, then the parent directory.
1322  ac_confdir=`$as_dirname -- "$as_myself" ||
1323$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324	 X"$as_myself" : 'X\(//\)[^/]' \| \
1325	 X"$as_myself" : 'X\(//\)$' \| \
1326	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327printf "%s\n" X"$as_myself" |
1328    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329	    s//\1/
1330	    q
1331	  }
1332	  /^X\(\/\/\)[^/].*/{
1333	    s//\1/
1334	    q
1335	  }
1336	  /^X\(\/\/\)$/{
1337	    s//\1/
1338	    q
1339	  }
1340	  /^X\(\/\).*/{
1341	    s//\1/
1342	    q
1343	  }
1344	  s/.*/./; q'`
1345  srcdir=$ac_confdir
1346  if test ! -r "$srcdir/$ac_unique_file"; then
1347    srcdir=..
1348  fi
1349else
1350  ac_srcdir_defaulted=no
1351fi
1352if test ! -r "$srcdir/$ac_unique_file"; then
1353  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355fi
1356ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357ac_abs_confdir=`(
1358	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359	pwd)`
1360# When building in place, set srcdir=.
1361if test "$ac_abs_confdir" = "$ac_pwd"; then
1362  srcdir=.
1363fi
1364# Remove unnecessary trailing slashes from srcdir.
1365# Double slashes in file names in object file debugging info
1366# mess up M-x gdb in Emacs.
1367case $srcdir in
1368*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369esac
1370for ac_var in $ac_precious_vars; do
1371  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372  eval ac_env_${ac_var}_value=\$${ac_var}
1373  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375done
1376
1377#
1378# Report the --help message.
1379#
1380if test "$ac_init_help" = "long"; then
1381  # Omit some internal or obsolete options to make the list less imposing.
1382  # This message is too long to be a string in the A/UX 3.1 sh.
1383  cat <<_ACEOF
1384\`configure' configures qd 2.3.23 to adapt to many kinds of systems.
1385
1386Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389VAR=VALUE.  See below for descriptions of some of the useful variables.
1390
1391Defaults for the options are specified in brackets.
1392
1393Configuration:
1394  -h, --help              display this help and exit
1395      --help=short        display options specific to this package
1396      --help=recursive    display the short help of all the included packages
1397  -V, --version           display version information and exit
1398  -q, --quiet, --silent   do not print \`checking ...' messages
1399      --cache-file=FILE   cache test results in FILE [disabled]
1400  -C, --config-cache      alias for \`--cache-file=config.cache'
1401  -n, --no-create         do not create output files
1402      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1403
1404Installation directories:
1405  --prefix=PREFIX         install architecture-independent files in PREFIX
1406                          [$ac_default_prefix]
1407  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1408                          [PREFIX]
1409
1410By default, \`make install' will install all the files in
1411\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1412an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413for instance \`--prefix=\$HOME'.
1414
1415For better control, use the options below.
1416
1417Fine tuning of the installation directories:
1418  --bindir=DIR            user executables [EPREFIX/bin]
1419  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1420  --libexecdir=DIR        program executables [EPREFIX/libexec]
1421  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1422  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1423  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1424  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1425  --libdir=DIR            object code libraries [EPREFIX/lib]
1426  --includedir=DIR        C header files [PREFIX/include]
1427  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1428  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1429  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1430  --infodir=DIR           info documentation [DATAROOTDIR/info]
1431  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1432  --mandir=DIR            man documentation [DATAROOTDIR/man]
1433  --docdir=DIR            documentation root [DATAROOTDIR/doc/qd]
1434  --htmldir=DIR           html documentation [DOCDIR]
1435  --dvidir=DIR            dvi documentation [DOCDIR]
1436  --pdfdir=DIR            pdf documentation [DOCDIR]
1437  --psdir=DIR             ps documentation [DOCDIR]
1438_ACEOF
1439
1440  cat <<\_ACEOF
1441
1442Program names:
1443  --program-prefix=PREFIX            prepend PREFIX to installed program names
1444  --program-suffix=SUFFIX            append SUFFIX to installed program names
1445  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1446
1447System types:
1448  --build=BUILD     configure for building on BUILD [guessed]
1449  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1450_ACEOF
1451fi
1452
1453if test -n "$ac_init_help"; then
1454  case $ac_init_help in
1455     short | recursive ) echo "Configuration of qd 2.3.23:";;
1456   esac
1457  cat <<\_ACEOF
1458
1459Optional Features:
1460  --disable-option-checking  ignore unrecognized --enable/--with options
1461  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1462  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1463  --enable-silent-rules   less verbose build output (undo: "make V=1")
1464  --disable-silent-rules  verbose build output (undo: "make V=0")
1465  --enable-inline         inline commonly used functions. [[default=yes]]
1466  --enable-ieee-add       use addition that satisfies IEEE-style error bound
1467                          instead of Cray-style error bound. [[default=no]]
1468  --enable-sloppy-mul     use fast but slightly inaccurate multiplication.
1469                          [[default=yes]]
1470  --enable-sloppy-div     use fast but slightly inaccurate division.
1471                          [[default=yes]]
1472  --enable-dependency-tracking
1473                          do not reject slow dependency extractors
1474  --disable-dependency-tracking
1475                          speeds up one-time build
1476  --enable-fma            use fused multiply-add/subtract
1477                          (auto,gnu,ia64,c99,ibm,compiler). Use this option
1478                          with care. [[default=auto]]
1479  --enable-fortran        build Fortran 77/90 interfaces [[default=auto]]
1480  --enable-shared[=PKGS]  build shared libraries [default=yes]
1481  --enable-static[=PKGS]  build static libraries [default=yes]
1482  --enable-fast-install[=PKGS]
1483                          optimize for fast installation [default=yes]
1484  --disable-libtool-lock  avoid locking (might break parallel builds)
1485
1486Optional Packages:
1487  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1488  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1489  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1490                          both]
1491  --with-aix-soname=aix|svr4|both
1492                          shared library versioning (aka "SONAME") variant to
1493                          provide on AIX, [default=aix].
1494  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1495  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1496                          compiler's sysroot if not specified).
1497
1498Some influential environment variables:
1499  CXX         C++ compiler command
1500  CXXFLAGS    C++ compiler flags
1501  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1502              nonstandard directory <lib dir>
1503  LIBS        libraries to pass to the linker, e.g. -l<library>
1504  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1505              you have headers in a nonstandard directory <include dir>
1506  CC          C compiler command
1507  CFLAGS      C compiler flags
1508  FC          Fortran compiler command
1509  FCFLAGS     Fortran compiler flags
1510  LT_SYS_LIBRARY_PATH
1511              User-defined run-time library search path.
1512  CXXCPP      C++ preprocessor
1513
1514Use these variables to override the choices made by `configure' or to help
1515it to find libraries and programs with nonstandard names/locations.
1516
1517Report bugs to <dhbailey@lbl.gov>.
1518_ACEOF
1519ac_status=$?
1520fi
1521
1522if test "$ac_init_help" = "recursive"; then
1523  # If there are subdirs, report their specific --help.
1524  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1525    test -d "$ac_dir" ||
1526      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1527      continue
1528    ac_builddir=.
1529
1530case "$ac_dir" in
1531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532*)
1533  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1534  # A ".." for each directory in $ac_dir_suffix.
1535  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1536  case $ac_top_builddir_sub in
1537  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1538  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1539  esac ;;
1540esac
1541ac_abs_top_builddir=$ac_pwd
1542ac_abs_builddir=$ac_pwd$ac_dir_suffix
1543# for backward compatibility:
1544ac_top_builddir=$ac_top_build_prefix
1545
1546case $srcdir in
1547  .)  # We are building in place.
1548    ac_srcdir=.
1549    ac_top_srcdir=$ac_top_builddir_sub
1550    ac_abs_top_srcdir=$ac_pwd ;;
1551  [\\/]* | ?:[\\/]* )  # Absolute name.
1552    ac_srcdir=$srcdir$ac_dir_suffix;
1553    ac_top_srcdir=$srcdir
1554    ac_abs_top_srcdir=$srcdir ;;
1555  *) # Relative name.
1556    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1557    ac_top_srcdir=$ac_top_build_prefix$srcdir
1558    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1559esac
1560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1561
1562    cd "$ac_dir" || { ac_status=$?; continue; }
1563    # Check for configure.gnu first; this name is used for a wrapper for
1564    # Metaconfig's "Configure" on case-insensitive file systems.
1565    if test -f "$ac_srcdir/configure.gnu"; then
1566      echo &&
1567      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568    elif test -f "$ac_srcdir/configure"; then
1569      echo &&
1570      $SHELL "$ac_srcdir/configure" --help=recursive
1571    else
1572      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573    fi || ac_status=$?
1574    cd "$ac_pwd" || { ac_status=$?; break; }
1575  done
1576fi
1577
1578test -n "$ac_init_help" && exit $ac_status
1579if $ac_init_version; then
1580  cat <<\_ACEOF
1581qd configure 2.3.23
1582generated by GNU Autoconf 2.71
1583
1584Copyright (C) 2021 Free Software Foundation, Inc.
1585This configure script is free software; the Free Software Foundation
1586gives unlimited permission to copy, distribute and modify it.
1587_ACEOF
1588  exit
1589fi
1590
1591## ------------------------ ##
1592## Autoconf initialization. ##
1593## ------------------------ ##
1594
1595# ac_fn_cxx_try_compile LINENO
1596# ----------------------------
1597# Try to compile conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_cxx_try_compile ()
1599{
1600  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601  rm -f conftest.$ac_objext conftest.beam
1602  if { { ac_try="$ac_compile"
1603case "(($ac_try" in
1604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605  *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608printf "%s\n" "$ac_try_echo"; } >&5
1609  (eval "$ac_compile") 2>conftest.err
1610  ac_status=$?
1611  if test -s conftest.err; then
1612    grep -v '^ *+' conftest.err >conftest.er1
1613    cat conftest.er1 >&5
1614    mv -f conftest.er1 conftest.err
1615  fi
1616  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617  test $ac_status = 0; } && {
1618	 test -z "$ac_cxx_werror_flag" ||
1619	 test ! -s conftest.err
1620       } && test -s conftest.$ac_objext
1621then :
1622  ac_retval=0
1623else $as_nop
1624  printf "%s\n" "$as_me: failed program was:" >&5
1625sed 's/^/| /' conftest.$ac_ext >&5
1626
1627	ac_retval=1
1628fi
1629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1630  as_fn_set_status $ac_retval
1631
1632} # ac_fn_cxx_try_compile
1633
1634# ac_fn_c_try_compile LINENO
1635# --------------------------
1636# Try to compile conftest.$ac_ext, and return whether this succeeded.
1637ac_fn_c_try_compile ()
1638{
1639  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640  rm -f conftest.$ac_objext conftest.beam
1641  if { { ac_try="$ac_compile"
1642case "(($ac_try" in
1643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1644  *) ac_try_echo=$ac_try;;
1645esac
1646eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1647printf "%s\n" "$ac_try_echo"; } >&5
1648  (eval "$ac_compile") 2>conftest.err
1649  ac_status=$?
1650  if test -s conftest.err; then
1651    grep -v '^ *+' conftest.err >conftest.er1
1652    cat conftest.er1 >&5
1653    mv -f conftest.er1 conftest.err
1654  fi
1655  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656  test $ac_status = 0; } && {
1657	 test -z "$ac_c_werror_flag" ||
1658	 test ! -s conftest.err
1659       } && test -s conftest.$ac_objext
1660then :
1661  ac_retval=0
1662else $as_nop
1663  printf "%s\n" "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666	ac_retval=1
1667fi
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669  as_fn_set_status $ac_retval
1670
1671} # ac_fn_c_try_compile
1672
1673# ac_fn_cxx_try_run LINENO
1674# ------------------------
1675# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1676# executables *can* be run.
1677ac_fn_cxx_try_run ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  if { { ac_try="$ac_link"
1681case "(($ac_try" in
1682  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683  *) ac_try_echo=$ac_try;;
1684esac
1685eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686printf "%s\n" "$ac_try_echo"; } >&5
1687  (eval "$ac_link") 2>&5
1688  ac_status=$?
1689  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1691  { { case "(($ac_try" in
1692  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693  *) ac_try_echo=$ac_try;;
1694esac
1695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696printf "%s\n" "$ac_try_echo"; } >&5
1697  (eval "$ac_try") 2>&5
1698  ac_status=$?
1699  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; }; }
1701then :
1702  ac_retval=0
1703else $as_nop
1704  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1705       printf "%s\n" "$as_me: failed program was:" >&5
1706sed 's/^/| /' conftest.$ac_ext >&5
1707
1708       ac_retval=$ac_status
1709fi
1710  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_cxx_try_run
1715
1716# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1717# ---------------------------------------------------------
1718# Tests whether HEADER exists and can be compiled using the include files in
1719# INCLUDES, setting the cache variable VAR accordingly.
1720ac_fn_cxx_check_header_compile ()
1721{
1722  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724printf %s "checking for $2... " >&6; }
1725if eval test \${$3+y}
1726then :
1727  printf %s "(cached) " >&6
1728else $as_nop
1729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730/* end confdefs.h.  */
1731$4
1732#include <$2>
1733_ACEOF
1734if ac_fn_cxx_try_compile "$LINENO"
1735then :
1736  eval "$3=yes"
1737else $as_nop
1738  eval "$3=no"
1739fi
1740rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1741fi
1742eval ac_res=\$$3
1743	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1744printf "%s\n" "$ac_res" >&6; }
1745  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
1747} # ac_fn_cxx_check_header_compile
1748
1749# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1750# ---------------------------------------------
1751# Tests whether TYPE exists after having included INCLUDES, setting cache
1752# variable VAR accordingly.
1753ac_fn_cxx_check_type ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757printf %s "checking for $2... " >&6; }
1758if eval test \${$3+y}
1759then :
1760  printf %s "(cached) " >&6
1761else $as_nop
1762  eval "$3=no"
1763  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h.  */
1765$4
1766int
1767main (void)
1768{
1769if (sizeof ($2))
1770	 return 0;
1771  ;
1772  return 0;
1773}
1774_ACEOF
1775if ac_fn_cxx_try_compile "$LINENO"
1776then :
1777  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h.  */
1779$4
1780int
1781main (void)
1782{
1783if (sizeof (($2)))
1784	    return 0;
1785  ;
1786  return 0;
1787}
1788_ACEOF
1789if ac_fn_cxx_try_compile "$LINENO"
1790then :
1791
1792else $as_nop
1793  eval "$3=yes"
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1796fi
1797rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1798fi
1799eval ac_res=\$$3
1800	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801printf "%s\n" "$ac_res" >&6; }
1802  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803
1804} # ac_fn_cxx_check_type
1805
1806# ac_fn_cxx_try_link LINENO
1807# -------------------------
1808# Try to link conftest.$ac_ext, and return whether this succeeded.
1809ac_fn_cxx_try_link ()
1810{
1811  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1813  if { { ac_try="$ac_link"
1814case "(($ac_try" in
1815  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1816  *) ac_try_echo=$ac_try;;
1817esac
1818eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1819printf "%s\n" "$ac_try_echo"; } >&5
1820  (eval "$ac_link") 2>conftest.err
1821  ac_status=$?
1822  if test -s conftest.err; then
1823    grep -v '^ *+' conftest.err >conftest.er1
1824    cat conftest.er1 >&5
1825    mv -f conftest.er1 conftest.err
1826  fi
1827  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828  test $ac_status = 0; } && {
1829	 test -z "$ac_cxx_werror_flag" ||
1830	 test ! -s conftest.err
1831       } && test -s conftest$ac_exeext && {
1832	 test "$cross_compiling" = yes ||
1833	 test -x conftest$ac_exeext
1834       }
1835then :
1836  ac_retval=0
1837else $as_nop
1838  printf "%s\n" "$as_me: failed program was:" >&5
1839sed 's/^/| /' conftest.$ac_ext >&5
1840
1841	ac_retval=1
1842fi
1843  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1844  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1845  # interfere with the next link command; also delete a directory that is
1846  # left behind by Apple's compiler.  We do this before executing the actions.
1847  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849  as_fn_set_status $ac_retval
1850
1851} # ac_fn_cxx_try_link
1852
1853# ac_fn_cxx_check_func LINENO FUNC VAR
1854# ------------------------------------
1855# Tests whether FUNC exists, setting the cache variable VAR accordingly
1856ac_fn_cxx_check_func ()
1857{
1858  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860printf %s "checking for $2... " >&6; }
1861if eval test \${$3+y}
1862then :
1863  printf %s "(cached) " >&6
1864else $as_nop
1865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h.  */
1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1869#define $2 innocuous_$2
1870
1871/* System header to define __stub macros and hopefully few prototypes,
1872   which can conflict with char $2 (); below.  */
1873
1874#include <limits.h>
1875#undef $2
1876
1877/* Override any GCC internal prototype to avoid an error.
1878   Use char because int might match the return type of a GCC
1879   builtin and then its argument prototype would still apply.  */
1880#ifdef __cplusplus
1881extern "C"
1882#endif
1883char $2 ();
1884/* The GNU C library defines this for functions which it implements
1885    to always fail with ENOSYS.  Some functions are actually named
1886    something starting with __ and the normal name is an alias.  */
1887#if defined __stub_$2 || defined __stub___$2
1888choke me
1889#endif
1890
1891int
1892main (void)
1893{
1894return $2 ();
1895  ;
1896  return 0;
1897}
1898_ACEOF
1899if ac_fn_cxx_try_link "$LINENO"
1900then :
1901  eval "$3=yes"
1902else $as_nop
1903  eval "$3=no"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.beam \
1906    conftest$ac_exeext conftest.$ac_ext
1907fi
1908eval ac_res=\$$3
1909	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1910printf "%s\n" "$ac_res" >&6; }
1911  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912
1913} # ac_fn_cxx_check_func
1914
1915# ac_fn_fc_try_compile LINENO
1916# ---------------------------
1917# Try to compile conftest.$ac_ext, and return whether this succeeded.
1918ac_fn_fc_try_compile ()
1919{
1920  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921  rm -f conftest.$ac_objext conftest.beam
1922  if { { ac_try="$ac_compile"
1923case "(($ac_try" in
1924  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925  *) ac_try_echo=$ac_try;;
1926esac
1927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928printf "%s\n" "$ac_try_echo"; } >&5
1929  (eval "$ac_compile") 2>conftest.err
1930  ac_status=$?
1931  if test -s conftest.err; then
1932    grep -v '^ *+' conftest.err >conftest.er1
1933    cat conftest.er1 >&5
1934    mv -f conftest.er1 conftest.err
1935  fi
1936  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937  test $ac_status = 0; } && {
1938	 test -z "$ac_fc_werror_flag" ||
1939	 test ! -s conftest.err
1940       } && test -s conftest.$ac_objext
1941then :
1942  ac_retval=0
1943else $as_nop
1944  printf "%s\n" "$as_me: failed program was:" >&5
1945sed 's/^/| /' conftest.$ac_ext >&5
1946
1947	ac_retval=1
1948fi
1949  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950  as_fn_set_status $ac_retval
1951
1952} # ac_fn_fc_try_compile
1953
1954# ac_fn_fc_try_link LINENO
1955# ------------------------
1956# Try to link conftest.$ac_ext, and return whether this succeeded.
1957ac_fn_fc_try_link ()
1958{
1959  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1961  if { { ac_try="$ac_link"
1962case "(($ac_try" in
1963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964  *) ac_try_echo=$ac_try;;
1965esac
1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967printf "%s\n" "$ac_try_echo"; } >&5
1968  (eval "$ac_link") 2>conftest.err
1969  ac_status=$?
1970  if test -s conftest.err; then
1971    grep -v '^ *+' conftest.err >conftest.er1
1972    cat conftest.er1 >&5
1973    mv -f conftest.er1 conftest.err
1974  fi
1975  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976  test $ac_status = 0; } && {
1977	 test -z "$ac_fc_werror_flag" ||
1978	 test ! -s conftest.err
1979       } && test -s conftest$ac_exeext && {
1980	 test "$cross_compiling" = yes ||
1981	 test -x conftest$ac_exeext
1982       }
1983then :
1984  ac_retval=0
1985else $as_nop
1986  printf "%s\n" "$as_me: failed program was:" >&5
1987sed 's/^/| /' conftest.$ac_ext >&5
1988
1989	ac_retval=1
1990fi
1991  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993  # interfere with the next link command; also delete a directory that is
1994  # left behind by Apple's compiler.  We do this before executing the actions.
1995  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997  as_fn_set_status $ac_retval
1998
1999} # ac_fn_fc_try_link
2000
2001# ac_fn_c_try_link LINENO
2002# -----------------------
2003# Try to link conftest.$ac_ext, and return whether this succeeded.
2004ac_fn_c_try_link ()
2005{
2006  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2008  if { { ac_try="$ac_link"
2009case "(($ac_try" in
2010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2011  *) ac_try_echo=$ac_try;;
2012esac
2013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2014printf "%s\n" "$ac_try_echo"; } >&5
2015  (eval "$ac_link") 2>conftest.err
2016  ac_status=$?
2017  if test -s conftest.err; then
2018    grep -v '^ *+' conftest.err >conftest.er1
2019    cat conftest.er1 >&5
2020    mv -f conftest.er1 conftest.err
2021  fi
2022  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2023  test $ac_status = 0; } && {
2024	 test -z "$ac_c_werror_flag" ||
2025	 test ! -s conftest.err
2026       } && test -s conftest$ac_exeext && {
2027	 test "$cross_compiling" = yes ||
2028	 test -x conftest$ac_exeext
2029       }
2030then :
2031  ac_retval=0
2032else $as_nop
2033  printf "%s\n" "$as_me: failed program was:" >&5
2034sed 's/^/| /' conftest.$ac_ext >&5
2035
2036	ac_retval=1
2037fi
2038  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2039  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2040  # interfere with the next link command; also delete a directory that is
2041  # left behind by Apple's compiler.  We do this before executing the actions.
2042  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2043  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044  as_fn_set_status $ac_retval
2045
2046} # ac_fn_c_try_link
2047
2048# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2049# -------------------------------------------------------
2050# Tests whether HEADER exists and can be compiled using the include files in
2051# INCLUDES, setting the cache variable VAR accordingly.
2052ac_fn_c_check_header_compile ()
2053{
2054  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2055  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2056printf %s "checking for $2... " >&6; }
2057if eval test \${$3+y}
2058then :
2059  printf %s "(cached) " >&6
2060else $as_nop
2061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2062/* end confdefs.h.  */
2063$4
2064#include <$2>
2065_ACEOF
2066if ac_fn_c_try_compile "$LINENO"
2067then :
2068  eval "$3=yes"
2069else $as_nop
2070  eval "$3=no"
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076printf "%s\n" "$ac_res" >&6; }
2077  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079} # ac_fn_c_check_header_compile
2080
2081# ac_fn_c_check_func LINENO FUNC VAR
2082# ----------------------------------
2083# Tests whether FUNC exists, setting the cache variable VAR accordingly
2084ac_fn_c_check_func ()
2085{
2086  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088printf %s "checking for $2... " >&6; }
2089if eval test \${$3+y}
2090then :
2091  printf %s "(cached) " >&6
2092else $as_nop
2093  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094/* end confdefs.h.  */
2095/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2096   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2097#define $2 innocuous_$2
2098
2099/* System header to define __stub macros and hopefully few prototypes,
2100   which can conflict with char $2 (); below.  */
2101
2102#include <limits.h>
2103#undef $2
2104
2105/* Override any GCC internal prototype to avoid an error.
2106   Use char because int might match the return type of a GCC
2107   builtin and then its argument prototype would still apply.  */
2108#ifdef __cplusplus
2109extern "C"
2110#endif
2111char $2 ();
2112/* The GNU C library defines this for functions which it implements
2113    to always fail with ENOSYS.  Some functions are actually named
2114    something starting with __ and the normal name is an alias.  */
2115#if defined __stub_$2 || defined __stub___$2
2116choke me
2117#endif
2118
2119#ifdef FC_DUMMY_MAIN
2120#ifndef FC_DUMMY_MAIN_EQ_F77
2121#  ifdef __cplusplus
2122     extern "C"
2123#  endif
2124   int FC_DUMMY_MAIN() { return 1; }
2125#endif
2126#endif
2127int
2128main (void)
2129{
2130return $2 ();
2131  ;
2132  return 0;
2133}
2134_ACEOF
2135if ac_fn_c_try_link "$LINENO"
2136then :
2137  eval "$3=yes"
2138else $as_nop
2139  eval "$3=no"
2140fi
2141rm -f core conftest.err conftest.$ac_objext conftest.beam \
2142    conftest$ac_exeext conftest.$ac_ext
2143fi
2144eval ac_res=\$$3
2145	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146printf "%s\n" "$ac_res" >&6; }
2147  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2148
2149} # ac_fn_c_check_func
2150
2151# ac_fn_cxx_try_cpp LINENO
2152# ------------------------
2153# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2154ac_fn_cxx_try_cpp ()
2155{
2156  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157  if { { ac_try="$ac_cpp conftest.$ac_ext"
2158case "(($ac_try" in
2159  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160  *) ac_try_echo=$ac_try;;
2161esac
2162eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2163printf "%s\n" "$ac_try_echo"; } >&5
2164  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2165  ac_status=$?
2166  if test -s conftest.err; then
2167    grep -v '^ *+' conftest.err >conftest.er1
2168    cat conftest.er1 >&5
2169    mv -f conftest.er1 conftest.err
2170  fi
2171  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2172  test $ac_status = 0; } > conftest.i && {
2173	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2174	 test ! -s conftest.err
2175       }
2176then :
2177  ac_retval=0
2178else $as_nop
2179  printf "%s\n" "$as_me: failed program was:" >&5
2180sed 's/^/| /' conftest.$ac_ext >&5
2181
2182    ac_retval=1
2183fi
2184  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2185  as_fn_set_status $ac_retval
2186
2187} # ac_fn_cxx_try_cpp
2188ac_configure_args_raw=
2189for ac_arg
2190do
2191  case $ac_arg in
2192  *\'*)
2193    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2194  esac
2195  as_fn_append ac_configure_args_raw " '$ac_arg'"
2196done
2197
2198case $ac_configure_args_raw in
2199  *$as_nl*)
2200    ac_safe_unquote= ;;
2201  *)
2202    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2203    ac_unsafe_a="$ac_unsafe_z#~"
2204    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2205    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2206esac
2207
2208cat >config.log <<_ACEOF
2209This file contains any messages produced by compilers while
2210running configure, to aid debugging if configure makes a mistake.
2211
2212It was created by qd $as_me 2.3.23, which was
2213generated by GNU Autoconf 2.71.  Invocation command line was
2214
2215  $ $0$ac_configure_args_raw
2216
2217_ACEOF
2218exec 5>>config.log
2219{
2220cat <<_ASUNAME
2221## --------- ##
2222## Platform. ##
2223## --------- ##
2224
2225hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2226uname -m = `(uname -m) 2>/dev/null || echo unknown`
2227uname -r = `(uname -r) 2>/dev/null || echo unknown`
2228uname -s = `(uname -s) 2>/dev/null || echo unknown`
2229uname -v = `(uname -v) 2>/dev/null || echo unknown`
2230
2231/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2232/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2233
2234/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2235/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2236/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2237/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2238/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2239/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2240/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2241
2242_ASUNAME
2243
2244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2245for as_dir in $PATH
2246do
2247  IFS=$as_save_IFS
2248  case $as_dir in #(((
2249    '') as_dir=./ ;;
2250    */) ;;
2251    *) as_dir=$as_dir/ ;;
2252  esac
2253    printf "%s\n" "PATH: $as_dir"
2254  done
2255IFS=$as_save_IFS
2256
2257} >&5
2258
2259cat >&5 <<_ACEOF
2260
2261
2262## ----------- ##
2263## Core tests. ##
2264## ----------- ##
2265
2266_ACEOF
2267
2268
2269# Keep a trace of the command line.
2270# Strip out --no-create and --no-recursion so they do not pile up.
2271# Strip out --silent because we don't want to record it for future runs.
2272# Also quote any args containing shell meta-characters.
2273# Make two passes to allow for proper duplicate-argument suppression.
2274ac_configure_args=
2275ac_configure_args0=
2276ac_configure_args1=
2277ac_must_keep_next=false
2278for ac_pass in 1 2
2279do
2280  for ac_arg
2281  do
2282    case $ac_arg in
2283    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2284    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2285    | -silent | --silent | --silen | --sile | --sil)
2286      continue ;;
2287    *\'*)
2288      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2289    esac
2290    case $ac_pass in
2291    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2292    2)
2293      as_fn_append ac_configure_args1 " '$ac_arg'"
2294      if test $ac_must_keep_next = true; then
2295	ac_must_keep_next=false # Got value, back to normal.
2296      else
2297	case $ac_arg in
2298	  *=* | --config-cache | -C | -disable-* | --disable-* \
2299	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2300	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2301	  | -with-* | --with-* | -without-* | --without-* | --x)
2302	    case "$ac_configure_args0 " in
2303	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2304	    esac
2305	    ;;
2306	  -* ) ac_must_keep_next=true ;;
2307	esac
2308      fi
2309      as_fn_append ac_configure_args " '$ac_arg'"
2310      ;;
2311    esac
2312  done
2313done
2314{ ac_configure_args0=; unset ac_configure_args0;}
2315{ ac_configure_args1=; unset ac_configure_args1;}
2316
2317# When interrupted or exit'd, cleanup temporary files, and complete
2318# config.log.  We remove comments because anyway the quotes in there
2319# would cause problems or look ugly.
2320# WARNING: Use '\'' to represent an apostrophe within the trap.
2321# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2322trap 'exit_status=$?
2323  # Sanitize IFS.
2324  IFS=" ""	$as_nl"
2325  # Save into config.log some information that might help in debugging.
2326  {
2327    echo
2328
2329    printf "%s\n" "## ---------------- ##
2330## Cache variables. ##
2331## ---------------- ##"
2332    echo
2333    # The following way of writing the cache mishandles newlines in values,
2334(
2335  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2336    eval ac_val=\$$ac_var
2337    case $ac_val in #(
2338    *${as_nl}*)
2339      case $ac_var in #(
2340      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2341printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2342      esac
2343      case $ac_var in #(
2344      _ | IFS | as_nl) ;; #(
2345      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2346      *) { eval $ac_var=; unset $ac_var;} ;;
2347      esac ;;
2348    esac
2349  done
2350  (set) 2>&1 |
2351    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2352    *${as_nl}ac_space=\ *)
2353      sed -n \
2354	"s/'\''/'\''\\\\'\'''\''/g;
2355	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2356      ;; #(
2357    *)
2358      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2359      ;;
2360    esac |
2361    sort
2362)
2363    echo
2364
2365    printf "%s\n" "## ----------------- ##
2366## Output variables. ##
2367## ----------------- ##"
2368    echo
2369    for ac_var in $ac_subst_vars
2370    do
2371      eval ac_val=\$$ac_var
2372      case $ac_val in
2373      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374      esac
2375      printf "%s\n" "$ac_var='\''$ac_val'\''"
2376    done | sort
2377    echo
2378
2379    if test -n "$ac_subst_files"; then
2380      printf "%s\n" "## ------------------- ##
2381## File substitutions. ##
2382## ------------------- ##"
2383      echo
2384      for ac_var in $ac_subst_files
2385      do
2386	eval ac_val=\$$ac_var
2387	case $ac_val in
2388	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2389	esac
2390	printf "%s\n" "$ac_var='\''$ac_val'\''"
2391      done | sort
2392      echo
2393    fi
2394
2395    if test -s confdefs.h; then
2396      printf "%s\n" "## ----------- ##
2397## confdefs.h. ##
2398## ----------- ##"
2399      echo
2400      cat confdefs.h
2401      echo
2402    fi
2403    test "$ac_signal" != 0 &&
2404      printf "%s\n" "$as_me: caught signal $ac_signal"
2405    printf "%s\n" "$as_me: exit $exit_status"
2406  } >&5
2407  rm -f core *.core core.conftest.* &&
2408    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2409    exit $exit_status
2410' 0
2411for ac_signal in 1 2 13 15; do
2412  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2413done
2414ac_signal=0
2415
2416# confdefs.h avoids OS command line length limits that DEFS can exceed.
2417rm -f -r conftest* confdefs.h
2418
2419printf "%s\n" "/* confdefs.h */" > confdefs.h
2420
2421# Predefined preprocessor variables.
2422
2423printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2424
2425printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2426
2427printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2428
2429printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2430
2431printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2432
2433printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2434
2435
2436# Let the site file select an alternate cache file if it wants to.
2437# Prefer an explicitly selected file to automatically selected ones.
2438if test -n "$CONFIG_SITE"; then
2439  ac_site_files="$CONFIG_SITE"
2440elif test "x$prefix" != xNONE; then
2441  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2442else
2443  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2444fi
2445
2446for ac_site_file in $ac_site_files
2447do
2448  case $ac_site_file in #(
2449  */*) :
2450     ;; #(
2451  *) :
2452    ac_site_file=./$ac_site_file ;;
2453esac
2454  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2455    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2456printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2457    sed 's/^/| /' "$ac_site_file" >&5
2458    . "$ac_site_file" \
2459      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2461as_fn_error $? "failed to load site script $ac_site_file
2462See \`config.log' for more details" "$LINENO" 5; }
2463  fi
2464done
2465
2466if test -r "$cache_file"; then
2467  # Some versions of bash will fail to source /dev/null (special files
2468  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2469  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2470    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2471printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2472    case $cache_file in
2473      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2474      *)                      . "./$cache_file";;
2475    esac
2476  fi
2477else
2478  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2479printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2480  >$cache_file
2481fi
2482
2483# Test code for whether the C++ compiler supports C++98 (global declarations)
2484ac_cxx_conftest_cxx98_globals='
2485// Does the compiler advertise C++98 conformance?
2486#if !defined __cplusplus || __cplusplus < 199711L
2487# error "Compiler does not advertise C++98 conformance"
2488#endif
2489
2490// These inclusions are to reject old compilers that
2491// lack the unsuffixed header files.
2492#include <cstdlib>
2493#include <exception>
2494
2495// <cassert> and <cstring> are *not* freestanding headers in C++98.
2496extern void assert (int);
2497namespace std {
2498  extern int strcmp (const char *, const char *);
2499}
2500
2501// Namespaces, exceptions, and templates were all added after "C++ 2.0".
2502using std::exception;
2503using std::strcmp;
2504
2505namespace {
2506
2507void test_exception_syntax()
2508{
2509  try {
2510    throw "test";
2511  } catch (const char *s) {
2512    // Extra parentheses suppress a warning when building autoconf itself,
2513    // due to lint rules shared with more typical C programs.
2514    assert (!(strcmp) (s, "test"));
2515  }
2516}
2517
2518template <typename T> struct test_template
2519{
2520  T const val;
2521  explicit test_template(T t) : val(t) {}
2522  template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2523};
2524
2525} // anonymous namespace
2526'
2527
2528# Test code for whether the C++ compiler supports C++98 (body of main)
2529ac_cxx_conftest_cxx98_main='
2530  assert (argc);
2531  assert (! argv[0]);
2532{
2533  test_exception_syntax ();
2534  test_template<double> tt (2.0);
2535  assert (tt.add (4) == 6.0);
2536  assert (true && !false);
2537}
2538'
2539
2540# Test code for whether the C++ compiler supports C++11 (global declarations)
2541ac_cxx_conftest_cxx11_globals='
2542// Does the compiler advertise C++ 2011 conformance?
2543#if !defined __cplusplus || __cplusplus < 201103L
2544# error "Compiler does not advertise C++11 conformance"
2545#endif
2546
2547namespace cxx11test
2548{
2549  constexpr int get_val() { return 20; }
2550
2551  struct testinit
2552  {
2553    int i;
2554    double d;
2555  };
2556
2557  class delegate
2558  {
2559  public:
2560    delegate(int n) : n(n) {}
2561    delegate(): delegate(2354) {}
2562
2563    virtual int getval() { return this->n; };
2564  protected:
2565    int n;
2566  };
2567
2568  class overridden : public delegate
2569  {
2570  public:
2571    overridden(int n): delegate(n) {}
2572    virtual int getval() override final { return this->n * 2; }
2573  };
2574
2575  class nocopy
2576  {
2577  public:
2578    nocopy(int i): i(i) {}
2579    nocopy() = default;
2580    nocopy(const nocopy&) = delete;
2581    nocopy & operator=(const nocopy&) = delete;
2582  private:
2583    int i;
2584  };
2585
2586  // for testing lambda expressions
2587  template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2588  {
2589    return f(v);
2590  }
2591
2592  // for testing variadic templates and trailing return types
2593  template <typename V> auto sum(V first) -> V
2594  {
2595    return first;
2596  }
2597  template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2598  {
2599    return first + sum(rest...);
2600  }
2601}
2602'
2603
2604# Test code for whether the C++ compiler supports C++11 (body of main)
2605ac_cxx_conftest_cxx11_main='
2606{
2607  // Test auto and decltype
2608  auto a1 = 6538;
2609  auto a2 = 48573953.4;
2610  auto a3 = "String literal";
2611
2612  int total = 0;
2613  for (auto i = a3; *i; ++i) { total += *i; }
2614
2615  decltype(a2) a4 = 34895.034;
2616}
2617{
2618  // Test constexpr
2619  short sa[cxx11test::get_val()] = { 0 };
2620}
2621{
2622  // Test initializer lists
2623  cxx11test::testinit il = { 4323, 435234.23544 };
2624}
2625{
2626  // Test range-based for
2627  int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2628                 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2629  for (auto &x : array) { x += 23; }
2630}
2631{
2632  // Test lambda expressions
2633  using cxx11test::eval;
2634  assert (eval ([](int x) { return x*2; }, 21) == 42);
2635  double d = 2.0;
2636  assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2637  assert (d == 5.0);
2638  assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2639  assert (d == 5.0);
2640}
2641{
2642  // Test use of variadic templates
2643  using cxx11test::sum;
2644  auto a = sum(1);
2645  auto b = sum(1, 2);
2646  auto c = sum(1.0, 2.0, 3.0);
2647}
2648{
2649  // Test constructor delegation
2650  cxx11test::delegate d1;
2651  cxx11test::delegate d2();
2652  cxx11test::delegate d3(45);
2653}
2654{
2655  // Test override and final
2656  cxx11test::overridden o1(55464);
2657}
2658{
2659  // Test nullptr
2660  char *c = nullptr;
2661}
2662{
2663  // Test template brackets
2664  test_template<::test_template<int>> v(test_template<int>(12));
2665}
2666{
2667  // Unicode literals
2668  char const *utf8 = u8"UTF-8 string \u2500";
2669  char16_t const *utf16 = u"UTF-8 string \u2500";
2670  char32_t const *utf32 = U"UTF-32 string \u2500";
2671}
2672'
2673
2674# Test code for whether the C compiler supports C++11 (complete).
2675ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2676${ac_cxx_conftest_cxx11_globals}
2677
2678int
2679main (int argc, char **argv)
2680{
2681  int ok = 0;
2682  ${ac_cxx_conftest_cxx98_main}
2683  ${ac_cxx_conftest_cxx11_main}
2684  return ok;
2685}
2686"
2687
2688# Test code for whether the C compiler supports C++98 (complete).
2689ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2690int
2691main (int argc, char **argv)
2692{
2693  int ok = 0;
2694  ${ac_cxx_conftest_cxx98_main}
2695  return ok;
2696}
2697"
2698
2699# Test code for whether the C compiler supports C89 (global declarations)
2700ac_c_conftest_c89_globals='
2701/* Does the compiler advertise C89 conformance?
2702   Do not test the value of __STDC__, because some compilers set it to 0
2703   while being otherwise adequately conformant. */
2704#if !defined __STDC__
2705# error "Compiler does not advertise C89 conformance"
2706#endif
2707
2708#include <stddef.h>
2709#include <stdarg.h>
2710struct stat;
2711/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2712struct buf { int x; };
2713struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2714static char *e (p, i)
2715     char **p;
2716     int i;
2717{
2718  return p[i];
2719}
2720static char *f (char * (*g) (char **, int), char **p, ...)
2721{
2722  char *s;
2723  va_list v;
2724  va_start (v,p);
2725  s = g (p, va_arg (v,int));
2726  va_end (v);
2727  return s;
2728}
2729
2730/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2731   function prototypes and stuff, but not \xHH hex character constants.
2732   These do not provoke an error unfortunately, instead are silently treated
2733   as an "x".  The following induces an error, until -std is added to get
2734   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2735   array size at least.  It is necessary to write \x00 == 0 to get something
2736   that is true only with -std.  */
2737int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2738
2739/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2740   inside strings and character constants.  */
2741#define FOO(x) '\''x'\''
2742int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2743
2744int test (int i, double x);
2745struct s1 {int (*f) (int a);};
2746struct s2 {int (*f) (double a);};
2747int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2748               int, int);'
2749
2750# Test code for whether the C compiler supports C89 (body of main).
2751ac_c_conftest_c89_main='
2752ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2753'
2754
2755# Test code for whether the C compiler supports C99 (global declarations)
2756ac_c_conftest_c99_globals='
2757// Does the compiler advertise C99 conformance?
2758#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2759# error "Compiler does not advertise C99 conformance"
2760#endif
2761
2762#include <stdbool.h>
2763extern int puts (const char *);
2764extern int printf (const char *, ...);
2765extern int dprintf (int, const char *, ...);
2766extern void *malloc (size_t);
2767
2768// Check varargs macros.  These examples are taken from C99 6.10.3.5.
2769// dprintf is used instead of fprintf to avoid needing to declare
2770// FILE and stderr.
2771#define debug(...) dprintf (2, __VA_ARGS__)
2772#define showlist(...) puts (#__VA_ARGS__)
2773#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2774static void
2775test_varargs_macros (void)
2776{
2777  int x = 1234;
2778  int y = 5678;
2779  debug ("Flag");
2780  debug ("X = %d\n", x);
2781  showlist (The first, second, and third items.);
2782  report (x>y, "x is %d but y is %d", x, y);
2783}
2784
2785// Check long long types.
2786#define BIG64 18446744073709551615ull
2787#define BIG32 4294967295ul
2788#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2789#if !BIG_OK
2790  #error "your preprocessor is broken"
2791#endif
2792#if BIG_OK
2793#else
2794  #error "your preprocessor is broken"
2795#endif
2796static long long int bignum = -9223372036854775807LL;
2797static unsigned long long int ubignum = BIG64;
2798
2799struct incomplete_array
2800{
2801  int datasize;
2802  double data[];
2803};
2804
2805struct named_init {
2806  int number;
2807  const wchar_t *name;
2808  double average;
2809};
2810
2811typedef const char *ccp;
2812
2813static inline int
2814test_restrict (ccp restrict text)
2815{
2816  // See if C++-style comments work.
2817  // Iterate through items via the restricted pointer.
2818  // Also check for declarations in for loops.
2819  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2820    continue;
2821  return 0;
2822}
2823
2824// Check varargs and va_copy.
2825static bool
2826test_varargs (const char *format, ...)
2827{
2828  va_list args;
2829  va_start (args, format);
2830  va_list args_copy;
2831  va_copy (args_copy, args);
2832
2833  const char *str = "";
2834  int number = 0;
2835  float fnumber = 0;
2836
2837  while (*format)
2838    {
2839      switch (*format++)
2840	{
2841	case '\''s'\'': // string
2842	  str = va_arg (args_copy, const char *);
2843	  break;
2844	case '\''d'\'': // int
2845	  number = va_arg (args_copy, int);
2846	  break;
2847	case '\''f'\'': // float
2848	  fnumber = va_arg (args_copy, double);
2849	  break;
2850	default:
2851	  break;
2852	}
2853    }
2854  va_end (args_copy);
2855  va_end (args);
2856
2857  return *str && number && fnumber;
2858}
2859'
2860
2861# Test code for whether the C compiler supports C99 (body of main).
2862ac_c_conftest_c99_main='
2863  // Check bool.
2864  _Bool success = false;
2865  success |= (argc != 0);
2866
2867  // Check restrict.
2868  if (test_restrict ("String literal") == 0)
2869    success = true;
2870  char *restrict newvar = "Another string";
2871
2872  // Check varargs.
2873  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2874  test_varargs_macros ();
2875
2876  // Check flexible array members.
2877  struct incomplete_array *ia =
2878    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2879  ia->datasize = 10;
2880  for (int i = 0; i < ia->datasize; ++i)
2881    ia->data[i] = i * 1.234;
2882
2883  // Check named initializers.
2884  struct named_init ni = {
2885    .number = 34,
2886    .name = L"Test wide string",
2887    .average = 543.34343,
2888  };
2889
2890  ni.number = 58;
2891
2892  int dynamic_array[ni.number];
2893  dynamic_array[0] = argv[0][0];
2894  dynamic_array[ni.number - 1] = 543;
2895
2896  // work around unused variable warnings
2897  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2898	 || dynamic_array[ni.number - 1] != 543);
2899'
2900
2901# Test code for whether the C compiler supports C11 (global declarations)
2902ac_c_conftest_c11_globals='
2903// Does the compiler advertise C11 conformance?
2904#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2905# error "Compiler does not advertise C11 conformance"
2906#endif
2907
2908// Check _Alignas.
2909char _Alignas (double) aligned_as_double;
2910char _Alignas (0) no_special_alignment;
2911extern char aligned_as_int;
2912char _Alignas (0) _Alignas (int) aligned_as_int;
2913
2914// Check _Alignof.
2915enum
2916{
2917  int_alignment = _Alignof (int),
2918  int_array_alignment = _Alignof (int[100]),
2919  char_alignment = _Alignof (char)
2920};
2921_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2922
2923// Check _Noreturn.
2924int _Noreturn does_not_return (void) { for (;;) continue; }
2925
2926// Check _Static_assert.
2927struct test_static_assert
2928{
2929  int x;
2930  _Static_assert (sizeof (int) <= sizeof (long int),
2931                  "_Static_assert does not work in struct");
2932  long int y;
2933};
2934
2935// Check UTF-8 literals.
2936#define u8 syntax error!
2937char const utf8_literal[] = u8"happens to be ASCII" "another string";
2938
2939// Check duplicate typedefs.
2940typedef long *long_ptr;
2941typedef long int *long_ptr;
2942typedef long_ptr long_ptr;
2943
2944// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2945struct anonymous
2946{
2947  union {
2948    struct { int i; int j; };
2949    struct { int k; long int l; } w;
2950  };
2951  int m;
2952} v1;
2953'
2954
2955# Test code for whether the C compiler supports C11 (body of main).
2956ac_c_conftest_c11_main='
2957  _Static_assert ((offsetof (struct anonymous, i)
2958		   == offsetof (struct anonymous, w.k)),
2959		  "Anonymous union alignment botch");
2960  v1.i = 2;
2961  v1.w.k = 5;
2962  ok |= v1.i != 5;
2963'
2964
2965# Test code for whether the C compiler supports C11 (complete).
2966ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2967${ac_c_conftest_c99_globals}
2968${ac_c_conftest_c11_globals}
2969
2970int
2971main (int argc, char **argv)
2972{
2973  int ok = 0;
2974  ${ac_c_conftest_c89_main}
2975  ${ac_c_conftest_c99_main}
2976  ${ac_c_conftest_c11_main}
2977  return ok;
2978}
2979"
2980
2981# Test code for whether the C compiler supports C99 (complete).
2982ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2983${ac_c_conftest_c99_globals}
2984
2985int
2986main (int argc, char **argv)
2987{
2988  int ok = 0;
2989  ${ac_c_conftest_c89_main}
2990  ${ac_c_conftest_c99_main}
2991  return ok;
2992}
2993"
2994
2995# Test code for whether the C compiler supports C89 (complete).
2996ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2997
2998int
2999main (int argc, char **argv)
3000{
3001  int ok = 0;
3002  ${ac_c_conftest_c89_main}
3003  return ok;
3004}
3005"
3006
3007as_fn_append ac_header_cxx_list " stdio.h stdio_h HAVE_STDIO_H"
3008as_fn_append ac_header_cxx_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3009as_fn_append ac_header_cxx_list " string.h string_h HAVE_STRING_H"
3010as_fn_append ac_header_cxx_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3011as_fn_append ac_header_cxx_list " stdint.h stdint_h HAVE_STDINT_H"
3012as_fn_append ac_header_cxx_list " strings.h strings_h HAVE_STRINGS_H"
3013as_fn_append ac_header_cxx_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3014as_fn_append ac_header_cxx_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3015as_fn_append ac_header_cxx_list " unistd.h unistd_h HAVE_UNISTD_H"
3016
3017# Auxiliary files required by this configure script.
3018ac_aux_files="ltmain.sh compile config.guess config.sub missing install-sh"
3019
3020# Locations in which to look for auxiliary files.
3021ac_aux_dir_candidates="${srcdir}/config"
3022
3023# Search for a directory containing all of the required auxiliary files,
3024# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3025# If we don't find one directory that contains all the files we need,
3026# we report the set of missing files from the *first* directory in
3027# $ac_aux_dir_candidates and give up.
3028ac_missing_aux_files=""
3029ac_first_candidate=:
3030printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032as_found=false
3033for as_dir in $ac_aux_dir_candidates
3034do
3035  IFS=$as_save_IFS
3036  case $as_dir in #(((
3037    '') as_dir=./ ;;
3038    */) ;;
3039    *) as_dir=$as_dir/ ;;
3040  esac
3041  as_found=:
3042
3043  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3044  ac_aux_dir_found=yes
3045  ac_install_sh=
3046  for ac_aux in $ac_aux_files
3047  do
3048    # As a special case, if "install-sh" is required, that requirement
3049    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3050    # and $ac_install_sh is set appropriately for whichever one is found.
3051    if test x"$ac_aux" = x"install-sh"
3052    then
3053      if test -f "${as_dir}install-sh"; then
3054        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3055        ac_install_sh="${as_dir}install-sh -c"
3056      elif test -f "${as_dir}install.sh"; then
3057        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3058        ac_install_sh="${as_dir}install.sh -c"
3059      elif test -f "${as_dir}shtool"; then
3060        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3061        ac_install_sh="${as_dir}shtool install -c"
3062      else
3063        ac_aux_dir_found=no
3064        if $ac_first_candidate; then
3065          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3066        else
3067          break
3068        fi
3069      fi
3070    else
3071      if test -f "${as_dir}${ac_aux}"; then
3072        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3073      else
3074        ac_aux_dir_found=no
3075        if $ac_first_candidate; then
3076          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3077        else
3078          break
3079        fi
3080      fi
3081    fi
3082  done
3083  if test "$ac_aux_dir_found" = yes; then
3084    ac_aux_dir="$as_dir"
3085    break
3086  fi
3087  ac_first_candidate=false
3088
3089  as_found=false
3090done
3091IFS=$as_save_IFS
3092if $as_found
3093then :
3094
3095else $as_nop
3096  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3097fi
3098
3099
3100# These three variables are undocumented and unsupported,
3101# and are intended to be withdrawn in a future Autoconf release.
3102# They can cause serious problems if a builder's source tree is in a directory
3103# whose full name contains unusual characters.
3104if test -f "${ac_aux_dir}config.guess"; then
3105  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3106fi
3107if test -f "${ac_aux_dir}config.sub"; then
3108  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3109fi
3110if test -f "$ac_aux_dir/configure"; then
3111  ac_configure="$SHELL ${ac_aux_dir}configure"
3112fi
3113
3114# Check that the precious variables saved in the cache have kept the same
3115# value.
3116ac_cache_corrupted=false
3117for ac_var in $ac_precious_vars; do
3118  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3119  eval ac_new_set=\$ac_env_${ac_var}_set
3120  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3121  eval ac_new_val=\$ac_env_${ac_var}_value
3122  case $ac_old_set,$ac_new_set in
3123    set,)
3124      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3125printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3126      ac_cache_corrupted=: ;;
3127    ,set)
3128      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3129printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3130      ac_cache_corrupted=: ;;
3131    ,);;
3132    *)
3133      if test "x$ac_old_val" != "x$ac_new_val"; then
3134	# differences in whitespace do not lead to failure.
3135	ac_old_val_w=`echo x $ac_old_val`
3136	ac_new_val_w=`echo x $ac_new_val`
3137	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3138	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3139printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3140	  ac_cache_corrupted=:
3141	else
3142	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3143printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3144	  eval $ac_var=\$ac_old_val
3145	fi
3146	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3147printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3148	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3149printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3150      fi;;
3151  esac
3152  # Pass precious variables to config.status.
3153  if test "$ac_new_set" = set; then
3154    case $ac_new_val in
3155    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3156    *) ac_arg=$ac_var=$ac_new_val ;;
3157    esac
3158    case " $ac_configure_args " in
3159      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3160      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3161    esac
3162  fi
3163done
3164if $ac_cache_corrupted; then
3165  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3168printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3169  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3170	    and start over" "$LINENO" 5
3171fi
3172## -------------------- ##
3173## Main body of script. ##
3174## -------------------- ##
3175
3176ac_ext=c
3177ac_cpp='$CPP $CPPFLAGS'
3178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181
3182
3183
3184
3185
3186PACKAGE="qd"
3187MAJOR_VERSION="2"
3188MINOR_VERSION="3"
3189PATCH_VERSION="23"
3190VERSION=$MAJOR_VERSION.$MINOR_VERSION.$PATCH_VERSION
3191
3192printf "%s\n" "#define MAJOR_VERSION $MAJOR_VERSION" >>confdefs.h
3193
3194
3195printf "%s\n" "#define MINOR_VERSION $MINOR_VERSION" >>confdefs.h
3196
3197
3198printf "%s\n" "#define PATCH_VERSION $PATCH_VERSION" >>confdefs.h
3199
3200echo "configuring $PACKAGE $VERSION..."
3201
3202
3203am__api_version='1.16'
3204
3205
3206
3207  # Find a good install program.  We prefer a C program (faster),
3208# so one script is as good as another.  But avoid the broken or
3209# incompatible versions:
3210# SysV /etc/install, /usr/sbin/install
3211# SunOS /usr/etc/install
3212# IRIX /sbin/install
3213# AIX /bin/install
3214# AmigaOS /C/install, which installs bootblocks on floppy discs
3215# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3216# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3217# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3218# OS/2's system install, which has a completely different semantic
3219# ./install, which can be erroneously created by make from ./install.sh.
3220# Reject install programs that cannot install multiple files.
3221{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3222printf %s "checking for a BSD-compatible install... " >&6; }
3223if test -z "$INSTALL"; then
3224if test ${ac_cv_path_install+y}
3225then :
3226  printf %s "(cached) " >&6
3227else $as_nop
3228  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229for as_dir in $PATH
3230do
3231  IFS=$as_save_IFS
3232  case $as_dir in #(((
3233    '') as_dir=./ ;;
3234    */) ;;
3235    *) as_dir=$as_dir/ ;;
3236  esac
3237    # Account for fact that we put trailing slashes in our PATH walk.
3238case $as_dir in #((
3239  ./ | /[cC]/* | \
3240  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3241  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3242  /usr/ucb/* ) ;;
3243  *)
3244    # OSF1 and SCO ODT 3.0 have their own names for install.
3245    # Don't use installbsd from OSF since it installs stuff as root
3246    # by default.
3247    for ac_prog in ginstall scoinst install; do
3248      for ac_exec_ext in '' $ac_executable_extensions; do
3249	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3250	  if test $ac_prog = install &&
3251	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3252	    # AIX install.  It has an incompatible calling convention.
3253	    :
3254	  elif test $ac_prog = install &&
3255	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3256	    # program-specific install script used by HP pwplus--don't use.
3257	    :
3258	  else
3259	    rm -rf conftest.one conftest.two conftest.dir
3260	    echo one > conftest.one
3261	    echo two > conftest.two
3262	    mkdir conftest.dir
3263	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3264	      test -s conftest.one && test -s conftest.two &&
3265	      test -s conftest.dir/conftest.one &&
3266	      test -s conftest.dir/conftest.two
3267	    then
3268	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3269	      break 3
3270	    fi
3271	  fi
3272	fi
3273      done
3274    done
3275    ;;
3276esac
3277
3278  done
3279IFS=$as_save_IFS
3280
3281rm -rf conftest.one conftest.two conftest.dir
3282
3283fi
3284  if test ${ac_cv_path_install+y}; then
3285    INSTALL=$ac_cv_path_install
3286  else
3287    # As a last resort, use the slow shell script.  Don't cache a
3288    # value for INSTALL within a source directory, because that will
3289    # break other packages using the cache if that directory is
3290    # removed, or if the value is a relative name.
3291    INSTALL=$ac_install_sh
3292  fi
3293fi
3294{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3295printf "%s\n" "$INSTALL" >&6; }
3296
3297# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3298# It thinks the first close brace ends the variable substitution.
3299test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3300
3301test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3302
3303test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3304
3305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3306printf %s "checking whether build environment is sane... " >&6; }
3307# Reject unsafe characters in $srcdir or the absolute working directory
3308# name.  Accept space and tab only in the latter.
3309am_lf='
3310'
3311case `pwd` in
3312  *[\\\"\#\$\&\'\`$am_lf]*)
3313    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3314esac
3315case $srcdir in
3316  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3317    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3318esac
3319
3320# Do 'set' in a subshell so we don't clobber the current shell's
3321# arguments.  Must try -L first in case configure is actually a
3322# symlink; some systems play weird games with the mod time of symlinks
3323# (eg FreeBSD returns the mod time of the symlink's containing
3324# directory).
3325if (
3326   am_has_slept=no
3327   for am_try in 1 2; do
3328     echo "timestamp, slept: $am_has_slept" > conftest.file
3329     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3330     if test "$*" = "X"; then
3331	# -L didn't work.
3332	set X `ls -t "$srcdir/configure" conftest.file`
3333     fi
3334     if test "$*" != "X $srcdir/configure conftest.file" \
3335	&& test "$*" != "X conftest.file $srcdir/configure"; then
3336
3337	# If neither matched, then we have a broken ls.  This can happen
3338	# if, for instance, CONFIG_SHELL is bash and it inherits a
3339	# broken ls alias from the environment.  This has actually
3340	# happened.  Such a system could not be considered "sane".
3341	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3342  alias in your environment" "$LINENO" 5
3343     fi
3344     if test "$2" = conftest.file || test $am_try -eq 2; then
3345       break
3346     fi
3347     # Just in case.
3348     sleep 1
3349     am_has_slept=yes
3350   done
3351   test "$2" = conftest.file
3352   )
3353then
3354   # Ok.
3355   :
3356else
3357   as_fn_error $? "newly created file is older than distributed files!
3358Check your system clock" "$LINENO" 5
3359fi
3360{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3361printf "%s\n" "yes" >&6; }
3362# If we didn't sleep, we still need to ensure time stamps of config.status and
3363# generated files are strictly newer.
3364am_sleep_pid=
3365if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3366  ( sleep 1 ) &
3367  am_sleep_pid=$!
3368fi
3369
3370rm -f conftest.file
3371
3372test "$program_prefix" != NONE &&
3373  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3374# Use a double $ so make ignores it.
3375test "$program_suffix" != NONE &&
3376  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3377# Double any \ or $.
3378# By default was `s,x,x', remove it if useless.
3379ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3380program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3381
3382
3383# Expand $ac_aux_dir to an absolute path.
3384am_aux_dir=`cd "$ac_aux_dir" && pwd`
3385
3386
3387  if test x"${MISSING+set}" != xset; then
3388  MISSING="\${SHELL} '$am_aux_dir/missing'"
3389fi
3390# Use eval to expand $SHELL
3391if eval "$MISSING --is-lightweight"; then
3392  am_missing_run="$MISSING "
3393else
3394  am_missing_run=
3395  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3396printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3397fi
3398
3399if test x"${install_sh+set}" != xset; then
3400  case $am_aux_dir in
3401  *\ * | *\	*)
3402    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3403  *)
3404    install_sh="\${SHELL} $am_aux_dir/install-sh"
3405  esac
3406fi
3407
3408# Installed binaries are usually stripped using 'strip' when the user
3409# run "make install-strip".  However 'strip' might not be the right
3410# tool to use in cross-compilation environments, therefore Automake
3411# will honor the 'STRIP' environment variable to overrule this program.
3412if test "$cross_compiling" != no; then
3413  if test -n "$ac_tool_prefix"; then
3414  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3415set dummy ${ac_tool_prefix}strip; ac_word=$2
3416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417printf %s "checking for $ac_word... " >&6; }
3418if test ${ac_cv_prog_STRIP+y}
3419then :
3420  printf %s "(cached) " >&6
3421else $as_nop
3422  if test -n "$STRIP"; then
3423  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3424else
3425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3426for as_dir in $PATH
3427do
3428  IFS=$as_save_IFS
3429  case $as_dir in #(((
3430    '') as_dir=./ ;;
3431    */) ;;
3432    *) as_dir=$as_dir/ ;;
3433  esac
3434    for ac_exec_ext in '' $ac_executable_extensions; do
3435  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3436    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3437    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3438    break 2
3439  fi
3440done
3441  done
3442IFS=$as_save_IFS
3443
3444fi
3445fi
3446STRIP=$ac_cv_prog_STRIP
3447if test -n "$STRIP"; then
3448  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3449printf "%s\n" "$STRIP" >&6; }
3450else
3451  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452printf "%s\n" "no" >&6; }
3453fi
3454
3455
3456fi
3457if test -z "$ac_cv_prog_STRIP"; then
3458  ac_ct_STRIP=$STRIP
3459  # Extract the first word of "strip", so it can be a program name with args.
3460set dummy strip; ac_word=$2
3461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462printf %s "checking for $ac_word... " >&6; }
3463if test ${ac_cv_prog_ac_ct_STRIP+y}
3464then :
3465  printf %s "(cached) " >&6
3466else $as_nop
3467  if test -n "$ac_ct_STRIP"; then
3468  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3469else
3470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471for as_dir in $PATH
3472do
3473  IFS=$as_save_IFS
3474  case $as_dir in #(((
3475    '') as_dir=./ ;;
3476    */) ;;
3477    *) as_dir=$as_dir/ ;;
3478  esac
3479    for ac_exec_ext in '' $ac_executable_extensions; do
3480  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3481    ac_cv_prog_ac_ct_STRIP="strip"
3482    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3483    break 2
3484  fi
3485done
3486  done
3487IFS=$as_save_IFS
3488
3489fi
3490fi
3491ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3492if test -n "$ac_ct_STRIP"; then
3493  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3494printf "%s\n" "$ac_ct_STRIP" >&6; }
3495else
3496  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497printf "%s\n" "no" >&6; }
3498fi
3499
3500  if test "x$ac_ct_STRIP" = x; then
3501    STRIP=":"
3502  else
3503    case $cross_compiling:$ac_tool_warned in
3504yes:)
3505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3506printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3507ac_tool_warned=yes ;;
3508esac
3509    STRIP=$ac_ct_STRIP
3510  fi
3511else
3512  STRIP="$ac_cv_prog_STRIP"
3513fi
3514
3515fi
3516INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3517
3518
3519  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3520printf %s "checking for a race-free mkdir -p... " >&6; }
3521if test -z "$MKDIR_P"; then
3522  if test ${ac_cv_path_mkdir+y}
3523then :
3524  printf %s "(cached) " >&6
3525else $as_nop
3526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3528do
3529  IFS=$as_save_IFS
3530  case $as_dir in #(((
3531    '') as_dir=./ ;;
3532    */) ;;
3533    *) as_dir=$as_dir/ ;;
3534  esac
3535    for ac_prog in mkdir gmkdir; do
3536	 for ac_exec_ext in '' $ac_executable_extensions; do
3537	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3538	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3539	     'mkdir ('*'coreutils) '* | \
3540	     'BusyBox '* | \
3541	     'mkdir (fileutils) '4.1*)
3542	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3543	       break 3;;
3544	   esac
3545	 done
3546       done
3547  done
3548IFS=$as_save_IFS
3549
3550fi
3551
3552  test -d ./--version && rmdir ./--version
3553  if test ${ac_cv_path_mkdir+y}; then
3554    MKDIR_P="$ac_cv_path_mkdir -p"
3555  else
3556    # As a last resort, use the slow shell script.  Don't cache a
3557    # value for MKDIR_P within a source directory, because that will
3558    # break other packages using the cache if that directory is
3559    # removed, or if the value is a relative name.
3560    MKDIR_P="$ac_install_sh -d"
3561  fi
3562fi
3563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3564printf "%s\n" "$MKDIR_P" >&6; }
3565
3566for ac_prog in gawk mawk nawk awk
3567do
3568  # Extract the first word of "$ac_prog", so it can be a program name with args.
3569set dummy $ac_prog; ac_word=$2
3570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571printf %s "checking for $ac_word... " >&6; }
3572if test ${ac_cv_prog_AWK+y}
3573then :
3574  printf %s "(cached) " >&6
3575else $as_nop
3576  if test -n "$AWK"; then
3577  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3578else
3579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580for as_dir in $PATH
3581do
3582  IFS=$as_save_IFS
3583  case $as_dir in #(((
3584    '') as_dir=./ ;;
3585    */) ;;
3586    *) as_dir=$as_dir/ ;;
3587  esac
3588    for ac_exec_ext in '' $ac_executable_extensions; do
3589  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3590    ac_cv_prog_AWK="$ac_prog"
3591    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3592    break 2
3593  fi
3594done
3595  done
3596IFS=$as_save_IFS
3597
3598fi
3599fi
3600AWK=$ac_cv_prog_AWK
3601if test -n "$AWK"; then
3602  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3603printf "%s\n" "$AWK" >&6; }
3604else
3605  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606printf "%s\n" "no" >&6; }
3607fi
3608
3609
3610  test -n "$AWK" && break
3611done
3612
3613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3614printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3615set x ${MAKE-make}
3616ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3617if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3618then :
3619  printf %s "(cached) " >&6
3620else $as_nop
3621  cat >conftest.make <<\_ACEOF
3622SHELL = /bin/sh
3623all:
3624	@echo '@@@%%%=$(MAKE)=@@@%%%'
3625_ACEOF
3626# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3627case `${MAKE-make} -f conftest.make 2>/dev/null` in
3628  *@@@%%%=?*=@@@%%%*)
3629    eval ac_cv_prog_make_${ac_make}_set=yes;;
3630  *)
3631    eval ac_cv_prog_make_${ac_make}_set=no;;
3632esac
3633rm -f conftest.make
3634fi
3635if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3636  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3637printf "%s\n" "yes" >&6; }
3638  SET_MAKE=
3639else
3640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641printf "%s\n" "no" >&6; }
3642  SET_MAKE="MAKE=${MAKE-make}"
3643fi
3644
3645rm -rf .tst 2>/dev/null
3646mkdir .tst 2>/dev/null
3647if test -d .tst; then
3648  am__leading_dot=.
3649else
3650  am__leading_dot=_
3651fi
3652rmdir .tst 2>/dev/null
3653
3654# Check whether --enable-silent-rules was given.
3655if test ${enable_silent_rules+y}
3656then :
3657  enableval=$enable_silent_rules;
3658fi
3659
3660case $enable_silent_rules in # (((
3661  yes) AM_DEFAULT_VERBOSITY=0;;
3662   no) AM_DEFAULT_VERBOSITY=1;;
3663    *) AM_DEFAULT_VERBOSITY=1;;
3664esac
3665am_make=${MAKE-make}
3666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3667printf %s "checking whether $am_make supports nested variables... " >&6; }
3668if test ${am_cv_make_support_nested_variables+y}
3669then :
3670  printf %s "(cached) " >&6
3671else $as_nop
3672  if printf "%s\n" 'TRUE=$(BAR$(V))
3673BAR0=false
3674BAR1=true
3675V=1
3676am__doit:
3677	@$(TRUE)
3678.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3679  am_cv_make_support_nested_variables=yes
3680else
3681  am_cv_make_support_nested_variables=no
3682fi
3683fi
3684{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3685printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3686if test $am_cv_make_support_nested_variables = yes; then
3687    AM_V='$(V)'
3688  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3689else
3690  AM_V=$AM_DEFAULT_VERBOSITY
3691  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3692fi
3693AM_BACKSLASH='\'
3694
3695if test "`cd $srcdir && pwd`" != "`pwd`"; then
3696  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3697  # is not polluted with repeated "-I."
3698  am__isrc=' -I$(srcdir)'
3699  # test to see if srcdir already configured
3700  if test -f $srcdir/config.status; then
3701    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3702  fi
3703fi
3704
3705# test whether we have cygpath
3706if test -z "$CYGPATH_W"; then
3707  if (cygpath --version) >/dev/null 2>/dev/null; then
3708    CYGPATH_W='cygpath -w'
3709  else
3710    CYGPATH_W=echo
3711  fi
3712fi
3713
3714
3715# Define the identity of the package.
3716 PACKAGE='qd'
3717 VERSION='2.3.23'
3718
3719
3720printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3721
3722
3723printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3724
3725# Some tools Automake needs.
3726
3727ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3728
3729
3730AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3731
3732
3733AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3734
3735
3736AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3737
3738
3739MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3740
3741# For better backward compatibility.  To be removed once Automake 1.9.x
3742# dies out for good.  For more background, see:
3743# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3744# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3745mkdir_p='$(MKDIR_P)'
3746
3747# We need awk for the "check" target (and possibly the TAP driver).  The
3748# system "awk" is bad on some platforms.
3749# Always define AMTAR for backward compatibility.  Yes, it's still used
3750# in the wild :-(  We should find a proper way to deprecate it ...
3751AMTAR='$${TAR-tar}'
3752
3753
3754# We'll loop over all known methods to create a tar archive until one works.
3755_am_tools='gnutar plaintar pax cpio none'
3756
3757# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3758      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3759      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3760      # and bug#13588).
3761      am_max_uid=2097151 # 2^21 - 1
3762      am_max_gid=$am_max_uid
3763      # The $UID and $GID variables are not portable, so we need to resort
3764      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3765      # below are definitely unexpected, so allow the users to see them
3766      # (that is, avoid stderr redirection).
3767      am_uid=`id -u || echo unknown`
3768      am_gid=`id -g || echo unknown`
3769      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3770printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3771      if test $am_uid -le $am_max_uid; then
3772         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3773printf "%s\n" "yes" >&6; }
3774      else
3775         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776printf "%s\n" "no" >&6; }
3777         _am_tools=none
3778      fi
3779      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3780printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3781      if test $am_gid -le $am_max_gid; then
3782         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3783printf "%s\n" "yes" >&6; }
3784      else
3785        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786printf "%s\n" "no" >&6; }
3787        _am_tools=none
3788      fi
3789
3790  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3791printf %s "checking how to create a ustar tar archive... " >&6; }
3792
3793  # Go ahead even if we have the value already cached.  We do so because we
3794  # need to set the values for the 'am__tar' and 'am__untar' variables.
3795  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3796
3797  for _am_tool in $_am_tools; do
3798    case $_am_tool in
3799    gnutar)
3800      for _am_tar in tar gnutar gtar; do
3801        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3802   ($_am_tar --version) >&5 2>&5
3803   ac_status=$?
3804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805   (exit $ac_status); } && break
3806      done
3807      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3808      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3809      am__untar="$_am_tar -xf -"
3810      ;;
3811    plaintar)
3812      # Must skip GNU tar: if it does not support --format= it doesn't create
3813      # ustar tarball either.
3814      (tar --version) >/dev/null 2>&1 && continue
3815      am__tar='tar chf - "$$tardir"'
3816      am__tar_='tar chf - "$tardir"'
3817      am__untar='tar xf -'
3818      ;;
3819    pax)
3820      am__tar='pax -L -x ustar -w "$$tardir"'
3821      am__tar_='pax -L -x ustar -w "$tardir"'
3822      am__untar='pax -r'
3823      ;;
3824    cpio)
3825      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3826      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3827      am__untar='cpio -i -H ustar -d'
3828      ;;
3829    none)
3830      am__tar=false
3831      am__tar_=false
3832      am__untar=false
3833      ;;
3834    esac
3835
3836    # If the value was cached, stop now.  We just wanted to have am__tar
3837    # and am__untar set.
3838    test -n "${am_cv_prog_tar_ustar}" && break
3839
3840    # tar/untar a dummy directory, and stop if the command works.
3841    rm -rf conftest.dir
3842    mkdir conftest.dir
3843    echo GrepMe > conftest.dir/file
3844    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3845   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3846   ac_status=$?
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); }
3849    rm -rf conftest.dir
3850    if test -s conftest.tar; then
3851      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3852   ($am__untar <conftest.tar) >&5 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }
3856      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3857   (cat conftest.dir/file) >&5 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }
3861      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3862    fi
3863  done
3864  rm -rf conftest.dir
3865
3866  if test ${am_cv_prog_tar_ustar+y}
3867then :
3868  printf %s "(cached) " >&6
3869else $as_nop
3870  am_cv_prog_tar_ustar=$_am_tool
3871fi
3872
3873  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3874printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
3875
3876
3877
3878
3879
3880
3881# POSIX will say in a future version that running "rm -f" with no argument
3882# is OK; and we want to be able to make that assumption in our Makefile
3883# recipes.  So use an aggressive probe to check that the usage we want is
3884# actually supported "in the wild" to an acceptable degree.
3885# See automake bug#10828.
3886# To make any issue more visible, cause the running configure to be aborted
3887# by default if the 'rm' program in use doesn't match our expectations; the
3888# user can still override this though.
3889if rm -f && rm -fr && rm -rf; then : OK; else
3890  cat >&2 <<'END'
3891Oops!
3892
3893Your 'rm' program seems unable to run without file operands specified
3894on the command line, even when the '-f' option is present.  This is contrary
3895to the behaviour of most rm programs out there, and not conforming with
3896the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3897
3898Please tell bug-automake@gnu.org about your system, including the value
3899of your $PATH and any error possibly output before this message.  This
3900can help us improve future automake versions.
3901
3902END
3903  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3904    echo 'Configuration will proceed anyway, since you have set the' >&2
3905    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3906    echo >&2
3907  else
3908    cat >&2 <<'END'
3909Aborting the configuration process, to ensure you take notice of the issue.
3910
3911You can download and install GNU coreutils to get an 'rm' implementation
3912that behaves properly: <https://www.gnu.org/software/coreutils/>.
3913
3914If you want to complete the configuration process using your problematic
3915'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3916to "yes", and re-run configure.
3917
3918END
3919    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3920  fi
3921fi
3922
3923ac_config_headers="$ac_config_headers config.h"
3924
3925ac_config_headers="$ac_config_headers include/qd/qd_config.h"
3926
3927
3928
3929
3930  # Make sure we can run config.sub.
3931$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3932  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3933
3934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3935printf %s "checking build system type... " >&6; }
3936if test ${ac_cv_build+y}
3937then :
3938  printf %s "(cached) " >&6
3939else $as_nop
3940  ac_build_alias=$build_alias
3941test "x$ac_build_alias" = x &&
3942  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3943test "x$ac_build_alias" = x &&
3944  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3945ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3946  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3947
3948fi
3949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3950printf "%s\n" "$ac_cv_build" >&6; }
3951case $ac_cv_build in
3952*-*-*) ;;
3953*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3954esac
3955build=$ac_cv_build
3956ac_save_IFS=$IFS; IFS='-'
3957set x $ac_cv_build
3958shift
3959build_cpu=$1
3960build_vendor=$2
3961shift; shift
3962# Remember, the first character of IFS is used to create $*,
3963# except with old shells:
3964build_os=$*
3965IFS=$ac_save_IFS
3966case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3967
3968
3969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3970printf %s "checking host system type... " >&6; }
3971if test ${ac_cv_host+y}
3972then :
3973  printf %s "(cached) " >&6
3974else $as_nop
3975  if test "x$host_alias" = x; then
3976  ac_cv_host=$ac_cv_build
3977else
3978  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3979    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3980fi
3981
3982fi
3983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3984printf "%s\n" "$ac_cv_host" >&6; }
3985case $ac_cv_host in
3986*-*-*) ;;
3987*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3988esac
3989host=$ac_cv_host
3990ac_save_IFS=$IFS; IFS='-'
3991set x $ac_cv_host
3992shift
3993host_cpu=$1
3994host_vendor=$2
3995shift; shift
3996# Remember, the first character of IFS is used to create $*,
3997# except with old shells:
3998host_os=$*
3999IFS=$ac_save_IFS
4000case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4001
4002
4003
4004# Checks for arguments
4005# --enable-inline
4006# Check whether --enable-inline was given.
4007if test ${enable_inline+y}
4008then :
4009  enableval=$enable_inline;
4010fi
4011
4012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if commonly used function is to be inlined" >&5
4013printf %s "checking if commonly used function is to be inlined... " >&6; }
4014if test "$enable_inline" != "no"; then
4015  enable_inline="yes"
4016
4017printf "%s\n" "#define QD_INLINE 1" >>confdefs.h
4018
4019fi
4020{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_inline" >&5
4021printf "%s\n" "$enable_inline" >&6; }
4022
4023# --enable-ieee-add
4024# Check whether --enable-ieee-add was given.
4025if test ${enable_ieee_add+y}
4026then :
4027  enableval=$enable_ieee_add;
4028fi
4029
4030{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if addition with IEEE-style error bound is to be used" >&5
4031printf %s "checking if addition with IEEE-style error bound is to be used... " >&6; }
4032if test "$enable_ieee_add" = "yes"; then
4033
4034printf "%s\n" "#define QD_IEEE_ADD 1" >>confdefs.h
4035
4036else
4037  enable_ieee_add="no"
4038fi
4039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_ieee_add" >&5
4040printf "%s\n" "$enable_ieee_add" >&6; }
4041
4042# --enable-sloppy-mul
4043# Check whether --enable-sloppy-mul was given.
4044if test ${enable_sloppy_mul+y}
4045then :
4046  enableval=$enable_sloppy_mul;
4047fi
4048
4049{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sloppy multiplication is to be used" >&5
4050printf %s "checking if sloppy multiplication is to be used... " >&6; }
4051if test "$enable_sloppy_mul" != "no"; then
4052  enable_sloppy_mul="yes"
4053
4054printf "%s\n" "#define QD_SLOPPY_MUL 1" >>confdefs.h
4055
4056fi
4057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_sloppy_mul" >&5
4058printf "%s\n" "$enable_sloppy_mul" >&6; }
4059
4060# --enable-sloppy-div
4061# Check whether --enable-sloppy-div was given.
4062if test ${enable_sloppy_div+y}
4063then :
4064  enableval=$enable_sloppy_div;
4065fi
4066
4067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sloppy division is to be used" >&5
4068printf %s "checking if sloppy division is to be used... " >&6; }
4069if test "$enable_sloppy_div" != "no"; then
4070  enable_sloppy_div="yes"
4071
4072printf "%s\n" "#define QD_SLOPPY_DIV 1" >>confdefs.h
4073
4074fi
4075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_sloppy_div" >&5
4076printf "%s\n" "$enable_sloppy_div" >&6; }
4077
4078
4079# Checks for programs.
4080ac_ext=cpp
4081ac_cpp='$CXXCPP $CPPFLAGS'
4082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4085
4086
4087
4088
4089
4090
4091
4092ac_ext=cpp
4093ac_cpp='$CXXCPP $CPPFLAGS'
4094ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4097if test -z "$CXX"; then
4098  if test -n "$CCC"; then
4099    CXX=$CCC
4100  else
4101    if test -n "$ac_tool_prefix"; then
4102  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4103  do
4104    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4105set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4107printf %s "checking for $ac_word... " >&6; }
4108if test ${ac_cv_prog_CXX+y}
4109then :
4110  printf %s "(cached) " >&6
4111else $as_nop
4112  if test -n "$CXX"; then
4113  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4114else
4115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116for as_dir in $PATH
4117do
4118  IFS=$as_save_IFS
4119  case $as_dir in #(((
4120    '') as_dir=./ ;;
4121    */) ;;
4122    *) as_dir=$as_dir/ ;;
4123  esac
4124    for ac_exec_ext in '' $ac_executable_extensions; do
4125  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4126    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4127    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4128    break 2
4129  fi
4130done
4131  done
4132IFS=$as_save_IFS
4133
4134fi
4135fi
4136CXX=$ac_cv_prog_CXX
4137if test -n "$CXX"; then
4138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4139printf "%s\n" "$CXX" >&6; }
4140else
4141  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142printf "%s\n" "no" >&6; }
4143fi
4144
4145
4146    test -n "$CXX" && break
4147  done
4148fi
4149if test -z "$CXX"; then
4150  ac_ct_CXX=$CXX
4151  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4152do
4153  # Extract the first word of "$ac_prog", so it can be a program name with args.
4154set dummy $ac_prog; ac_word=$2
4155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156printf %s "checking for $ac_word... " >&6; }
4157if test ${ac_cv_prog_ac_ct_CXX+y}
4158then :
4159  printf %s "(cached) " >&6
4160else $as_nop
4161  if test -n "$ac_ct_CXX"; then
4162  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4163else
4164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165for as_dir in $PATH
4166do
4167  IFS=$as_save_IFS
4168  case $as_dir in #(((
4169    '') as_dir=./ ;;
4170    */) ;;
4171    *) as_dir=$as_dir/ ;;
4172  esac
4173    for ac_exec_ext in '' $ac_executable_extensions; do
4174  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4175    ac_cv_prog_ac_ct_CXX="$ac_prog"
4176    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4177    break 2
4178  fi
4179done
4180  done
4181IFS=$as_save_IFS
4182
4183fi
4184fi
4185ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4186if test -n "$ac_ct_CXX"; then
4187  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4188printf "%s\n" "$ac_ct_CXX" >&6; }
4189else
4190  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191printf "%s\n" "no" >&6; }
4192fi
4193
4194
4195  test -n "$ac_ct_CXX" && break
4196done
4197
4198  if test "x$ac_ct_CXX" = x; then
4199    CXX="g++"
4200  else
4201    case $cross_compiling:$ac_tool_warned in
4202yes:)
4203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205ac_tool_warned=yes ;;
4206esac
4207    CXX=$ac_ct_CXX
4208  fi
4209fi
4210
4211  fi
4212fi
4213# Provide some information about the compiler.
4214printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4215set X $ac_compile
4216ac_compiler=$2
4217for ac_option in --version -v -V -qversion; do
4218  { { ac_try="$ac_compiler $ac_option >&5"
4219case "(($ac_try" in
4220  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221  *) ac_try_echo=$ac_try;;
4222esac
4223eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224printf "%s\n" "$ac_try_echo"; } >&5
4225  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4226  ac_status=$?
4227  if test -s conftest.err; then
4228    sed '10a\
4229... rest of stderr output deleted ...
4230         10q' conftest.err >conftest.er1
4231    cat conftest.er1 >&5
4232  fi
4233  rm -f conftest.er1 conftest.err
4234  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235  test $ac_status = 0; }
4236done
4237
4238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h.  */
4240
4241int
4242main (void)
4243{
4244
4245  ;
4246  return 0;
4247}
4248_ACEOF
4249ac_clean_files_save=$ac_clean_files
4250ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4251# Try to create an executable without -o first, disregard a.out.
4252# It will help us diagnose broken compilers, and finding out an intuition
4253# of exeext.
4254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
4255printf %s "checking whether the C++ compiler works... " >&6; }
4256ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4257
4258# The possible output files:
4259ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4260
4261ac_rmfiles=
4262for ac_file in $ac_files
4263do
4264  case $ac_file in
4265    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4266    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4267  esac
4268done
4269rm -f $ac_rmfiles
4270
4271if { { ac_try="$ac_link_default"
4272case "(($ac_try" in
4273  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274  *) ac_try_echo=$ac_try;;
4275esac
4276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4277printf "%s\n" "$ac_try_echo"; } >&5
4278  (eval "$ac_link_default") 2>&5
4279  ac_status=$?
4280  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4281  test $ac_status = 0; }
4282then :
4283  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4284# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4285# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4286# so that the user can short-circuit this test for compilers unknown to
4287# Autoconf.
4288for ac_file in $ac_files ''
4289do
4290  test -f "$ac_file" || continue
4291  case $ac_file in
4292    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4293	;;
4294    [ab].out )
4295	# We found the default executable, but exeext='' is most
4296	# certainly right.
4297	break;;
4298    *.* )
4299	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4300	then :; else
4301	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4302	fi
4303	# We set ac_cv_exeext here because the later test for it is not
4304	# safe: cross compilers may not add the suffix if given an `-o'
4305	# argument, so we may need to know it at that point already.
4306	# Even if this section looks crufty: it has the advantage of
4307	# actually working.
4308	break;;
4309    * )
4310	break;;
4311  esac
4312done
4313test "$ac_cv_exeext" = no && ac_cv_exeext=
4314
4315else $as_nop
4316  ac_file=''
4317fi
4318if test -z "$ac_file"
4319then :
4320  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321printf "%s\n" "no" >&6; }
4322printf "%s\n" "$as_me: failed program was:" >&5
4323sed 's/^/| /' conftest.$ac_ext >&5
4324
4325{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4326printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4327as_fn_error 77 "C++ compiler cannot create executables
4328See \`config.log' for more details" "$LINENO" 5; }
4329else $as_nop
4330  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4331printf "%s\n" "yes" >&6; }
4332fi
4333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
4334printf %s "checking for C++ compiler default output file name... " >&6; }
4335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4336printf "%s\n" "$ac_file" >&6; }
4337ac_exeext=$ac_cv_exeext
4338
4339rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4340ac_clean_files=$ac_clean_files_save
4341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4342printf %s "checking for suffix of executables... " >&6; }
4343if { { ac_try="$ac_link"
4344case "(($ac_try" in
4345  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4346  *) ac_try_echo=$ac_try;;
4347esac
4348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4349printf "%s\n" "$ac_try_echo"; } >&5
4350  (eval "$ac_link") 2>&5
4351  ac_status=$?
4352  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4353  test $ac_status = 0; }
4354then :
4355  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4356# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4357# work properly (i.e., refer to `conftest.exe'), while it won't with
4358# `rm'.
4359for ac_file in conftest.exe conftest conftest.*; do
4360  test -f "$ac_file" || continue
4361  case $ac_file in
4362    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4363    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4364	  break;;
4365    * ) break;;
4366  esac
4367done
4368else $as_nop
4369  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4371as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4372See \`config.log' for more details" "$LINENO" 5; }
4373fi
4374rm -f conftest conftest$ac_cv_exeext
4375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4376printf "%s\n" "$ac_cv_exeext" >&6; }
4377
4378rm -f conftest.$ac_ext
4379EXEEXT=$ac_cv_exeext
4380ac_exeext=$EXEEXT
4381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382/* end confdefs.h.  */
4383#include <stdio.h>
4384int
4385main (void)
4386{
4387FILE *f = fopen ("conftest.out", "w");
4388 return ferror (f) || fclose (f) != 0;
4389
4390  ;
4391  return 0;
4392}
4393_ACEOF
4394ac_clean_files="$ac_clean_files conftest.out"
4395# Check that the compiler produces executables we can run.  If not, either
4396# the compiler is broken, or we cross compile.
4397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4398printf %s "checking whether we are cross compiling... " >&6; }
4399if test "$cross_compiling" != yes; then
4400  { { ac_try="$ac_link"
4401case "(($ac_try" in
4402  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403  *) ac_try_echo=$ac_try;;
4404esac
4405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4406printf "%s\n" "$ac_try_echo"; } >&5
4407  (eval "$ac_link") 2>&5
4408  ac_status=$?
4409  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4410  test $ac_status = 0; }
4411  if { ac_try='./conftest$ac_cv_exeext'
4412  { { case "(($ac_try" in
4413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414  *) ac_try_echo=$ac_try;;
4415esac
4416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417printf "%s\n" "$ac_try_echo"; } >&5
4418  (eval "$ac_try") 2>&5
4419  ac_status=$?
4420  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421  test $ac_status = 0; }; }; then
4422    cross_compiling=no
4423  else
4424    if test "$cross_compiling" = maybe; then
4425	cross_compiling=yes
4426    else
4427	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4428printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4429as_fn_error 77 "cannot run C++ compiled programs.
4430If you meant to cross compile, use \`--host'.
4431See \`config.log' for more details" "$LINENO" 5; }
4432    fi
4433  fi
4434fi
4435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4436printf "%s\n" "$cross_compiling" >&6; }
4437
4438rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4439ac_clean_files=$ac_clean_files_save
4440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4441printf %s "checking for suffix of object files... " >&6; }
4442if test ${ac_cv_objext+y}
4443then :
4444  printf %s "(cached) " >&6
4445else $as_nop
4446  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447/* end confdefs.h.  */
4448
4449int
4450main (void)
4451{
4452
4453  ;
4454  return 0;
4455}
4456_ACEOF
4457rm -f conftest.o conftest.obj
4458if { { ac_try="$ac_compile"
4459case "(($ac_try" in
4460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4461  *) ac_try_echo=$ac_try;;
4462esac
4463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4464printf "%s\n" "$ac_try_echo"; } >&5
4465  (eval "$ac_compile") 2>&5
4466  ac_status=$?
4467  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4468  test $ac_status = 0; }
4469then :
4470  for ac_file in conftest.o conftest.obj conftest.*; do
4471  test -f "$ac_file" || continue;
4472  case $ac_file in
4473    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4474    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4475       break;;
4476  esac
4477done
4478else $as_nop
4479  printf "%s\n" "$as_me: failed program was:" >&5
4480sed 's/^/| /' conftest.$ac_ext >&5
4481
4482{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4483printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4484as_fn_error $? "cannot compute suffix of object files: cannot compile
4485See \`config.log' for more details" "$LINENO" 5; }
4486fi
4487rm -f conftest.$ac_cv_objext conftest.$ac_ext
4488fi
4489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4490printf "%s\n" "$ac_cv_objext" >&6; }
4491OBJEXT=$ac_cv_objext
4492ac_objext=$OBJEXT
4493{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4494printf %s "checking whether the compiler supports GNU C++... " >&6; }
4495if test ${ac_cv_cxx_compiler_gnu+y}
4496then :
4497  printf %s "(cached) " >&6
4498else $as_nop
4499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h.  */
4501
4502int
4503main (void)
4504{
4505#ifndef __GNUC__
4506       choke me
4507#endif
4508
4509  ;
4510  return 0;
4511}
4512_ACEOF
4513if ac_fn_cxx_try_compile "$LINENO"
4514then :
4515  ac_compiler_gnu=yes
4516else $as_nop
4517  ac_compiler_gnu=no
4518fi
4519rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4520ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4521
4522fi
4523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4524printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4525ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4526
4527if test $ac_compiler_gnu = yes; then
4528  GXX=yes
4529else
4530  GXX=
4531fi
4532ac_test_CXXFLAGS=${CXXFLAGS+y}
4533ac_save_CXXFLAGS=$CXXFLAGS
4534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4535printf %s "checking whether $CXX accepts -g... " >&6; }
4536if test ${ac_cv_prog_cxx_g+y}
4537then :
4538  printf %s "(cached) " >&6
4539else $as_nop
4540  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4541   ac_cxx_werror_flag=yes
4542   ac_cv_prog_cxx_g=no
4543   CXXFLAGS="-g"
4544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545/* end confdefs.h.  */
4546
4547int
4548main (void)
4549{
4550
4551  ;
4552  return 0;
4553}
4554_ACEOF
4555if ac_fn_cxx_try_compile "$LINENO"
4556then :
4557  ac_cv_prog_cxx_g=yes
4558else $as_nop
4559  CXXFLAGS=""
4560      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561/* end confdefs.h.  */
4562
4563int
4564main (void)
4565{
4566
4567  ;
4568  return 0;
4569}
4570_ACEOF
4571if ac_fn_cxx_try_compile "$LINENO"
4572then :
4573
4574else $as_nop
4575  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4576	 CXXFLAGS="-g"
4577	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578/* end confdefs.h.  */
4579
4580int
4581main (void)
4582{
4583
4584  ;
4585  return 0;
4586}
4587_ACEOF
4588if ac_fn_cxx_try_compile "$LINENO"
4589then :
4590  ac_cv_prog_cxx_g=yes
4591fi
4592rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4593fi
4594rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4595fi
4596rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4597   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4598fi
4599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4600printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4601if test $ac_test_CXXFLAGS; then
4602  CXXFLAGS=$ac_save_CXXFLAGS
4603elif test $ac_cv_prog_cxx_g = yes; then
4604  if test "$GXX" = yes; then
4605    CXXFLAGS="-g -O2"
4606  else
4607    CXXFLAGS="-g"
4608  fi
4609else
4610  if test "$GXX" = yes; then
4611    CXXFLAGS="-O2"
4612  else
4613    CXXFLAGS=
4614  fi
4615fi
4616ac_prog_cxx_stdcxx=no
4617if test x$ac_prog_cxx_stdcxx = xno
4618then :
4619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4620printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4621if test ${ac_cv_prog_cxx_11+y}
4622then :
4623  printf %s "(cached) " >&6
4624else $as_nop
4625  ac_cv_prog_cxx_11=no
4626ac_save_CXX=$CXX
4627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h.  */
4629$ac_cxx_conftest_cxx11_program
4630_ACEOF
4631for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4632do
4633  CXX="$ac_save_CXX $ac_arg"
4634  if ac_fn_cxx_try_compile "$LINENO"
4635then :
4636  ac_cv_prog_cxx_cxx11=$ac_arg
4637fi
4638rm -f core conftest.err conftest.$ac_objext conftest.beam
4639  test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4640done
4641rm -f conftest.$ac_ext
4642CXX=$ac_save_CXX
4643fi
4644
4645if test "x$ac_cv_prog_cxx_cxx11" = xno
4646then :
4647  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4648printf "%s\n" "unsupported" >&6; }
4649else $as_nop
4650  if test "x$ac_cv_prog_cxx_cxx11" = x
4651then :
4652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4653printf "%s\n" "none needed" >&6; }
4654else $as_nop
4655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4656printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4657     CXX="$CXX $ac_cv_prog_cxx_cxx11"
4658fi
4659  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4660  ac_prog_cxx_stdcxx=cxx11
4661fi
4662fi
4663if test x$ac_prog_cxx_stdcxx = xno
4664then :
4665  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4666printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4667if test ${ac_cv_prog_cxx_98+y}
4668then :
4669  printf %s "(cached) " >&6
4670else $as_nop
4671  ac_cv_prog_cxx_98=no
4672ac_save_CXX=$CXX
4673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674/* end confdefs.h.  */
4675$ac_cxx_conftest_cxx98_program
4676_ACEOF
4677for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4678do
4679  CXX="$ac_save_CXX $ac_arg"
4680  if ac_fn_cxx_try_compile "$LINENO"
4681then :
4682  ac_cv_prog_cxx_cxx98=$ac_arg
4683fi
4684rm -f core conftest.err conftest.$ac_objext conftest.beam
4685  test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4686done
4687rm -f conftest.$ac_ext
4688CXX=$ac_save_CXX
4689fi
4690
4691if test "x$ac_cv_prog_cxx_cxx98" = xno
4692then :
4693  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4694printf "%s\n" "unsupported" >&6; }
4695else $as_nop
4696  if test "x$ac_cv_prog_cxx_cxx98" = x
4697then :
4698  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4699printf "%s\n" "none needed" >&6; }
4700else $as_nop
4701  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4702printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4703     CXX="$CXX $ac_cv_prog_cxx_cxx98"
4704fi
4705  ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4706  ac_prog_cxx_stdcxx=cxx98
4707fi
4708fi
4709
4710ac_ext=cpp
4711ac_cpp='$CXXCPP $CPPFLAGS'
4712ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4713ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4714ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4715DEPDIR="${am__leading_dot}deps"
4716
4717ac_config_commands="$ac_config_commands depfiles"
4718
4719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4720printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4721cat > confinc.mk << 'END'
4722am__doit:
4723	@echo this is the am__doit target >confinc.out
4724.PHONY: am__doit
4725END
4726am__include="#"
4727am__quote=
4728# BSD make does it like this.
4729echo '.include "confinc.mk" # ignored' > confmf.BSD
4730# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4731echo 'include confinc.mk # ignored' > confmf.GNU
4732_am_result=no
4733for s in GNU BSD; do
4734  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4735   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); }
4739  case $?:`cat confinc.out 2>/dev/null` in #(
4740  '0:this is the am__doit target') :
4741    case $s in #(
4742  BSD) :
4743    am__include='.include' am__quote='"' ;; #(
4744  *) :
4745    am__include='include' am__quote='' ;;
4746esac ;; #(
4747  *) :
4748     ;;
4749esac
4750  if test "$am__include" != "#"; then
4751    _am_result="yes ($s style)"
4752    break
4753  fi
4754done
4755rm -f confinc.* confmf.*
4756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4757printf "%s\n" "${_am_result}" >&6; }
4758
4759# Check whether --enable-dependency-tracking was given.
4760if test ${enable_dependency_tracking+y}
4761then :
4762  enableval=$enable_dependency_tracking;
4763fi
4764
4765if test "x$enable_dependency_tracking" != xno; then
4766  am_depcomp="$ac_aux_dir/depcomp"
4767  AMDEPBACKSLASH='\'
4768  am__nodep='_no'
4769fi
4770 if test "x$enable_dependency_tracking" != xno; then
4771  AMDEP_TRUE=
4772  AMDEP_FALSE='#'
4773else
4774  AMDEP_TRUE='#'
4775  AMDEP_FALSE=
4776fi
4777
4778
4779
4780depcc="$CXX"  am_compiler_list=
4781
4782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4783printf %s "checking dependency style of $depcc... " >&6; }
4784if test ${am_cv_CXX_dependencies_compiler_type+y}
4785then :
4786  printf %s "(cached) " >&6
4787else $as_nop
4788  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4789  # We make a subdir and do the tests there.  Otherwise we can end up
4790  # making bogus files that we don't know about and never remove.  For
4791  # instance it was reported that on HP-UX the gcc test will end up
4792  # making a dummy file named 'D' -- because '-MD' means "put the output
4793  # in D".
4794  rm -rf conftest.dir
4795  mkdir conftest.dir
4796  # Copy depcomp to subdir because otherwise we won't find it if we're
4797  # using a relative directory.
4798  cp "$am_depcomp" conftest.dir
4799  cd conftest.dir
4800  # We will build objects and dependencies in a subdirectory because
4801  # it helps to detect inapplicable dependency modes.  For instance
4802  # both Tru64's cc and ICC support -MD to output dependencies as a
4803  # side effect of compilation, but ICC will put the dependencies in
4804  # the current directory while Tru64 will put them in the object
4805  # directory.
4806  mkdir sub
4807
4808  am_cv_CXX_dependencies_compiler_type=none
4809  if test "$am_compiler_list" = ""; then
4810     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4811  fi
4812  am__universal=false
4813  case " $depcc " in #(
4814     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4815     esac
4816
4817  for depmode in $am_compiler_list; do
4818    # Setup a source with many dependencies, because some compilers
4819    # like to wrap large dependency lists on column 80 (with \), and
4820    # we should not choose a depcomp mode which is confused by this.
4821    #
4822    # We need to recreate these files for each test, as the compiler may
4823    # overwrite some of them when testing with obscure command lines.
4824    # This happens at least with the AIX C compiler.
4825    : > sub/conftest.c
4826    for i in 1 2 3 4 5 6; do
4827      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4828      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4829      # Solaris 10 /bin/sh.
4830      echo '/* dummy */' > sub/conftst$i.h
4831    done
4832    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4833
4834    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4835    # mode.  It turns out that the SunPro C++ compiler does not properly
4836    # handle '-M -o', and we need to detect this.  Also, some Intel
4837    # versions had trouble with output in subdirs.
4838    am__obj=sub/conftest.${OBJEXT-o}
4839    am__minus_obj="-o $am__obj"
4840    case $depmode in
4841    gcc)
4842      # This depmode causes a compiler race in universal mode.
4843      test "$am__universal" = false || continue
4844      ;;
4845    nosideeffect)
4846      # After this tag, mechanisms are not by side-effect, so they'll
4847      # only be used when explicitly requested.
4848      if test "x$enable_dependency_tracking" = xyes; then
4849	continue
4850      else
4851	break
4852      fi
4853      ;;
4854    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4855      # This compiler won't grok '-c -o', but also, the minuso test has
4856      # not run yet.  These depmodes are late enough in the game, and
4857      # so weak that their functioning should not be impacted.
4858      am__obj=conftest.${OBJEXT-o}
4859      am__minus_obj=
4860      ;;
4861    none) break ;;
4862    esac
4863    if depmode=$depmode \
4864       source=sub/conftest.c object=$am__obj \
4865       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4866       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4867         >/dev/null 2>conftest.err &&
4868       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4869       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4870       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4871       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4872      # icc doesn't choke on unknown options, it will just issue warnings
4873      # or remarks (even with -Werror).  So we grep stderr for any message
4874      # that says an option was ignored or not supported.
4875      # When given -MP, icc 7.0 and 7.1 complain thusly:
4876      #   icc: Command line warning: ignoring option '-M'; no argument required
4877      # The diagnosis changed in icc 8.0:
4878      #   icc: Command line remark: option '-MP' not supported
4879      if (grep 'ignoring option' conftest.err ||
4880          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4881        am_cv_CXX_dependencies_compiler_type=$depmode
4882        break
4883      fi
4884    fi
4885  done
4886
4887  cd ..
4888  rm -rf conftest.dir
4889else
4890  am_cv_CXX_dependencies_compiler_type=none
4891fi
4892
4893fi
4894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4895printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
4896CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4897
4898 if
4899  test "x$enable_dependency_tracking" != xno \
4900  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4901  am__fastdepCXX_TRUE=
4902  am__fastdepCXX_FALSE='#'
4903else
4904  am__fastdepCXX_TRUE='#'
4905  am__fastdepCXX_FALSE=
4906fi
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918ac_ext=c
4919ac_cpp='$CPP $CPPFLAGS'
4920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923if test -n "$ac_tool_prefix"; then
4924  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4925set dummy ${ac_tool_prefix}gcc; ac_word=$2
4926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927printf %s "checking for $ac_word... " >&6; }
4928if test ${ac_cv_prog_CC+y}
4929then :
4930  printf %s "(cached) " >&6
4931else $as_nop
4932  if test -n "$CC"; then
4933  ac_cv_prog_CC="$CC" # Let the user override the test.
4934else
4935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936for as_dir in $PATH
4937do
4938  IFS=$as_save_IFS
4939  case $as_dir in #(((
4940    '') as_dir=./ ;;
4941    */) ;;
4942    *) as_dir=$as_dir/ ;;
4943  esac
4944    for ac_exec_ext in '' $ac_executable_extensions; do
4945  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4946    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4947    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4948    break 2
4949  fi
4950done
4951  done
4952IFS=$as_save_IFS
4953
4954fi
4955fi
4956CC=$ac_cv_prog_CC
4957if test -n "$CC"; then
4958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4959printf "%s\n" "$CC" >&6; }
4960else
4961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962printf "%s\n" "no" >&6; }
4963fi
4964
4965
4966fi
4967if test -z "$ac_cv_prog_CC"; then
4968  ac_ct_CC=$CC
4969  # Extract the first word of "gcc", so it can be a program name with args.
4970set dummy gcc; ac_word=$2
4971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4972printf %s "checking for $ac_word... " >&6; }
4973if test ${ac_cv_prog_ac_ct_CC+y}
4974then :
4975  printf %s "(cached) " >&6
4976else $as_nop
4977  if test -n "$ac_ct_CC"; then
4978  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4979else
4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983  IFS=$as_save_IFS
4984  case $as_dir in #(((
4985    '') as_dir=./ ;;
4986    */) ;;
4987    *) as_dir=$as_dir/ ;;
4988  esac
4989    for ac_exec_ext in '' $ac_executable_extensions; do
4990  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4991    ac_cv_prog_ac_ct_CC="gcc"
4992    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4993    break 2
4994  fi
4995done
4996  done
4997IFS=$as_save_IFS
4998
4999fi
5000fi
5001ac_ct_CC=$ac_cv_prog_ac_ct_CC
5002if test -n "$ac_ct_CC"; then
5003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5004printf "%s\n" "$ac_ct_CC" >&6; }
5005else
5006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007printf "%s\n" "no" >&6; }
5008fi
5009
5010  if test "x$ac_ct_CC" = x; then
5011    CC=""
5012  else
5013    case $cross_compiling:$ac_tool_warned in
5014yes:)
5015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5016printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5017ac_tool_warned=yes ;;
5018esac
5019    CC=$ac_ct_CC
5020  fi
5021else
5022  CC="$ac_cv_prog_CC"
5023fi
5024
5025if test -z "$CC"; then
5026          if test -n "$ac_tool_prefix"; then
5027    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5028set dummy ${ac_tool_prefix}cc; ac_word=$2
5029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030printf %s "checking for $ac_word... " >&6; }
5031if test ${ac_cv_prog_CC+y}
5032then :
5033  printf %s "(cached) " >&6
5034else $as_nop
5035  if test -n "$CC"; then
5036  ac_cv_prog_CC="$CC" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041  IFS=$as_save_IFS
5042  case $as_dir in #(((
5043    '') as_dir=./ ;;
5044    */) ;;
5045    *) as_dir=$as_dir/ ;;
5046  esac
5047    for ac_exec_ext in '' $ac_executable_extensions; do
5048  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5049    ac_cv_prog_CC="${ac_tool_prefix}cc"
5050    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5051    break 2
5052  fi
5053done
5054  done
5055IFS=$as_save_IFS
5056
5057fi
5058fi
5059CC=$ac_cv_prog_CC
5060if test -n "$CC"; then
5061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5062printf "%s\n" "$CC" >&6; }
5063else
5064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065printf "%s\n" "no" >&6; }
5066fi
5067
5068
5069  fi
5070fi
5071if test -z "$CC"; then
5072  # Extract the first word of "cc", so it can be a program name with args.
5073set dummy cc; ac_word=$2
5074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075printf %s "checking for $ac_word... " >&6; }
5076if test ${ac_cv_prog_CC+y}
5077then :
5078  printf %s "(cached) " >&6
5079else $as_nop
5080  if test -n "$CC"; then
5081  ac_cv_prog_CC="$CC" # Let the user override the test.
5082else
5083  ac_prog_rejected=no
5084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085for as_dir in $PATH
5086do
5087  IFS=$as_save_IFS
5088  case $as_dir in #(((
5089    '') as_dir=./ ;;
5090    */) ;;
5091    *) as_dir=$as_dir/ ;;
5092  esac
5093    for ac_exec_ext in '' $ac_executable_extensions; do
5094  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5095    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5096       ac_prog_rejected=yes
5097       continue
5098     fi
5099    ac_cv_prog_CC="cc"
5100    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5101    break 2
5102  fi
5103done
5104  done
5105IFS=$as_save_IFS
5106
5107if test $ac_prog_rejected = yes; then
5108  # We found a bogon in the path, so make sure we never use it.
5109  set dummy $ac_cv_prog_CC
5110  shift
5111  if test $# != 0; then
5112    # We chose a different compiler from the bogus one.
5113    # However, it has the same basename, so the bogon will be chosen
5114    # first if we set CC to just the basename; use the full file name.
5115    shift
5116    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5117  fi
5118fi
5119fi
5120fi
5121CC=$ac_cv_prog_CC
5122if test -n "$CC"; then
5123  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5124printf "%s\n" "$CC" >&6; }
5125else
5126  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127printf "%s\n" "no" >&6; }
5128fi
5129
5130
5131fi
5132if test -z "$CC"; then
5133  if test -n "$ac_tool_prefix"; then
5134  for ac_prog in cl.exe
5135  do
5136    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5137set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139printf %s "checking for $ac_word... " >&6; }
5140if test ${ac_cv_prog_CC+y}
5141then :
5142  printf %s "(cached) " >&6
5143else $as_nop
5144  if test -n "$CC"; then
5145  ac_cv_prog_CC="$CC" # Let the user override the test.
5146else
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
5149do
5150  IFS=$as_save_IFS
5151  case $as_dir in #(((
5152    '') as_dir=./ ;;
5153    */) ;;
5154    *) as_dir=$as_dir/ ;;
5155  esac
5156    for ac_exec_ext in '' $ac_executable_extensions; do
5157  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5158    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5159    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5160    break 2
5161  fi
5162done
5163  done
5164IFS=$as_save_IFS
5165
5166fi
5167fi
5168CC=$ac_cv_prog_CC
5169if test -n "$CC"; then
5170  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5171printf "%s\n" "$CC" >&6; }
5172else
5173  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174printf "%s\n" "no" >&6; }
5175fi
5176
5177
5178    test -n "$CC" && break
5179  done
5180fi
5181if test -z "$CC"; then
5182  ac_ct_CC=$CC
5183  for ac_prog in cl.exe
5184do
5185  # Extract the first word of "$ac_prog", so it can be a program name with args.
5186set dummy $ac_prog; ac_word=$2
5187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188printf %s "checking for $ac_word... " >&6; }
5189if test ${ac_cv_prog_ac_ct_CC+y}
5190then :
5191  printf %s "(cached) " >&6
5192else $as_nop
5193  if test -n "$ac_ct_CC"; then
5194  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5195else
5196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197for as_dir in $PATH
5198do
5199  IFS=$as_save_IFS
5200  case $as_dir in #(((
5201    '') as_dir=./ ;;
5202    */) ;;
5203    *) as_dir=$as_dir/ ;;
5204  esac
5205    for ac_exec_ext in '' $ac_executable_extensions; do
5206  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5207    ac_cv_prog_ac_ct_CC="$ac_prog"
5208    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5209    break 2
5210  fi
5211done
5212  done
5213IFS=$as_save_IFS
5214
5215fi
5216fi
5217ac_ct_CC=$ac_cv_prog_ac_ct_CC
5218if test -n "$ac_ct_CC"; then
5219  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5220printf "%s\n" "$ac_ct_CC" >&6; }
5221else
5222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223printf "%s\n" "no" >&6; }
5224fi
5225
5226
5227  test -n "$ac_ct_CC" && break
5228done
5229
5230  if test "x$ac_ct_CC" = x; then
5231    CC=""
5232  else
5233    case $cross_compiling:$ac_tool_warned in
5234yes:)
5235{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5236printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5237ac_tool_warned=yes ;;
5238esac
5239    CC=$ac_ct_CC
5240  fi
5241fi
5242
5243fi
5244if test -z "$CC"; then
5245  if test -n "$ac_tool_prefix"; then
5246  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5247set dummy ${ac_tool_prefix}clang; ac_word=$2
5248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249printf %s "checking for $ac_word... " >&6; }
5250if test ${ac_cv_prog_CC+y}
5251then :
5252  printf %s "(cached) " >&6
5253else $as_nop
5254  if test -n "$CC"; then
5255  ac_cv_prog_CC="$CC" # Let the user override the test.
5256else
5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260  IFS=$as_save_IFS
5261  case $as_dir in #(((
5262    '') as_dir=./ ;;
5263    */) ;;
5264    *) as_dir=$as_dir/ ;;
5265  esac
5266    for ac_exec_ext in '' $ac_executable_extensions; do
5267  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5268    ac_cv_prog_CC="${ac_tool_prefix}clang"
5269    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5270    break 2
5271  fi
5272done
5273  done
5274IFS=$as_save_IFS
5275
5276fi
5277fi
5278CC=$ac_cv_prog_CC
5279if test -n "$CC"; then
5280  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5281printf "%s\n" "$CC" >&6; }
5282else
5283  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5284printf "%s\n" "no" >&6; }
5285fi
5286
5287
5288fi
5289if test -z "$ac_cv_prog_CC"; then
5290  ac_ct_CC=$CC
5291  # Extract the first word of "clang", so it can be a program name with args.
5292set dummy clang; ac_word=$2
5293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294printf %s "checking for $ac_word... " >&6; }
5295if test ${ac_cv_prog_ac_ct_CC+y}
5296then :
5297  printf %s "(cached) " >&6
5298else $as_nop
5299  if test -n "$ac_ct_CC"; then
5300  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5301else
5302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5303for as_dir in $PATH
5304do
5305  IFS=$as_save_IFS
5306  case $as_dir in #(((
5307    '') as_dir=./ ;;
5308    */) ;;
5309    *) as_dir=$as_dir/ ;;
5310  esac
5311    for ac_exec_ext in '' $ac_executable_extensions; do
5312  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5313    ac_cv_prog_ac_ct_CC="clang"
5314    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5315    break 2
5316  fi
5317done
5318  done
5319IFS=$as_save_IFS
5320
5321fi
5322fi
5323ac_ct_CC=$ac_cv_prog_ac_ct_CC
5324if test -n "$ac_ct_CC"; then
5325  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5326printf "%s\n" "$ac_ct_CC" >&6; }
5327else
5328  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329printf "%s\n" "no" >&6; }
5330fi
5331
5332  if test "x$ac_ct_CC" = x; then
5333    CC=""
5334  else
5335    case $cross_compiling:$ac_tool_warned in
5336yes:)
5337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5338printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5339ac_tool_warned=yes ;;
5340esac
5341    CC=$ac_ct_CC
5342  fi
5343else
5344  CC="$ac_cv_prog_CC"
5345fi
5346
5347fi
5348
5349
5350test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5351printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5352as_fn_error $? "no acceptable C compiler found in \$PATH
5353See \`config.log' for more details" "$LINENO" 5; }
5354
5355# Provide some information about the compiler.
5356printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5357set X $ac_compile
5358ac_compiler=$2
5359for ac_option in --version -v -V -qversion -version; do
5360  { { ac_try="$ac_compiler $ac_option >&5"
5361case "(($ac_try" in
5362  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5363  *) ac_try_echo=$ac_try;;
5364esac
5365eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5366printf "%s\n" "$ac_try_echo"; } >&5
5367  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5368  ac_status=$?
5369  if test -s conftest.err; then
5370    sed '10a\
5371... rest of stderr output deleted ...
5372         10q' conftest.err >conftest.er1
5373    cat conftest.er1 >&5
5374  fi
5375  rm -f conftest.er1 conftest.err
5376  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5377  test $ac_status = 0; }
5378done
5379
5380{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5381printf %s "checking whether the compiler supports GNU C... " >&6; }
5382if test ${ac_cv_c_compiler_gnu+y}
5383then :
5384  printf %s "(cached) " >&6
5385else $as_nop
5386  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387/* end confdefs.h.  */
5388
5389int
5390main (void)
5391{
5392#ifndef __GNUC__
5393       choke me
5394#endif
5395
5396  ;
5397  return 0;
5398}
5399_ACEOF
5400if ac_fn_c_try_compile "$LINENO"
5401then :
5402  ac_compiler_gnu=yes
5403else $as_nop
5404  ac_compiler_gnu=no
5405fi
5406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5407ac_cv_c_compiler_gnu=$ac_compiler_gnu
5408
5409fi
5410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5411printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5412ac_compiler_gnu=$ac_cv_c_compiler_gnu
5413
5414if test $ac_compiler_gnu = yes; then
5415  GCC=yes
5416else
5417  GCC=
5418fi
5419ac_test_CFLAGS=${CFLAGS+y}
5420ac_save_CFLAGS=$CFLAGS
5421{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5422printf %s "checking whether $CC accepts -g... " >&6; }
5423if test ${ac_cv_prog_cc_g+y}
5424then :
5425  printf %s "(cached) " >&6
5426else $as_nop
5427  ac_save_c_werror_flag=$ac_c_werror_flag
5428   ac_c_werror_flag=yes
5429   ac_cv_prog_cc_g=no
5430   CFLAGS="-g"
5431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432/* end confdefs.h.  */
5433
5434int
5435main (void)
5436{
5437
5438  ;
5439  return 0;
5440}
5441_ACEOF
5442if ac_fn_c_try_compile "$LINENO"
5443then :
5444  ac_cv_prog_cc_g=yes
5445else $as_nop
5446  CFLAGS=""
5447      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448/* end confdefs.h.  */
5449
5450int
5451main (void)
5452{
5453
5454  ;
5455  return 0;
5456}
5457_ACEOF
5458if ac_fn_c_try_compile "$LINENO"
5459then :
5460
5461else $as_nop
5462  ac_c_werror_flag=$ac_save_c_werror_flag
5463	 CFLAGS="-g"
5464	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465/* end confdefs.h.  */
5466
5467int
5468main (void)
5469{
5470
5471  ;
5472  return 0;
5473}
5474_ACEOF
5475if ac_fn_c_try_compile "$LINENO"
5476then :
5477  ac_cv_prog_cc_g=yes
5478fi
5479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5480fi
5481rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5482fi
5483rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5484   ac_c_werror_flag=$ac_save_c_werror_flag
5485fi
5486{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5487printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5488if test $ac_test_CFLAGS; then
5489  CFLAGS=$ac_save_CFLAGS
5490elif test $ac_cv_prog_cc_g = yes; then
5491  if test "$GCC" = yes; then
5492    CFLAGS="-g -O2"
5493  else
5494    CFLAGS="-g"
5495  fi
5496else
5497  if test "$GCC" = yes; then
5498    CFLAGS="-O2"
5499  else
5500    CFLAGS=
5501  fi
5502fi
5503ac_prog_cc_stdc=no
5504if test x$ac_prog_cc_stdc = xno
5505then :
5506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5507printf %s "checking for $CC option to enable C11 features... " >&6; }
5508if test ${ac_cv_prog_cc_c11+y}
5509then :
5510  printf %s "(cached) " >&6
5511else $as_nop
5512  ac_cv_prog_cc_c11=no
5513ac_save_CC=$CC
5514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516$ac_c_conftest_c11_program
5517_ACEOF
5518for ac_arg in '' -std=gnu11
5519do
5520  CC="$ac_save_CC $ac_arg"
5521  if ac_fn_c_try_compile "$LINENO"
5522then :
5523  ac_cv_prog_cc_c11=$ac_arg
5524fi
5525rm -f core conftest.err conftest.$ac_objext conftest.beam
5526  test "x$ac_cv_prog_cc_c11" != "xno" && break
5527done
5528rm -f conftest.$ac_ext
5529CC=$ac_save_CC
5530fi
5531
5532if test "x$ac_cv_prog_cc_c11" = xno
5533then :
5534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5535printf "%s\n" "unsupported" >&6; }
5536else $as_nop
5537  if test "x$ac_cv_prog_cc_c11" = x
5538then :
5539  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5540printf "%s\n" "none needed" >&6; }
5541else $as_nop
5542  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5543printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5544     CC="$CC $ac_cv_prog_cc_c11"
5545fi
5546  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5547  ac_prog_cc_stdc=c11
5548fi
5549fi
5550if test x$ac_prog_cc_stdc = xno
5551then :
5552  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5553printf %s "checking for $CC option to enable C99 features... " >&6; }
5554if test ${ac_cv_prog_cc_c99+y}
5555then :
5556  printf %s "(cached) " >&6
5557else $as_nop
5558  ac_cv_prog_cc_c99=no
5559ac_save_CC=$CC
5560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561/* end confdefs.h.  */
5562$ac_c_conftest_c99_program
5563_ACEOF
5564for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5565do
5566  CC="$ac_save_CC $ac_arg"
5567  if ac_fn_c_try_compile "$LINENO"
5568then :
5569  ac_cv_prog_cc_c99=$ac_arg
5570fi
5571rm -f core conftest.err conftest.$ac_objext conftest.beam
5572  test "x$ac_cv_prog_cc_c99" != "xno" && break
5573done
5574rm -f conftest.$ac_ext
5575CC=$ac_save_CC
5576fi
5577
5578if test "x$ac_cv_prog_cc_c99" = xno
5579then :
5580  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5581printf "%s\n" "unsupported" >&6; }
5582else $as_nop
5583  if test "x$ac_cv_prog_cc_c99" = x
5584then :
5585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5586printf "%s\n" "none needed" >&6; }
5587else $as_nop
5588  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5589printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5590     CC="$CC $ac_cv_prog_cc_c99"
5591fi
5592  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5593  ac_prog_cc_stdc=c99
5594fi
5595fi
5596if test x$ac_prog_cc_stdc = xno
5597then :
5598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5599printf %s "checking for $CC option to enable C89 features... " >&6; }
5600if test ${ac_cv_prog_cc_c89+y}
5601then :
5602  printf %s "(cached) " >&6
5603else $as_nop
5604  ac_cv_prog_cc_c89=no
5605ac_save_CC=$CC
5606cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607/* end confdefs.h.  */
5608$ac_c_conftest_c89_program
5609_ACEOF
5610for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5611do
5612  CC="$ac_save_CC $ac_arg"
5613  if ac_fn_c_try_compile "$LINENO"
5614then :
5615  ac_cv_prog_cc_c89=$ac_arg
5616fi
5617rm -f core conftest.err conftest.$ac_objext conftest.beam
5618  test "x$ac_cv_prog_cc_c89" != "xno" && break
5619done
5620rm -f conftest.$ac_ext
5621CC=$ac_save_CC
5622fi
5623
5624if test "x$ac_cv_prog_cc_c89" = xno
5625then :
5626  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5627printf "%s\n" "unsupported" >&6; }
5628else $as_nop
5629  if test "x$ac_cv_prog_cc_c89" = x
5630then :
5631  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5632printf "%s\n" "none needed" >&6; }
5633else $as_nop
5634  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5635printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5636     CC="$CC $ac_cv_prog_cc_c89"
5637fi
5638  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5639  ac_prog_cc_stdc=c89
5640fi
5641fi
5642
5643ac_ext=cpp
5644ac_cpp='$CXXCPP $CPPFLAGS'
5645ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5646ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5647ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5648
5649
5650  ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5656printf %s "checking whether $CC understands -c and -o together... " >&6; }
5657if test ${am_cv_prog_cc_c_o+y}
5658then :
5659  printf %s "(cached) " >&6
5660else $as_nop
5661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5662/* end confdefs.h.  */
5663
5664int
5665main (void)
5666{
5667
5668  ;
5669  return 0;
5670}
5671_ACEOF
5672  # Make sure it works both with $CC and with simple cc.
5673  # Following AC_PROG_CC_C_O, we do the test twice because some
5674  # compilers refuse to overwrite an existing .o file with -o,
5675  # though they will create one.
5676  am_cv_prog_cc_c_o=yes
5677  for am_i in 1 2; do
5678    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5679   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5680   ac_status=$?
5681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682   (exit $ac_status); } \
5683         && test -f conftest2.$ac_objext; then
5684      : OK
5685    else
5686      am_cv_prog_cc_c_o=no
5687      break
5688    fi
5689  done
5690  rm -f core conftest*
5691  unset am_i
5692fi
5693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5694printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5695if test "$am_cv_prog_cc_c_o" != yes; then
5696   # Losing compiler, so override with the script.
5697   # FIXME: It is wrong to rewrite CC.
5698   # But if we don't then we get into trouble of one sort or another.
5699   # A longer-term fix would be to have automake use am__CC in this case,
5700   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5701   CC="$am_aux_dir/compile $CC"
5702fi
5703ac_ext=cpp
5704ac_cpp='$CXXCPP $CPPFLAGS'
5705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5708
5709
5710depcc="$CC"   am_compiler_list=
5711
5712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5713printf %s "checking dependency style of $depcc... " >&6; }
5714if test ${am_cv_CC_dependencies_compiler_type+y}
5715then :
5716  printf %s "(cached) " >&6
5717else $as_nop
5718  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5719  # We make a subdir and do the tests there.  Otherwise we can end up
5720  # making bogus files that we don't know about and never remove.  For
5721  # instance it was reported that on HP-UX the gcc test will end up
5722  # making a dummy file named 'D' -- because '-MD' means "put the output
5723  # in D".
5724  rm -rf conftest.dir
5725  mkdir conftest.dir
5726  # Copy depcomp to subdir because otherwise we won't find it if we're
5727  # using a relative directory.
5728  cp "$am_depcomp" conftest.dir
5729  cd conftest.dir
5730  # We will build objects and dependencies in a subdirectory because
5731  # it helps to detect inapplicable dependency modes.  For instance
5732  # both Tru64's cc and ICC support -MD to output dependencies as a
5733  # side effect of compilation, but ICC will put the dependencies in
5734  # the current directory while Tru64 will put them in the object
5735  # directory.
5736  mkdir sub
5737
5738  am_cv_CC_dependencies_compiler_type=none
5739  if test "$am_compiler_list" = ""; then
5740     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5741  fi
5742  am__universal=false
5743  case " $depcc " in #(
5744     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5745     esac
5746
5747  for depmode in $am_compiler_list; do
5748    # Setup a source with many dependencies, because some compilers
5749    # like to wrap large dependency lists on column 80 (with \), and
5750    # we should not choose a depcomp mode which is confused by this.
5751    #
5752    # We need to recreate these files for each test, as the compiler may
5753    # overwrite some of them when testing with obscure command lines.
5754    # This happens at least with the AIX C compiler.
5755    : > sub/conftest.c
5756    for i in 1 2 3 4 5 6; do
5757      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5758      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5759      # Solaris 10 /bin/sh.
5760      echo '/* dummy */' > sub/conftst$i.h
5761    done
5762    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5763
5764    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5765    # mode.  It turns out that the SunPro C++ compiler does not properly
5766    # handle '-M -o', and we need to detect this.  Also, some Intel
5767    # versions had trouble with output in subdirs.
5768    am__obj=sub/conftest.${OBJEXT-o}
5769    am__minus_obj="-o $am__obj"
5770    case $depmode in
5771    gcc)
5772      # This depmode causes a compiler race in universal mode.
5773      test "$am__universal" = false || continue
5774      ;;
5775    nosideeffect)
5776      # After this tag, mechanisms are not by side-effect, so they'll
5777      # only be used when explicitly requested.
5778      if test "x$enable_dependency_tracking" = xyes; then
5779	continue
5780      else
5781	break
5782      fi
5783      ;;
5784    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5785      # This compiler won't grok '-c -o', but also, the minuso test has
5786      # not run yet.  These depmodes are late enough in the game, and
5787      # so weak that their functioning should not be impacted.
5788      am__obj=conftest.${OBJEXT-o}
5789      am__minus_obj=
5790      ;;
5791    none) break ;;
5792    esac
5793    if depmode=$depmode \
5794       source=sub/conftest.c object=$am__obj \
5795       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5796       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5797         >/dev/null 2>conftest.err &&
5798       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5799       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5800       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5801       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5802      # icc doesn't choke on unknown options, it will just issue warnings
5803      # or remarks (even with -Werror).  So we grep stderr for any message
5804      # that says an option was ignored or not supported.
5805      # When given -MP, icc 7.0 and 7.1 complain thusly:
5806      #   icc: Command line warning: ignoring option '-M'; no argument required
5807      # The diagnosis changed in icc 8.0:
5808      #   icc: Command line remark: option '-MP' not supported
5809      if (grep 'ignoring option' conftest.err ||
5810          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5811        am_cv_CC_dependencies_compiler_type=$depmode
5812        break
5813      fi
5814    fi
5815  done
5816
5817  cd ..
5818  rm -rf conftest.dir
5819else
5820  am_cv_CC_dependencies_compiler_type=none
5821fi
5822
5823fi
5824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5825printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5826CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5827
5828 if
5829  test "x$enable_dependency_tracking" != xno \
5830  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5831  am__fastdepCC_TRUE=
5832  am__fastdepCC_FALSE='#'
5833else
5834  am__fastdepCC_TRUE='#'
5835  am__fastdepCC_FALSE=
5836fi
5837
5838
5839
5840
5841# --enable-fma
5842# Check whether --enable-fma was given.
5843if test ${enable_fma+y}
5844then :
5845  enableval=$enable_fma;
5846fi
5847
5848if test "x$enable_fma" = "x"; then
5849  enable_fma="auto"
5850fi
5851case "$enable_fma" in
5852  yes)
5853
5854
5855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fused multiply-add/subtract" >&5
5856printf %s "checking for fused multiply-add/subtract... " >&6; }
5857ac_ext=cpp
5858ac_cpp='$CXXCPP $CPPFLAGS'
5859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5862
5863ax_cxx_fma_list=
5864if test "x$ax_cxx_fma_list" = "x"; then
5865  ax_cxx_fma_list="ibm gnu c99 compiler"
5866fi
5867ax_cxx_fma=
5868ax_cxx_fms=
5869for name in $ax_cxx_fma_list; do
5870  if test "x$ax_cxx_fma" = "x"; then
5871    case $name in
5872      ibm)
5873        # IBM VisualAge C++ __fmadd / __fmsub.
5874        if test "$cross_compiling" = yes
5875then :
5876  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5877printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5878as_fn_error $? "cannot run test program while cross compiling
5879See \`config.log' for more details" "$LINENO" 5; }
5880else $as_nop
5881  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882/* end confdefs.h.  */
5883#include <cmath>
5884                       #include <builtins.h>
5885                       int main() {
5886                         double d = std::ldexp(1.0, -52);
5887                         double x = __fmadd(1.0 + d, 1.0 - d, -1.0);
5888                         double y = __fmsub(1.0 + d, 1.0 - d, 1.0);
5889                         return (x == -d*d && y == -d*d) ? 0 : 1;
5890                       }
5891_ACEOF
5892if ac_fn_cxx_try_run "$LINENO"
5893then :
5894  ax_cxx_fma="__fmadd(x,y,z)"
5895                       ax_cxx_fms="__fmsub(x,y,z)"
5896
5897printf "%s\n" "#define QD_VACPP_BUILTINS_H 1" >>confdefs.h
5898
5899fi
5900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5901  conftest.$ac_objext conftest.beam conftest.$ac_ext
5902fi
5903
5904      ;;
5905      gnu)
5906        # Later gcc (3.4 and later) have __builtin_fma that seems to work.
5907        if test "$cross_compiling" = yes
5908then :
5909  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5910printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5911as_fn_error $? "cannot run test program while cross compiling
5912See \`config.log' for more details" "$LINENO" 5; }
5913else $as_nop
5914  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5915/* end confdefs.h.  */
5916#include <cmath>
5917                       int main() {
5918                         double d = std::ldexp(1.0, -52);
5919                         return (__builtin_fma(1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
5920                       }
5921_ACEOF
5922if ac_fn_cxx_try_run "$LINENO"
5923then :
5924  ax_cxx_fma="__builtin_fma(x,y,z)"
5925                       ax_cxx_fms="__builtin_fma(x,y,-z)"
5926fi
5927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5928  conftest.$ac_objext conftest.beam conftest.$ac_ext
5929fi
5930
5931      ;;
5932      ia64)
5933        # Intel and HP compilers for IA 64 architecture seems to have
5934        # _Asm_fma/fms macros.  Not much documentation is available for
5935        # these...
5936        if test "$cross_compiling" = yes
5937then :
5938  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5939printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5940as_fn_error $? "cannot run test program while cross compiling
5941See \`config.log' for more details" "$LINENO" 5; }
5942else $as_nop
5943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5944/* end confdefs.h.  */
5945#include <cmath>
5946                       int main() {
5947                         double d = std::ldexp(1.0, -52);
5948                         return (_Asm_fma(2, 1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
5949                       }
5950_ACEOF
5951if ac_fn_cxx_try_run "$LINENO"
5952then :
5953  ax_cxx_fma="_Asm_fma(2, x,y,z)"
5954                       ax_cxx_fms="_Asm_fms(2, x,y,z)"
5955fi
5956rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5957  conftest.$ac_objext conftest.beam conftest.$ac_ext
5958fi
5959
5960      ;;
5961      c99)
5962        # Try C99 fma() function.  Some platforms doesn't seem to implement this
5963        # correctly (Apple gcc-3.3 for example).
5964        if test "$cross_compiling" = yes
5965then :
5966  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5967printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5968as_fn_error $? "cannot run test program while cross compiling
5969See \`config.log' for more details" "$LINENO" 5; }
5970else $as_nop
5971  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972/* end confdefs.h.  */
5973#include <cmath>
5974                       int main() {
5975                         double d = std::ldexp(1.0, -52);
5976                         return (fma(1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
5977                       }
5978_ACEOF
5979if ac_fn_cxx_try_run "$LINENO"
5980then :
5981  ax_cxx_fma="fma(x,y,z)"
5982                       ax_cxx_fms="fma(x,y,-z)"
5983fi
5984rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5985  conftest.$ac_objext conftest.beam conftest.$ac_ext
5986fi
5987
5988      ;;
5989      compiler)
5990        # Try relying on the compiler to optimize x * y + z into an fma.
5991        # This method is not recommended since if it is inlined it does not
5992        # always produce the same correct code.
5993        if test "$cross_compiling" = yes
5994then :
5995  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5996printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5997as_fn_error $? "cannot run test program while cross compiling
5998See \`config.log' for more details" "$LINENO" 5; }
5999else $as_nop
6000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001/* end confdefs.h.  */
6002#include <cmath>
6003                       int main() {
6004                         double d = std::ldexp(1.0, -52);
6005                         return ( (1.0 + d) * (1.0 - d) - 1.0 == -d*d ? 0 : 1);
6006                       }
6007_ACEOF
6008if ac_fn_cxx_try_run "$LINENO"
6009then :
6010  ax_cxx_fma="((x)*(y) + (z))"
6011                        ax_cxx_fms="((x)*(y) - (z))"
6012fi
6013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6014  conftest.$ac_objext conftest.beam conftest.$ac_ext
6015fi
6016
6017      ;;
6018      *) as_fn_error $? "Unknown option $name to --enable-fma." "$LINENO" 5 ;;
6019    esac
6020  fi
6021done
6022ac_ext=cpp
6023ac_cpp='$CXXCPP $CPPFLAGS'
6024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6027
6028if test "x$ax_cxx_fma" != "x"; then
6029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cxx_fma, $ax_cxx_fms" >&5
6030printf "%s\n" "$ax_cxx_fma, $ax_cxx_fms" >&6; }
6031else
6032  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6033printf "%s\n" "none" >&6; }
6034fi
6035
6036    if test "x$ax_cxx_fma" = "x"; then
6037      as_fn_error $? "Cannot find working fused multiply add." "$LINENO" 5
6038    fi
6039  ;;
6040  auto)
6041    case $host in
6042      powerpc*-*-*)
6043
6044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fused multiply-add/subtract" >&5
6045printf %s "checking for fused multiply-add/subtract... " >&6; }
6046ac_ext=cpp
6047ac_cpp='$CXXCPP $CPPFLAGS'
6048ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6051
6052ax_cxx_fma_list="ibm gnu"
6053if test "x$ax_cxx_fma_list" = "x"; then
6054  ax_cxx_fma_list="ibm gnu c99 compiler"
6055fi
6056ax_cxx_fma=
6057ax_cxx_fms=
6058for name in $ax_cxx_fma_list; do
6059  if test "x$ax_cxx_fma" = "x"; then
6060    case $name in
6061      ibm)
6062        # IBM VisualAge C++ __fmadd / __fmsub.
6063        if test "$cross_compiling" = yes
6064then :
6065  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6066printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6067as_fn_error $? "cannot run test program while cross compiling
6068See \`config.log' for more details" "$LINENO" 5; }
6069else $as_nop
6070  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071/* end confdefs.h.  */
6072#include <cmath>
6073                       #include <builtins.h>
6074                       int main() {
6075                         double d = std::ldexp(1.0, -52);
6076                         double x = __fmadd(1.0 + d, 1.0 - d, -1.0);
6077                         double y = __fmsub(1.0 + d, 1.0 - d, 1.0);
6078                         return (x == -d*d && y == -d*d) ? 0 : 1;
6079                       }
6080_ACEOF
6081if ac_fn_cxx_try_run "$LINENO"
6082then :
6083  ax_cxx_fma="__fmadd(x,y,z)"
6084                       ax_cxx_fms="__fmsub(x,y,z)"
6085
6086printf "%s\n" "#define QD_VACPP_BUILTINS_H 1" >>confdefs.h
6087
6088fi
6089rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6090  conftest.$ac_objext conftest.beam conftest.$ac_ext
6091fi
6092
6093      ;;
6094      gnu)
6095        # Later gcc (3.4 and later) have __builtin_fma that seems to work.
6096        if test "$cross_compiling" = yes
6097then :
6098  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6099printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6100as_fn_error $? "cannot run test program while cross compiling
6101See \`config.log' for more details" "$LINENO" 5; }
6102else $as_nop
6103  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104/* end confdefs.h.  */
6105#include <cmath>
6106                       int main() {
6107                         double d = std::ldexp(1.0, -52);
6108                         return (__builtin_fma(1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
6109                       }
6110_ACEOF
6111if ac_fn_cxx_try_run "$LINENO"
6112then :
6113  ax_cxx_fma="__builtin_fma(x,y,z)"
6114                       ax_cxx_fms="__builtin_fma(x,y,-z)"
6115fi
6116rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6117  conftest.$ac_objext conftest.beam conftest.$ac_ext
6118fi
6119
6120      ;;
6121      ia64)
6122        # Intel and HP compilers for IA 64 architecture seems to have
6123        # _Asm_fma/fms macros.  Not much documentation is available for
6124        # these...
6125        if test "$cross_compiling" = yes
6126then :
6127  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6128printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6129as_fn_error $? "cannot run test program while cross compiling
6130See \`config.log' for more details" "$LINENO" 5; }
6131else $as_nop
6132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133/* end confdefs.h.  */
6134#include <cmath>
6135                       int main() {
6136                         double d = std::ldexp(1.0, -52);
6137                         return (_Asm_fma(2, 1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
6138                       }
6139_ACEOF
6140if ac_fn_cxx_try_run "$LINENO"
6141then :
6142  ax_cxx_fma="_Asm_fma(2, x,y,z)"
6143                       ax_cxx_fms="_Asm_fms(2, x,y,z)"
6144fi
6145rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6146  conftest.$ac_objext conftest.beam conftest.$ac_ext
6147fi
6148
6149      ;;
6150      c99)
6151        # Try C99 fma() function.  Some platforms doesn't seem to implement this
6152        # correctly (Apple gcc-3.3 for example).
6153        if test "$cross_compiling" = yes
6154then :
6155  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6156printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6157as_fn_error $? "cannot run test program while cross compiling
6158See \`config.log' for more details" "$LINENO" 5; }
6159else $as_nop
6160  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161/* end confdefs.h.  */
6162#include <cmath>
6163                       int main() {
6164                         double d = std::ldexp(1.0, -52);
6165                         return (fma(1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
6166                       }
6167_ACEOF
6168if ac_fn_cxx_try_run "$LINENO"
6169then :
6170  ax_cxx_fma="fma(x,y,z)"
6171                       ax_cxx_fms="fma(x,y,-z)"
6172fi
6173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6174  conftest.$ac_objext conftest.beam conftest.$ac_ext
6175fi
6176
6177      ;;
6178      compiler)
6179        # Try relying on the compiler to optimize x * y + z into an fma.
6180        # This method is not recommended since if it is inlined it does not
6181        # always produce the same correct code.
6182        if test "$cross_compiling" = yes
6183then :
6184  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6185printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6186as_fn_error $? "cannot run test program while cross compiling
6187See \`config.log' for more details" "$LINENO" 5; }
6188else $as_nop
6189  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6190/* end confdefs.h.  */
6191#include <cmath>
6192                       int main() {
6193                         double d = std::ldexp(1.0, -52);
6194                         return ( (1.0 + d) * (1.0 - d) - 1.0 == -d*d ? 0 : 1);
6195                       }
6196_ACEOF
6197if ac_fn_cxx_try_run "$LINENO"
6198then :
6199  ax_cxx_fma="((x)*(y) + (z))"
6200                        ax_cxx_fms="((x)*(y) - (z))"
6201fi
6202rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6203  conftest.$ac_objext conftest.beam conftest.$ac_ext
6204fi
6205
6206      ;;
6207      *) as_fn_error $? "Unknown option $name to --enable-fma." "$LINENO" 5 ;;
6208    esac
6209  fi
6210done
6211ac_ext=cpp
6212ac_cpp='$CXXCPP $CPPFLAGS'
6213ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6214ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6215ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6216
6217if test "x$ax_cxx_fma" != "x"; then
6218  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cxx_fma, $ax_cxx_fms" >&5
6219printf "%s\n" "$ax_cxx_fma, $ax_cxx_fms" >&6; }
6220else
6221  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6222printf "%s\n" "none" >&6; }
6223fi
6224
6225      ;;
6226      ia64-*)
6227
6228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fused multiply-add/subtract" >&5
6229printf %s "checking for fused multiply-add/subtract... " >&6; }
6230ac_ext=cpp
6231ac_cpp='$CXXCPP $CPPFLAGS'
6232ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6235
6236ax_cxx_fma_list="ia64 gnu"
6237if test "x$ax_cxx_fma_list" = "x"; then
6238  ax_cxx_fma_list="ibm gnu c99 compiler"
6239fi
6240ax_cxx_fma=
6241ax_cxx_fms=
6242for name in $ax_cxx_fma_list; do
6243  if test "x$ax_cxx_fma" = "x"; then
6244    case $name in
6245      ibm)
6246        # IBM VisualAge C++ __fmadd / __fmsub.
6247        if test "$cross_compiling" = yes
6248then :
6249  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6250printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6251as_fn_error $? "cannot run test program while cross compiling
6252See \`config.log' for more details" "$LINENO" 5; }
6253else $as_nop
6254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255/* end confdefs.h.  */
6256#include <cmath>
6257                       #include <builtins.h>
6258                       int main() {
6259                         double d = std::ldexp(1.0, -52);
6260                         double x = __fmadd(1.0 + d, 1.0 - d, -1.0);
6261                         double y = __fmsub(1.0 + d, 1.0 - d, 1.0);
6262                         return (x == -d*d && y == -d*d) ? 0 : 1;
6263                       }
6264_ACEOF
6265if ac_fn_cxx_try_run "$LINENO"
6266then :
6267  ax_cxx_fma="__fmadd(x,y,z)"
6268                       ax_cxx_fms="__fmsub(x,y,z)"
6269
6270printf "%s\n" "#define QD_VACPP_BUILTINS_H 1" >>confdefs.h
6271
6272fi
6273rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6274  conftest.$ac_objext conftest.beam conftest.$ac_ext
6275fi
6276
6277      ;;
6278      gnu)
6279        # Later gcc (3.4 and later) have __builtin_fma that seems to work.
6280        if test "$cross_compiling" = yes
6281then :
6282  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6283printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6284as_fn_error $? "cannot run test program while cross compiling
6285See \`config.log' for more details" "$LINENO" 5; }
6286else $as_nop
6287  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6288/* end confdefs.h.  */
6289#include <cmath>
6290                       int main() {
6291                         double d = std::ldexp(1.0, -52);
6292                         return (__builtin_fma(1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
6293                       }
6294_ACEOF
6295if ac_fn_cxx_try_run "$LINENO"
6296then :
6297  ax_cxx_fma="__builtin_fma(x,y,z)"
6298                       ax_cxx_fms="__builtin_fma(x,y,-z)"
6299fi
6300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6301  conftest.$ac_objext conftest.beam conftest.$ac_ext
6302fi
6303
6304      ;;
6305      ia64)
6306        # Intel and HP compilers for IA 64 architecture seems to have
6307        # _Asm_fma/fms macros.  Not much documentation is available for
6308        # these...
6309        if test "$cross_compiling" = yes
6310then :
6311  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6312printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6313as_fn_error $? "cannot run test program while cross compiling
6314See \`config.log' for more details" "$LINENO" 5; }
6315else $as_nop
6316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6317/* end confdefs.h.  */
6318#include <cmath>
6319                       int main() {
6320                         double d = std::ldexp(1.0, -52);
6321                         return (_Asm_fma(2, 1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
6322                       }
6323_ACEOF
6324if ac_fn_cxx_try_run "$LINENO"
6325then :
6326  ax_cxx_fma="_Asm_fma(2, x,y,z)"
6327                       ax_cxx_fms="_Asm_fms(2, x,y,z)"
6328fi
6329rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6330  conftest.$ac_objext conftest.beam conftest.$ac_ext
6331fi
6332
6333      ;;
6334      c99)
6335        # Try C99 fma() function.  Some platforms doesn't seem to implement this
6336        # correctly (Apple gcc-3.3 for example).
6337        if test "$cross_compiling" = yes
6338then :
6339  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6340printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6341as_fn_error $? "cannot run test program while cross compiling
6342See \`config.log' for more details" "$LINENO" 5; }
6343else $as_nop
6344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h.  */
6346#include <cmath>
6347                       int main() {
6348                         double d = std::ldexp(1.0, -52);
6349                         return (fma(1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
6350                       }
6351_ACEOF
6352if ac_fn_cxx_try_run "$LINENO"
6353then :
6354  ax_cxx_fma="fma(x,y,z)"
6355                       ax_cxx_fms="fma(x,y,-z)"
6356fi
6357rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6358  conftest.$ac_objext conftest.beam conftest.$ac_ext
6359fi
6360
6361      ;;
6362      compiler)
6363        # Try relying on the compiler to optimize x * y + z into an fma.
6364        # This method is not recommended since if it is inlined it does not
6365        # always produce the same correct code.
6366        if test "$cross_compiling" = yes
6367then :
6368  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6369printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6370as_fn_error $? "cannot run test program while cross compiling
6371See \`config.log' for more details" "$LINENO" 5; }
6372else $as_nop
6373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6374/* end confdefs.h.  */
6375#include <cmath>
6376                       int main() {
6377                         double d = std::ldexp(1.0, -52);
6378                         return ( (1.0 + d) * (1.0 - d) - 1.0 == -d*d ? 0 : 1);
6379                       }
6380_ACEOF
6381if ac_fn_cxx_try_run "$LINENO"
6382then :
6383  ax_cxx_fma="((x)*(y) + (z))"
6384                        ax_cxx_fms="((x)*(y) - (z))"
6385fi
6386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6387  conftest.$ac_objext conftest.beam conftest.$ac_ext
6388fi
6389
6390      ;;
6391      *) as_fn_error $? "Unknown option $name to --enable-fma." "$LINENO" 5 ;;
6392    esac
6393  fi
6394done
6395ac_ext=cpp
6396ac_cpp='$CXXCPP $CPPFLAGS'
6397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6400
6401if test "x$ax_cxx_fma" != "x"; then
6402  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cxx_fma, $ax_cxx_fms" >&5
6403printf "%s\n" "$ax_cxx_fma, $ax_cxx_fms" >&6; }
6404else
6405  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6406printf "%s\n" "none" >&6; }
6407fi
6408
6409      ;;
6410    esac
6411  ;;
6412  no)
6413    ax_cxx_fma=
6414  ;;
6415  *)
6416
6417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fused multiply-add/subtract" >&5
6418printf %s "checking for fused multiply-add/subtract... " >&6; }
6419ac_ext=cpp
6420ac_cpp='$CXXCPP $CPPFLAGS'
6421ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6422ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6423ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6424
6425ax_cxx_fma_list=$enable_fma
6426if test "x$ax_cxx_fma_list" = "x"; then
6427  ax_cxx_fma_list="ibm gnu c99 compiler"
6428fi
6429ax_cxx_fma=
6430ax_cxx_fms=
6431for name in $ax_cxx_fma_list; do
6432  if test "x$ax_cxx_fma" = "x"; then
6433    case $name in
6434      ibm)
6435        # IBM VisualAge C++ __fmadd / __fmsub.
6436        if test "$cross_compiling" = yes
6437then :
6438  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6439printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6440as_fn_error $? "cannot run test program while cross compiling
6441See \`config.log' for more details" "$LINENO" 5; }
6442else $as_nop
6443  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444/* end confdefs.h.  */
6445#include <cmath>
6446                       #include <builtins.h>
6447                       int main() {
6448                         double d = std::ldexp(1.0, -52);
6449                         double x = __fmadd(1.0 + d, 1.0 - d, -1.0);
6450                         double y = __fmsub(1.0 + d, 1.0 - d, 1.0);
6451                         return (x == -d*d && y == -d*d) ? 0 : 1;
6452                       }
6453_ACEOF
6454if ac_fn_cxx_try_run "$LINENO"
6455then :
6456  ax_cxx_fma="__fmadd(x,y,z)"
6457                       ax_cxx_fms="__fmsub(x,y,z)"
6458
6459printf "%s\n" "#define QD_VACPP_BUILTINS_H 1" >>confdefs.h
6460
6461fi
6462rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6463  conftest.$ac_objext conftest.beam conftest.$ac_ext
6464fi
6465
6466      ;;
6467      gnu)
6468        # Later gcc (3.4 and later) have __builtin_fma that seems to work.
6469        if test "$cross_compiling" = yes
6470then :
6471  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6472printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6473as_fn_error $? "cannot run test program while cross compiling
6474See \`config.log' for more details" "$LINENO" 5; }
6475else $as_nop
6476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477/* end confdefs.h.  */
6478#include <cmath>
6479                       int main() {
6480                         double d = std::ldexp(1.0, -52);
6481                         return (__builtin_fma(1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
6482                       }
6483_ACEOF
6484if ac_fn_cxx_try_run "$LINENO"
6485then :
6486  ax_cxx_fma="__builtin_fma(x,y,z)"
6487                       ax_cxx_fms="__builtin_fma(x,y,-z)"
6488fi
6489rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6490  conftest.$ac_objext conftest.beam conftest.$ac_ext
6491fi
6492
6493      ;;
6494      ia64)
6495        # Intel and HP compilers for IA 64 architecture seems to have
6496        # _Asm_fma/fms macros.  Not much documentation is available for
6497        # these...
6498        if test "$cross_compiling" = yes
6499then :
6500  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6501printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6502as_fn_error $? "cannot run test program while cross compiling
6503See \`config.log' for more details" "$LINENO" 5; }
6504else $as_nop
6505  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h.  */
6507#include <cmath>
6508                       int main() {
6509                         double d = std::ldexp(1.0, -52);
6510                         return (_Asm_fma(2, 1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
6511                       }
6512_ACEOF
6513if ac_fn_cxx_try_run "$LINENO"
6514then :
6515  ax_cxx_fma="_Asm_fma(2, x,y,z)"
6516                       ax_cxx_fms="_Asm_fms(2, x,y,z)"
6517fi
6518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6519  conftest.$ac_objext conftest.beam conftest.$ac_ext
6520fi
6521
6522      ;;
6523      c99)
6524        # Try C99 fma() function.  Some platforms doesn't seem to implement this
6525        # correctly (Apple gcc-3.3 for example).
6526        if test "$cross_compiling" = yes
6527then :
6528  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6529printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6530as_fn_error $? "cannot run test program while cross compiling
6531See \`config.log' for more details" "$LINENO" 5; }
6532else $as_nop
6533  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534/* end confdefs.h.  */
6535#include <cmath>
6536                       int main() {
6537                         double d = std::ldexp(1.0, -52);
6538                         return (fma(1.0 + d, 1.0 - d, -1.0) == -d*d ? 0 : 1);
6539                       }
6540_ACEOF
6541if ac_fn_cxx_try_run "$LINENO"
6542then :
6543  ax_cxx_fma="fma(x,y,z)"
6544                       ax_cxx_fms="fma(x,y,-z)"
6545fi
6546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6547  conftest.$ac_objext conftest.beam conftest.$ac_ext
6548fi
6549
6550      ;;
6551      compiler)
6552        # Try relying on the compiler to optimize x * y + z into an fma.
6553        # This method is not recommended since if it is inlined it does not
6554        # always produce the same correct code.
6555        if test "$cross_compiling" = yes
6556then :
6557  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6558printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6559as_fn_error $? "cannot run test program while cross compiling
6560See \`config.log' for more details" "$LINENO" 5; }
6561else $as_nop
6562  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563/* end confdefs.h.  */
6564#include <cmath>
6565                       int main() {
6566                         double d = std::ldexp(1.0, -52);
6567                         return ( (1.0 + d) * (1.0 - d) - 1.0 == -d*d ? 0 : 1);
6568                       }
6569_ACEOF
6570if ac_fn_cxx_try_run "$LINENO"
6571then :
6572  ax_cxx_fma="((x)*(y) + (z))"
6573                        ax_cxx_fms="((x)*(y) - (z))"
6574fi
6575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6576  conftest.$ac_objext conftest.beam conftest.$ac_ext
6577fi
6578
6579      ;;
6580      *) as_fn_error $? "Unknown option $name to --enable-fma." "$LINENO" 5 ;;
6581    esac
6582  fi
6583done
6584ac_ext=cpp
6585ac_cpp='$CXXCPP $CPPFLAGS'
6586ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6587ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6588ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6589
6590if test "x$ax_cxx_fma" != "x"; then
6591  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cxx_fma, $ax_cxx_fms" >&5
6592printf "%s\n" "$ax_cxx_fma, $ax_cxx_fms" >&6; }
6593else
6594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6595printf "%s\n" "none" >&6; }
6596fi
6597
6598    if test "x$ax_cxx_fma" = "x"; then
6599      as_fn_error $? "Cannot find working fused multiply add." "$LINENO" 5
6600    fi
6601  ;;
6602esac
6603if test "x$ax_cxx_fma" = "x"; then
6604  ax_cxx_fma="none"
6605  ax_cxx_fms="none"
6606else
6607
6608printf "%s\n" "#define QD_FMA(x,y,z) $ax_cxx_fma" >>confdefs.h
6609
6610
6611printf "%s\n" "#define QD_FMS(x,y,z) $ax_cxx_fms" >>confdefs.h
6612
6613fi
6614
6615# Checks for libraries.
6616
6617# Checks for header files.
6618ac_header= ac_cache=
6619for ac_item in $ac_header_cxx_list
6620do
6621  if test $ac_cache; then
6622    ac_fn_cxx_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6623    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6624      printf "%s\n" "#define $ac_item 1" >> confdefs.h
6625    fi
6626    ac_header= ac_cache=
6627  elif test $ac_header; then
6628    ac_cache=$ac_item
6629  else
6630    ac_header=$ac_item
6631  fi
6632done
6633
6634
6635
6636
6637
6638
6639
6640
6641if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6642then :
6643
6644printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6645
6646fi
6647ac_fn_cxx_check_header_compile "$LINENO" "ieeefp.h" "ac_cv_header_ieeefp_h" "$ac_includes_default"
6648if test "x$ac_cv_header_ieeefp_h" = xyes
6649then :
6650  printf "%s\n" "#define HAVE_IEEEFP_H 1" >>confdefs.h
6651
6652fi
6653
6654
6655CONFIGURE_ARGS=$ac_configure_args
6656
6657
6658# Checks for typedefs, structures, and compiler characteristics.
6659ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6660if test "x$ac_cv_type__Bool" = xyes
6661then :
6662
6663printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
6664
6665
6666fi
6667
6668   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6669printf %s "checking for stdbool.h that conforms to C99... " >&6; }
6670if test ${ac_cv_header_stdbool_h+y}
6671then :
6672  printf %s "(cached) " >&6
6673else $as_nop
6674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6675/* end confdefs.h.  */
6676#include <stdbool.h>
6677
6678             #ifndef __bool_true_false_are_defined
6679               #error "__bool_true_false_are_defined is not defined"
6680             #endif
6681             char a[__bool_true_false_are_defined == 1 ? 1 : -1];
6682
6683             /* Regardless of whether this is C++ or "_Bool" is a
6684                valid type name, "true" and "false" should be usable
6685                in #if expressions and integer constant expressions,
6686                and "bool" should be a valid type name.  */
6687
6688             #if !true
6689               #error "'true' is not true"
6690             #endif
6691             #if true != 1
6692               #error "'true' is not equal to 1"
6693             #endif
6694             char b[true == 1 ? 1 : -1];
6695             char c[true];
6696
6697             #if false
6698               #error "'false' is not false"
6699             #endif
6700             #if false != 0
6701               #error "'false' is not equal to 0"
6702             #endif
6703             char d[false == 0 ? 1 : -1];
6704
6705             enum { e = false, f = true, g = false * true, h = true * 256 };
6706
6707             char i[(bool) 0.5 == true ? 1 : -1];
6708             char j[(bool) 0.0 == false ? 1 : -1];
6709             char k[sizeof (bool) > 0 ? 1 : -1];
6710
6711             struct sb { bool s: 1; bool t; } s;
6712             char l[sizeof s.t > 0 ? 1 : -1];
6713
6714             /* The following fails for
6715                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6716             bool m[h];
6717             char n[sizeof m == h * sizeof m[0] ? 1 : -1];
6718             char o[-1 - (bool) 0 < 0 ? 1 : -1];
6719             /* Catch a bug in an HP-UX C compiler.  See
6720         https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6721         https://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6722              */
6723             bool p = true;
6724             bool *pp = &p;
6725
6726             /* C 1999 specifies that bool, true, and false are to be
6727                macros, but C++ 2011 and later overrule this.  */
6728             #if __cplusplus < 201103
6729              #ifndef bool
6730               #error "bool is not defined"
6731              #endif
6732              #ifndef false
6733               #error "false is not defined"
6734              #endif
6735              #ifndef true
6736               #error "true is not defined"
6737              #endif
6738             #endif
6739
6740             /* If _Bool is available, repeat with it all the tests
6741                above that used bool.  */
6742             #ifdef HAVE__BOOL
6743               struct sB { _Bool s: 1; _Bool t; } t;
6744
6745               char q[(_Bool) 0.5 == true ? 1 : -1];
6746               char r[(_Bool) 0.0 == false ? 1 : -1];
6747               char u[sizeof (_Bool) > 0 ? 1 : -1];
6748               char v[sizeof t.t > 0 ? 1 : -1];
6749
6750               _Bool w[h];
6751               char x[sizeof m == h * sizeof m[0] ? 1 : -1];
6752               char y[-1 - (_Bool) 0 < 0 ? 1 : -1];
6753               _Bool z = true;
6754               _Bool *pz = &p;
6755             #endif
6756
6757int
6758main (void)
6759{
6760
6761             bool ps = &s;
6762             *pp |= p;
6763             *pp |= ! p;
6764
6765             #ifdef HAVE__BOOL
6766               _Bool pt = &t;
6767               *pz |= z;
6768               *pz |= ! z;
6769             #endif
6770
6771             /* Refer to every declared value, so they cannot be
6772                discarded as unused.  */
6773             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !j + !k
6774                     + !l + !m + !n + !o + !p + !pp + !ps
6775             #ifdef HAVE__BOOL
6776                     + !q + !r + !u + !v + !w + !x + !y + !z + !pt
6777             #endif
6778                    );
6779
6780  ;
6781  return 0;
6782}
6783_ACEOF
6784if ac_fn_cxx_try_compile "$LINENO"
6785then :
6786  ac_cv_header_stdbool_h=yes
6787else $as_nop
6788  ac_cv_header_stdbool_h=no
6789fi
6790rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6791fi
6792{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6793printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
6794
6795if test $ac_cv_header_stdbool_h = yes; then
6796
6797printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
6798
6799fi
6800
6801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6802printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6803if test ${ac_cv_struct_tm+y}
6804then :
6805  printf %s "(cached) " >&6
6806else $as_nop
6807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h.  */
6809#include <sys/types.h>
6810#include <time.h>
6811
6812int
6813main (void)
6814{
6815struct tm tm;
6816				     int *p = &tm.tm_sec;
6817				     return !p;
6818  ;
6819  return 0;
6820}
6821_ACEOF
6822if ac_fn_cxx_try_compile "$LINENO"
6823then :
6824  ac_cv_struct_tm=time.h
6825else $as_nop
6826  ac_cv_struct_tm=sys/time.h
6827fi
6828rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6829fi
6830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6831printf "%s\n" "$ac_cv_struct_tm" >&6; }
6832if test $ac_cv_struct_tm = sys/time.h; then
6833
6834printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
6835
6836fi
6837
6838
6839# Check for x86 FPU fix
6840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether x86 FPU control code is needed" >&5
6841printf %s "checking whether x86 FPU control code is needed... " >&6; }
6842x86_fix="no"
6843case "$host" in
6844  i?86-*-* | k?*-*-* | athlon-*-* | x86_64-*-*)
6845
6846printf "%s\n" "#define X86 1" >>confdefs.h
6847
6848    x86_fix="yes"
6849  ;;
6850esac
6851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $x86_fix" >&5
6852printf "%s\n" "$x86_fix" >&6; }
6853if test "$x86_fix" = "yes"; then
6854  ac_fn_cxx_check_header_compile "$LINENO" "fpu_control.h" "ac_cv_header_fpu_control_h" "$ac_includes_default"
6855if test "x$ac_cv_header_fpu_control_h" = xyes
6856then :
6857  printf "%s\n" "#define HAVE_FPU_CONTROL_H 1" >>confdefs.h
6858
6859fi
6860
6861fi
6862
6863# Checks for library functions.
6864ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6865if test "x$ac_cv_func_gettimeofday" = xyes
6866then :
6867  printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
6868
6869fi
6870
6871
6872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime useability" >&5
6873printf %s "checking for clock_gettime useability... " >&6; }
6874ac_ext=cpp
6875ac_cpp='$CXXCPP $CPPFLAGS'
6876ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6877ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6878ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6879
6880cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6881/* end confdefs.h.  */
6882
6883#include <time.h>
6884int main() {
6885  struct timespec tv;
6886  return clock_gettime(CLOCK_REALTIME, &tv);
6887}
6888
6889_ACEOF
6890if ac_fn_cxx_try_compile "$LINENO"
6891then :
6892  ax_cxx_clock_gettime="yes"
6893else $as_nop
6894  ax_cxx_clock_gettime="no"
6895fi
6896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6897ac_ext=cpp
6898ac_cpp='$CXXCPP $CPPFLAGS'
6899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6902
6903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cxx_clock_gettime" >&5
6904printf "%s\n" "$ax_cxx_clock_gettime" >&6; }
6905
6906if test "$ax_cxx_clock_gettime" = "yes"; then
6907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
6908printf %s "checking for library containing clock_gettime... " >&6; }
6909if test ${ac_cv_search_clock_gettime+y}
6910then :
6911  printf %s "(cached) " >&6
6912else $as_nop
6913  ac_func_search_save_LIBS=$LIBS
6914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915/* end confdefs.h.  */
6916
6917namespace conftest {
6918  extern "C" int clock_gettime ();
6919}
6920int
6921main (void)
6922{
6923return conftest::clock_gettime ();
6924  ;
6925  return 0;
6926}
6927_ACEOF
6928for ac_lib in '' rt
6929do
6930  if test -z "$ac_lib"; then
6931    ac_res="none required"
6932  else
6933    ac_res=-l$ac_lib
6934    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6935  fi
6936  if ac_fn_cxx_try_link "$LINENO"
6937then :
6938  ac_cv_search_clock_gettime=$ac_res
6939fi
6940rm -f core conftest.err conftest.$ac_objext conftest.beam \
6941    conftest$ac_exeext
6942  if test ${ac_cv_search_clock_gettime+y}
6943then :
6944  break
6945fi
6946done
6947if test ${ac_cv_search_clock_gettime+y}
6948then :
6949
6950else $as_nop
6951  ac_cv_search_clock_gettime=no
6952fi
6953rm conftest.$ac_ext
6954LIBS=$ac_func_search_save_LIBS
6955fi
6956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
6957printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
6958ac_res=$ac_cv_search_clock_gettime
6959if test "$ac_res" != no
6960then :
6961  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6962
6963printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
6964
6965fi
6966
6967fi
6968
6969{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
6970printf %s "checking for isnan... " >&6; }
6971ac_ext=cpp
6972ac_cpp='$CXXCPP $CPPFLAGS'
6973ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6976
6977ax_cxx_isnan=
6978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979/* end confdefs.h.  */
6980#include <cmath>
6981                   int main() {
6982                     std::isnan(1.0);
6983                     return 0;
6984                   }
6985_ACEOF
6986if ac_fn_cxx_try_compile "$LINENO"
6987then :
6988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: std::isnan" >&5
6989printf "%s\n" "std::isnan" >&6; }
6990                    ax_cxx_isnan="std::isnan(x)"
6991fi
6992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6993if test "x$ax_cxx_isnan" = "x"; then
6994  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6995/* end confdefs.h.  */
6996#include <cmath>
6997                     int main() {
6998                       ::isnan(1.0);
6999                       return 0;
7000                     }
7001_ACEOF
7002if ac_fn_cxx_try_compile "$LINENO"
7003then :
7004  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ::isnan" >&5
7005printf "%s\n" "::isnan" >&6; }
7006                      ax_cxx_isnan="::isnan(x)"
7007else $as_nop
7008  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7009printf "%s\n" "none" >&6; }
7010                      ax_cxx_isnan="((x) != (x))"
7011fi
7012rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7013fi
7014ac_ext=cpp
7015ac_cpp='$CXXCPP $CPPFLAGS'
7016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7019
7020
7021
7022printf "%s\n" "#define QD_ISNAN(x) $ax_cxx_isnan" >>confdefs.h
7023
7024
7025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
7026printf %s "checking for isinf... " >&6; }
7027ac_ext=cpp
7028ac_cpp='$CXXCPP $CPPFLAGS'
7029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7032
7033ax_cxx_isinf=
7034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7035/* end confdefs.h.  */
7036#include <cmath>
7037                   int main() {
7038                     std::isinf(1.0);
7039                     return 0;
7040                   }
7041_ACEOF
7042if ac_fn_cxx_try_compile "$LINENO"
7043then :
7044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: std::isinf" >&5
7045printf "%s\n" "std::isinf" >&6; }
7046                    ax_cxx_isinf="std::isinf(x)"
7047fi
7048rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7049if test "x$ax_cxx_isinf" = "x"; then
7050  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051/* end confdefs.h.  */
7052#include <cmath>
7053                     int main() {
7054                       ::isinf(1.0);
7055                       return 0;
7056                     }
7057_ACEOF
7058if ac_fn_cxx_try_compile "$LINENO"
7059then :
7060  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ::isinf" >&5
7061printf "%s\n" "::isinf" >&6; }
7062                      ax_cxx_isinf="::isinf(x)"
7063else $as_nop
7064  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7065printf "%s\n" "none" >&6; }
7066                      ax_cxx_isinf="( (x) != 0.0 && (x) == 2.0 * (x) )"
7067fi
7068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7069fi
7070ac_ext=cpp
7071ac_cpp='$CXXCPP $CPPFLAGS'
7072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7075
7076
7077
7078printf "%s\n" "#define QD_ISINF(x) $ax_cxx_isinf" >>confdefs.h
7079
7080
7081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for isfinite" >&5
7082printf %s "checking for isfinite... " >&6; }
7083ac_ext=cpp
7084ac_cpp='$CXXCPP $CPPFLAGS'
7085ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7086ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7087ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7088
7089ax_cxx_isfinite=
7090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091/* end confdefs.h.  */
7092#include <cmath>
7093                   int main() {
7094                     std::isfinite(1.0);
7095                     return 0;
7096                   }
7097_ACEOF
7098if ac_fn_cxx_try_compile "$LINENO"
7099then :
7100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: std::isfinite" >&5
7101printf "%s\n" "std::isfinite" >&6; }
7102                    ax_cxx_isfinite="std::isfinite(x)"
7103fi
7104rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7105if test "x$ax_cxx_isfinite" = "x"; then
7106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107/* end confdefs.h.  */
7108#include <cmath>
7109                     int main() {
7110                       ::isfinite(1.0);
7111                       return 0;
7112                     }
7113_ACEOF
7114if ac_fn_cxx_try_compile "$LINENO"
7115then :
7116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ::isfinite" >&5
7117printf "%s\n" "::isfinite" >&6; }
7118                      ax_cxx_isfinite="::isfinite(x)"
7119else $as_nop
7120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7121printf "%s\n" "none" >&6; }
7122                      ax_cxx_isfinite="( ((x) == 0.0) || ((x) != (2.0 * (x))) )"
7123fi
7124rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7125fi
7126ac_ext=cpp
7127ac_cpp='$CXXCPP $CPPFLAGS'
7128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7131
7132
7133
7134printf "%s\n" "#define QD_ISFINITE(x) $ax_cxx_isfinite" >>confdefs.h
7135
7136
7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
7138printf %s "checking for copysign... " >&6; }
7139ac_ext=cpp
7140ac_cpp='$CXXCPP $CPPFLAGS'
7141ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7142ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7143ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7144
7145ax_cxx_copysign=
7146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147/* end confdefs.h.  */
7148#include <cmath>
7149                   int main() {
7150                     std::copysign(1.0, 1.0);
7151                     return 0;
7152                   }
7153_ACEOF
7154if ac_fn_cxx_try_compile "$LINENO"
7155then :
7156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: std::copysign" >&5
7157printf "%s\n" "std::copysign" >&6; }
7158                    ax_cxx_copysign="std::copysign(x, y)"
7159fi
7160rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7161if test "x$ax_cxx_copysign" = "x"; then
7162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7163/* end confdefs.h.  */
7164#include <cmath>
7165                     int main() {
7166                       ::copysign(1.0, 1.0);
7167                       return 0;
7168                     }
7169_ACEOF
7170if ac_fn_cxx_try_compile "$LINENO"
7171then :
7172  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ::copysign" >&5
7173printf "%s\n" "::copysign" >&6; }
7174                      ax_cxx_copysign="::copysign(x, y)"
7175else $as_nop
7176  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7177printf "%s\n" "none" >&6; }
7178                      ax_cxx_copysign="( ((y) != 0.0) ? ( ((y) > 0.0) ? (x) : -(x) ) : ( ((1.0 / y) > 0.0) ? (x) : -(x) ) )"
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7181fi
7182ac_ext=cpp
7183ac_cpp='$CXXCPP $CPPFLAGS'
7184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7187
7188
7189
7190printf "%s\n" "#define QD_COPYSIGN(x, y) $ax_cxx_copysign" >>confdefs.h
7191
7192
7193
7194printf "%s\n" "#define QD_API /**/" >>confdefs.h
7195
7196
7197# check for C++ std includes
7198
7199printf "%s\n" "#define QD_HAVE_STD 1" >>confdefs.h
7200
7201
7202# Check for fortran-90 compiler
7203
7204# Check whether --enable-fortran was given.
7205if test ${enable_fortran+y}
7206then :
7207  enableval=$enable_fortran;
7208fi
7209
7210if test "$enable_fortran" != "no"; then
7211  ac_ext=${ac_fc_srcext-f}
7212ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7213ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7214ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7215
7216  ac_ext=${ac_fc_srcext-f}
7217ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7218ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7219ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7220if test -n "$ac_tool_prefix"; then
7221  for ac_prog in xlf95 ifort pathf95 f95 gfortran g95 pgf95 lf95 fort ifc efc pathf90 xlf90 pgf90 epcf90 xlf f90
7222  do
7223    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7224set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226printf %s "checking for $ac_word... " >&6; }
7227if test ${ac_cv_prog_FC+y}
7228then :
7229  printf %s "(cached) " >&6
7230else $as_nop
7231  if test -n "$FC"; then
7232  ac_cv_prog_FC="$FC" # Let the user override the test.
7233else
7234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7235for as_dir in $PATH
7236do
7237  IFS=$as_save_IFS
7238  case $as_dir in #(((
7239    '') as_dir=./ ;;
7240    */) ;;
7241    *) as_dir=$as_dir/ ;;
7242  esac
7243    for ac_exec_ext in '' $ac_executable_extensions; do
7244  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7245    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
7246    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7247    break 2
7248  fi
7249done
7250  done
7251IFS=$as_save_IFS
7252
7253fi
7254fi
7255FC=$ac_cv_prog_FC
7256if test -n "$FC"; then
7257  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
7258printf "%s\n" "$FC" >&6; }
7259else
7260  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261printf "%s\n" "no" >&6; }
7262fi
7263
7264
7265    test -n "$FC" && break
7266  done
7267fi
7268if test -z "$FC"; then
7269  ac_ct_FC=$FC
7270  for ac_prog in xlf95 ifort pathf95 f95 gfortran g95 pgf95 lf95 fort ifc efc pathf90 xlf90 pgf90 epcf90 xlf f90
7271do
7272  # Extract the first word of "$ac_prog", so it can be a program name with args.
7273set dummy $ac_prog; ac_word=$2
7274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275printf %s "checking for $ac_word... " >&6; }
7276if test ${ac_cv_prog_ac_ct_FC+y}
7277then :
7278  printf %s "(cached) " >&6
7279else $as_nop
7280  if test -n "$ac_ct_FC"; then
7281  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
7282else
7283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7284for as_dir in $PATH
7285do
7286  IFS=$as_save_IFS
7287  case $as_dir in #(((
7288    '') as_dir=./ ;;
7289    */) ;;
7290    *) as_dir=$as_dir/ ;;
7291  esac
7292    for ac_exec_ext in '' $ac_executable_extensions; do
7293  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7294    ac_cv_prog_ac_ct_FC="$ac_prog"
7295    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7296    break 2
7297  fi
7298done
7299  done
7300IFS=$as_save_IFS
7301
7302fi
7303fi
7304ac_ct_FC=$ac_cv_prog_ac_ct_FC
7305if test -n "$ac_ct_FC"; then
7306  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
7307printf "%s\n" "$ac_ct_FC" >&6; }
7308else
7309  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7310printf "%s\n" "no" >&6; }
7311fi
7312
7313
7314  test -n "$ac_ct_FC" && break
7315done
7316
7317  if test "x$ac_ct_FC" = x; then
7318    FC=""
7319  else
7320    case $cross_compiling:$ac_tool_warned in
7321yes:)
7322{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7323printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7324ac_tool_warned=yes ;;
7325esac
7326    FC=$ac_ct_FC
7327  fi
7328fi
7329
7330
7331# Provide some information about the compiler.
7332printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
7333set X $ac_compile
7334ac_compiler=$2
7335for ac_option in --version -v -V -qversion; do
7336  { { ac_try="$ac_compiler $ac_option >&5"
7337case "(($ac_try" in
7338  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7339  *) ac_try_echo=$ac_try;;
7340esac
7341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7342printf "%s\n" "$ac_try_echo"; } >&5
7343  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7344  ac_status=$?
7345  if test -s conftest.err; then
7346    sed '10a\
7347... rest of stderr output deleted ...
7348         10q' conftest.err >conftest.er1
7349    cat conftest.er1 >&5
7350  fi
7351  rm -f conftest.er1 conftest.err
7352  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7353  test $ac_status = 0; }
7354done
7355rm -f a.out
7356
7357# If we don't use `.F' as extension, the preprocessor is not run on the
7358# input file.  (Note that this only needs to work for GNU compilers.)
7359ac_save_ext=$ac_ext
7360ac_ext=F
7361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU Fortran" >&5
7362printf %s "checking whether the compiler supports GNU Fortran... " >&6; }
7363if test ${ac_cv_fc_compiler_gnu+y}
7364then :
7365  printf %s "(cached) " >&6
7366else $as_nop
7367  cat > conftest.$ac_ext <<_ACEOF
7368      program main
7369#ifndef __GNUC__
7370       choke me
7371#endif
7372
7373      end
7374_ACEOF
7375if ac_fn_fc_try_compile "$LINENO"
7376then :
7377  ac_compiler_gnu=yes
7378else $as_nop
7379  ac_compiler_gnu=no
7380fi
7381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7382ac_cv_fc_compiler_gnu=$ac_compiler_gnu
7383
7384fi
7385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
7386printf "%s\n" "$ac_cv_fc_compiler_gnu" >&6; }
7387ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7388
7389ac_ext=$ac_save_ext
7390ac_test_FCFLAGS=${FCFLAGS+y}
7391ac_save_FCFLAGS=$FCFLAGS
7392FCFLAGS=
7393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
7394printf %s "checking whether $FC accepts -g... " >&6; }
7395if test ${ac_cv_prog_fc_g+y}
7396then :
7397  printf %s "(cached) " >&6
7398else $as_nop
7399  FCFLAGS=-g
7400cat > conftest.$ac_ext <<_ACEOF
7401      program main
7402
7403      end
7404_ACEOF
7405if ac_fn_fc_try_compile "$LINENO"
7406then :
7407  ac_cv_prog_fc_g=yes
7408else $as_nop
7409  ac_cv_prog_fc_g=no
7410fi
7411rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7412
7413fi
7414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
7415printf "%s\n" "$ac_cv_prog_fc_g" >&6; }
7416if test $ac_test_FCFLAGS; then
7417  FCFLAGS=$ac_save_FCFLAGS
7418elif test $ac_cv_prog_fc_g = yes; then
7419  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
7420    FCFLAGS="-g -O2"
7421  else
7422    FCFLAGS="-g"
7423  fi
7424else
7425  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
7426    FCFLAGS="-O2"
7427  else
7428    FCFLAGS=
7429  fi
7430fi
7431
7432if test $ac_compiler_gnu = yes; then
7433  GFC=yes
7434else
7435  GFC=
7436fi
7437ac_ext=${ac_fc_srcext-f}
7438ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7439ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7440ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7441
7442  if test "$FC" != ""; then
7443    enable_fortran="yes"
7444
7445printf "%s\n" "#define HAVE_FORTRAN 1" >>confdefs.h
7446
7447    FC="$FC"
7448
7449
7450
7451ac_ext=${ac_fc_srcext-f}
7452ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7453ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7454ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7455{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
7456printf %s "checking how to get verbose linking output from $FC... " >&6; }
7457if test ${ac_cv_prog_fc_v+y}
7458then :
7459  printf %s "(cached) " >&6
7460else $as_nop
7461  cat > conftest.$ac_ext <<_ACEOF
7462      program main
7463
7464      end
7465_ACEOF
7466if ac_fn_fc_try_compile "$LINENO"
7467then :
7468  ac_cv_prog_fc_v=
7469# Try some options frequently used verbose output
7470for ac_verb in -v -verbose --verbose -V -\#\#\#; do
7471  cat > conftest.$ac_ext <<_ACEOF
7472      program main
7473
7474      end
7475_ACEOF
7476
7477# Compile and link our simple test program by passing a flag (argument
7478# 1 to this macro) to the Fortran compiler in order to get
7479# "verbose" output that we can then parse for the Fortran linker
7480# flags.
7481ac_save_FCFLAGS=$FCFLAGS
7482FCFLAGS="$FCFLAGS $ac_verb"
7483eval "set x $ac_link"
7484shift
7485printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5
7486# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7487# LIBRARY_PATH; skip all such settings.
7488ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7489  sed '/^Driving:/d; /^Configured with:/d;
7490      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
7491printf "%s\n" "$ac_fc_v_output" >&5
7492FCFLAGS=$ac_save_FCFLAGS
7493
7494rm -rf conftest*
7495
7496# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7497# /foo, /bar, and /baz are search directories for the Fortran linker.
7498# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7499ac_fc_v_output="`echo $ac_fc_v_output |
7500	grep 'LPATH is:' |
7501	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7502
7503# FIXME: we keep getting bitten by quoted arguments; a more general fix
7504#        that detects unbalanced quotes in FLIBS should be implemented
7505#        and (ugh) tested at some point.
7506case $ac_fc_v_output in
7507  # With xlf replace commas with spaces,
7508  # and remove "-link" and closing parenthesis.
7509  *xlfentry*)
7510    ac_fc_v_output=`echo $ac_fc_v_output |
7511      sed '
7512        s/,/ /g
7513        s/ -link / /g
7514        s/) *$//
7515      '
7516    ` ;;
7517
7518  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7519  # $LIBS confuse us, and the libraries appear later in the output anyway).
7520  *mGLOB_options_string*)
7521    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7522
7523  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7524  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7525  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7526  *-cmdline\ * | *-ignore\ * | *-def\ *)
7527    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7528	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7529	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7530	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7531
7532  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
7533  *fort77*f2c*gcc*)
7534    ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n '
7535        /:[	 ]\+Running[	 ]\{1,\}"gcc"/{
7536          /"-c"/d
7537          /[.]c"*/d
7538          s/^.*"gcc"/"gcc"/
7539          s/"//gp
7540        }'` ;;
7541
7542  # If we are using Cray Fortran then delete quotes.
7543  *cft90*)
7544    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7545esac
7546
7547
7548  # look for -l* and *.a constructs in the output
7549  for ac_arg in $ac_fc_v_output; do
7550     case $ac_arg in
7551	[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
7552	  ac_cv_prog_fc_v=$ac_verb
7553	  break 2 ;;
7554     esac
7555  done
7556done
7557if test -z "$ac_cv_prog_fc_v"; then
7558   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
7559printf "%s\n" "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
7560fi
7561else $as_nop
7562  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
7563printf "%s\n" "$as_me: WARNING: compilation failed" >&2;}
7564fi
7565rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7566
7567fi
7568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
7569printf "%s\n" "$ac_cv_prog_fc_v" >&6; }
7570{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
7571printf %s "checking for Fortran libraries of $FC... " >&6; }
7572if test ${ac_cv_fc_libs+y}
7573then :
7574  printf %s "(cached) " >&6
7575else $as_nop
7576  if test "x$FCLIBS" != "x"; then
7577  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
7578else
7579
7580cat > conftest.$ac_ext <<_ACEOF
7581      program main
7582
7583      end
7584_ACEOF
7585
7586# Compile and link our simple test program by passing a flag (argument
7587# 1 to this macro) to the Fortran compiler in order to get
7588# "verbose" output that we can then parse for the Fortran linker
7589# flags.
7590ac_save_FCFLAGS=$FCFLAGS
7591FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
7592eval "set x $ac_link"
7593shift
7594printf "%s\n" "$as_me:${as_lineno-$LINENO}: $*" >&5
7595# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
7596# LIBRARY_PATH; skip all such settings.
7597ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
7598  sed '/^Driving:/d; /^Configured with:/d;
7599      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
7600printf "%s\n" "$ac_fc_v_output" >&5
7601FCFLAGS=$ac_save_FCFLAGS
7602
7603rm -rf conftest*
7604
7605# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
7606# /foo, /bar, and /baz are search directories for the Fortran linker.
7607# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
7608ac_fc_v_output="`echo $ac_fc_v_output |
7609	grep 'LPATH is:' |
7610	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
7611
7612# FIXME: we keep getting bitten by quoted arguments; a more general fix
7613#        that detects unbalanced quotes in FLIBS should be implemented
7614#        and (ugh) tested at some point.
7615case $ac_fc_v_output in
7616  # With xlf replace commas with spaces,
7617  # and remove "-link" and closing parenthesis.
7618  *xlfentry*)
7619    ac_fc_v_output=`echo $ac_fc_v_output |
7620      sed '
7621        s/,/ /g
7622        s/ -link / /g
7623        s/) *$//
7624      '
7625    ` ;;
7626
7627  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
7628  # $LIBS confuse us, and the libraries appear later in the output anyway).
7629  *mGLOB_options_string*)
7630    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
7631
7632  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
7633  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
7634  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
7635  *-cmdline\ * | *-ignore\ * | *-def\ *)
7636    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
7637	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
7638	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
7639	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
7640
7641  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
7642  *fort77*f2c*gcc*)
7643    ac_fc_v_output=`echo "$ac_fc_v_output" | sed -n '
7644        /:[	 ]\+Running[	 ]\{1,\}"gcc"/{
7645          /"-c"/d
7646          /[.]c"*/d
7647          s/^.*"gcc"/"gcc"/
7648          s/"//gp
7649        }'` ;;
7650
7651  # If we are using Cray Fortran then delete quotes.
7652  *cft90*)
7653    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
7654esac
7655
7656
7657
7658ac_cv_fc_libs=
7659
7660# Save positional arguments (if any)
7661ac_save_positional="$@"
7662
7663set X $ac_fc_v_output
7664while test $# != 1; do
7665  shift
7666  ac_arg=$1
7667  case $ac_arg in
7668	[\\/]*.a | ?:[\\/]*.a)
7669	    ac_exists=false
7670  for ac_i in $ac_cv_fc_libs; do
7671    if test x"$ac_arg" = x"$ac_i"; then
7672      ac_exists=true
7673      break
7674    fi
7675  done
7676
7677  if test x"$ac_exists" = xtrue
7678then :
7679
7680else $as_nop
7681  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7682fi
7683	  ;;
7684	-bI:*)
7685	    ac_exists=false
7686  for ac_i in $ac_cv_fc_libs; do
7687    if test x"$ac_arg" = x"$ac_i"; then
7688      ac_exists=true
7689      break
7690    fi
7691  done
7692
7693  if test x"$ac_exists" = xtrue
7694then :
7695
7696else $as_nop
7697  if test "$ac_compiler_gnu" = yes; then
7698  for ac_link_opt in $ac_arg; do
7699    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7700  done
7701else
7702  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7703fi
7704fi
7705	  ;;
7706	  # Ignore these flags.
7707	-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
7708	  |-LANG:=* | -LIST:* | -LNO:* | -link)
7709	  ;;
7710	-lkernel32)
7711	  # Ignore this library only on Windows-like systems.
7712	  case $host_os in
7713	  cygwin* | msys* ) ;;
7714	  *)
7715	    ac_exists=false
7716  for ac_i in $ac_cv_fc_libs; do
7717    if test x"$ac_arg" = x"$ac_i"; then
7718      ac_exists=true
7719      break
7720    fi
7721  done
7722
7723  if test x"$ac_exists" = xtrue
7724then :
7725
7726else $as_nop
7727  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7728fi
7729	    ;;
7730	  esac
7731	  ;;
7732	-[LRuYz])
7733	  # These flags, when seen by themselves, take an argument.
7734	  # We remove the space between option and argument and re-iterate
7735	  # unless we find an empty arg or a new option (starting with -)
7736	  case $2 in
7737	     "" | -*);;
7738	     *)
7739		ac_arg="$ac_arg$2"
7740		shift; shift
7741		set X $ac_arg "$@"
7742		;;
7743	  esac
7744	  ;;
7745	-YP,*)
7746	  for ac_j in `printf "%s\n" "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
7747	      ac_exists=false
7748  for ac_i in $ac_cv_fc_libs; do
7749    if test x"$ac_j" = x"$ac_i"; then
7750      ac_exists=true
7751      break
7752    fi
7753  done
7754
7755  if test x"$ac_exists" = xtrue
7756then :
7757
7758else $as_nop
7759  ac_arg="$ac_arg $ac_j"
7760			       ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
7761fi
7762	  done
7763	  ;;
7764	-[lLR]*)
7765	    ac_exists=false
7766  for ac_i in $ac_cv_fc_libs; do
7767    if test x"$ac_arg" = x"$ac_i"; then
7768      ac_exists=true
7769      break
7770    fi
7771  done
7772
7773  if test x"$ac_exists" = xtrue
7774then :
7775
7776else $as_nop
7777  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7778fi
7779	  ;;
7780	-zallextract*| -zdefaultextract)
7781	  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
7782	  ;;
7783	-mllvm) ${2+shift};; # Defend against 'clang -mllvm -loopopt=0'.
7784	  # Ignore everything else.
7785  esac
7786done
7787# restore positional arguments
7788set X $ac_save_positional; shift
7789
7790# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
7791# then we insist that the "run path" must be an absolute path (i.e. it
7792# must begin with a "/").
7793case `(uname -sr) 2>/dev/null` in
7794   "SunOS 5"*)
7795      ac_ld_run_path=`printf "%s\n" "$ac_fc_v_output" |
7796			sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
7797      test "x$ac_ld_run_path" != x &&
7798	if test "$ac_compiler_gnu" = yes; then
7799  for ac_link_opt in $ac_ld_run_path; do
7800    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
7801  done
7802else
7803  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
7804fi
7805      ;;
7806esac
7807fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
7808
7809fi
7810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
7811printf "%s\n" "$ac_cv_fc_libs" >&6; }
7812FCLIBS="$ac_cv_fc_libs"
7813
7814
7815ac_ext=${ac_fc_srcext-f}
7816ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7817ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7818ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7819
7820    ac_ext=${ac_fc_srcext-f}
7821ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7822ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7823ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran flag needed to accept free-form source" >&5
7825printf %s "checking for Fortran flag needed to accept free-form source... " >&6; }
7826if test ${ac_cv_fc_freeform+y}
7827then :
7828  printf %s "(cached) " >&6
7829else $as_nop
7830  ac_cv_fc_freeform=unknown
7831ac_fc_freeform_FCFLAGS_save=$FCFLAGS
7832for ac_flag in none -ffree-form -FR -free -qfree -Mfree -Mfreeform \
7833	       -freeform "-f free" -8 +source=free -nfix --nfix -Free
7834do
7835  test "x$ac_flag" != xnone && FCFLAGS="$ac_fc_freeform_FCFLAGS_save $ac_flag"
7836  cat > conftest.$ac_ext <<_ACEOF
7837
7838  program freeform
7839       ! FIXME: how to best confuse non-freeform compilers?
7840       print *, 'Hello ', &
7841          'world.'
7842       end
7843_ACEOF
7844if ac_fn_fc_try_compile "$LINENO"
7845then :
7846  ac_cv_fc_freeform=$ac_flag; break
7847fi
7848rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7849done
7850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7851FCFLAGS=$ac_fc_freeform_FCFLAGS_save
7852
7853fi
7854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_freeform" >&5
7855printf "%s\n" "$ac_cv_fc_freeform" >&6; }
7856if test "x$ac_cv_fc_freeform" = xunknown; then
7857  as_fn_error 77 "Fortran does not accept free-form source" "$LINENO" 5
7858else
7859  if test "x$ac_cv_fc_freeform" != xnone; then
7860    FCFLAGS="$FCFLAGS $ac_cv_fc_freeform"
7861  fi
7862
7863fi
7864ac_ext=${ac_fc_srcext-f}
7865ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7866ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7867ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7868
7869
7870    FC_PROG_NAME=`basename $FC`
7871
7872    case $host in
7873      i?86-*-* | k?*-*-* | athlon-*-* | ia64-*-* | x86_64-*-*)
7874        case "$FC_PROG_NAME" in
7875          ifc|ifort|efc)
7876            REQ_FCFLAGS="$REQ_FCFLAGS -mp -Vaxlib"
7877          ;;
7878        esac
7879      ;;
7880      powerpc*-*-*)
7881        case "$FC_PROG_NAME" in
7882          xlf*)
7883            REQ_FCFLAGS="$REQ_FCFLAGS -qstrict"
7884          ;;
7885        esac
7886      ;;
7887    esac
7888
7889
7890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for etime" >&5
7891printf %s "checking for etime... " >&6; }
7892ac_ext=${ac_fc_srcext-f}
7893ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7894ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7895ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7896
7897ax_fc_etime=
7898ax_fc_etime_names="etime etime_"
7899for name in $ax_fc_etime_names; do
7900  cat > conftest.$ac_ext <<_ACEOF
7901      program main
7902
7903      real*4 t(2), tot
7904      tot = $name(t)
7905      end
7906_ACEOF
7907if ac_fn_fc_try_link "$LINENO"
7908then :
7909  ax_fc_etime=$name
7910fi
7911rm -f core conftest.err conftest.$ac_objext conftest.beam \
7912    conftest$ac_exeext conftest.$ac_ext
7913  if test "x$ax_fc_etime" != "x"; then
7914    break;
7915  fi
7916done
7917ac_ext=${ac_fc_srcext-f}
7918ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7919ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7920ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7921
7922if test "x$ax_fc_etime" != "x"; then
7923  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_fc_etime" >&5
7924printf "%s\n" "$ax_fc_etime" >&6; }
7925
7926else
7927  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
7928printf "%s\n" "none" >&6; }
7929  as_fn_error $? "Cannot find etime." "$LINENO" 5
7930fi
7931
7932    ETIME=$ax_fc_etime
7933
7934
7935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether extra library is needed to link Fortran and C++" >&5
7936printf %s "checking whether extra library is needed to link Fortran and C++... " >&6; }
7937ac_ext=cpp
7938ac_cpp='$CXXCPP $CPPFLAGS'
7939ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7940ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7941ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7942
7943ax_cxx_fc_lib=
7944ax_cxx_fc_lib_names="none -lompstubs -lmtsk"
7945for name in $ax_cxx_fc_lib_names; do
7946  if test "x$name" = xnone; then
7947    lib=""
7948  else
7949    lib=$name
7950  fi
7951  save_LIBS="$LIBS"
7952  LIBS="$LIBS $FCLIBS $lib"
7953  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954/* end confdefs.h.  */
7955
7956int
7957main (void)
7958{
7959
7960  ;
7961  return 0;
7962}
7963_ACEOF
7964if ac_fn_cxx_try_link "$LINENO"
7965then :
7966  ax_cxx_fc_lib=$name
7967fi
7968rm -f core conftest.err conftest.$ac_objext conftest.beam \
7969    conftest$ac_exeext conftest.$ac_ext
7970  LIBS="$save_LIBS"
7971  if test "x$ax_cxx_fc_lib" != "x"; then
7972    break
7973  fi
7974done
7975ac_ext=${ac_fc_srcext-f}
7976ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7977ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7978ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7979
7980if test "x$ax_cxx_fc_lib" != x; then
7981  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cxx_fc_lib" >&5
7982printf "%s\n" "$ax_cxx_fc_lib" >&6; }
7983  if test "x$ax_cxx_fc_lib" = xnone; then
7984    ax_cxx_fc_lib=
7985  fi
7986  FCLIBS="$FCLIBS $ax_cxx_fc_lib"
7987else
7988  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
7989printf "%s\n" "unknown" >&6; }
7990  as_fn_error $? "Cannot link C++ and Fortran." "$LINENO" 5
7991fi
7992
7993
7994
7995ac_ext=${ac_fc_srcext-f}
7996ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
7997ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
7998ac_compiler_gnu=$ac_cv_fc_compiler_gnu
7999
8000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
8001printf %s "checking for dummy main to link with Fortran libraries... " >&6; }
8002if test ${ac_cv_fc_dummy_main+y}
8003then :
8004  printf %s "(cached) " >&6
8005else $as_nop
8006  ac_fc_dm_save_LIBS=$LIBS
8007 LIBS="$LIBS $FCLIBS"
8008 ac_fortran_dm_var=FC_DUMMY_MAIN
8009 ac_ext=c
8010ac_cpp='$CPP $CPPFLAGS'
8011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8013ac_compiler_gnu=$ac_cv_c_compiler_gnu
8014
8015 # First, try linking without a dummy main:
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017/* end confdefs.h.  */
8018
8019#ifdef FC_DUMMY_MAIN
8020#ifndef FC_DUMMY_MAIN_EQ_F77
8021#  ifdef __cplusplus
8022     extern "C"
8023#  endif
8024   int FC_DUMMY_MAIN() { return 1; }
8025#endif
8026#endif
8027int
8028main (void)
8029{
8030
8031  ;
8032  return 0;
8033}
8034_ACEOF
8035if ac_fn_c_try_link "$LINENO"
8036then :
8037  ac_cv_fortran_dummy_main=none
8038else $as_nop
8039  ac_cv_fortran_dummy_main=unknown
8040fi
8041rm -f core conftest.err conftest.$ac_objext conftest.beam \
8042    conftest$ac_exeext conftest.$ac_ext
8043
8044 if test $ac_cv_fortran_dummy_main = unknown; then
8045   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
8046     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047/* end confdefs.h.  */
8048#define $ac_fortran_dm_var $ac_func
8049#ifdef FC_DUMMY_MAIN
8050#ifndef FC_DUMMY_MAIN_EQ_F77
8051#  ifdef __cplusplus
8052     extern "C"
8053#  endif
8054   int FC_DUMMY_MAIN() { return 1; }
8055#endif
8056#endif
8057int
8058main (void)
8059{
8060
8061  ;
8062  return 0;
8063}
8064_ACEOF
8065if ac_fn_c_try_link "$LINENO"
8066then :
8067  ac_cv_fortran_dummy_main=$ac_func; break
8068fi
8069rm -f core conftest.err conftest.$ac_objext conftest.beam \
8070    conftest$ac_exeext conftest.$ac_ext
8071   done
8072 fi
8073 ac_ext=${ac_fc_srcext-f}
8074ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8075ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8076ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8077 ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
8078 rm -rf conftest*
8079 LIBS=$ac_fc_dm_save_LIBS
8080
8081fi
8082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
8083printf "%s\n" "$ac_cv_fc_dummy_main" >&6; }
8084FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
8085if test "$FC_DUMMY_MAIN" != unknown
8086then :
8087  if test $FC_DUMMY_MAIN != none; then
8088
8089printf "%s\n" "#define FC_DUMMY_MAIN $FC_DUMMY_MAIN" >>confdefs.h
8090
8091  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
8092
8093printf "%s\n" "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
8094
8095  fi
8096fi
8097else $as_nop
8098  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8099printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8100as_fn_error $? "linking to Fortran libraries from C fails
8101See \`config.log' for more details" "$LINENO" 5; }
8102fi
8103
8104ac_ext=${ac_fc_srcext-f}
8105ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8106ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8107ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8108
8109ac_ext=${ac_fc_srcext-f}
8110ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8111ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8112ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8113{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Fortran name-mangling scheme" >&5
8114printf %s "checking for Fortran name-mangling scheme... " >&6; }
8115if test ${ac_cv_fc_mangling+y}
8116then :
8117  printf %s "(cached) " >&6
8118else $as_nop
8119  cat > conftest.$ac_ext <<_ACEOF
8120      subroutine foobar()
8121      return
8122      end
8123      subroutine foo_bar()
8124      return
8125      end
8126_ACEOF
8127if ac_fn_fc_try_compile "$LINENO"
8128then :
8129  mv conftest.$ac_objext cfortran_test.$ac_objext
8130
8131  ac_save_LIBS=$LIBS
8132  LIBS="cfortran_test.$ac_objext $LIBS $FCLIBS"
8133
8134  ac_ext=c
8135ac_cpp='$CPP $CPPFLAGS'
8136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138ac_compiler_gnu=$ac_cv_c_compiler_gnu
8139  ac_success=no
8140  for ac_foobar in foobar FOOBAR; do
8141    for ac_underscore in "" "_"; do
8142      ac_func="$ac_foobar$ac_underscore"
8143      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144/* end confdefs.h.  */
8145
8146/* Override any GCC internal prototype to avoid an error.
8147   Use char because int might match the return type of a GCC
8148   builtin and then its argument prototype would still apply.  */
8149char $ac_func ();
8150#ifdef FC_DUMMY_MAIN
8151#ifndef FC_DUMMY_MAIN_EQ_F77
8152#  ifdef __cplusplus
8153     extern "C"
8154#  endif
8155   int FC_DUMMY_MAIN() { return 1; }
8156#endif
8157#endif
8158int
8159main (void)
8160{
8161return $ac_func ();
8162  ;
8163  return 0;
8164}
8165_ACEOF
8166if ac_fn_c_try_link "$LINENO"
8167then :
8168  ac_success=yes; break 2
8169fi
8170rm -f core conftest.err conftest.$ac_objext conftest.beam \
8171    conftest$ac_exeext conftest.$ac_ext
8172    done
8173  done
8174  ac_ext=${ac_fc_srcext-f}
8175ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8176ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8177ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8178
8179  if test "$ac_success" = "yes"; then
8180     case $ac_foobar in
8181	foobar)
8182	   ac_case=lower
8183	   ac_foo_bar=foo_bar
8184	   ;;
8185	FOOBAR)
8186	   ac_case=upper
8187	   ac_foo_bar=FOO_BAR
8188	   ;;
8189     esac
8190
8191     ac_ext=c
8192ac_cpp='$CPP $CPPFLAGS'
8193ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8194ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8195ac_compiler_gnu=$ac_cv_c_compiler_gnu
8196     ac_success_extra=no
8197     for ac_extra in "" "_"; do
8198	ac_func="$ac_foo_bar$ac_underscore$ac_extra"
8199	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200/* end confdefs.h.  */
8201
8202/* Override any GCC internal prototype to avoid an error.
8203   Use char because int might match the return type of a GCC
8204   builtin and then its argument prototype would still apply.  */
8205char $ac_func ();
8206#ifdef FC_DUMMY_MAIN
8207#ifndef FC_DUMMY_MAIN_EQ_F77
8208#  ifdef __cplusplus
8209     extern "C"
8210#  endif
8211   int FC_DUMMY_MAIN() { return 1; }
8212#endif
8213#endif
8214int
8215main (void)
8216{
8217return $ac_func ();
8218  ;
8219  return 0;
8220}
8221_ACEOF
8222if ac_fn_c_try_link "$LINENO"
8223then :
8224  ac_success_extra=yes; break
8225fi
8226rm -f core conftest.err conftest.$ac_objext conftest.beam \
8227    conftest$ac_exeext conftest.$ac_ext
8228     done
8229     ac_ext=${ac_fc_srcext-f}
8230ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8231ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8232ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8233
8234     if test "$ac_success_extra" = "yes"; then
8235	ac_cv_fc_mangling="$ac_case case"
8236	if test -z "$ac_underscore"; then
8237	   ac_cv_fc_mangling="$ac_cv_fc_mangling, no underscore"
8238	else
8239	   ac_cv_fc_mangling="$ac_cv_fc_mangling, underscore"
8240	fi
8241	if test -z "$ac_extra"; then
8242	   ac_cv_fc_mangling="$ac_cv_fc_mangling, no extra underscore"
8243	else
8244	   ac_cv_fc_mangling="$ac_cv_fc_mangling, extra underscore"
8245	fi
8246      else
8247	ac_cv_fc_mangling="unknown"
8248      fi
8249  else
8250     ac_cv_fc_mangling="unknown"
8251  fi
8252
8253  LIBS=$ac_save_LIBS
8254  rm -rf conftest*
8255  rm -f cfortran_test*
8256else $as_nop
8257  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8258printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8259as_fn_error $? "cannot compile a simple Fortran program
8260See \`config.log' for more details" "$LINENO" 5; }
8261fi
8262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8263
8264fi
8265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_mangling" >&5
8266printf "%s\n" "$ac_cv_fc_mangling" >&6; }
8267
8268ac_ext=${ac_fc_srcext-f}
8269ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8270ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8271ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8272
8273ac_ext=${ac_fc_srcext-f}
8274ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8275ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8276ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8277case $ac_cv_fc_mangling in
8278  "lower case, no underscore, no extra underscore")
8279	  printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h
8280
8281	  printf "%s\n" "#define FC_FUNC_(name,NAME) name" >>confdefs.h
8282 ;;
8283  "lower case, no underscore, extra underscore")
8284	  printf "%s\n" "#define FC_FUNC(name,NAME) name" >>confdefs.h
8285
8286	  printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
8287 ;;
8288  "lower case, underscore, no extra underscore")
8289	  printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
8290
8291	  printf "%s\n" "#define FC_FUNC_(name,NAME) name ## _" >>confdefs.h
8292 ;;
8293  "lower case, underscore, extra underscore")
8294	  printf "%s\n" "#define FC_FUNC(name,NAME) name ## _" >>confdefs.h
8295
8296	  printf "%s\n" "#define FC_FUNC_(name,NAME) name ## __" >>confdefs.h
8297 ;;
8298  "upper case, no underscore, no extra underscore")
8299	  printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
8300
8301	  printf "%s\n" "#define FC_FUNC_(name,NAME) NAME" >>confdefs.h
8302 ;;
8303  "upper case, no underscore, extra underscore")
8304	  printf "%s\n" "#define FC_FUNC(name,NAME) NAME" >>confdefs.h
8305
8306	  printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
8307 ;;
8308  "upper case, underscore, no extra underscore")
8309	  printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
8310
8311	  printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## _" >>confdefs.h
8312 ;;
8313  "upper case, underscore, extra underscore")
8314	  printf "%s\n" "#define FC_FUNC(name,NAME) NAME ## _" >>confdefs.h
8315
8316	  printf "%s\n" "#define FC_FUNC_(name,NAME) NAME ## __" >>confdefs.h
8317 ;;
8318  *)
8319	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
8320printf "%s\n" "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
8321	  ;;
8322esac
8323
8324ac_ext=${ac_fc_srcext-f}
8325ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8326ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8327ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8328
8329    ac_ext=${ac_fc_srcext-f}
8330ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8331ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8332ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alternate main to link with Fortran libraries" >&5
8334printf %s "checking for alternate main to link with Fortran libraries... " >&6; }
8335if test ${ac_cv_fc_main+y}
8336then :
8337  printf %s "(cached) " >&6
8338else $as_nop
8339  ac_fc_m_save_LIBS=$LIBS
8340 LIBS="$LIBS $FCLIBS"
8341 ac_fortran_dm_var=FC_DUMMY_MAIN
8342 ac_ext=c
8343ac_cpp='$CPP $CPPFLAGS'
8344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346ac_compiler_gnu=$ac_cv_c_compiler_gnu
8347 ac_cv_fortran_main="main" # default entry point name
8348 for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
8349   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350/* end confdefs.h.  */
8351#ifdef FC_DUMMY_MAIN_EQ_F77
8352#  undef F77_DUMMY_MAIN
8353#  undef FC_DUMMY_MAIN
8354#else
8355#  undef $ac_fortran_dm_var
8356#endif
8357#define main $ac_func
8358#ifdef FC_DUMMY_MAIN
8359#ifndef FC_DUMMY_MAIN_EQ_F77
8360#  ifdef __cplusplus
8361     extern "C"
8362#  endif
8363   int FC_DUMMY_MAIN() { return 1; }
8364#endif
8365#endif
8366int
8367main (void)
8368{
8369
8370  ;
8371  return 0;
8372}
8373_ACEOF
8374if ac_fn_c_try_link "$LINENO"
8375then :
8376  ac_cv_fortran_main=$ac_func; break
8377fi
8378rm -f core conftest.err conftest.$ac_objext conftest.beam \
8379    conftest$ac_exeext conftest.$ac_ext
8380 done
8381 ac_ext=${ac_fc_srcext-f}
8382ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8383ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8384ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8385 ac_cv_fc_main=$ac_cv_fortran_main
8386 rm -rf conftest*
8387 LIBS=$ac_fc_m_save_LIBS
8388
8389fi
8390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_main" >&5
8391printf "%s\n" "$ac_cv_fc_main" >&6; }
8392
8393printf "%s\n" "#define FC_MAIN $ac_cv_fc_main" >>confdefs.h
8394
8395
8396ac_ext=${ac_fc_srcext-f}
8397ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8398ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8399ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8400
8401
8402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion flag" >&5
8403printf %s "checking fortran 90 modules inclusion flag... " >&6; }
8404if test ${ax_cv_f90_modflag+y}
8405then :
8406  printf %s "(cached) " >&6
8407else $as_nop
8408  ac_ext=${ac_fc_srcext-f}
8409ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8410ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8411ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8412
8413i=0
8414while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do
8415  i=`expr $i + 1`
8416done
8417mkdir tmpdir_$i
8418cd tmpdir_$i
8419cat > conftest.$ac_ext <<_ACEOF
8420module conftest_module
8421   contains
8422   subroutine conftest_routine
8423   write(*,'(a)') 'gotcha!'
8424   end subroutine conftest_routine
8425   end module conftest_module
8426
8427_ACEOF
8428if ac_fn_fc_try_compile "$LINENO"
8429then :
8430
8431fi
8432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8433cd ..
8434ax_f90_modflag="not found"
8435for ax_flag in "-I " "-M" "-p"; do
8436  if test "$ax_f90_modflag" = "not found" ; then
8437    ax_save_FCFLAGS="$FCFLAGS"
8438    FCFLAGS="$ax_save_FCFLAGS ${ax_flag}tmpdir_$i"
8439    cat > conftest.$ac_ext <<_ACEOF
8440program conftest_program
8441       use conftest_module
8442       call conftest_routine
8443       end program conftest_program
8444
8445_ACEOF
8446if ac_fn_fc_try_compile "$LINENO"
8447then :
8448  ax_f90_modflag="$ax_flag"
8449fi
8450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8451    FCFLAGS="$ax_save_FCFLAGS"
8452  fi
8453done
8454rm -fr tmpdir_$i
8455if test "$ax_modflag" = "not found" ; then
8456  as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" 5
8457fi
8458ac_ext=${ac_fc_srcext-f}
8459ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8460ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8461ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8462
8463
8464fi
8465{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5
8466printf "%s\n" "$ax_cv_f90_modflag" >&6; }
8467
8468
8469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules naming style" >&5
8470printf %s "checking fortran 90 modules naming style... " >&6; }
8471if test ${ax_cv_f90_module_style+y}
8472then :
8473  printf %s "(cached) " >&6
8474else $as_nop
8475  ac_ext=${ac_fc_srcext-f}
8476ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8477ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8478ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8479
8480i=0
8481while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do
8482  i=`expr $i + 1`
8483done
8484mkdir tmpdir_$i
8485cd tmpdir_$i
8486cat > conftest.$ac_ext <<_ACEOF
8487module conftest_module
8488   contains
8489   subroutine conftest_routine
8490   write(*,'(a)') 'gotcha!'
8491   end subroutine conftest_routine
8492   end module conftest_module
8493
8494_ACEOF
8495if ac_fn_fc_try_compile "$LINENO"
8496then :
8497  ax_f90_modext=`ls | sed -n 's,conftest_module\.,,p'`
8498   if test x$ax_f90_modext = x ; then
8499     ax_f90_modext=`ls | sed -n 's,CONFTEST_MODULE\.,,p'`
8500     if test x$ax_f90_modext = x ; then
8501       ax_f90_modext=unknown
8502     else
8503       ax_f90_module_style="uppercase, $ax_f90_modext"
8504     fi
8505   else
8506     ax_f90_module_style="lowercase, $ax_f90_modext"
8507   fi
8508
8509else $as_nop
8510  ax_f90_module_style=unknown
8511fi
8512rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8513cd ..
8514rm -fr tmpdir_$i
8515ac_ext=${ac_fc_srcext-f}
8516ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
8517ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
8518ac_compiler_gnu=$ac_cv_fc_compiler_gnu
8519
8520
8521fi
8522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_module_style" >&5
8523printf "%s\n" "$ax_cv_f90_module_style" >&6; }
8524    module_case=`echo "$ax_f90_module_style" | sed 's/,.*$//'`
8525    module_ext=`echo "$ax_f90_module_style" | sed 's/^.*, //'`
8526
8527  else
8528    enable_fortran="no"
8529  fi
8530
8531  FCFLAGS="$FCFLAGS $REQ_FCFLAGS"
8532  ac_ext=cpp
8533ac_cpp='$CXXCPP $CPPFLAGS'
8534ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8537
8538fi
8539
8540 if test "$module_case" = "uppercase"; then
8541  UPCASE_MODULE_TRUE=
8542  UPCASE_MODULE_FALSE='#'
8543else
8544  UPCASE_MODULE_TRUE='#'
8545  UPCASE_MODULE_FALSE=
8546fi
8547
8548 if test "$enable_fortran" = "yes"; then
8549  HAVE_FORTRAN_TRUE=
8550  HAVE_FORTRAN_FALSE='#'
8551else
8552  HAVE_FORTRAN_TRUE='#'
8553  HAVE_FORTRAN_FALSE=
8554fi
8555
8556
8557F77=$FC
8558
8559FFLAGS=$FCFLAGS
8560
8561
8562# Add libraries
8563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
8564printf %s "checking for sqrt in -lm... " >&6; }
8565if test ${ac_cv_lib_m_sqrt+y}
8566then :
8567  printf %s "(cached) " >&6
8568else $as_nop
8569  ac_check_lib_save_LIBS=$LIBS
8570LIBS="-lm  $LIBS"
8571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572/* end confdefs.h.  */
8573
8574namespace conftest {
8575  extern "C" int sqrt ();
8576}
8577#ifdef FC_DUMMY_MAIN
8578#ifndef FC_DUMMY_MAIN_EQ_F77
8579#  ifdef __cplusplus
8580     extern "C"
8581#  endif
8582   int FC_DUMMY_MAIN() { return 1; }
8583#endif
8584#endif
8585int
8586main (void)
8587{
8588return conftest::sqrt ();
8589  ;
8590  return 0;
8591}
8592_ACEOF
8593if ac_fn_cxx_try_link "$LINENO"
8594then :
8595  ac_cv_lib_m_sqrt=yes
8596else $as_nop
8597  ac_cv_lib_m_sqrt=no
8598fi
8599rm -f core conftest.err conftest.$ac_objext conftest.beam \
8600    conftest$ac_exeext conftest.$ac_ext
8601LIBS=$ac_check_lib_save_LIBS
8602fi
8603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
8604printf "%s\n" "$ac_cv_lib_m_sqrt" >&6; }
8605if test "x$ac_cv_lib_m_sqrt" = xyes
8606then :
8607  printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
8608
8609  LIBS="-lm $LIBS"
8610
8611fi
8612
8613
8614# libtool stuff
8615case `pwd` in
8616  *\ * | *\	*)
8617    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8618printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8619esac
8620
8621
8622
8623macro_version='2.4.6'
8624macro_revision='2.4.6'
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639ltmain=$ac_aux_dir/ltmain.sh
8640
8641# Backslashify metacharacters that are still active within
8642# double-quoted strings.
8643sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8644
8645# Same as above, but do not quote variable references.
8646double_quote_subst='s/\(["`\\]\)/\\\1/g'
8647
8648# Sed substitution to delay expansion of an escaped shell variable in a
8649# double_quote_subst'ed string.
8650delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8651
8652# Sed substitution to delay expansion of an escaped single quote.
8653delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8654
8655# Sed substitution to avoid accidental globbing in evaled expressions
8656no_glob_subst='s/\*/\\\*/g'
8657
8658ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8659ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8660ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8661
8662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8663printf %s "checking how to print strings... " >&6; }
8664# Test print first, because it will be a builtin if present.
8665if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8666   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8667  ECHO='print -r --'
8668elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8669  ECHO='printf %s\n'
8670else
8671  # Use this function as a fallback that always works.
8672  func_fallback_echo ()
8673  {
8674    eval 'cat <<_LTECHO_EOF
8675$1
8676_LTECHO_EOF'
8677  }
8678  ECHO='func_fallback_echo'
8679fi
8680
8681# func_echo_all arg...
8682# Invoke $ECHO with all args, space-separated.
8683func_echo_all ()
8684{
8685    $ECHO ""
8686}
8687
8688case $ECHO in
8689  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8690printf "%s\n" "printf" >&6; } ;;
8691  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8692printf "%s\n" "print -r" >&6; } ;;
8693  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8694printf "%s\n" "cat" >&6; } ;;
8695esac
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8711printf %s "checking for a sed that does not truncate output... " >&6; }
8712if test ${ac_cv_path_SED+y}
8713then :
8714  printf %s "(cached) " >&6
8715else $as_nop
8716            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8717     for ac_i in 1 2 3 4 5 6 7; do
8718       ac_script="$ac_script$as_nl$ac_script"
8719     done
8720     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8721     { ac_script=; unset ac_script;}
8722     if test -z "$SED"; then
8723  ac_path_SED_found=false
8724  # Loop through the user's path and test for each of PROGNAME-LIST
8725  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8726for as_dir in $PATH
8727do
8728  IFS=$as_save_IFS
8729  case $as_dir in #(((
8730    '') as_dir=./ ;;
8731    */) ;;
8732    *) as_dir=$as_dir/ ;;
8733  esac
8734    for ac_prog in sed gsed
8735   do
8736    for ac_exec_ext in '' $ac_executable_extensions; do
8737      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8738      as_fn_executable_p "$ac_path_SED" || continue
8739# Check for GNU ac_path_SED and select it if it is found.
8740  # Check for GNU $ac_path_SED
8741case `"$ac_path_SED" --version 2>&1` in
8742*GNU*)
8743  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8744*)
8745  ac_count=0
8746  printf %s 0123456789 >"conftest.in"
8747  while :
8748  do
8749    cat "conftest.in" "conftest.in" >"conftest.tmp"
8750    mv "conftest.tmp" "conftest.in"
8751    cp "conftest.in" "conftest.nl"
8752    printf "%s\n" '' >> "conftest.nl"
8753    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8754    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8755    as_fn_arith $ac_count + 1 && ac_count=$as_val
8756    if test $ac_count -gt ${ac_path_SED_max-0}; then
8757      # Best one so far, save it but keep looking for a better one
8758      ac_cv_path_SED="$ac_path_SED"
8759      ac_path_SED_max=$ac_count
8760    fi
8761    # 10*(2^10) chars as input seems more than enough
8762    test $ac_count -gt 10 && break
8763  done
8764  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8765esac
8766
8767      $ac_path_SED_found && break 3
8768    done
8769  done
8770  done
8771IFS=$as_save_IFS
8772  if test -z "$ac_cv_path_SED"; then
8773    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8774  fi
8775else
8776  ac_cv_path_SED=$SED
8777fi
8778
8779fi
8780{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8781printf "%s\n" "$ac_cv_path_SED" >&6; }
8782 SED="$ac_cv_path_SED"
8783  rm -f conftest.sed
8784
8785test -z "$SED" && SED=sed
8786Xsed="$SED -e 1s/^X//"
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
8799printf %s "checking for grep that handles long lines and -e... " >&6; }
8800if test ${ac_cv_path_GREP+y}
8801then :
8802  printf %s "(cached) " >&6
8803else $as_nop
8804  if test -z "$GREP"; then
8805  ac_path_GREP_found=false
8806  # Loop through the user's path and test for each of PROGNAME-LIST
8807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8809do
8810  IFS=$as_save_IFS
8811  case $as_dir in #(((
8812    '') as_dir=./ ;;
8813    */) ;;
8814    *) as_dir=$as_dir/ ;;
8815  esac
8816    for ac_prog in grep ggrep
8817   do
8818    for ac_exec_ext in '' $ac_executable_extensions; do
8819      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
8820      as_fn_executable_p "$ac_path_GREP" || continue
8821# Check for GNU ac_path_GREP and select it if it is found.
8822  # Check for GNU $ac_path_GREP
8823case `"$ac_path_GREP" --version 2>&1` in
8824*GNU*)
8825  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8826*)
8827  ac_count=0
8828  printf %s 0123456789 >"conftest.in"
8829  while :
8830  do
8831    cat "conftest.in" "conftest.in" >"conftest.tmp"
8832    mv "conftest.tmp" "conftest.in"
8833    cp "conftest.in" "conftest.nl"
8834    printf "%s\n" 'GREP' >> "conftest.nl"
8835    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8836    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8837    as_fn_arith $ac_count + 1 && ac_count=$as_val
8838    if test $ac_count -gt ${ac_path_GREP_max-0}; then
8839      # Best one so far, save it but keep looking for a better one
8840      ac_cv_path_GREP="$ac_path_GREP"
8841      ac_path_GREP_max=$ac_count
8842    fi
8843    # 10*(2^10) chars as input seems more than enough
8844    test $ac_count -gt 10 && break
8845  done
8846  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8847esac
8848
8849      $ac_path_GREP_found && break 3
8850    done
8851  done
8852  done
8853IFS=$as_save_IFS
8854  if test -z "$ac_cv_path_GREP"; then
8855    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8856  fi
8857else
8858  ac_cv_path_GREP=$GREP
8859fi
8860
8861fi
8862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
8863printf "%s\n" "$ac_cv_path_GREP" >&6; }
8864 GREP="$ac_cv_path_GREP"
8865
8866
8867{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
8868printf %s "checking for egrep... " >&6; }
8869if test ${ac_cv_path_EGREP+y}
8870then :
8871  printf %s "(cached) " >&6
8872else $as_nop
8873  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8874   then ac_cv_path_EGREP="$GREP -E"
8875   else
8876     if test -z "$EGREP"; then
8877  ac_path_EGREP_found=false
8878  # Loop through the user's path and test for each of PROGNAME-LIST
8879  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8880for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8881do
8882  IFS=$as_save_IFS
8883  case $as_dir in #(((
8884    '') as_dir=./ ;;
8885    */) ;;
8886    *) as_dir=$as_dir/ ;;
8887  esac
8888    for ac_prog in egrep
8889   do
8890    for ac_exec_ext in '' $ac_executable_extensions; do
8891      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
8892      as_fn_executable_p "$ac_path_EGREP" || continue
8893# Check for GNU ac_path_EGREP and select it if it is found.
8894  # Check for GNU $ac_path_EGREP
8895case `"$ac_path_EGREP" --version 2>&1` in
8896*GNU*)
8897  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8898*)
8899  ac_count=0
8900  printf %s 0123456789 >"conftest.in"
8901  while :
8902  do
8903    cat "conftest.in" "conftest.in" >"conftest.tmp"
8904    mv "conftest.tmp" "conftest.in"
8905    cp "conftest.in" "conftest.nl"
8906    printf "%s\n" 'EGREP' >> "conftest.nl"
8907    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8908    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8909    as_fn_arith $ac_count + 1 && ac_count=$as_val
8910    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8911      # Best one so far, save it but keep looking for a better one
8912      ac_cv_path_EGREP="$ac_path_EGREP"
8913      ac_path_EGREP_max=$ac_count
8914    fi
8915    # 10*(2^10) chars as input seems more than enough
8916    test $ac_count -gt 10 && break
8917  done
8918  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8919esac
8920
8921      $ac_path_EGREP_found && break 3
8922    done
8923  done
8924  done
8925IFS=$as_save_IFS
8926  if test -z "$ac_cv_path_EGREP"; then
8927    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8928  fi
8929else
8930  ac_cv_path_EGREP=$EGREP
8931fi
8932
8933   fi
8934fi
8935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
8936printf "%s\n" "$ac_cv_path_EGREP" >&6; }
8937 EGREP="$ac_cv_path_EGREP"
8938
8939
8940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8941printf %s "checking for fgrep... " >&6; }
8942if test ${ac_cv_path_FGREP+y}
8943then :
8944  printf %s "(cached) " >&6
8945else $as_nop
8946  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8947   then ac_cv_path_FGREP="$GREP -F"
8948   else
8949     if test -z "$FGREP"; then
8950  ac_path_FGREP_found=false
8951  # Loop through the user's path and test for each of PROGNAME-LIST
8952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8954do
8955  IFS=$as_save_IFS
8956  case $as_dir in #(((
8957    '') as_dir=./ ;;
8958    */) ;;
8959    *) as_dir=$as_dir/ ;;
8960  esac
8961    for ac_prog in fgrep
8962   do
8963    for ac_exec_ext in '' $ac_executable_extensions; do
8964      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8965      as_fn_executable_p "$ac_path_FGREP" || continue
8966# Check for GNU ac_path_FGREP and select it if it is found.
8967  # Check for GNU $ac_path_FGREP
8968case `"$ac_path_FGREP" --version 2>&1` in
8969*GNU*)
8970  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8971*)
8972  ac_count=0
8973  printf %s 0123456789 >"conftest.in"
8974  while :
8975  do
8976    cat "conftest.in" "conftest.in" >"conftest.tmp"
8977    mv "conftest.tmp" "conftest.in"
8978    cp "conftest.in" "conftest.nl"
8979    printf "%s\n" 'FGREP' >> "conftest.nl"
8980    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8981    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8982    as_fn_arith $ac_count + 1 && ac_count=$as_val
8983    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8984      # Best one so far, save it but keep looking for a better one
8985      ac_cv_path_FGREP="$ac_path_FGREP"
8986      ac_path_FGREP_max=$ac_count
8987    fi
8988    # 10*(2^10) chars as input seems more than enough
8989    test $ac_count -gt 10 && break
8990  done
8991  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8992esac
8993
8994      $ac_path_FGREP_found && break 3
8995    done
8996  done
8997  done
8998IFS=$as_save_IFS
8999  if test -z "$ac_cv_path_FGREP"; then
9000    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9001  fi
9002else
9003  ac_cv_path_FGREP=$FGREP
9004fi
9005
9006   fi
9007fi
9008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9009printf "%s\n" "$ac_cv_path_FGREP" >&6; }
9010 FGREP="$ac_cv_path_FGREP"
9011
9012
9013test -z "$GREP" && GREP=grep
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033# Check whether --with-gnu-ld was given.
9034if test ${with_gnu_ld+y}
9035then :
9036  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
9037else $as_nop
9038  with_gnu_ld=no
9039fi
9040
9041ac_prog=ld
9042if test yes = "$GCC"; then
9043  # Check if gcc -print-prog-name=ld gives a path.
9044  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9045printf %s "checking for ld used by $CC... " >&6; }
9046  case $host in
9047  *-*-mingw*)
9048    # gcc leaves a trailing carriage return, which upsets mingw
9049    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9050  *)
9051    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9052  esac
9053  case $ac_prog in
9054    # Accept absolute paths.
9055    [\\/]* | ?:[\\/]*)
9056      re_direlt='/[^/][^/]*/\.\./'
9057      # Canonicalize the pathname of ld
9058      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9059      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9060	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9061      done
9062      test -z "$LD" && LD=$ac_prog
9063      ;;
9064  "")
9065    # If it fails, then pretend we aren't using GCC.
9066    ac_prog=ld
9067    ;;
9068  *)
9069    # If it is relative, then search for the first ld in PATH.
9070    with_gnu_ld=unknown
9071    ;;
9072  esac
9073elif test yes = "$with_gnu_ld"; then
9074  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9075printf %s "checking for GNU ld... " >&6; }
9076else
9077  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9078printf %s "checking for non-GNU ld... " >&6; }
9079fi
9080if test ${lt_cv_path_LD+y}
9081then :
9082  printf %s "(cached) " >&6
9083else $as_nop
9084  if test -z "$LD"; then
9085  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9086  for ac_dir in $PATH; do
9087    IFS=$lt_save_ifs
9088    test -z "$ac_dir" && ac_dir=.
9089    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9090      lt_cv_path_LD=$ac_dir/$ac_prog
9091      # Check to see if the program is GNU ld.  I'd rather use --version,
9092      # but apparently some variants of GNU ld only accept -v.
9093      # Break only if it was the GNU/non-GNU ld that we prefer.
9094      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9095      *GNU* | *'with BFD'*)
9096	test no != "$with_gnu_ld" && break
9097	;;
9098      *)
9099	test yes != "$with_gnu_ld" && break
9100	;;
9101      esac
9102    fi
9103  done
9104  IFS=$lt_save_ifs
9105else
9106  lt_cv_path_LD=$LD # Let the user override the test with a path.
9107fi
9108fi
9109
9110LD=$lt_cv_path_LD
9111if test -n "$LD"; then
9112  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9113printf "%s\n" "$LD" >&6; }
9114else
9115  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116printf "%s\n" "no" >&6; }
9117fi
9118test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9120printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
9121if test ${lt_cv_prog_gnu_ld+y}
9122then :
9123  printf %s "(cached) " >&6
9124else $as_nop
9125  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9126case `$LD -v 2>&1 </dev/null` in
9127*GNU* | *'with BFD'*)
9128  lt_cv_prog_gnu_ld=yes
9129  ;;
9130*)
9131  lt_cv_prog_gnu_ld=no
9132  ;;
9133esac
9134fi
9135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9136printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
9137with_gnu_ld=$lt_cv_prog_gnu_ld
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9148printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9149if test ${lt_cv_path_NM+y}
9150then :
9151  printf %s "(cached) " >&6
9152else $as_nop
9153  if test -n "$NM"; then
9154  # Let the user override the test.
9155  lt_cv_path_NM=$NM
9156else
9157  lt_nm_to_check=${ac_tool_prefix}nm
9158  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9159    lt_nm_to_check="$lt_nm_to_check nm"
9160  fi
9161  for lt_tmp_nm in $lt_nm_to_check; do
9162    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9163    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9164      IFS=$lt_save_ifs
9165      test -z "$ac_dir" && ac_dir=.
9166      tmp_nm=$ac_dir/$lt_tmp_nm
9167      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
9168	# Check to see if the nm accepts a BSD-compat flag.
9169	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
9170	#   nm: unknown option "B" ignored
9171	# Tru64's nm complains that /dev/null is an invalid object file
9172	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
9173	case $build_os in
9174	mingw*) lt_bad_file=conftest.nm/nofile ;;
9175	*) lt_bad_file=/dev/null ;;
9176	esac
9177	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
9178	*$lt_bad_file* | *'Invalid file or object type'*)
9179	  lt_cv_path_NM="$tmp_nm -B"
9180	  break 2
9181	  ;;
9182	*)
9183	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9184	  */dev/null*)
9185	    lt_cv_path_NM="$tmp_nm -p"
9186	    break 2
9187	    ;;
9188	  *)
9189	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9190	    continue # so that we can try to find one that supports BSD flags
9191	    ;;
9192	  esac
9193	  ;;
9194	esac
9195      fi
9196    done
9197    IFS=$lt_save_ifs
9198  done
9199  : ${lt_cv_path_NM=no}
9200fi
9201fi
9202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9203printf "%s\n" "$lt_cv_path_NM" >&6; }
9204if test no != "$lt_cv_path_NM"; then
9205  NM=$lt_cv_path_NM
9206else
9207  # Didn't find any BSD compatible name lister, look for dumpbin.
9208  if test -n "$DUMPBIN"; then :
9209    # Let the user override the test.
9210  else
9211    if test -n "$ac_tool_prefix"; then
9212  for ac_prog in dumpbin "link -dump"
9213  do
9214    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9215set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9217printf %s "checking for $ac_word... " >&6; }
9218if test ${ac_cv_prog_DUMPBIN+y}
9219then :
9220  printf %s "(cached) " >&6
9221else $as_nop
9222  if test -n "$DUMPBIN"; then
9223  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9224else
9225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226for as_dir in $PATH
9227do
9228  IFS=$as_save_IFS
9229  case $as_dir in #(((
9230    '') as_dir=./ ;;
9231    */) ;;
9232    *) as_dir=$as_dir/ ;;
9233  esac
9234    for ac_exec_ext in '' $ac_executable_extensions; do
9235  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9236    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9237    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9238    break 2
9239  fi
9240done
9241  done
9242IFS=$as_save_IFS
9243
9244fi
9245fi
9246DUMPBIN=$ac_cv_prog_DUMPBIN
9247if test -n "$DUMPBIN"; then
9248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9249printf "%s\n" "$DUMPBIN" >&6; }
9250else
9251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252printf "%s\n" "no" >&6; }
9253fi
9254
9255
9256    test -n "$DUMPBIN" && break
9257  done
9258fi
9259if test -z "$DUMPBIN"; then
9260  ac_ct_DUMPBIN=$DUMPBIN
9261  for ac_prog in dumpbin "link -dump"
9262do
9263  # Extract the first word of "$ac_prog", so it can be a program name with args.
9264set dummy $ac_prog; ac_word=$2
9265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9266printf %s "checking for $ac_word... " >&6; }
9267if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
9268then :
9269  printf %s "(cached) " >&6
9270else $as_nop
9271  if test -n "$ac_ct_DUMPBIN"; then
9272  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9273else
9274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9275for as_dir in $PATH
9276do
9277  IFS=$as_save_IFS
9278  case $as_dir in #(((
9279    '') as_dir=./ ;;
9280    */) ;;
9281    *) as_dir=$as_dir/ ;;
9282  esac
9283    for ac_exec_ext in '' $ac_executable_extensions; do
9284  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9285    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9286    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9287    break 2
9288  fi
9289done
9290  done
9291IFS=$as_save_IFS
9292
9293fi
9294fi
9295ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9296if test -n "$ac_ct_DUMPBIN"; then
9297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9298printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
9299else
9300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301printf "%s\n" "no" >&6; }
9302fi
9303
9304
9305  test -n "$ac_ct_DUMPBIN" && break
9306done
9307
9308  if test "x$ac_ct_DUMPBIN" = x; then
9309    DUMPBIN=":"
9310  else
9311    case $cross_compiling:$ac_tool_warned in
9312yes:)
9313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9314printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9315ac_tool_warned=yes ;;
9316esac
9317    DUMPBIN=$ac_ct_DUMPBIN
9318  fi
9319fi
9320
9321    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
9322    *COFF*)
9323      DUMPBIN="$DUMPBIN -symbols -headers"
9324      ;;
9325    *)
9326      DUMPBIN=:
9327      ;;
9328    esac
9329  fi
9330
9331  if test : != "$DUMPBIN"; then
9332    NM=$DUMPBIN
9333  fi
9334fi
9335test -z "$NM" && NM=nm
9336
9337
9338
9339
9340
9341
9342{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9343printf %s "checking the name lister ($NM) interface... " >&6; }
9344if test ${lt_cv_nm_interface+y}
9345then :
9346  printf %s "(cached) " >&6
9347else $as_nop
9348  lt_cv_nm_interface="BSD nm"
9349  echo "int some_variable = 0;" > conftest.$ac_ext
9350  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9351  (eval "$ac_compile" 2>conftest.err)
9352  cat conftest.err >&5
9353  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9354  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9355  cat conftest.err >&5
9356  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9357  cat conftest.out >&5
9358  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9359    lt_cv_nm_interface="MS dumpbin"
9360  fi
9361  rm -f conftest*
9362fi
9363{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9364printf "%s\n" "$lt_cv_nm_interface" >&6; }
9365
9366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9367printf %s "checking whether ln -s works... " >&6; }
9368LN_S=$as_ln_s
9369if test "$LN_S" = "ln -s"; then
9370  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9371printf "%s\n" "yes" >&6; }
9372else
9373  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9374printf "%s\n" "no, using $LN_S" >&6; }
9375fi
9376
9377# find the maximum length of command line arguments
9378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9379printf %s "checking the maximum length of command line arguments... " >&6; }
9380if test ${lt_cv_sys_max_cmd_len+y}
9381then :
9382  printf %s "(cached) " >&6
9383else $as_nop
9384    i=0
9385  teststring=ABCD
9386
9387  case $build_os in
9388  msdosdjgpp*)
9389    # On DJGPP, this test can blow up pretty badly due to problems in libc
9390    # (any single argument exceeding 2000 bytes causes a buffer overrun
9391    # during glob expansion).  Even if it were fixed, the result of this
9392    # check would be larger than it should be.
9393    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9394    ;;
9395
9396  gnu*)
9397    # Under GNU Hurd, this test is not required because there is
9398    # no limit to the length of command line arguments.
9399    # Libtool will interpret -1 as no limit whatsoever
9400    lt_cv_sys_max_cmd_len=-1;
9401    ;;
9402
9403  cygwin* | mingw* | cegcc*)
9404    # On Win9x/ME, this test blows up -- it succeeds, but takes
9405    # about 5 minutes as the teststring grows exponentially.
9406    # Worse, since 9x/ME are not pre-emptively multitasking,
9407    # you end up with a "frozen" computer, even though with patience
9408    # the test eventually succeeds (with a max line length of 256k).
9409    # Instead, let's just punt: use the minimum linelength reported by
9410    # all of the supported platforms: 8192 (on NT/2K/XP).
9411    lt_cv_sys_max_cmd_len=8192;
9412    ;;
9413
9414  mint*)
9415    # On MiNT this can take a long time and run out of memory.
9416    lt_cv_sys_max_cmd_len=8192;
9417    ;;
9418
9419  mint*)
9420    # On MiNT this can take a long time and run out of memory.
9421    lt_cv_sys_max_cmd_len=8192;
9422    ;;
9423
9424  amigaos*)
9425    # On AmigaOS with pdksh, this test takes hours, literally.
9426    # So we just punt and use a minimum line length of 8192.
9427    lt_cv_sys_max_cmd_len=8192;
9428    ;;
9429
9430  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
9431    # This has been around since 386BSD, at least.  Likely further.
9432    if test -x /sbin/sysctl; then
9433      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9434    elif test -x /usr/sbin/sysctl; then
9435      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9436    else
9437      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9438    fi
9439    # And add a safety zone
9440    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9441    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9442    ;;
9443
9444  interix*)
9445    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9446    lt_cv_sys_max_cmd_len=196608
9447    ;;
9448
9449  os2*)
9450    # The test takes a long time on OS/2.
9451    lt_cv_sys_max_cmd_len=8192
9452    ;;
9453
9454  osf*)
9455    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9456    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9457    # nice to cause kernel panics so lets avoid the loop below.
9458    # First set a reasonable default.
9459    lt_cv_sys_max_cmd_len=16384
9460    #
9461    if test -x /sbin/sysconfig; then
9462      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9463        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9464      esac
9465    fi
9466    ;;
9467  sco3.2v5*)
9468    lt_cv_sys_max_cmd_len=102400
9469    ;;
9470  sysv5* | sco5v6* | sysv4.2uw2*)
9471    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9472    if test -n "$kargmax"; then
9473      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
9474    else
9475      lt_cv_sys_max_cmd_len=32768
9476    fi
9477    ;;
9478  *)
9479    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9480    if test -n "$lt_cv_sys_max_cmd_len" && \
9481       test undefined != "$lt_cv_sys_max_cmd_len"; then
9482      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9483      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9484    else
9485      # Make teststring a little bigger before we do anything with it.
9486      # a 1K string should be a reasonable start.
9487      for i in 1 2 3 4 5 6 7 8; do
9488        teststring=$teststring$teststring
9489      done
9490      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9491      # If test is not a shell built-in, we'll probably end up computing a
9492      # maximum length that is only half of the actual maximum length, but
9493      # we can't tell.
9494      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
9495	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9496	      test 17 != "$i" # 1/2 MB should be enough
9497      do
9498        i=`expr $i + 1`
9499        teststring=$teststring$teststring
9500      done
9501      # Only check the string length outside the loop.
9502      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9503      teststring=
9504      # Add a significant safety factor because C++ compilers can tack on
9505      # massive amounts of additional arguments before passing them to the
9506      # linker.  It appears as though 1/2 is a usable value.
9507      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9508    fi
9509    ;;
9510  esac
9511
9512fi
9513
9514if test -n "$lt_cv_sys_max_cmd_len"; then
9515  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9516printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
9517else
9518  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
9519printf "%s\n" "none" >&6; }
9520fi
9521max_cmd_len=$lt_cv_sys_max_cmd_len
9522
9523
9524
9525
9526
9527
9528: ${CP="cp -f"}
9529: ${MV="mv -f"}
9530: ${RM="rm -f"}
9531
9532if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9533  lt_unset=unset
9534else
9535  lt_unset=false
9536fi
9537
9538
9539
9540
9541
9542# test EBCDIC or ASCII
9543case `echo X|tr X '\101'` in
9544 A) # ASCII based system
9545    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9546  lt_SP2NL='tr \040 \012'
9547  lt_NL2SP='tr \015\012 \040\040'
9548  ;;
9549 *) # EBCDIC based system
9550  lt_SP2NL='tr \100 \n'
9551  lt_NL2SP='tr \r\n \100\100'
9552  ;;
9553esac
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9564printf %s "checking how to convert $build file names to $host format... " >&6; }
9565if test ${lt_cv_to_host_file_cmd+y}
9566then :
9567  printf %s "(cached) " >&6
9568else $as_nop
9569  case $host in
9570  *-*-mingw* )
9571    case $build in
9572      *-*-mingw* ) # actually msys
9573        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9574        ;;
9575      *-*-cygwin* )
9576        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9577        ;;
9578      * ) # otherwise, assume *nix
9579        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9580        ;;
9581    esac
9582    ;;
9583  *-*-cygwin* )
9584    case $build in
9585      *-*-mingw* ) # actually msys
9586        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9587        ;;
9588      *-*-cygwin* )
9589        lt_cv_to_host_file_cmd=func_convert_file_noop
9590        ;;
9591      * ) # otherwise, assume *nix
9592        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9593        ;;
9594    esac
9595    ;;
9596  * ) # unhandled hosts (and "normal" native builds)
9597    lt_cv_to_host_file_cmd=func_convert_file_noop
9598    ;;
9599esac
9600
9601fi
9602
9603to_host_file_cmd=$lt_cv_to_host_file_cmd
9604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9605printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
9606
9607
9608
9609
9610
9611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9612printf %s "checking how to convert $build file names to toolchain format... " >&6; }
9613if test ${lt_cv_to_tool_file_cmd+y}
9614then :
9615  printf %s "(cached) " >&6
9616else $as_nop
9617  #assume ordinary cross tools, or native build.
9618lt_cv_to_tool_file_cmd=func_convert_file_noop
9619case $host in
9620  *-*-mingw* )
9621    case $build in
9622      *-*-mingw* ) # actually msys
9623        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9624        ;;
9625    esac
9626    ;;
9627esac
9628
9629fi
9630
9631to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9633printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
9634
9635
9636
9637
9638
9639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9640printf %s "checking for $LD option to reload object files... " >&6; }
9641if test ${lt_cv_ld_reload_flag+y}
9642then :
9643  printf %s "(cached) " >&6
9644else $as_nop
9645  lt_cv_ld_reload_flag='-r'
9646fi
9647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9648printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
9649reload_flag=$lt_cv_ld_reload_flag
9650case $reload_flag in
9651"" | " "*) ;;
9652*) reload_flag=" $reload_flag" ;;
9653esac
9654reload_cmds='$LD$reload_flag -o $output$reload_objs'
9655case $host_os in
9656  cygwin* | mingw* | pw32* | cegcc*)
9657    if test yes != "$GCC"; then
9658      reload_cmds=false
9659    fi
9660    ;;
9661  darwin*)
9662    if test yes = "$GCC"; then
9663      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
9664    else
9665      reload_cmds='$LD$reload_flag -o $output$reload_objs'
9666    fi
9667    ;;
9668esac
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678if test -n "$ac_tool_prefix"; then
9679  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9680set dummy ${ac_tool_prefix}objdump; ac_word=$2
9681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682printf %s "checking for $ac_word... " >&6; }
9683if test ${ac_cv_prog_OBJDUMP+y}
9684then :
9685  printf %s "(cached) " >&6
9686else $as_nop
9687  if test -n "$OBJDUMP"; then
9688  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9689else
9690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691for as_dir in $PATH
9692do
9693  IFS=$as_save_IFS
9694  case $as_dir in #(((
9695    '') as_dir=./ ;;
9696    */) ;;
9697    *) as_dir=$as_dir/ ;;
9698  esac
9699    for ac_exec_ext in '' $ac_executable_extensions; do
9700  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9701    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9702    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9703    break 2
9704  fi
9705done
9706  done
9707IFS=$as_save_IFS
9708
9709fi
9710fi
9711OBJDUMP=$ac_cv_prog_OBJDUMP
9712if test -n "$OBJDUMP"; then
9713  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9714printf "%s\n" "$OBJDUMP" >&6; }
9715else
9716  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717printf "%s\n" "no" >&6; }
9718fi
9719
9720
9721fi
9722if test -z "$ac_cv_prog_OBJDUMP"; then
9723  ac_ct_OBJDUMP=$OBJDUMP
9724  # Extract the first word of "objdump", so it can be a program name with args.
9725set dummy objdump; ac_word=$2
9726{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9727printf %s "checking for $ac_word... " >&6; }
9728if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9729then :
9730  printf %s "(cached) " >&6
9731else $as_nop
9732  if test -n "$ac_ct_OBJDUMP"; then
9733  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9734else
9735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736for as_dir in $PATH
9737do
9738  IFS=$as_save_IFS
9739  case $as_dir in #(((
9740    '') as_dir=./ ;;
9741    */) ;;
9742    *) as_dir=$as_dir/ ;;
9743  esac
9744    for ac_exec_ext in '' $ac_executable_extensions; do
9745  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9746    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9747    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9748    break 2
9749  fi
9750done
9751  done
9752IFS=$as_save_IFS
9753
9754fi
9755fi
9756ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9757if test -n "$ac_ct_OBJDUMP"; then
9758  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9759printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9760else
9761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9762printf "%s\n" "no" >&6; }
9763fi
9764
9765  if test "x$ac_ct_OBJDUMP" = x; then
9766    OBJDUMP="false"
9767  else
9768    case $cross_compiling:$ac_tool_warned in
9769yes:)
9770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9771printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9772ac_tool_warned=yes ;;
9773esac
9774    OBJDUMP=$ac_ct_OBJDUMP
9775  fi
9776else
9777  OBJDUMP="$ac_cv_prog_OBJDUMP"
9778fi
9779
9780test -z "$OBJDUMP" && OBJDUMP=objdump
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9791printf %s "checking how to recognize dependent libraries... " >&6; }
9792if test ${lt_cv_deplibs_check_method+y}
9793then :
9794  printf %s "(cached) " >&6
9795else $as_nop
9796  lt_cv_file_magic_cmd='$MAGIC_CMD'
9797lt_cv_file_magic_test_file=
9798lt_cv_deplibs_check_method='unknown'
9799# Need to set the preceding variable on all platforms that support
9800# interlibrary dependencies.
9801# 'none' -- dependencies not supported.
9802# 'unknown' -- same as none, but documents that we really don't know.
9803# 'pass_all' -- all dependencies passed with no checks.
9804# 'test_compile' -- check by making test program.
9805# 'file_magic [[regex]]' -- check by looking for files in library path
9806# that responds to the $file_magic_cmd with a given extended regex.
9807# If you have 'file' or equivalent on your system and you're not sure
9808# whether 'pass_all' will *always* work, you probably want this one.
9809
9810case $host_os in
9811aix[4-9]*)
9812  lt_cv_deplibs_check_method=pass_all
9813  ;;
9814
9815beos*)
9816  lt_cv_deplibs_check_method=pass_all
9817  ;;
9818
9819bsdi[45]*)
9820  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9821  lt_cv_file_magic_cmd='/usr/bin/file -L'
9822  lt_cv_file_magic_test_file=/shlib/libc.so
9823  ;;
9824
9825cygwin*)
9826  # func_win32_libid is a shell function defined in ltmain.sh
9827  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9828  lt_cv_file_magic_cmd='func_win32_libid'
9829  ;;
9830
9831mingw* | pw32*)
9832  # Base MSYS/MinGW do not provide the 'file' command needed by
9833  # func_win32_libid shell function, so use a weaker test based on 'objdump',
9834  # unless we find 'file', for example because we are cross-compiling.
9835  if ( file / ) >/dev/null 2>&1; then
9836    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9837    lt_cv_file_magic_cmd='func_win32_libid'
9838  else
9839    # Keep this pattern in sync with the one in func_win32_libid.
9840    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9841    lt_cv_file_magic_cmd='$OBJDUMP -f'
9842  fi
9843  ;;
9844
9845cegcc*)
9846  # use the weaker test based on 'objdump'. See mingw*.
9847  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9848  lt_cv_file_magic_cmd='$OBJDUMP -f'
9849  ;;
9850
9851darwin* | rhapsody*)
9852  lt_cv_deplibs_check_method=pass_all
9853  ;;
9854
9855freebsd* | dragonfly*)
9856  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9857    case $host_cpu in
9858    i*86 )
9859      # Not sure whether the presence of OpenBSD here was a mistake.
9860      # Let's accept both of them until this is cleared up.
9861      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9862      lt_cv_file_magic_cmd=/usr/bin/file
9863      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9864      ;;
9865    esac
9866  else
9867    lt_cv_deplibs_check_method=pass_all
9868  fi
9869  ;;
9870
9871haiku*)
9872  lt_cv_deplibs_check_method=pass_all
9873  ;;
9874
9875hpux10.20* | hpux11*)
9876  lt_cv_file_magic_cmd=/usr/bin/file
9877  case $host_cpu in
9878  ia64*)
9879    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9880    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9881    ;;
9882  hppa*64*)
9883    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]'
9884    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9885    ;;
9886  *)
9887    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9888    lt_cv_file_magic_test_file=/usr/lib/libc.sl
9889    ;;
9890  esac
9891  ;;
9892
9893interix[3-9]*)
9894  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9895  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9896  ;;
9897
9898irix5* | irix6* | nonstopux*)
9899  case $LD in
9900  *-32|*"-32 ") libmagic=32-bit;;
9901  *-n32|*"-n32 ") libmagic=N32;;
9902  *-64|*"-64 ") libmagic=64-bit;;
9903  *) libmagic=never-match;;
9904  esac
9905  lt_cv_deplibs_check_method=pass_all
9906  ;;
9907
9908# This must be glibc/ELF.
9909linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9910  lt_cv_deplibs_check_method=pass_all
9911  ;;
9912
9913netbsd*)
9914  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9915    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9916  else
9917    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9918  fi
9919  ;;
9920
9921newos6*)
9922  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9923  lt_cv_file_magic_cmd=/usr/bin/file
9924  lt_cv_file_magic_test_file=/usr/lib/libnls.so
9925  ;;
9926
9927*nto* | *qnx*)
9928  lt_cv_deplibs_check_method=pass_all
9929  ;;
9930
9931openbsd* | bitrig*)
9932  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9933    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9934  else
9935    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9936  fi
9937  ;;
9938
9939osf3* | osf4* | osf5*)
9940  lt_cv_deplibs_check_method=pass_all
9941  ;;
9942
9943rdos*)
9944  lt_cv_deplibs_check_method=pass_all
9945  ;;
9946
9947solaris*)
9948  lt_cv_deplibs_check_method=pass_all
9949  ;;
9950
9951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9952  lt_cv_deplibs_check_method=pass_all
9953  ;;
9954
9955sysv4 | sysv4.3*)
9956  case $host_vendor in
9957  motorola)
9958    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]'
9959    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9960    ;;
9961  ncr)
9962    lt_cv_deplibs_check_method=pass_all
9963    ;;
9964  sequent)
9965    lt_cv_file_magic_cmd='/bin/file'
9966    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9967    ;;
9968  sni)
9969    lt_cv_file_magic_cmd='/bin/file'
9970    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9971    lt_cv_file_magic_test_file=/lib/libc.so
9972    ;;
9973  siemens)
9974    lt_cv_deplibs_check_method=pass_all
9975    ;;
9976  pc)
9977    lt_cv_deplibs_check_method=pass_all
9978    ;;
9979  esac
9980  ;;
9981
9982tpf*)
9983  lt_cv_deplibs_check_method=pass_all
9984  ;;
9985os2*)
9986  lt_cv_deplibs_check_method=pass_all
9987  ;;
9988esac
9989
9990fi
9991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9992printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9993
9994file_magic_glob=
9995want_nocaseglob=no
9996if test "$build" = "$host"; then
9997  case $host_os in
9998  mingw* | pw32*)
9999    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10000      want_nocaseglob=yes
10001    else
10002      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10003    fi
10004    ;;
10005  esac
10006fi
10007
10008file_magic_cmd=$lt_cv_file_magic_cmd
10009deplibs_check_method=$lt_cv_deplibs_check_method
10010test -z "$deplibs_check_method" && deplibs_check_method=unknown
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033if test -n "$ac_tool_prefix"; then
10034  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10035set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10037printf %s "checking for $ac_word... " >&6; }
10038if test ${ac_cv_prog_DLLTOOL+y}
10039then :
10040  printf %s "(cached) " >&6
10041else $as_nop
10042  if test -n "$DLLTOOL"; then
10043  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10044else
10045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046for as_dir in $PATH
10047do
10048  IFS=$as_save_IFS
10049  case $as_dir in #(((
10050    '') as_dir=./ ;;
10051    */) ;;
10052    *) as_dir=$as_dir/ ;;
10053  esac
10054    for ac_exec_ext in '' $ac_executable_extensions; do
10055  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10056    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10057    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10058    break 2
10059  fi
10060done
10061  done
10062IFS=$as_save_IFS
10063
10064fi
10065fi
10066DLLTOOL=$ac_cv_prog_DLLTOOL
10067if test -n "$DLLTOOL"; then
10068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10069printf "%s\n" "$DLLTOOL" >&6; }
10070else
10071  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072printf "%s\n" "no" >&6; }
10073fi
10074
10075
10076fi
10077if test -z "$ac_cv_prog_DLLTOOL"; then
10078  ac_ct_DLLTOOL=$DLLTOOL
10079  # Extract the first word of "dlltool", so it can be a program name with args.
10080set dummy dlltool; ac_word=$2
10081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10082printf %s "checking for $ac_word... " >&6; }
10083if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
10084then :
10085  printf %s "(cached) " >&6
10086else $as_nop
10087  if test -n "$ac_ct_DLLTOOL"; then
10088  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10089else
10090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091for as_dir in $PATH
10092do
10093  IFS=$as_save_IFS
10094  case $as_dir in #(((
10095    '') as_dir=./ ;;
10096    */) ;;
10097    *) as_dir=$as_dir/ ;;
10098  esac
10099    for ac_exec_ext in '' $ac_executable_extensions; do
10100  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10101    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10102    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10103    break 2
10104  fi
10105done
10106  done
10107IFS=$as_save_IFS
10108
10109fi
10110fi
10111ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10112if test -n "$ac_ct_DLLTOOL"; then
10113  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10114printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
10115else
10116  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117printf "%s\n" "no" >&6; }
10118fi
10119
10120  if test "x$ac_ct_DLLTOOL" = x; then
10121    DLLTOOL="false"
10122  else
10123    case $cross_compiling:$ac_tool_warned in
10124yes:)
10125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10126printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10127ac_tool_warned=yes ;;
10128esac
10129    DLLTOOL=$ac_ct_DLLTOOL
10130  fi
10131else
10132  DLLTOOL="$ac_cv_prog_DLLTOOL"
10133fi
10134
10135test -z "$DLLTOOL" && DLLTOOL=dlltool
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10147printf %s "checking how to associate runtime and link libraries... " >&6; }
10148if test ${lt_cv_sharedlib_from_linklib_cmd+y}
10149then :
10150  printf %s "(cached) " >&6
10151else $as_nop
10152  lt_cv_sharedlib_from_linklib_cmd='unknown'
10153
10154case $host_os in
10155cygwin* | mingw* | pw32* | cegcc*)
10156  # two different shell functions defined in ltmain.sh;
10157  # decide which one to use based on capabilities of $DLLTOOL
10158  case `$DLLTOOL --help 2>&1` in
10159  *--identify-strict*)
10160    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10161    ;;
10162  *)
10163    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10164    ;;
10165  esac
10166  ;;
10167*)
10168  # fallback: assume linklib IS sharedlib
10169  lt_cv_sharedlib_from_linklib_cmd=$ECHO
10170  ;;
10171esac
10172
10173fi
10174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10175printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10176sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10177test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10178
10179
10180
10181
10182
10183
10184
10185if test -n "$ac_tool_prefix"; then
10186  for ac_prog in ar
10187  do
10188    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10189set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10191printf %s "checking for $ac_word... " >&6; }
10192if test ${ac_cv_prog_AR+y}
10193then :
10194  printf %s "(cached) " >&6
10195else $as_nop
10196  if test -n "$AR"; then
10197  ac_cv_prog_AR="$AR" # Let the user override the test.
10198else
10199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200for as_dir in $PATH
10201do
10202  IFS=$as_save_IFS
10203  case $as_dir in #(((
10204    '') as_dir=./ ;;
10205    */) ;;
10206    *) as_dir=$as_dir/ ;;
10207  esac
10208    for ac_exec_ext in '' $ac_executable_extensions; do
10209  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10210    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10211    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10212    break 2
10213  fi
10214done
10215  done
10216IFS=$as_save_IFS
10217
10218fi
10219fi
10220AR=$ac_cv_prog_AR
10221if test -n "$AR"; then
10222  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10223printf "%s\n" "$AR" >&6; }
10224else
10225  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10226printf "%s\n" "no" >&6; }
10227fi
10228
10229
10230    test -n "$AR" && break
10231  done
10232fi
10233if test -z "$AR"; then
10234  ac_ct_AR=$AR
10235  for ac_prog in ar
10236do
10237  # Extract the first word of "$ac_prog", so it can be a program name with args.
10238set dummy $ac_prog; ac_word=$2
10239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10240printf %s "checking for $ac_word... " >&6; }
10241if test ${ac_cv_prog_ac_ct_AR+y}
10242then :
10243  printf %s "(cached) " >&6
10244else $as_nop
10245  if test -n "$ac_ct_AR"; then
10246  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10247else
10248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249for as_dir in $PATH
10250do
10251  IFS=$as_save_IFS
10252  case $as_dir in #(((
10253    '') as_dir=./ ;;
10254    */) ;;
10255    *) as_dir=$as_dir/ ;;
10256  esac
10257    for ac_exec_ext in '' $ac_executable_extensions; do
10258  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10259    ac_cv_prog_ac_ct_AR="$ac_prog"
10260    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10261    break 2
10262  fi
10263done
10264  done
10265IFS=$as_save_IFS
10266
10267fi
10268fi
10269ac_ct_AR=$ac_cv_prog_ac_ct_AR
10270if test -n "$ac_ct_AR"; then
10271  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10272printf "%s\n" "$ac_ct_AR" >&6; }
10273else
10274  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275printf "%s\n" "no" >&6; }
10276fi
10277
10278
10279  test -n "$ac_ct_AR" && break
10280done
10281
10282  if test "x$ac_ct_AR" = x; then
10283    AR="false"
10284  else
10285    case $cross_compiling:$ac_tool_warned in
10286yes:)
10287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10288printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10289ac_tool_warned=yes ;;
10290esac
10291    AR=$ac_ct_AR
10292  fi
10293fi
10294
10295: ${AR=ar}
10296: ${AR_FLAGS=cru}
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10309printf %s "checking for archiver @FILE support... " >&6; }
10310if test ${lt_cv_ar_at_file+y}
10311then :
10312  printf %s "(cached) " >&6
10313else $as_nop
10314  lt_cv_ar_at_file=no
10315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10316/* end confdefs.h.  */
10317
10318#ifdef FC_DUMMY_MAIN
10319#ifndef FC_DUMMY_MAIN_EQ_F77
10320#  ifdef __cplusplus
10321     extern "C"
10322#  endif
10323   int FC_DUMMY_MAIN() { return 1; }
10324#endif
10325#endif
10326int
10327main (void)
10328{
10329
10330  ;
10331  return 0;
10332}
10333_ACEOF
10334if ac_fn_cxx_try_compile "$LINENO"
10335then :
10336  echo conftest.$ac_objext > conftest.lst
10337      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10338      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10339  (eval $lt_ar_try) 2>&5
10340  ac_status=$?
10341  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10342  test $ac_status = 0; }
10343      if test 0 -eq "$ac_status"; then
10344	# Ensure the archiver fails upon bogus file names.
10345	rm -f conftest.$ac_objext libconftest.a
10346	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10347  (eval $lt_ar_try) 2>&5
10348  ac_status=$?
10349  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10350  test $ac_status = 0; }
10351	if test 0 -ne "$ac_status"; then
10352          lt_cv_ar_at_file=@
10353        fi
10354      fi
10355      rm -f conftest.* libconftest.a
10356
10357fi
10358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10359
10360fi
10361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10362printf "%s\n" "$lt_cv_ar_at_file" >&6; }
10363
10364if test no = "$lt_cv_ar_at_file"; then
10365  archiver_list_spec=
10366else
10367  archiver_list_spec=$lt_cv_ar_at_file
10368fi
10369
10370
10371
10372
10373
10374
10375
10376if test -n "$ac_tool_prefix"; then
10377  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10378set dummy ${ac_tool_prefix}strip; ac_word=$2
10379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10380printf %s "checking for $ac_word... " >&6; }
10381if test ${ac_cv_prog_STRIP+y}
10382then :
10383  printf %s "(cached) " >&6
10384else $as_nop
10385  if test -n "$STRIP"; then
10386  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10387else
10388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389for as_dir in $PATH
10390do
10391  IFS=$as_save_IFS
10392  case $as_dir in #(((
10393    '') as_dir=./ ;;
10394    */) ;;
10395    *) as_dir=$as_dir/ ;;
10396  esac
10397    for ac_exec_ext in '' $ac_executable_extensions; do
10398  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10399    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10400    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10401    break 2
10402  fi
10403done
10404  done
10405IFS=$as_save_IFS
10406
10407fi
10408fi
10409STRIP=$ac_cv_prog_STRIP
10410if test -n "$STRIP"; then
10411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10412printf "%s\n" "$STRIP" >&6; }
10413else
10414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415printf "%s\n" "no" >&6; }
10416fi
10417
10418
10419fi
10420if test -z "$ac_cv_prog_STRIP"; then
10421  ac_ct_STRIP=$STRIP
10422  # Extract the first word of "strip", so it can be a program name with args.
10423set dummy strip; ac_word=$2
10424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10425printf %s "checking for $ac_word... " >&6; }
10426if test ${ac_cv_prog_ac_ct_STRIP+y}
10427then :
10428  printf %s "(cached) " >&6
10429else $as_nop
10430  if test -n "$ac_ct_STRIP"; then
10431  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10432else
10433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434for as_dir in $PATH
10435do
10436  IFS=$as_save_IFS
10437  case $as_dir in #(((
10438    '') as_dir=./ ;;
10439    */) ;;
10440    *) as_dir=$as_dir/ ;;
10441  esac
10442    for ac_exec_ext in '' $ac_executable_extensions; do
10443  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10444    ac_cv_prog_ac_ct_STRIP="strip"
10445    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10446    break 2
10447  fi
10448done
10449  done
10450IFS=$as_save_IFS
10451
10452fi
10453fi
10454ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10455if test -n "$ac_ct_STRIP"; then
10456  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10457printf "%s\n" "$ac_ct_STRIP" >&6; }
10458else
10459  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460printf "%s\n" "no" >&6; }
10461fi
10462
10463  if test "x$ac_ct_STRIP" = x; then
10464    STRIP=":"
10465  else
10466    case $cross_compiling:$ac_tool_warned in
10467yes:)
10468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10469printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10470ac_tool_warned=yes ;;
10471esac
10472    STRIP=$ac_ct_STRIP
10473  fi
10474else
10475  STRIP="$ac_cv_prog_STRIP"
10476fi
10477
10478test -z "$STRIP" && STRIP=:
10479
10480
10481
10482
10483
10484
10485if test -n "$ac_tool_prefix"; then
10486  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10487set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489printf %s "checking for $ac_word... " >&6; }
10490if test ${ac_cv_prog_RANLIB+y}
10491then :
10492  printf %s "(cached) " >&6
10493else $as_nop
10494  if test -n "$RANLIB"; then
10495  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10496else
10497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498for as_dir in $PATH
10499do
10500  IFS=$as_save_IFS
10501  case $as_dir in #(((
10502    '') as_dir=./ ;;
10503    */) ;;
10504    *) as_dir=$as_dir/ ;;
10505  esac
10506    for ac_exec_ext in '' $ac_executable_extensions; do
10507  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10508    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10509    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10510    break 2
10511  fi
10512done
10513  done
10514IFS=$as_save_IFS
10515
10516fi
10517fi
10518RANLIB=$ac_cv_prog_RANLIB
10519if test -n "$RANLIB"; then
10520  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10521printf "%s\n" "$RANLIB" >&6; }
10522else
10523  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10524printf "%s\n" "no" >&6; }
10525fi
10526
10527
10528fi
10529if test -z "$ac_cv_prog_RANLIB"; then
10530  ac_ct_RANLIB=$RANLIB
10531  # Extract the first word of "ranlib", so it can be a program name with args.
10532set dummy ranlib; ac_word=$2
10533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10534printf %s "checking for $ac_word... " >&6; }
10535if test ${ac_cv_prog_ac_ct_RANLIB+y}
10536then :
10537  printf %s "(cached) " >&6
10538else $as_nop
10539  if test -n "$ac_ct_RANLIB"; then
10540  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10541else
10542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10543for as_dir in $PATH
10544do
10545  IFS=$as_save_IFS
10546  case $as_dir in #(((
10547    '') as_dir=./ ;;
10548    */) ;;
10549    *) as_dir=$as_dir/ ;;
10550  esac
10551    for ac_exec_ext in '' $ac_executable_extensions; do
10552  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10553    ac_cv_prog_ac_ct_RANLIB="ranlib"
10554    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10555    break 2
10556  fi
10557done
10558  done
10559IFS=$as_save_IFS
10560
10561fi
10562fi
10563ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10564if test -n "$ac_ct_RANLIB"; then
10565  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10566printf "%s\n" "$ac_ct_RANLIB" >&6; }
10567else
10568  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569printf "%s\n" "no" >&6; }
10570fi
10571
10572  if test "x$ac_ct_RANLIB" = x; then
10573    RANLIB=":"
10574  else
10575    case $cross_compiling:$ac_tool_warned in
10576yes:)
10577{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10578printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10579ac_tool_warned=yes ;;
10580esac
10581    RANLIB=$ac_ct_RANLIB
10582  fi
10583else
10584  RANLIB="$ac_cv_prog_RANLIB"
10585fi
10586
10587test -z "$RANLIB" && RANLIB=:
10588
10589
10590
10591
10592
10593
10594# Determine commands to create old-style static archives.
10595old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10596old_postinstall_cmds='chmod 644 $oldlib'
10597old_postuninstall_cmds=
10598
10599if test -n "$RANLIB"; then
10600  case $host_os in
10601  bitrig* | openbsd*)
10602    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10603    ;;
10604  *)
10605    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10606    ;;
10607  esac
10608  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10609fi
10610
10611case $host_os in
10612  darwin*)
10613    lock_old_archive_extraction=yes ;;
10614  *)
10615    lock_old_archive_extraction=no ;;
10616esac
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656# If no C compiler was specified, use CC.
10657LTCC=${LTCC-"$CC"}
10658
10659# If no C compiler flags were specified, use CFLAGS.
10660LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10661
10662# Allow CC to be a program name with arguments.
10663compiler=$CC
10664
10665
10666# Check for command to grab the raw symbol name followed by C symbol from nm.
10667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10668printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10669if test ${lt_cv_sys_global_symbol_pipe+y}
10670then :
10671  printf %s "(cached) " >&6
10672else $as_nop
10673
10674# These are sane defaults that work on at least a few old systems.
10675# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10676
10677# Character class describing NM global symbol codes.
10678symcode='[BCDEGRST]'
10679
10680# Regexp to match symbols that can be accessed directly from C.
10681sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10682
10683# Define system-specific variables.
10684case $host_os in
10685aix*)
10686  symcode='[BCDT]'
10687  ;;
10688cygwin* | mingw* | pw32* | cegcc*)
10689  symcode='[ABCDGISTW]'
10690  ;;
10691hpux*)
10692  if test ia64 = "$host_cpu"; then
10693    symcode='[ABCDEGRST]'
10694  fi
10695  ;;
10696irix* | nonstopux*)
10697  symcode='[BCDEGRST]'
10698  ;;
10699osf*)
10700  symcode='[BCDEGQRST]'
10701  ;;
10702solaris*)
10703  symcode='[BDRT]'
10704  ;;
10705sco3.2v5*)
10706  symcode='[DT]'
10707  ;;
10708sysv4.2uw2*)
10709  symcode='[DT]'
10710  ;;
10711sysv5* | sco5v6* | unixware* | OpenUNIX*)
10712  symcode='[ABDT]'
10713  ;;
10714sysv4)
10715  symcode='[DFNSTU]'
10716  ;;
10717esac
10718
10719# If we're using GNU nm, then use its standard symbol codes.
10720case `$NM -V 2>&1` in
10721*GNU* | *'with BFD'*)
10722  symcode='[ABCDGIRSTW]' ;;
10723esac
10724
10725if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10726  # Gets list of data symbols to import.
10727  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
10728  # Adjust the below global symbol transforms to fixup imported variables.
10729  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10730  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
10731  lt_c_name_lib_hook="\
10732  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
10733  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
10734else
10735  # Disable hooks by default.
10736  lt_cv_sys_global_symbol_to_import=
10737  lt_cdecl_hook=
10738  lt_c_name_hook=
10739  lt_c_name_lib_hook=
10740fi
10741
10742# Transform an extracted symbol line into a proper C declaration.
10743# Some systems (esp. on ia64) link data and code symbols differently,
10744# so use this general approach.
10745lt_cv_sys_global_symbol_to_cdecl="sed -n"\
10746$lt_cdecl_hook\
10747" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10748" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10749
10750# Transform an extracted symbol line into symbol name and symbol address
10751lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
10752$lt_c_name_hook\
10753" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10754" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
10755
10756# Transform an extracted symbol line into symbol name with lib prefix and
10757# symbol address.
10758lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
10759$lt_c_name_lib_hook\
10760" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
10761" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
10762" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
10763
10764# Handle CRLF in mingw tool chain
10765opt_cr=
10766case $build_os in
10767mingw*)
10768  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10769  ;;
10770esac
10771
10772# Try without a prefix underscore, then with it.
10773for ac_symprfx in "" "_"; do
10774
10775  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10776  symxfrm="\\1 $ac_symprfx\\2 \\2"
10777
10778  # Write the raw and C identifiers.
10779  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10780    # Fake it for dumpbin and say T for any non-static function,
10781    # D for any global variable and I for any imported variable.
10782    # Also find C++ and __fastcall symbols from MSVC++,
10783    # which start with @ or ?.
10784    lt_cv_sys_global_symbol_pipe="$AWK '"\
10785"     {last_section=section; section=\$ 3};"\
10786"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10787"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10788"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10789"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10790"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10791"     \$ 0!~/External *\|/{next};"\
10792"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10793"     {if(hide[section]) next};"\
10794"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10795"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10796"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10797"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10798"     ' prfx=^$ac_symprfx"
10799  else
10800    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10801  fi
10802  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10803
10804  # Check to see that the pipe works correctly.
10805  pipe_works=no
10806
10807  rm -f conftest*
10808  cat > conftest.$ac_ext <<_LT_EOF
10809#ifdef __cplusplus
10810extern "C" {
10811#endif
10812char nm_test_var;
10813void nm_test_func(void);
10814void nm_test_func(void){}
10815#ifdef __cplusplus
10816}
10817#endif
10818int main(){nm_test_var='a';nm_test_func();return(0);}
10819_LT_EOF
10820
10821  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10822  (eval $ac_compile) 2>&5
10823  ac_status=$?
10824  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10825  test $ac_status = 0; }; then
10826    # Now try to grab the symbols.
10827    nlist=conftest.nm
10828    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10829  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10830  ac_status=$?
10831  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10832  test $ac_status = 0; } && test -s "$nlist"; then
10833      # Try sorting and uniquifying the output.
10834      if sort "$nlist" | uniq > "$nlist"T; then
10835	mv -f "$nlist"T "$nlist"
10836      else
10837	rm -f "$nlist"T
10838      fi
10839
10840      # Make sure that we snagged all the symbols we need.
10841      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10842	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10843	  cat <<_LT_EOF > conftest.$ac_ext
10844/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10845#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10846/* DATA imports from DLLs on WIN32 can't be const, because runtime
10847   relocations are performed -- see ld's documentation on pseudo-relocs.  */
10848# define LT_DLSYM_CONST
10849#elif defined __osf__
10850/* This system does not cope well with relocations in const data.  */
10851# define LT_DLSYM_CONST
10852#else
10853# define LT_DLSYM_CONST const
10854#endif
10855
10856#ifdef __cplusplus
10857extern "C" {
10858#endif
10859
10860_LT_EOF
10861	  # Now generate the symbol file.
10862	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10863
10864	  cat <<_LT_EOF >> conftest.$ac_ext
10865
10866/* The mapping between symbol names and symbols.  */
10867LT_DLSYM_CONST struct {
10868  const char *name;
10869  void       *address;
10870}
10871lt__PROGRAM__LTX_preloaded_symbols[] =
10872{
10873  { "@PROGRAM@", (void *) 0 },
10874_LT_EOF
10875	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10876	  cat <<\_LT_EOF >> conftest.$ac_ext
10877  {0, (void *) 0}
10878};
10879
10880/* This works around a problem in FreeBSD linker */
10881#ifdef FREEBSD_WORKAROUND
10882static const void *lt_preloaded_setup() {
10883  return lt__PROGRAM__LTX_preloaded_symbols;
10884}
10885#endif
10886
10887#ifdef __cplusplus
10888}
10889#endif
10890_LT_EOF
10891	  # Now try linking the two files.
10892	  mv conftest.$ac_objext conftstm.$ac_objext
10893	  lt_globsym_save_LIBS=$LIBS
10894	  lt_globsym_save_CFLAGS=$CFLAGS
10895	  LIBS=conftstm.$ac_objext
10896	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10897	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10898  (eval $ac_link) 2>&5
10899  ac_status=$?
10900  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10901  test $ac_status = 0; } && test -s conftest$ac_exeext; then
10902	    pipe_works=yes
10903	  fi
10904	  LIBS=$lt_globsym_save_LIBS
10905	  CFLAGS=$lt_globsym_save_CFLAGS
10906	else
10907	  echo "cannot find nm_test_func in $nlist" >&5
10908	fi
10909      else
10910	echo "cannot find nm_test_var in $nlist" >&5
10911      fi
10912    else
10913      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10914    fi
10915  else
10916    echo "$progname: failed program was:" >&5
10917    cat conftest.$ac_ext >&5
10918  fi
10919  rm -rf conftest* conftst*
10920
10921  # Do not use the global_symbol_pipe unless it works.
10922  if test yes = "$pipe_works"; then
10923    break
10924  else
10925    lt_cv_sys_global_symbol_pipe=
10926  fi
10927done
10928
10929fi
10930
10931if test -z "$lt_cv_sys_global_symbol_pipe"; then
10932  lt_cv_sys_global_symbol_to_cdecl=
10933fi
10934if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10935  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10936printf "%s\n" "failed" >&6; }
10937else
10938  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10939printf "%s\n" "ok" >&6; }
10940fi
10941
10942# Response file support.
10943if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10944  nm_file_list_spec='@'
10945elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10946  nm_file_list_spec='@'
10947fi
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10986printf %s "checking for sysroot... " >&6; }
10987
10988# Check whether --with-sysroot was given.
10989if test ${with_sysroot+y}
10990then :
10991  withval=$with_sysroot;
10992else $as_nop
10993  with_sysroot=no
10994fi
10995
10996
10997lt_sysroot=
10998case $with_sysroot in #(
10999 yes)
11000   if test yes = "$GCC"; then
11001     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11002   fi
11003   ;; #(
11004 /*)
11005   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11006   ;; #(
11007 no|'')
11008   ;; #(
11009 *)
11010   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
11011printf "%s\n" "$with_sysroot" >&6; }
11012   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11013   ;;
11014esac
11015
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11017printf "%s\n" "${lt_sysroot:-no}" >&6; }
11018
11019
11020
11021
11022
11023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
11024printf %s "checking for a working dd... " >&6; }
11025if test ${ac_cv_path_lt_DD+y}
11026then :
11027  printf %s "(cached) " >&6
11028else $as_nop
11029  printf 0123456789abcdef0123456789abcdef >conftest.i
11030cat conftest.i conftest.i >conftest2.i
11031: ${lt_DD:=$DD}
11032if test -z "$lt_DD"; then
11033  ac_path_lt_DD_found=false
11034  # Loop through the user's path and test for each of PROGNAME-LIST
11035  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036for as_dir in $PATH
11037do
11038  IFS=$as_save_IFS
11039  case $as_dir in #(((
11040    '') as_dir=./ ;;
11041    */) ;;
11042    *) as_dir=$as_dir/ ;;
11043  esac
11044    for ac_prog in dd
11045   do
11046    for ac_exec_ext in '' $ac_executable_extensions; do
11047      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
11048      as_fn_executable_p "$ac_path_lt_DD" || continue
11049if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11050  cmp -s conftest.i conftest.out \
11051  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
11052fi
11053      $ac_path_lt_DD_found && break 3
11054    done
11055  done
11056  done
11057IFS=$as_save_IFS
11058  if test -z "$ac_cv_path_lt_DD"; then
11059    :
11060  fi
11061else
11062  ac_cv_path_lt_DD=$lt_DD
11063fi
11064
11065rm -f conftest.i conftest2.i conftest.out
11066fi
11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
11068printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
11069
11070
11071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
11072printf %s "checking how to truncate binary pipes... " >&6; }
11073if test ${lt_cv_truncate_bin+y}
11074then :
11075  printf %s "(cached) " >&6
11076else $as_nop
11077  printf 0123456789abcdef0123456789abcdef >conftest.i
11078cat conftest.i conftest.i >conftest2.i
11079lt_cv_truncate_bin=
11080if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
11081  cmp -s conftest.i conftest.out \
11082  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
11083fi
11084rm -f conftest.i conftest2.i conftest.out
11085test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
11086fi
11087{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
11088printf "%s\n" "$lt_cv_truncate_bin" >&6; }
11089
11090
11091
11092
11093
11094
11095
11096# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
11097func_cc_basename ()
11098{
11099    for cc_temp in $*""; do
11100      case $cc_temp in
11101        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11102        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11103        \-*) ;;
11104        *) break;;
11105      esac
11106    done
11107    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11108}
11109
11110# Check whether --enable-libtool-lock was given.
11111if test ${enable_libtool_lock+y}
11112then :
11113  enableval=$enable_libtool_lock;
11114fi
11115
11116test no = "$enable_libtool_lock" || enable_libtool_lock=yes
11117
11118# Some flags need to be propagated to the compiler or linker for good
11119# libtool support.
11120case $host in
11121ia64-*-hpux*)
11122  # Find out what ABI is being produced by ac_compile, and set mode
11123  # options accordingly.
11124  echo 'int i;' > conftest.$ac_ext
11125  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11126  (eval $ac_compile) 2>&5
11127  ac_status=$?
11128  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11129  test $ac_status = 0; }; then
11130    case `/usr/bin/file conftest.$ac_objext` in
11131      *ELF-32*)
11132	HPUX_IA64_MODE=32
11133	;;
11134      *ELF-64*)
11135	HPUX_IA64_MODE=64
11136	;;
11137    esac
11138  fi
11139  rm -rf conftest*
11140  ;;
11141*-*-irix6*)
11142  # Find out what ABI is being produced by ac_compile, and set linker
11143  # options accordingly.
11144  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11145  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11146  (eval $ac_compile) 2>&5
11147  ac_status=$?
11148  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11149  test $ac_status = 0; }; then
11150    if test yes = "$lt_cv_prog_gnu_ld"; then
11151      case `/usr/bin/file conftest.$ac_objext` in
11152	*32-bit*)
11153	  LD="${LD-ld} -melf32bsmip"
11154	  ;;
11155	*N32*)
11156	  LD="${LD-ld} -melf32bmipn32"
11157	  ;;
11158	*64-bit*)
11159	  LD="${LD-ld} -melf64bmip"
11160	;;
11161      esac
11162    else
11163      case `/usr/bin/file conftest.$ac_objext` in
11164	*32-bit*)
11165	  LD="${LD-ld} -32"
11166	  ;;
11167	*N32*)
11168	  LD="${LD-ld} -n32"
11169	  ;;
11170	*64-bit*)
11171	  LD="${LD-ld} -64"
11172	  ;;
11173      esac
11174    fi
11175  fi
11176  rm -rf conftest*
11177  ;;
11178
11179mips64*-*linux*)
11180  # Find out what ABI is being produced by ac_compile, and set linker
11181  # options accordingly.
11182  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11183  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11184  (eval $ac_compile) 2>&5
11185  ac_status=$?
11186  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187  test $ac_status = 0; }; then
11188    emul=elf
11189    case `/usr/bin/file conftest.$ac_objext` in
11190      *32-bit*)
11191	emul="${emul}32"
11192	;;
11193      *64-bit*)
11194	emul="${emul}64"
11195	;;
11196    esac
11197    case `/usr/bin/file conftest.$ac_objext` in
11198      *MSB*)
11199	emul="${emul}btsmip"
11200	;;
11201      *LSB*)
11202	emul="${emul}ltsmip"
11203	;;
11204    esac
11205    case `/usr/bin/file conftest.$ac_objext` in
11206      *N32*)
11207	emul="${emul}n32"
11208	;;
11209    esac
11210    LD="${LD-ld} -m $emul"
11211  fi
11212  rm -rf conftest*
11213  ;;
11214
11215x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
11216s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11217  # Find out what ABI is being produced by ac_compile, and set linker
11218  # options accordingly.  Note that the listed cases only cover the
11219  # situations where additional linker options are needed (such as when
11220  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
11221  # vice versa); the common cases where no linker options are needed do
11222  # not appear in the list.
11223  echo 'int i;' > conftest.$ac_ext
11224  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11225  (eval $ac_compile) 2>&5
11226  ac_status=$?
11227  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11228  test $ac_status = 0; }; then
11229    case `/usr/bin/file conftest.o` in
11230      *32-bit*)
11231	case $host in
11232	  x86_64-*kfreebsd*-gnu)
11233	    LD="${LD-ld} -m elf_i386_fbsd"
11234	    ;;
11235	  x86_64-*linux*)
11236	    case `/usr/bin/file conftest.o` in
11237	      *x86-64*)
11238		LD="${LD-ld} -m elf32_x86_64"
11239		;;
11240	      *)
11241		LD="${LD-ld} -m elf_i386"
11242		;;
11243	    esac
11244	    ;;
11245	  powerpc64le-*linux*)
11246	    LD="${LD-ld} -m elf32lppclinux"
11247	    ;;
11248	  powerpc64-*linux*)
11249	    LD="${LD-ld} -m elf32ppclinux"
11250	    ;;
11251	  s390x-*linux*)
11252	    LD="${LD-ld} -m elf_s390"
11253	    ;;
11254	  sparc64-*linux*)
11255	    LD="${LD-ld} -m elf32_sparc"
11256	    ;;
11257	esac
11258	;;
11259      *64-bit*)
11260	case $host in
11261	  x86_64-*kfreebsd*-gnu)
11262	    LD="${LD-ld} -m elf_x86_64_fbsd"
11263	    ;;
11264	  x86_64-*linux*)
11265	    LD="${LD-ld} -m elf_x86_64"
11266	    ;;
11267	  powerpcle-*linux*|powerpc64le-*linux*)
11268	    LD="${LD-ld} -m elf64lppc"
11269	    ;;
11270	  powerpc-*linux*|powerpc64-*linux*)
11271	    LD="${LD-ld} -m elf64ppc"
11272	    ;;
11273	  s390*-*linux*|s390*-*tpf*)
11274	    LD="${LD-ld} -m elf64_s390"
11275	    ;;
11276	  sparc*-*linux*)
11277	    LD="${LD-ld} -m elf64_sparc"
11278	    ;;
11279	esac
11280	;;
11281    esac
11282  fi
11283  rm -rf conftest*
11284  ;;
11285
11286*-*-sco3.2v5*)
11287  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11288  SAVE_CFLAGS=$CFLAGS
11289  CFLAGS="$CFLAGS -belf"
11290  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11291printf %s "checking whether the C compiler needs -belf... " >&6; }
11292if test ${lt_cv_cc_needs_belf+y}
11293then :
11294  printf %s "(cached) " >&6
11295else $as_nop
11296  ac_ext=c
11297ac_cpp='$CPP $CPPFLAGS'
11298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11300ac_compiler_gnu=$ac_cv_c_compiler_gnu
11301
11302     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303/* end confdefs.h.  */
11304
11305#ifdef FC_DUMMY_MAIN
11306#ifndef FC_DUMMY_MAIN_EQ_F77
11307#  ifdef __cplusplus
11308     extern "C"
11309#  endif
11310   int FC_DUMMY_MAIN() { return 1; }
11311#endif
11312#endif
11313int
11314main (void)
11315{
11316
11317  ;
11318  return 0;
11319}
11320_ACEOF
11321if ac_fn_c_try_link "$LINENO"
11322then :
11323  lt_cv_cc_needs_belf=yes
11324else $as_nop
11325  lt_cv_cc_needs_belf=no
11326fi
11327rm -f core conftest.err conftest.$ac_objext conftest.beam \
11328    conftest$ac_exeext conftest.$ac_ext
11329     ac_ext=c
11330ac_cpp='$CPP $CPPFLAGS'
11331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11333ac_compiler_gnu=$ac_cv_c_compiler_gnu
11334
11335fi
11336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11337printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
11338  if test yes != "$lt_cv_cc_needs_belf"; then
11339    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11340    CFLAGS=$SAVE_CFLAGS
11341  fi
11342  ;;
11343*-*solaris*)
11344  # Find out what ABI is being produced by ac_compile, and set linker
11345  # options accordingly.
11346  echo 'int i;' > conftest.$ac_ext
11347  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11348  (eval $ac_compile) 2>&5
11349  ac_status=$?
11350  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11351  test $ac_status = 0; }; then
11352    case `/usr/bin/file conftest.o` in
11353    *64-bit*)
11354      case $lt_cv_prog_gnu_ld in
11355      yes*)
11356        case $host in
11357        i?86-*-solaris*|x86_64-*-solaris*)
11358          LD="${LD-ld} -m elf_x86_64"
11359          ;;
11360        sparc*-*-solaris*)
11361          LD="${LD-ld} -m elf64_sparc"
11362          ;;
11363        esac
11364        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11365        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11366          LD=${LD-ld}_sol2
11367        fi
11368        ;;
11369      *)
11370	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11371	  LD="${LD-ld} -64"
11372	fi
11373	;;
11374      esac
11375      ;;
11376    esac
11377  fi
11378  rm -rf conftest*
11379  ;;
11380esac
11381
11382need_locks=$enable_libtool_lock
11383
11384if test -n "$ac_tool_prefix"; then
11385  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11386set dummy ${ac_tool_prefix}mt; ac_word=$2
11387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11388printf %s "checking for $ac_word... " >&6; }
11389if test ${ac_cv_prog_MANIFEST_TOOL+y}
11390then :
11391  printf %s "(cached) " >&6
11392else $as_nop
11393  if test -n "$MANIFEST_TOOL"; then
11394  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11395else
11396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397for as_dir in $PATH
11398do
11399  IFS=$as_save_IFS
11400  case $as_dir in #(((
11401    '') as_dir=./ ;;
11402    */) ;;
11403    *) as_dir=$as_dir/ ;;
11404  esac
11405    for ac_exec_ext in '' $ac_executable_extensions; do
11406  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11407    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11408    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11409    break 2
11410  fi
11411done
11412  done
11413IFS=$as_save_IFS
11414
11415fi
11416fi
11417MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11418if test -n "$MANIFEST_TOOL"; then
11419  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11420printf "%s\n" "$MANIFEST_TOOL" >&6; }
11421else
11422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11423printf "%s\n" "no" >&6; }
11424fi
11425
11426
11427fi
11428if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11429  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11430  # Extract the first word of "mt", so it can be a program name with args.
11431set dummy mt; ac_word=$2
11432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433printf %s "checking for $ac_word... " >&6; }
11434if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
11435then :
11436  printf %s "(cached) " >&6
11437else $as_nop
11438  if test -n "$ac_ct_MANIFEST_TOOL"; then
11439  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11440else
11441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444  IFS=$as_save_IFS
11445  case $as_dir in #(((
11446    '') as_dir=./ ;;
11447    */) ;;
11448    *) as_dir=$as_dir/ ;;
11449  esac
11450    for ac_exec_ext in '' $ac_executable_extensions; do
11451  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11452    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11453    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11454    break 2
11455  fi
11456done
11457  done
11458IFS=$as_save_IFS
11459
11460fi
11461fi
11462ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11463if test -n "$ac_ct_MANIFEST_TOOL"; then
11464  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11465printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
11466else
11467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468printf "%s\n" "no" >&6; }
11469fi
11470
11471  if test "x$ac_ct_MANIFEST_TOOL" = x; then
11472    MANIFEST_TOOL=":"
11473  else
11474    case $cross_compiling:$ac_tool_warned in
11475yes:)
11476{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11477printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11478ac_tool_warned=yes ;;
11479esac
11480    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11481  fi
11482else
11483  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11484fi
11485
11486test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11488printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11489if test ${lt_cv_path_mainfest_tool+y}
11490then :
11491  printf %s "(cached) " >&6
11492else $as_nop
11493  lt_cv_path_mainfest_tool=no
11494  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11495  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11496  cat conftest.err >&5
11497  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11498    lt_cv_path_mainfest_tool=yes
11499  fi
11500  rm -f conftest*
11501fi
11502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11503printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
11504if test yes != "$lt_cv_path_mainfest_tool"; then
11505  MANIFEST_TOOL=:
11506fi
11507
11508
11509
11510
11511
11512
11513  case $host_os in
11514    rhapsody* | darwin*)
11515    if test -n "$ac_tool_prefix"; then
11516  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11517set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11518{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11519printf %s "checking for $ac_word... " >&6; }
11520if test ${ac_cv_prog_DSYMUTIL+y}
11521then :
11522  printf %s "(cached) " >&6
11523else $as_nop
11524  if test -n "$DSYMUTIL"; then
11525  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11526else
11527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528for as_dir in $PATH
11529do
11530  IFS=$as_save_IFS
11531  case $as_dir in #(((
11532    '') as_dir=./ ;;
11533    */) ;;
11534    *) as_dir=$as_dir/ ;;
11535  esac
11536    for ac_exec_ext in '' $ac_executable_extensions; do
11537  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11538    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11539    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11540    break 2
11541  fi
11542done
11543  done
11544IFS=$as_save_IFS
11545
11546fi
11547fi
11548DSYMUTIL=$ac_cv_prog_DSYMUTIL
11549if test -n "$DSYMUTIL"; then
11550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11551printf "%s\n" "$DSYMUTIL" >&6; }
11552else
11553  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11554printf "%s\n" "no" >&6; }
11555fi
11556
11557
11558fi
11559if test -z "$ac_cv_prog_DSYMUTIL"; then
11560  ac_ct_DSYMUTIL=$DSYMUTIL
11561  # Extract the first word of "dsymutil", so it can be a program name with args.
11562set dummy dsymutil; ac_word=$2
11563{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564printf %s "checking for $ac_word... " >&6; }
11565if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
11566then :
11567  printf %s "(cached) " >&6
11568else $as_nop
11569  if test -n "$ac_ct_DSYMUTIL"; then
11570  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11571else
11572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573for as_dir in $PATH
11574do
11575  IFS=$as_save_IFS
11576  case $as_dir in #(((
11577    '') as_dir=./ ;;
11578    */) ;;
11579    *) as_dir=$as_dir/ ;;
11580  esac
11581    for ac_exec_ext in '' $ac_executable_extensions; do
11582  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11583    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11584    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11585    break 2
11586  fi
11587done
11588  done
11589IFS=$as_save_IFS
11590
11591fi
11592fi
11593ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11594if test -n "$ac_ct_DSYMUTIL"; then
11595  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11596printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11597else
11598  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599printf "%s\n" "no" >&6; }
11600fi
11601
11602  if test "x$ac_ct_DSYMUTIL" = x; then
11603    DSYMUTIL=":"
11604  else
11605    case $cross_compiling:$ac_tool_warned in
11606yes:)
11607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11608printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11609ac_tool_warned=yes ;;
11610esac
11611    DSYMUTIL=$ac_ct_DSYMUTIL
11612  fi
11613else
11614  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11615fi
11616
11617    if test -n "$ac_tool_prefix"; then
11618  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11619set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11621printf %s "checking for $ac_word... " >&6; }
11622if test ${ac_cv_prog_NMEDIT+y}
11623then :
11624  printf %s "(cached) " >&6
11625else $as_nop
11626  if test -n "$NMEDIT"; then
11627  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11628else
11629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630for as_dir in $PATH
11631do
11632  IFS=$as_save_IFS
11633  case $as_dir in #(((
11634    '') as_dir=./ ;;
11635    */) ;;
11636    *) as_dir=$as_dir/ ;;
11637  esac
11638    for ac_exec_ext in '' $ac_executable_extensions; do
11639  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11640    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11641    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11642    break 2
11643  fi
11644done
11645  done
11646IFS=$as_save_IFS
11647
11648fi
11649fi
11650NMEDIT=$ac_cv_prog_NMEDIT
11651if test -n "$NMEDIT"; then
11652  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11653printf "%s\n" "$NMEDIT" >&6; }
11654else
11655  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656printf "%s\n" "no" >&6; }
11657fi
11658
11659
11660fi
11661if test -z "$ac_cv_prog_NMEDIT"; then
11662  ac_ct_NMEDIT=$NMEDIT
11663  # Extract the first word of "nmedit", so it can be a program name with args.
11664set dummy nmedit; ac_word=$2
11665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666printf %s "checking for $ac_word... " >&6; }
11667if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11668then :
11669  printf %s "(cached) " >&6
11670else $as_nop
11671  if test -n "$ac_ct_NMEDIT"; then
11672  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11673else
11674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675for as_dir in $PATH
11676do
11677  IFS=$as_save_IFS
11678  case $as_dir in #(((
11679    '') as_dir=./ ;;
11680    */) ;;
11681    *) as_dir=$as_dir/ ;;
11682  esac
11683    for ac_exec_ext in '' $ac_executable_extensions; do
11684  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11685    ac_cv_prog_ac_ct_NMEDIT="nmedit"
11686    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11687    break 2
11688  fi
11689done
11690  done
11691IFS=$as_save_IFS
11692
11693fi
11694fi
11695ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11696if test -n "$ac_ct_NMEDIT"; then
11697  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11698printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11699else
11700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11701printf "%s\n" "no" >&6; }
11702fi
11703
11704  if test "x$ac_ct_NMEDIT" = x; then
11705    NMEDIT=":"
11706  else
11707    case $cross_compiling:$ac_tool_warned in
11708yes:)
11709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11711ac_tool_warned=yes ;;
11712esac
11713    NMEDIT=$ac_ct_NMEDIT
11714  fi
11715else
11716  NMEDIT="$ac_cv_prog_NMEDIT"
11717fi
11718
11719    if test -n "$ac_tool_prefix"; then
11720  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11721set dummy ${ac_tool_prefix}lipo; ac_word=$2
11722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11723printf %s "checking for $ac_word... " >&6; }
11724if test ${ac_cv_prog_LIPO+y}
11725then :
11726  printf %s "(cached) " >&6
11727else $as_nop
11728  if test -n "$LIPO"; then
11729  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11730else
11731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732for as_dir in $PATH
11733do
11734  IFS=$as_save_IFS
11735  case $as_dir in #(((
11736    '') as_dir=./ ;;
11737    */) ;;
11738    *) as_dir=$as_dir/ ;;
11739  esac
11740    for ac_exec_ext in '' $ac_executable_extensions; do
11741  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11742    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11743    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11744    break 2
11745  fi
11746done
11747  done
11748IFS=$as_save_IFS
11749
11750fi
11751fi
11752LIPO=$ac_cv_prog_LIPO
11753if test -n "$LIPO"; then
11754  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11755printf "%s\n" "$LIPO" >&6; }
11756else
11757  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758printf "%s\n" "no" >&6; }
11759fi
11760
11761
11762fi
11763if test -z "$ac_cv_prog_LIPO"; then
11764  ac_ct_LIPO=$LIPO
11765  # Extract the first word of "lipo", so it can be a program name with args.
11766set dummy lipo; ac_word=$2
11767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768printf %s "checking for $ac_word... " >&6; }
11769if test ${ac_cv_prog_ac_ct_LIPO+y}
11770then :
11771  printf %s "(cached) " >&6
11772else $as_nop
11773  if test -n "$ac_ct_LIPO"; then
11774  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11775else
11776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777for as_dir in $PATH
11778do
11779  IFS=$as_save_IFS
11780  case $as_dir in #(((
11781    '') as_dir=./ ;;
11782    */) ;;
11783    *) as_dir=$as_dir/ ;;
11784  esac
11785    for ac_exec_ext in '' $ac_executable_extensions; do
11786  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11787    ac_cv_prog_ac_ct_LIPO="lipo"
11788    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11789    break 2
11790  fi
11791done
11792  done
11793IFS=$as_save_IFS
11794
11795fi
11796fi
11797ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11798if test -n "$ac_ct_LIPO"; then
11799  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11800printf "%s\n" "$ac_ct_LIPO" >&6; }
11801else
11802  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11803printf "%s\n" "no" >&6; }
11804fi
11805
11806  if test "x$ac_ct_LIPO" = x; then
11807    LIPO=":"
11808  else
11809    case $cross_compiling:$ac_tool_warned in
11810yes:)
11811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11812printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11813ac_tool_warned=yes ;;
11814esac
11815    LIPO=$ac_ct_LIPO
11816  fi
11817else
11818  LIPO="$ac_cv_prog_LIPO"
11819fi
11820
11821    if test -n "$ac_tool_prefix"; then
11822  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11823set dummy ${ac_tool_prefix}otool; ac_word=$2
11824{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11825printf %s "checking for $ac_word... " >&6; }
11826if test ${ac_cv_prog_OTOOL+y}
11827then :
11828  printf %s "(cached) " >&6
11829else $as_nop
11830  if test -n "$OTOOL"; then
11831  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11832else
11833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834for as_dir in $PATH
11835do
11836  IFS=$as_save_IFS
11837  case $as_dir in #(((
11838    '') as_dir=./ ;;
11839    */) ;;
11840    *) as_dir=$as_dir/ ;;
11841  esac
11842    for ac_exec_ext in '' $ac_executable_extensions; do
11843  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11844    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11845    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11846    break 2
11847  fi
11848done
11849  done
11850IFS=$as_save_IFS
11851
11852fi
11853fi
11854OTOOL=$ac_cv_prog_OTOOL
11855if test -n "$OTOOL"; then
11856  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11857printf "%s\n" "$OTOOL" >&6; }
11858else
11859  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11860printf "%s\n" "no" >&6; }
11861fi
11862
11863
11864fi
11865if test -z "$ac_cv_prog_OTOOL"; then
11866  ac_ct_OTOOL=$OTOOL
11867  # Extract the first word of "otool", so it can be a program name with args.
11868set dummy otool; ac_word=$2
11869{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11870printf %s "checking for $ac_word... " >&6; }
11871if test ${ac_cv_prog_ac_ct_OTOOL+y}
11872then :
11873  printf %s "(cached) " >&6
11874else $as_nop
11875  if test -n "$ac_ct_OTOOL"; then
11876  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11877else
11878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11879for as_dir in $PATH
11880do
11881  IFS=$as_save_IFS
11882  case $as_dir in #(((
11883    '') as_dir=./ ;;
11884    */) ;;
11885    *) as_dir=$as_dir/ ;;
11886  esac
11887    for ac_exec_ext in '' $ac_executable_extensions; do
11888  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11889    ac_cv_prog_ac_ct_OTOOL="otool"
11890    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11891    break 2
11892  fi
11893done
11894  done
11895IFS=$as_save_IFS
11896
11897fi
11898fi
11899ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11900if test -n "$ac_ct_OTOOL"; then
11901  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11902printf "%s\n" "$ac_ct_OTOOL" >&6; }
11903else
11904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11905printf "%s\n" "no" >&6; }
11906fi
11907
11908  if test "x$ac_ct_OTOOL" = x; then
11909    OTOOL=":"
11910  else
11911    case $cross_compiling:$ac_tool_warned in
11912yes:)
11913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11914printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11915ac_tool_warned=yes ;;
11916esac
11917    OTOOL=$ac_ct_OTOOL
11918  fi
11919else
11920  OTOOL="$ac_cv_prog_OTOOL"
11921fi
11922
11923    if test -n "$ac_tool_prefix"; then
11924  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11925set dummy ${ac_tool_prefix}otool64; ac_word=$2
11926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927printf %s "checking for $ac_word... " >&6; }
11928if test ${ac_cv_prog_OTOOL64+y}
11929then :
11930  printf %s "(cached) " >&6
11931else $as_nop
11932  if test -n "$OTOOL64"; then
11933  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11934else
11935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11936for as_dir in $PATH
11937do
11938  IFS=$as_save_IFS
11939  case $as_dir in #(((
11940    '') as_dir=./ ;;
11941    */) ;;
11942    *) as_dir=$as_dir/ ;;
11943  esac
11944    for ac_exec_ext in '' $ac_executable_extensions; do
11945  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11946    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11947    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11948    break 2
11949  fi
11950done
11951  done
11952IFS=$as_save_IFS
11953
11954fi
11955fi
11956OTOOL64=$ac_cv_prog_OTOOL64
11957if test -n "$OTOOL64"; then
11958  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11959printf "%s\n" "$OTOOL64" >&6; }
11960else
11961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11962printf "%s\n" "no" >&6; }
11963fi
11964
11965
11966fi
11967if test -z "$ac_cv_prog_OTOOL64"; then
11968  ac_ct_OTOOL64=$OTOOL64
11969  # Extract the first word of "otool64", so it can be a program name with args.
11970set dummy otool64; ac_word=$2
11971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11972printf %s "checking for $ac_word... " >&6; }
11973if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11974then :
11975  printf %s "(cached) " >&6
11976else $as_nop
11977  if test -n "$ac_ct_OTOOL64"; then
11978  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11979else
11980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981for as_dir in $PATH
11982do
11983  IFS=$as_save_IFS
11984  case $as_dir in #(((
11985    '') as_dir=./ ;;
11986    */) ;;
11987    *) as_dir=$as_dir/ ;;
11988  esac
11989    for ac_exec_ext in '' $ac_executable_extensions; do
11990  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11991    ac_cv_prog_ac_ct_OTOOL64="otool64"
11992    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11993    break 2
11994  fi
11995done
11996  done
11997IFS=$as_save_IFS
11998
11999fi
12000fi
12001ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12002if test -n "$ac_ct_OTOOL64"; then
12003  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12004printf "%s\n" "$ac_ct_OTOOL64" >&6; }
12005else
12006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12007printf "%s\n" "no" >&6; }
12008fi
12009
12010  if test "x$ac_ct_OTOOL64" = x; then
12011    OTOOL64=":"
12012  else
12013    case $cross_compiling:$ac_tool_warned in
12014yes:)
12015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12016printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12017ac_tool_warned=yes ;;
12018esac
12019    OTOOL64=$ac_ct_OTOOL64
12020  fi
12021else
12022  OTOOL64="$ac_cv_prog_OTOOL64"
12023fi
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12052printf %s "checking for -single_module linker flag... " >&6; }
12053if test ${lt_cv_apple_cc_single_mod+y}
12054then :
12055  printf %s "(cached) " >&6
12056else $as_nop
12057  lt_cv_apple_cc_single_mod=no
12058      if test -z "$LT_MULTI_MODULE"; then
12059	# By default we will add the -single_module flag. You can override
12060	# by either setting the environment variable LT_MULTI_MODULE
12061	# non-empty at configure time, or by adding -multi_module to the
12062	# link flags.
12063	rm -rf libconftest.dylib*
12064	echo "int foo(void){return 1;}" > conftest.c
12065	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12066-dynamiclib -Wl,-single_module conftest.c" >&5
12067	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12068	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12069        _lt_result=$?
12070	# If there is a non-empty error log, and "single_module"
12071	# appears in it, assume the flag caused a linker warning
12072        if test -s conftest.err && $GREP single_module conftest.err; then
12073	  cat conftest.err >&5
12074	# Otherwise, if the output was created with a 0 exit code from
12075	# the compiler, it worked.
12076	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
12077	  lt_cv_apple_cc_single_mod=yes
12078	else
12079	  cat conftest.err >&5
12080	fi
12081	rm -rf libconftest.dylib*
12082	rm -f conftest.*
12083      fi
12084fi
12085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12086printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
12087
12088    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12089printf %s "checking for -exported_symbols_list linker flag... " >&6; }
12090if test ${lt_cv_ld_exported_symbols_list+y}
12091then :
12092  printf %s "(cached) " >&6
12093else $as_nop
12094  lt_cv_ld_exported_symbols_list=no
12095      save_LDFLAGS=$LDFLAGS
12096      echo "_main" > conftest.sym
12097      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12098      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099/* end confdefs.h.  */
12100
12101#ifdef FC_DUMMY_MAIN
12102#ifndef FC_DUMMY_MAIN_EQ_F77
12103#  ifdef __cplusplus
12104     extern "C"
12105#  endif
12106   int FC_DUMMY_MAIN() { return 1; }
12107#endif
12108#endif
12109int
12110main (void)
12111{
12112
12113  ;
12114  return 0;
12115}
12116_ACEOF
12117if ac_fn_c_try_link "$LINENO"
12118then :
12119  lt_cv_ld_exported_symbols_list=yes
12120else $as_nop
12121  lt_cv_ld_exported_symbols_list=no
12122fi
12123rm -f core conftest.err conftest.$ac_objext conftest.beam \
12124    conftest$ac_exeext conftest.$ac_ext
12125	LDFLAGS=$save_LDFLAGS
12126
12127fi
12128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12129printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
12130
12131    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12132printf %s "checking for -force_load linker flag... " >&6; }
12133if test ${lt_cv_ld_force_load+y}
12134then :
12135  printf %s "(cached) " >&6
12136else $as_nop
12137  lt_cv_ld_force_load=no
12138      cat > conftest.c << _LT_EOF
12139int forced_loaded() { return 2;}
12140_LT_EOF
12141      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12142      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12143      echo "$AR cru libconftest.a conftest.o" >&5
12144      $AR cru libconftest.a conftest.o 2>&5
12145      echo "$RANLIB libconftest.a" >&5
12146      $RANLIB libconftest.a 2>&5
12147      cat > conftest.c << _LT_EOF
12148int main() { return 0;}
12149_LT_EOF
12150      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12151      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12152      _lt_result=$?
12153      if test -s conftest.err && $GREP force_load conftest.err; then
12154	cat conftest.err >&5
12155      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
12156	lt_cv_ld_force_load=yes
12157      else
12158	cat conftest.err >&5
12159      fi
12160        rm -f conftest.err libconftest.a conftest conftest.c
12161        rm -rf conftest.dSYM
12162
12163fi
12164{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12165printf "%s\n" "$lt_cv_ld_force_load" >&6; }
12166    case $host_os in
12167    rhapsody* | darwin1.[012])
12168      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
12169    darwin1.*)
12170      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12171    darwin*) # darwin 5.x on
12172      # if running on 10.5 or later, the deployment target defaults
12173      # to the OS version, if on x86, and 10.4, the deployment
12174      # target defaults to 10.4. Don't you love it?
12175      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12176	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12177	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12178	10.[012][,.]*)
12179	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
12180	10.*)
12181	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
12182      esac
12183    ;;
12184  esac
12185    if test yes = "$lt_cv_apple_cc_single_mod"; then
12186      _lt_dar_single_mod='$single_module'
12187    fi
12188    if test yes = "$lt_cv_ld_exported_symbols_list"; then
12189      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
12190    else
12191      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
12192    fi
12193    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
12194      _lt_dsymutil='~$DSYMUTIL $lib || :'
12195    else
12196      _lt_dsymutil=
12197    fi
12198    ;;
12199  esac
12200
12201# func_munge_path_list VARIABLE PATH
12202# -----------------------------------
12203# VARIABLE is name of variable containing _space_ separated list of
12204# directories to be munged by the contents of PATH, which is string
12205# having a format:
12206# "DIR[:DIR]:"
12207#       string "DIR[ DIR]" will be prepended to VARIABLE
12208# ":DIR[:DIR]"
12209#       string "DIR[ DIR]" will be appended to VARIABLE
12210# "DIRP[:DIRP]::[DIRA:]DIRA"
12211#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
12212#       "DIRA[ DIRA]" will be appended to VARIABLE
12213# "DIR[:DIR]"
12214#       VARIABLE will be replaced by "DIR[ DIR]"
12215func_munge_path_list ()
12216{
12217    case x$2 in
12218    x)
12219        ;;
12220    *:)
12221        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
12222        ;;
12223    x:*)
12224        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
12225        ;;
12226    *::*)
12227        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
12228        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
12229        ;;
12230    *)
12231        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
12232        ;;
12233    esac
12234}
12235
12236ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12237"
12238if test "x$ac_cv_header_dlfcn_h" = xyes
12239then :
12240  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
12241
12242fi
12243
12244
12245
12246func_stripname_cnf ()
12247{
12248  case $2 in
12249  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12250  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12251  esac
12252} # func_stripname_cnf
12253
12254
12255
12256
12257
12258# Set options
12259
12260
12261
12262        enable_dlopen=no
12263
12264
12265  enable_win32_dll=no
12266
12267
12268            # Check whether --enable-shared was given.
12269if test ${enable_shared+y}
12270then :
12271  enableval=$enable_shared; p=${PACKAGE-default}
12272    case $enableval in
12273    yes) enable_shared=yes ;;
12274    no) enable_shared=no ;;
12275    *)
12276      enable_shared=no
12277      # Look at the argument we got.  We use all the common list separators.
12278      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12279      for pkg in $enableval; do
12280	IFS=$lt_save_ifs
12281	if test "X$pkg" = "X$p"; then
12282	  enable_shared=yes
12283	fi
12284      done
12285      IFS=$lt_save_ifs
12286      ;;
12287    esac
12288else $as_nop
12289  enable_shared=yes
12290fi
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300  # Check whether --enable-static was given.
12301if test ${enable_static+y}
12302then :
12303  enableval=$enable_static; p=${PACKAGE-default}
12304    case $enableval in
12305    yes) enable_static=yes ;;
12306    no) enable_static=no ;;
12307    *)
12308     enable_static=no
12309      # Look at the argument we got.  We use all the common list separators.
12310      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12311      for pkg in $enableval; do
12312	IFS=$lt_save_ifs
12313	if test "X$pkg" = "X$p"; then
12314	  enable_static=yes
12315	fi
12316      done
12317      IFS=$lt_save_ifs
12318      ;;
12319    esac
12320else $as_nop
12321  enable_static=yes
12322fi
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333# Check whether --with-pic was given.
12334if test ${with_pic+y}
12335then :
12336  withval=$with_pic; lt_p=${PACKAGE-default}
12337    case $withval in
12338    yes|no) pic_mode=$withval ;;
12339    *)
12340      pic_mode=default
12341      # Look at the argument we got.  We use all the common list separators.
12342      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12343      for lt_pkg in $withval; do
12344	IFS=$lt_save_ifs
12345	if test "X$lt_pkg" = "X$lt_p"; then
12346	  pic_mode=yes
12347	fi
12348      done
12349      IFS=$lt_save_ifs
12350      ;;
12351    esac
12352else $as_nop
12353  pic_mode=default
12354fi
12355
12356
12357
12358
12359
12360
12361
12362
12363  # Check whether --enable-fast-install was given.
12364if test ${enable_fast_install+y}
12365then :
12366  enableval=$enable_fast_install; p=${PACKAGE-default}
12367    case $enableval in
12368    yes) enable_fast_install=yes ;;
12369    no) enable_fast_install=no ;;
12370    *)
12371      enable_fast_install=no
12372      # Look at the argument we got.  We use all the common list separators.
12373      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12374      for pkg in $enableval; do
12375	IFS=$lt_save_ifs
12376	if test "X$pkg" = "X$p"; then
12377	  enable_fast_install=yes
12378	fi
12379      done
12380      IFS=$lt_save_ifs
12381      ;;
12382    esac
12383else $as_nop
12384  enable_fast_install=yes
12385fi
12386
12387
12388
12389
12390
12391
12392
12393
12394  shared_archive_member_spec=
12395case $host,$enable_shared in
12396power*-*-aix[5-9]*,yes)
12397  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12398printf %s "checking which variant of shared library versioning to provide... " >&6; }
12399
12400# Check whether --with-aix-soname was given.
12401if test ${with_aix_soname+y}
12402then :
12403  withval=$with_aix_soname; case $withval in
12404    aix|svr4|both)
12405      ;;
12406    *)
12407      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12408      ;;
12409    esac
12410    lt_cv_with_aix_soname=$with_aix_soname
12411else $as_nop
12412  if test ${lt_cv_with_aix_soname+y}
12413then :
12414  printf %s "(cached) " >&6
12415else $as_nop
12416  lt_cv_with_aix_soname=aix
12417fi
12418
12419    with_aix_soname=$lt_cv_with_aix_soname
12420fi
12421
12422  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12423printf "%s\n" "$with_aix_soname" >&6; }
12424  if test aix != "$with_aix_soname"; then
12425    # For the AIX way of multilib, we name the shared archive member
12426    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12427    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12428    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12429    # the AIX toolchain works better with OBJECT_MODE set (default 32).
12430    if test 64 = "${OBJECT_MODE-32}"; then
12431      shared_archive_member_spec=shr_64
12432    else
12433      shared_archive_member_spec=shr
12434    fi
12435  fi
12436  ;;
12437*)
12438  with_aix_soname=aix
12439  ;;
12440esac
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451# This can be used to rebuild libtool when needed
12452LIBTOOL_DEPS=$ltmain
12453
12454# Always use our own libtool.
12455LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486test -z "$LN_S" && LN_S="ln -s"
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501if test -n "${ZSH_VERSION+set}"; then
12502   setopt NO_GLOB_SUBST
12503fi
12504
12505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12506printf %s "checking for objdir... " >&6; }
12507if test ${lt_cv_objdir+y}
12508then :
12509  printf %s "(cached) " >&6
12510else $as_nop
12511  rm -f .libs 2>/dev/null
12512mkdir .libs 2>/dev/null
12513if test -d .libs; then
12514  lt_cv_objdir=.libs
12515else
12516  # MS-DOS does not allow filenames that begin with a dot.
12517  lt_cv_objdir=_libs
12518fi
12519rmdir .libs 2>/dev/null
12520fi
12521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12522printf "%s\n" "$lt_cv_objdir" >&6; }
12523objdir=$lt_cv_objdir
12524
12525
12526
12527
12528
12529printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12530
12531
12532
12533
12534case $host_os in
12535aix3*)
12536  # AIX sometimes has problems with the GCC collect2 program.  For some
12537  # reason, if we set the COLLECT_NAMES environment variable, the problems
12538  # vanish in a puff of smoke.
12539  if test set != "${COLLECT_NAMES+set}"; then
12540    COLLECT_NAMES=
12541    export COLLECT_NAMES
12542  fi
12543  ;;
12544esac
12545
12546# Global variables:
12547ofile=libtool
12548can_build_shared=yes
12549
12550# All known linkers require a '.a' archive for static linking (except MSVC,
12551# which needs '.lib').
12552libext=a
12553
12554with_gnu_ld=$lt_cv_prog_gnu_ld
12555
12556old_CC=$CC
12557old_CFLAGS=$CFLAGS
12558
12559# Set sane defaults for various variables
12560test -z "$CC" && CC=cc
12561test -z "$LTCC" && LTCC=$CC
12562test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12563test -z "$LD" && LD=ld
12564test -z "$ac_objext" && ac_objext=o
12565
12566func_cc_basename $compiler
12567cc_basename=$func_cc_basename_result
12568
12569
12570# Only perform the check for file, if the check method requires it
12571test -z "$MAGIC_CMD" && MAGIC_CMD=file
12572case $deplibs_check_method in
12573file_magic*)
12574  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12575    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12576printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12577if test ${lt_cv_path_MAGIC_CMD+y}
12578then :
12579  printf %s "(cached) " >&6
12580else $as_nop
12581  case $MAGIC_CMD in
12582[\\/*] |  ?:[\\/]*)
12583  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12584  ;;
12585*)
12586  lt_save_MAGIC_CMD=$MAGIC_CMD
12587  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12588  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12589  for ac_dir in $ac_dummy; do
12590    IFS=$lt_save_ifs
12591    test -z "$ac_dir" && ac_dir=.
12592    if test -f "$ac_dir/${ac_tool_prefix}file"; then
12593      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12594      if test -n "$file_magic_test_file"; then
12595	case $deplibs_check_method in
12596	"file_magic "*)
12597	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12598	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12599	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12600	    $EGREP "$file_magic_regex" > /dev/null; then
12601	    :
12602	  else
12603	    cat <<_LT_EOF 1>&2
12604
12605*** Warning: the command libtool uses to detect shared libraries,
12606*** $file_magic_cmd, produces output that libtool cannot recognize.
12607*** The result is that libtool may fail to recognize shared libraries
12608*** as such.  This will affect the creation of libtool libraries that
12609*** depend on shared libraries, but programs linked with such libtool
12610*** libraries will work regardless of this problem.  Nevertheless, you
12611*** may want to report the problem to your system manager and/or to
12612*** bug-libtool@gnu.org
12613
12614_LT_EOF
12615	  fi ;;
12616	esac
12617      fi
12618      break
12619    fi
12620  done
12621  IFS=$lt_save_ifs
12622  MAGIC_CMD=$lt_save_MAGIC_CMD
12623  ;;
12624esac
12625fi
12626
12627MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12628if test -n "$MAGIC_CMD"; then
12629  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12630printf "%s\n" "$MAGIC_CMD" >&6; }
12631else
12632  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633printf "%s\n" "no" >&6; }
12634fi
12635
12636
12637
12638
12639
12640if test -z "$lt_cv_path_MAGIC_CMD"; then
12641  if test -n "$ac_tool_prefix"; then
12642    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12643printf %s "checking for file... " >&6; }
12644if test ${lt_cv_path_MAGIC_CMD+y}
12645then :
12646  printf %s "(cached) " >&6
12647else $as_nop
12648  case $MAGIC_CMD in
12649[\\/*] |  ?:[\\/]*)
12650  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12651  ;;
12652*)
12653  lt_save_MAGIC_CMD=$MAGIC_CMD
12654  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12655  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12656  for ac_dir in $ac_dummy; do
12657    IFS=$lt_save_ifs
12658    test -z "$ac_dir" && ac_dir=.
12659    if test -f "$ac_dir/file"; then
12660      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12661      if test -n "$file_magic_test_file"; then
12662	case $deplibs_check_method in
12663	"file_magic "*)
12664	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12665	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12666	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12667	    $EGREP "$file_magic_regex" > /dev/null; then
12668	    :
12669	  else
12670	    cat <<_LT_EOF 1>&2
12671
12672*** Warning: the command libtool uses to detect shared libraries,
12673*** $file_magic_cmd, produces output that libtool cannot recognize.
12674*** The result is that libtool may fail to recognize shared libraries
12675*** as such.  This will affect the creation of libtool libraries that
12676*** depend on shared libraries, but programs linked with such libtool
12677*** libraries will work regardless of this problem.  Nevertheless, you
12678*** may want to report the problem to your system manager and/or to
12679*** bug-libtool@gnu.org
12680
12681_LT_EOF
12682	  fi ;;
12683	esac
12684      fi
12685      break
12686    fi
12687  done
12688  IFS=$lt_save_ifs
12689  MAGIC_CMD=$lt_save_MAGIC_CMD
12690  ;;
12691esac
12692fi
12693
12694MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12695if test -n "$MAGIC_CMD"; then
12696  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12697printf "%s\n" "$MAGIC_CMD" >&6; }
12698else
12699  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12700printf "%s\n" "no" >&6; }
12701fi
12702
12703
12704  else
12705    MAGIC_CMD=:
12706  fi
12707fi
12708
12709  fi
12710  ;;
12711esac
12712
12713# Use C for the default configuration in the libtool script
12714
12715lt_save_CC=$CC
12716ac_ext=c
12717ac_cpp='$CPP $CPPFLAGS'
12718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12720ac_compiler_gnu=$ac_cv_c_compiler_gnu
12721
12722
12723# Source file extension for C test sources.
12724ac_ext=c
12725
12726# Object file extension for compiled C test sources.
12727objext=o
12728objext=$objext
12729
12730# Code to be used in simple compile tests
12731lt_simple_compile_test_code="int some_variable = 0;"
12732
12733# Code to be used in simple link tests
12734lt_simple_link_test_code='int main(){return(0);}'
12735
12736
12737
12738
12739
12740
12741
12742# If no C compiler was specified, use CC.
12743LTCC=${LTCC-"$CC"}
12744
12745# If no C compiler flags were specified, use CFLAGS.
12746LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12747
12748# Allow CC to be a program name with arguments.
12749compiler=$CC
12750
12751# Save the default compiler, since it gets overwritten when the other
12752# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12753compiler_DEFAULT=$CC
12754
12755# save warnings/boilerplate of simple test code
12756ac_outfile=conftest.$ac_objext
12757echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12758eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12759_lt_compiler_boilerplate=`cat conftest.err`
12760$RM conftest*
12761
12762ac_outfile=conftest.$ac_objext
12763echo "$lt_simple_link_test_code" >conftest.$ac_ext
12764eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12765_lt_linker_boilerplate=`cat conftest.err`
12766$RM -r conftest*
12767
12768
12769## CAVEAT EMPTOR:
12770## There is no encapsulation within the following macros, do not change
12771## the running order or otherwise move them around unless you know exactly
12772## what you are doing...
12773if test -n "$compiler"; then
12774
12775lt_prog_compiler_no_builtin_flag=
12776
12777if test yes = "$GCC"; then
12778  case $cc_basename in
12779  nvcc*)
12780    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12781  *)
12782    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12783  esac
12784
12785  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12786printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12787if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12788then :
12789  printf %s "(cached) " >&6
12790else $as_nop
12791  lt_cv_prog_compiler_rtti_exceptions=no
12792   ac_outfile=conftest.$ac_objext
12793   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12794   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
12795   # Insert the option either (1) after the last *FLAGS variable, or
12796   # (2) before a word containing "conftest.", or (3) at the end.
12797   # Note that $ac_compile itself does not contain backslashes and begins
12798   # with a dollar sign (not a hyphen), so the echo should work correctly.
12799   # The option is referenced via a variable to avoid confusing sed.
12800   lt_compile=`echo "$ac_compile" | $SED \
12801   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12802   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12803   -e 's:$: $lt_compiler_flag:'`
12804   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12805   (eval "$lt_compile" 2>conftest.err)
12806   ac_status=$?
12807   cat conftest.err >&5
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   if (exit $ac_status) && test -s "$ac_outfile"; then
12810     # The compiler can only warn and ignore the option if not recognized
12811     # So say no if there are warnings other than the usual output.
12812     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12813     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12814     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12815       lt_cv_prog_compiler_rtti_exceptions=yes
12816     fi
12817   fi
12818   $RM conftest*
12819
12820fi
12821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12822printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12823
12824if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12825    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12826else
12827    :
12828fi
12829
12830fi
12831
12832
12833
12834
12835
12836
12837  lt_prog_compiler_wl=
12838lt_prog_compiler_pic=
12839lt_prog_compiler_static=
12840
12841
12842  if test yes = "$GCC"; then
12843    lt_prog_compiler_wl='-Wl,'
12844    lt_prog_compiler_static='-static'
12845
12846    case $host_os in
12847      aix*)
12848      # All AIX code is PIC.
12849      if test ia64 = "$host_cpu"; then
12850	# AIX 5 now supports IA64 processor
12851	lt_prog_compiler_static='-Bstatic'
12852      fi
12853      lt_prog_compiler_pic='-fPIC'
12854      ;;
12855
12856    amigaos*)
12857      case $host_cpu in
12858      powerpc)
12859            # see comment about AmigaOS4 .so support
12860            lt_prog_compiler_pic='-fPIC'
12861        ;;
12862      m68k)
12863            # FIXME: we need at least 68020 code to build shared libraries, but
12864            # adding the '-m68020' flag to GCC prevents building anything better,
12865            # like '-m68040'.
12866            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12867        ;;
12868      esac
12869      ;;
12870
12871    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12872      # PIC is the default for these OSes.
12873      ;;
12874
12875    mingw* | cygwin* | pw32* | os2* | cegcc*)
12876      # This hack is so that the source file can tell whether it is being
12877      # built for inclusion in a dll (and should export symbols for example).
12878      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12879      # (--disable-auto-import) libraries
12880      lt_prog_compiler_pic='-DDLL_EXPORT'
12881      case $host_os in
12882      os2*)
12883	lt_prog_compiler_static='$wl-static'
12884	;;
12885      esac
12886      ;;
12887
12888    darwin* | rhapsody*)
12889      # PIC is the default on this platform
12890      # Common symbols not allowed in MH_DYLIB files
12891      lt_prog_compiler_pic='-fno-common'
12892      ;;
12893
12894    haiku*)
12895      # PIC is the default for Haiku.
12896      # The "-static" flag exists, but is broken.
12897      lt_prog_compiler_static=
12898      ;;
12899
12900    hpux*)
12901      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12902      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12903      # sets the default TLS model and affects inlining.
12904      case $host_cpu in
12905      hppa*64*)
12906	# +Z the default
12907	;;
12908      *)
12909	lt_prog_compiler_pic='-fPIC'
12910	;;
12911      esac
12912      ;;
12913
12914    interix[3-9]*)
12915      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12916      # Instead, we relocate shared libraries at runtime.
12917      ;;
12918
12919    msdosdjgpp*)
12920      # Just because we use GCC doesn't mean we suddenly get shared libraries
12921      # on systems that don't support them.
12922      lt_prog_compiler_can_build_shared=no
12923      enable_shared=no
12924      ;;
12925
12926    *nto* | *qnx*)
12927      # QNX uses GNU C++, but need to define -shared option too, otherwise
12928      # it will coredump.
12929      lt_prog_compiler_pic='-fPIC -shared'
12930      ;;
12931
12932    sysv4*MP*)
12933      if test -d /usr/nec; then
12934	lt_prog_compiler_pic=-Kconform_pic
12935      fi
12936      ;;
12937
12938    *)
12939      lt_prog_compiler_pic='-fPIC'
12940      ;;
12941    esac
12942
12943    case $cc_basename in
12944    nvcc*) # Cuda Compiler Driver 2.2
12945      lt_prog_compiler_wl='-Xlinker '
12946      if test -n "$lt_prog_compiler_pic"; then
12947        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12948      fi
12949      ;;
12950    esac
12951  else
12952    # PORTME Check for flag to pass linker flags through the system compiler.
12953    case $host_os in
12954    aix*)
12955      lt_prog_compiler_wl='-Wl,'
12956      if test ia64 = "$host_cpu"; then
12957	# AIX 5 now supports IA64 processor
12958	lt_prog_compiler_static='-Bstatic'
12959      else
12960	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12961      fi
12962      ;;
12963
12964    darwin* | rhapsody*)
12965      # PIC is the default on this platform
12966      # Common symbols not allowed in MH_DYLIB files
12967      lt_prog_compiler_pic='-fno-common'
12968      case $cc_basename in
12969      nagfor*)
12970        # NAG Fortran compiler
12971        lt_prog_compiler_wl='-Wl,-Wl,,'
12972        lt_prog_compiler_pic='-PIC'
12973        lt_prog_compiler_static='-Bstatic'
12974        ;;
12975      esac
12976      ;;
12977
12978    mingw* | cygwin* | pw32* | os2* | cegcc*)
12979      # This hack is so that the source file can tell whether it is being
12980      # built for inclusion in a dll (and should export symbols for example).
12981      lt_prog_compiler_pic='-DDLL_EXPORT'
12982      case $host_os in
12983      os2*)
12984	lt_prog_compiler_static='$wl-static'
12985	;;
12986      esac
12987      ;;
12988
12989    hpux9* | hpux10* | hpux11*)
12990      lt_prog_compiler_wl='-Wl,'
12991      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12992      # not for PA HP-UX.
12993      case $host_cpu in
12994      hppa*64*|ia64*)
12995	# +Z the default
12996	;;
12997      *)
12998	lt_prog_compiler_pic='+Z'
12999	;;
13000      esac
13001      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13002      lt_prog_compiler_static='$wl-a ${wl}archive'
13003      ;;
13004
13005    irix5* | irix6* | nonstopux*)
13006      lt_prog_compiler_wl='-Wl,'
13007      # PIC (with -KPIC) is the default.
13008      lt_prog_compiler_static='-non_shared'
13009      ;;
13010
13011    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13012      case $cc_basename in
13013      # old Intel for x86_64, which still supported -KPIC.
13014      ecc*)
13015	lt_prog_compiler_wl='-Wl,'
13016	lt_prog_compiler_pic='-KPIC'
13017	lt_prog_compiler_static='-static'
13018        ;;
13019      # icc used to be incompatible with GCC.
13020      # ICC 10 doesn't accept -KPIC any more.
13021      icc* | ifort*)
13022	lt_prog_compiler_wl='-Wl,'
13023	lt_prog_compiler_pic='-fPIC'
13024	lt_prog_compiler_static='-static'
13025        ;;
13026      # Lahey Fortran 8.1.
13027      lf95*)
13028	lt_prog_compiler_wl='-Wl,'
13029	lt_prog_compiler_pic='--shared'
13030	lt_prog_compiler_static='--static'
13031	;;
13032      nagfor*)
13033	# NAG Fortran compiler
13034	lt_prog_compiler_wl='-Wl,-Wl,,'
13035	lt_prog_compiler_pic='-PIC'
13036	lt_prog_compiler_static='-Bstatic'
13037	;;
13038      tcc*)
13039	# Fabrice Bellard et al's Tiny C Compiler
13040	lt_prog_compiler_wl='-Wl,'
13041	lt_prog_compiler_pic='-fPIC'
13042	lt_prog_compiler_static='-static'
13043	;;
13044      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13045        # Portland Group compilers (*not* the Pentium gcc compiler,
13046	# which looks to be a dead project)
13047	lt_prog_compiler_wl='-Wl,'
13048	lt_prog_compiler_pic='-fpic'
13049	lt_prog_compiler_static='-Bstatic'
13050        ;;
13051      ccc*)
13052        lt_prog_compiler_wl='-Wl,'
13053        # All Alpha code is PIC.
13054        lt_prog_compiler_static='-non_shared'
13055        ;;
13056      xl* | bgxl* | bgf* | mpixl*)
13057	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13058	lt_prog_compiler_wl='-Wl,'
13059	lt_prog_compiler_pic='-qpic'
13060	lt_prog_compiler_static='-qstaticlink'
13061	;;
13062      *)
13063	case `$CC -V 2>&1 | sed 5q` in
13064	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13065	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13066	  lt_prog_compiler_pic='-KPIC'
13067	  lt_prog_compiler_static='-Bstatic'
13068	  lt_prog_compiler_wl=''
13069	  ;;
13070	*Sun\ F* | *Sun*Fortran*)
13071	  lt_prog_compiler_pic='-KPIC'
13072	  lt_prog_compiler_static='-Bstatic'
13073	  lt_prog_compiler_wl='-Qoption ld '
13074	  ;;
13075	*Sun\ C*)
13076	  # Sun C 5.9
13077	  lt_prog_compiler_pic='-KPIC'
13078	  lt_prog_compiler_static='-Bstatic'
13079	  lt_prog_compiler_wl='-Wl,'
13080	  ;;
13081        *Intel*\ [CF]*Compiler*)
13082	  lt_prog_compiler_wl='-Wl,'
13083	  lt_prog_compiler_pic='-fPIC'
13084	  lt_prog_compiler_static='-static'
13085	  ;;
13086	*Portland\ Group*)
13087	  lt_prog_compiler_wl='-Wl,'
13088	  lt_prog_compiler_pic='-fpic'
13089	  lt_prog_compiler_static='-Bstatic'
13090	  ;;
13091	esac
13092	;;
13093      esac
13094      ;;
13095
13096    newsos6)
13097      lt_prog_compiler_pic='-KPIC'
13098      lt_prog_compiler_static='-Bstatic'
13099      ;;
13100
13101    *nto* | *qnx*)
13102      # QNX uses GNU C++, but need to define -shared option too, otherwise
13103      # it will coredump.
13104      lt_prog_compiler_pic='-fPIC -shared'
13105      ;;
13106
13107    osf3* | osf4* | osf5*)
13108      lt_prog_compiler_wl='-Wl,'
13109      # All OSF/1 code is PIC.
13110      lt_prog_compiler_static='-non_shared'
13111      ;;
13112
13113    rdos*)
13114      lt_prog_compiler_static='-non_shared'
13115      ;;
13116
13117    solaris*)
13118      lt_prog_compiler_pic='-KPIC'
13119      lt_prog_compiler_static='-Bstatic'
13120      case $cc_basename in
13121      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13122	lt_prog_compiler_wl='-Qoption ld ';;
13123      *)
13124	lt_prog_compiler_wl='-Wl,';;
13125      esac
13126      ;;
13127
13128    sunos4*)
13129      lt_prog_compiler_wl='-Qoption ld '
13130      lt_prog_compiler_pic='-PIC'
13131      lt_prog_compiler_static='-Bstatic'
13132      ;;
13133
13134    sysv4 | sysv4.2uw2* | sysv4.3*)
13135      lt_prog_compiler_wl='-Wl,'
13136      lt_prog_compiler_pic='-KPIC'
13137      lt_prog_compiler_static='-Bstatic'
13138      ;;
13139
13140    sysv4*MP*)
13141      if test -d /usr/nec; then
13142	lt_prog_compiler_pic='-Kconform_pic'
13143	lt_prog_compiler_static='-Bstatic'
13144      fi
13145      ;;
13146
13147    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13148      lt_prog_compiler_wl='-Wl,'
13149      lt_prog_compiler_pic='-KPIC'
13150      lt_prog_compiler_static='-Bstatic'
13151      ;;
13152
13153    unicos*)
13154      lt_prog_compiler_wl='-Wl,'
13155      lt_prog_compiler_can_build_shared=no
13156      ;;
13157
13158    uts4*)
13159      lt_prog_compiler_pic='-pic'
13160      lt_prog_compiler_static='-Bstatic'
13161      ;;
13162
13163    *)
13164      lt_prog_compiler_can_build_shared=no
13165      ;;
13166    esac
13167  fi
13168
13169case $host_os in
13170  # For platforms that do not support PIC, -DPIC is meaningless:
13171  *djgpp*)
13172    lt_prog_compiler_pic=
13173    ;;
13174  *)
13175    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13176    ;;
13177esac
13178
13179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13180printf %s "checking for $compiler option to produce PIC... " >&6; }
13181if test ${lt_cv_prog_compiler_pic+y}
13182then :
13183  printf %s "(cached) " >&6
13184else $as_nop
13185  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13186fi
13187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13188printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13189lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13190
13191#
13192# Check to make sure the PIC flag actually works.
13193#
13194if test -n "$lt_prog_compiler_pic"; then
13195  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13196printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13197if test ${lt_cv_prog_compiler_pic_works+y}
13198then :
13199  printf %s "(cached) " >&6
13200else $as_nop
13201  lt_cv_prog_compiler_pic_works=no
13202   ac_outfile=conftest.$ac_objext
13203   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13204   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
13205   # Insert the option either (1) after the last *FLAGS variable, or
13206   # (2) before a word containing "conftest.", or (3) at the end.
13207   # Note that $ac_compile itself does not contain backslashes and begins
13208   # with a dollar sign (not a hyphen), so the echo should work correctly.
13209   # The option is referenced via a variable to avoid confusing sed.
13210   lt_compile=`echo "$ac_compile" | $SED \
13211   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13212   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13213   -e 's:$: $lt_compiler_flag:'`
13214   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13215   (eval "$lt_compile" 2>conftest.err)
13216   ac_status=$?
13217   cat conftest.err >&5
13218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219   if (exit $ac_status) && test -s "$ac_outfile"; then
13220     # The compiler can only warn and ignore the option if not recognized
13221     # So say no if there are warnings other than the usual output.
13222     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13223     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13224     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13225       lt_cv_prog_compiler_pic_works=yes
13226     fi
13227   fi
13228   $RM conftest*
13229
13230fi
13231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13232printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13233
13234if test yes = "$lt_cv_prog_compiler_pic_works"; then
13235    case $lt_prog_compiler_pic in
13236     "" | " "*) ;;
13237     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13238     esac
13239else
13240    lt_prog_compiler_pic=
13241     lt_prog_compiler_can_build_shared=no
13242fi
13243
13244fi
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256#
13257# Check to make sure the static flag actually works.
13258#
13259wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13261printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13262if test ${lt_cv_prog_compiler_static_works+y}
13263then :
13264  printf %s "(cached) " >&6
13265else $as_nop
13266  lt_cv_prog_compiler_static_works=no
13267   save_LDFLAGS=$LDFLAGS
13268   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13269   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13270   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13271     # The linker can only warn and ignore the option if not recognized
13272     # So say no if there are warnings
13273     if test -s conftest.err; then
13274       # Append any errors to the config.log.
13275       cat conftest.err 1>&5
13276       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13277       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13278       if diff conftest.exp conftest.er2 >/dev/null; then
13279         lt_cv_prog_compiler_static_works=yes
13280       fi
13281     else
13282       lt_cv_prog_compiler_static_works=yes
13283     fi
13284   fi
13285   $RM -r conftest*
13286   LDFLAGS=$save_LDFLAGS
13287
13288fi
13289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13290printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13291
13292if test yes = "$lt_cv_prog_compiler_static_works"; then
13293    :
13294else
13295    lt_prog_compiler_static=
13296fi
13297
13298
13299
13300
13301
13302
13303
13304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13305printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13306if test ${lt_cv_prog_compiler_c_o+y}
13307then :
13308  printf %s "(cached) " >&6
13309else $as_nop
13310  lt_cv_prog_compiler_c_o=no
13311   $RM -r conftest 2>/dev/null
13312   mkdir conftest
13313   cd conftest
13314   mkdir out
13315   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13316
13317   lt_compiler_flag="-o out/conftest2.$ac_objext"
13318   # Insert the option either (1) after the last *FLAGS variable, or
13319   # (2) before a word containing "conftest.", or (3) at the end.
13320   # Note that $ac_compile itself does not contain backslashes and begins
13321   # with a dollar sign (not a hyphen), so the echo should work correctly.
13322   lt_compile=`echo "$ac_compile" | $SED \
13323   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13324   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13325   -e 's:$: $lt_compiler_flag:'`
13326   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13327   (eval "$lt_compile" 2>out/conftest.err)
13328   ac_status=$?
13329   cat out/conftest.err >&5
13330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13332   then
13333     # The compiler can only warn and ignore the option if not recognized
13334     # So say no if there are warnings
13335     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13336     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13337     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13338       lt_cv_prog_compiler_c_o=yes
13339     fi
13340   fi
13341   chmod u+w . 2>&5
13342   $RM conftest*
13343   # SGI C++ compiler will create directory out/ii_files/ for
13344   # template instantiation
13345   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13346   $RM out/* && rmdir out
13347   cd ..
13348   $RM -r conftest
13349   $RM conftest*
13350
13351fi
13352{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13353printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13354
13355
13356
13357
13358
13359
13360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13361printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13362if test ${lt_cv_prog_compiler_c_o+y}
13363then :
13364  printf %s "(cached) " >&6
13365else $as_nop
13366  lt_cv_prog_compiler_c_o=no
13367   $RM -r conftest 2>/dev/null
13368   mkdir conftest
13369   cd conftest
13370   mkdir out
13371   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13372
13373   lt_compiler_flag="-o out/conftest2.$ac_objext"
13374   # Insert the option either (1) after the last *FLAGS variable, or
13375   # (2) before a word containing "conftest.", or (3) at the end.
13376   # Note that $ac_compile itself does not contain backslashes and begins
13377   # with a dollar sign (not a hyphen), so the echo should work correctly.
13378   lt_compile=`echo "$ac_compile" | $SED \
13379   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13380   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13381   -e 's:$: $lt_compiler_flag:'`
13382   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13383   (eval "$lt_compile" 2>out/conftest.err)
13384   ac_status=$?
13385   cat out/conftest.err >&5
13386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13388   then
13389     # The compiler can only warn and ignore the option if not recognized
13390     # So say no if there are warnings
13391     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13392     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13393     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13394       lt_cv_prog_compiler_c_o=yes
13395     fi
13396   fi
13397   chmod u+w . 2>&5
13398   $RM conftest*
13399   # SGI C++ compiler will create directory out/ii_files/ for
13400   # template instantiation
13401   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13402   $RM out/* && rmdir out
13403   cd ..
13404   $RM -r conftest
13405   $RM conftest*
13406
13407fi
13408{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13409printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13410
13411
13412
13413
13414hard_links=nottested
13415if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13416  # do not overwrite the value of need_locks provided by the user
13417  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13418printf %s "checking if we can lock with hard links... " >&6; }
13419  hard_links=yes
13420  $RM conftest*
13421  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13422  touch conftest.a
13423  ln conftest.a conftest.b 2>&5 || hard_links=no
13424  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13426printf "%s\n" "$hard_links" >&6; }
13427  if test no = "$hard_links"; then
13428    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13429printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13430    need_locks=warn
13431  fi
13432else
13433  need_locks=no
13434fi
13435
13436
13437
13438
13439
13440
13441  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13442printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13443
13444  runpath_var=
13445  allow_undefined_flag=
13446  always_export_symbols=no
13447  archive_cmds=
13448  archive_expsym_cmds=
13449  compiler_needs_object=no
13450  enable_shared_with_static_runtimes=no
13451  export_dynamic_flag_spec=
13452  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13453  hardcode_automatic=no
13454  hardcode_direct=no
13455  hardcode_direct_absolute=no
13456  hardcode_libdir_flag_spec=
13457  hardcode_libdir_separator=
13458  hardcode_minus_L=no
13459  hardcode_shlibpath_var=unsupported
13460  inherit_rpath=no
13461  link_all_deplibs=unknown
13462  module_cmds=
13463  module_expsym_cmds=
13464  old_archive_from_new_cmds=
13465  old_archive_from_expsyms_cmds=
13466  thread_safe_flag_spec=
13467  whole_archive_flag_spec=
13468  # include_expsyms should be a list of space-separated symbols to be *always*
13469  # included in the symbol list
13470  include_expsyms=
13471  # exclude_expsyms can be an extended regexp of symbols to exclude
13472  # it will be wrapped by ' (' and ')$', so one must not match beginning or
13473  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13474  # as well as any symbol that contains 'd'.
13475  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13476  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13477  # platforms (ab)use it in PIC code, but their linkers get confused if
13478  # the symbol is explicitly referenced.  Since portable code cannot
13479  # rely on this symbol name, it's probably fine to never include it in
13480  # preloaded symbol tables.
13481  # Exclude shared library initialization/finalization symbols.
13482  extract_expsyms_cmds=
13483
13484  case $host_os in
13485  cygwin* | mingw* | pw32* | cegcc*)
13486    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13487    # When not using gcc, we currently assume that we are using
13488    # Microsoft Visual C++.
13489    if test yes != "$GCC"; then
13490      with_gnu_ld=no
13491    fi
13492    ;;
13493  interix*)
13494    # we just hope/assume this is gcc and not c89 (= MSVC++)
13495    with_gnu_ld=yes
13496    ;;
13497  openbsd* | bitrig*)
13498    with_gnu_ld=no
13499    ;;
13500  esac
13501
13502  ld_shlibs=yes
13503
13504  # On some targets, GNU ld is compatible enough with the native linker
13505  # that we're better off using the native interface for both.
13506  lt_use_gnu_ld_interface=no
13507  if test yes = "$with_gnu_ld"; then
13508    case $host_os in
13509      aix*)
13510	# The AIX port of GNU ld has always aspired to compatibility
13511	# with the native linker.  However, as the warning in the GNU ld
13512	# block says, versions before 2.19.5* couldn't really create working
13513	# shared libraries, regardless of the interface used.
13514	case `$LD -v 2>&1` in
13515	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13516	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13517	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13518	  *)
13519	    lt_use_gnu_ld_interface=yes
13520	    ;;
13521	esac
13522	;;
13523      *)
13524	lt_use_gnu_ld_interface=yes
13525	;;
13526    esac
13527  fi
13528
13529  if test yes = "$lt_use_gnu_ld_interface"; then
13530    # If archive_cmds runs LD, not CC, wlarc should be empty
13531    wlarc='$wl'
13532
13533    # Set some defaults for GNU ld with shared library support. These
13534    # are reset later if shared libraries are not supported. Putting them
13535    # here allows them to be overridden if necessary.
13536    runpath_var=LD_RUN_PATH
13537    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13538    export_dynamic_flag_spec='$wl--export-dynamic'
13539    # ancient GNU ld didn't support --whole-archive et. al.
13540    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13541      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13542    else
13543      whole_archive_flag_spec=
13544    fi
13545    supports_anon_versioning=no
13546    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13547      *GNU\ gold*) supports_anon_versioning=yes ;;
13548      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13549      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13550      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13551      *\ 2.11.*) ;; # other 2.11 versions
13552      *) supports_anon_versioning=yes ;;
13553    esac
13554
13555    # See if GNU ld supports shared libraries.
13556    case $host_os in
13557    aix[3-9]*)
13558      # On AIX/PPC, the GNU linker is very broken
13559      if test ia64 != "$host_cpu"; then
13560	ld_shlibs=no
13561	cat <<_LT_EOF 1>&2
13562
13563*** Warning: the GNU linker, at least up to release 2.19, is reported
13564*** to be unable to reliably create shared libraries on AIX.
13565*** Therefore, libtool is disabling shared libraries support.  If you
13566*** really care for shared libraries, you may want to install binutils
13567*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13568*** You will then need to restart the configuration process.
13569
13570_LT_EOF
13571      fi
13572      ;;
13573
13574    amigaos*)
13575      case $host_cpu in
13576      powerpc)
13577            # see comment about AmigaOS4 .so support
13578            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13579            archive_expsym_cmds=''
13580        ;;
13581      m68k)
13582            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)'
13583            hardcode_libdir_flag_spec='-L$libdir'
13584            hardcode_minus_L=yes
13585        ;;
13586      esac
13587      ;;
13588
13589    beos*)
13590      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13591	allow_undefined_flag=unsupported
13592	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13593	# support --undefined.  This deserves some investigation.  FIXME
13594	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13595      else
13596	ld_shlibs=no
13597      fi
13598      ;;
13599
13600    cygwin* | mingw* | pw32* | cegcc*)
13601      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13602      # as there is no search path for DLLs.
13603      hardcode_libdir_flag_spec='-L$libdir'
13604      export_dynamic_flag_spec='$wl--export-all-symbols'
13605      allow_undefined_flag=unsupported
13606      always_export_symbols=no
13607      enable_shared_with_static_runtimes=yes
13608      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'
13609      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13610
13611      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13612        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13613	# If the export-symbols file already is a .def file, use it as
13614	# is; otherwise, prepend EXPORTS...
13615	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
13616          cp $export_symbols $output_objdir/$soname.def;
13617        else
13618          echo EXPORTS > $output_objdir/$soname.def;
13619          cat $export_symbols >> $output_objdir/$soname.def;
13620        fi~
13621        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13622      else
13623	ld_shlibs=no
13624      fi
13625      ;;
13626
13627    haiku*)
13628      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13629      link_all_deplibs=yes
13630      ;;
13631
13632    os2*)
13633      hardcode_libdir_flag_spec='-L$libdir'
13634      hardcode_minus_L=yes
13635      allow_undefined_flag=unsupported
13636      shrext_cmds=.dll
13637      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13638	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13639	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13640	$ECHO EXPORTS >> $output_objdir/$libname.def~
13641	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13642	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13643	emximp -o $lib $output_objdir/$libname.def'
13644      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13645	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13646	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13647	$ECHO EXPORTS >> $output_objdir/$libname.def~
13648	prefix_cmds="$SED"~
13649	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13650	  prefix_cmds="$prefix_cmds -e 1d";
13651	fi~
13652	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13653	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13654	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13655	emximp -o $lib $output_objdir/$libname.def'
13656      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13657      enable_shared_with_static_runtimes=yes
13658      ;;
13659
13660    interix[3-9]*)
13661      hardcode_direct=no
13662      hardcode_shlibpath_var=no
13663      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13664      export_dynamic_flag_spec='$wl-E'
13665      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13666      # Instead, shared libraries are loaded at an image base (0x10000000 by
13667      # default) and relocated if they conflict, which is a slow very memory
13668      # consuming and fragmenting process.  To avoid this, we pick a random,
13669      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13670      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13671      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13672      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'
13673      ;;
13674
13675    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13676      tmp_diet=no
13677      if test linux-dietlibc = "$host_os"; then
13678	case $cc_basename in
13679	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
13680	esac
13681      fi
13682      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13683	 && test no = "$tmp_diet"
13684      then
13685	tmp_addflag=' $pic_flag'
13686	tmp_sharedflag='-shared'
13687	case $cc_basename,$host_cpu in
13688        pgcc*)				# Portland Group C compiler
13689	  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'
13690	  tmp_addflag=' $pic_flag'
13691	  ;;
13692	pgf77* | pgf90* | pgf95* | pgfortran*)
13693					# Portland Group f77 and f90 compilers
13694	  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'
13695	  tmp_addflag=' $pic_flag -Mnomain' ;;
13696	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13697	  tmp_addflag=' -i_dynamic' ;;
13698	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13699	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13700	ifc* | ifort*)			# Intel Fortran compiler
13701	  tmp_addflag=' -nofor_main' ;;
13702	lf95*)				# Lahey Fortran 8.1
13703	  whole_archive_flag_spec=
13704	  tmp_sharedflag='--shared' ;;
13705        nagfor*)                        # NAGFOR 5.3
13706          tmp_sharedflag='-Wl,-shared' ;;
13707	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13708	  tmp_sharedflag='-qmkshrobj'
13709	  tmp_addflag= ;;
13710	nvcc*)	# Cuda Compiler Driver 2.2
13711	  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'
13712	  compiler_needs_object=yes
13713	  ;;
13714	esac
13715	case `$CC -V 2>&1 | sed 5q` in
13716	*Sun\ C*)			# Sun C 5.9
13717	  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'
13718	  compiler_needs_object=yes
13719	  tmp_sharedflag='-G' ;;
13720	*Sun\ F*)			# Sun Fortran 8.3
13721	  tmp_sharedflag='-G' ;;
13722	esac
13723	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13724
13725        if test yes = "$supports_anon_versioning"; then
13726          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13727            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13728            echo "local: *; };" >> $output_objdir/$libname.ver~
13729            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13730        fi
13731
13732	case $cc_basename in
13733	tcc*)
13734	  export_dynamic_flag_spec='-rdynamic'
13735	  ;;
13736	xlf* | bgf* | bgxlf* | mpixlf*)
13737	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13738	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13739	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13740	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13741	  if test yes = "$supports_anon_versioning"; then
13742	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13743              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13744              echo "local: *; };" >> $output_objdir/$libname.ver~
13745              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13746	  fi
13747	  ;;
13748	esac
13749      else
13750        ld_shlibs=no
13751      fi
13752      ;;
13753
13754    netbsd*)
13755      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13756	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13757	wlarc=
13758      else
13759	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13760	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13761      fi
13762      ;;
13763
13764    solaris*)
13765      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13766	ld_shlibs=no
13767	cat <<_LT_EOF 1>&2
13768
13769*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13770*** create shared libraries on Solaris systems.  Therefore, libtool
13771*** is disabling shared libraries support.  We urge you to upgrade GNU
13772*** binutils to release 2.9.1 or newer.  Another option is to modify
13773*** your PATH or compiler configuration so that the native linker is
13774*** used, and then restart.
13775
13776_LT_EOF
13777      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13778	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13779	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13780      else
13781	ld_shlibs=no
13782      fi
13783      ;;
13784
13785    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13786      case `$LD -v 2>&1` in
13787        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13788	ld_shlibs=no
13789	cat <<_LT_EOF 1>&2
13790
13791*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13792*** reliably create shared libraries on SCO systems.  Therefore, libtool
13793*** is disabling shared libraries support.  We urge you to upgrade GNU
13794*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13795*** your PATH or compiler configuration so that the native linker is
13796*** used, and then restart.
13797
13798_LT_EOF
13799	;;
13800	*)
13801	  # For security reasons, it is highly recommended that you always
13802	  # use absolute paths for naming shared libraries, and exclude the
13803	  # DT_RUNPATH tag from executables and libraries.  But doing so
13804	  # requires that you compile everything twice, which is a pain.
13805	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13806	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13807	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13808	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13809	  else
13810	    ld_shlibs=no
13811	  fi
13812	;;
13813      esac
13814      ;;
13815
13816    sunos4*)
13817      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13818      wlarc=
13819      hardcode_direct=yes
13820      hardcode_shlibpath_var=no
13821      ;;
13822
13823    *)
13824      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13825	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13826	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13827      else
13828	ld_shlibs=no
13829      fi
13830      ;;
13831    esac
13832
13833    if test no = "$ld_shlibs"; then
13834      runpath_var=
13835      hardcode_libdir_flag_spec=
13836      export_dynamic_flag_spec=
13837      whole_archive_flag_spec=
13838    fi
13839  else
13840    # PORTME fill in a description of your system's linker (not GNU ld)
13841    case $host_os in
13842    aix3*)
13843      allow_undefined_flag=unsupported
13844      always_export_symbols=yes
13845      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'
13846      # Note: this linker hardcodes the directories in LIBPATH if there
13847      # are no directories specified by -L.
13848      hardcode_minus_L=yes
13849      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13850	# Neither direct hardcoding nor static linking is supported with a
13851	# broken collect2.
13852	hardcode_direct=unsupported
13853      fi
13854      ;;
13855
13856    aix[4-9]*)
13857      if test ia64 = "$host_cpu"; then
13858	# On IA64, the linker does run time linking by default, so we don't
13859	# have to do anything special.
13860	aix_use_runtimelinking=no
13861	exp_sym_flag='-Bexport'
13862	no_entry_flag=
13863      else
13864	# If we're using GNU nm, then we don't want the "-C" option.
13865	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
13866	# Without the "-l" option, or with the "-B" option, AIX nm treats
13867	# weak defined symbols like other global defined symbols, whereas
13868	# GNU nm marks them as "W".
13869	# While the 'weak' keyword is ignored in the Export File, we need
13870	# it in the Import File for the 'aix-soname' feature, so we have
13871	# to replace the "-B" option with "-P" for AIX nm.
13872	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13873	  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'
13874	else
13875	  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'
13876	fi
13877	aix_use_runtimelinking=no
13878
13879	# Test if we are trying to use run time linking or normal
13880	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13881	# have runtime linking enabled, and use it for executables.
13882	# For shared libraries, we enable/disable runtime linking
13883	# depending on the kind of the shared library created -
13884	# when "with_aix_soname,aix_use_runtimelinking" is:
13885	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
13886	# "aix,yes"  lib.so          shared, rtl:yes, for executables
13887	#            lib.a           static archive
13888	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
13889	#            lib.a(lib.so.V) shared, rtl:no,  for executables
13890	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13891	#            lib.a(lib.so.V) shared, rtl:no
13892	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
13893	#            lib.a           static archive
13894	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13895	  for ld_flag in $LDFLAGS; do
13896	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13897	    aix_use_runtimelinking=yes
13898	    break
13899	  fi
13900	  done
13901	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13902	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
13903	    # so we don't have lib.a shared libs to link our executables.
13904	    # We have to force runtime linking in this case.
13905	    aix_use_runtimelinking=yes
13906	    LDFLAGS="$LDFLAGS -Wl,-brtl"
13907	  fi
13908	  ;;
13909	esac
13910
13911	exp_sym_flag='-bexport'
13912	no_entry_flag='-bnoentry'
13913      fi
13914
13915      # When large executables or shared objects are built, AIX ld can
13916      # have problems creating the table of contents.  If linking a library
13917      # or program results in "error TOC overflow" add -mminimal-toc to
13918      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13919      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13920
13921      archive_cmds=''
13922      hardcode_direct=yes
13923      hardcode_direct_absolute=yes
13924      hardcode_libdir_separator=':'
13925      link_all_deplibs=yes
13926      file_list_spec='$wl-f,'
13927      case $with_aix_soname,$aix_use_runtimelinking in
13928      aix,*) ;; # traditional, no import file
13929      svr4,* | *,yes) # use import file
13930	# The Import File defines what to hardcode.
13931	hardcode_direct=no
13932	hardcode_direct_absolute=no
13933	;;
13934      esac
13935
13936      if test yes = "$GCC"; then
13937	case $host_os in aix4.[012]|aix4.[012].*)
13938	# We only want to do this on AIX 4.2 and lower, the check
13939	# below for broken collect2 doesn't work under 4.3+
13940	  collect2name=`$CC -print-prog-name=collect2`
13941	  if test -f "$collect2name" &&
13942	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13943	  then
13944	  # We have reworked collect2
13945	  :
13946	  else
13947	  # We have old collect2
13948	  hardcode_direct=unsupported
13949	  # It fails to find uninstalled libraries when the uninstalled
13950	  # path is not listed in the libpath.  Setting hardcode_minus_L
13951	  # to unsupported forces relinking
13952	  hardcode_minus_L=yes
13953	  hardcode_libdir_flag_spec='-L$libdir'
13954	  hardcode_libdir_separator=
13955	  fi
13956	  ;;
13957	esac
13958	shared_flag='-shared'
13959	if test yes = "$aix_use_runtimelinking"; then
13960	  shared_flag="$shared_flag "'$wl-G'
13961	fi
13962	# Need to ensure runtime linking is disabled for the traditional
13963	# shared library, or the linker may eventually find shared libraries
13964	# /with/ Import File - we do not want to mix them.
13965	shared_flag_aix='-shared'
13966	shared_flag_svr4='-shared $wl-G'
13967      else
13968	# not using gcc
13969	if test ia64 = "$host_cpu"; then
13970	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13971	# chokes on -Wl,-G. The following line is correct:
13972	  shared_flag='-G'
13973	else
13974	  if test yes = "$aix_use_runtimelinking"; then
13975	    shared_flag='$wl-G'
13976	  else
13977	    shared_flag='$wl-bM:SRE'
13978	  fi
13979	  shared_flag_aix='$wl-bM:SRE'
13980	  shared_flag_svr4='$wl-G'
13981	fi
13982      fi
13983
13984      export_dynamic_flag_spec='$wl-bexpall'
13985      # It seems that -bexpall does not export symbols beginning with
13986      # underscore (_), so it is better to generate a list of symbols to export.
13987      always_export_symbols=yes
13988      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13989	# Warning - without using the other runtime loading flags (-brtl),
13990	# -berok will link without error, but may produce a broken library.
13991	allow_undefined_flag='-berok'
13992        # Determine the default libpath from the value encoded in an
13993        # empty executable.
13994        if test set = "${lt_cv_aix_libpath+set}"; then
13995  aix_libpath=$lt_cv_aix_libpath
13996else
13997  if test ${lt_cv_aix_libpath_+y}
13998then :
13999  printf %s "(cached) " >&6
14000else $as_nop
14001  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14002/* end confdefs.h.  */
14003
14004#ifdef FC_DUMMY_MAIN
14005#ifndef FC_DUMMY_MAIN_EQ_F77
14006#  ifdef __cplusplus
14007     extern "C"
14008#  endif
14009   int FC_DUMMY_MAIN() { return 1; }
14010#endif
14011#endif
14012int
14013main (void)
14014{
14015
14016  ;
14017  return 0;
14018}
14019_ACEOF
14020if ac_fn_c_try_link "$LINENO"
14021then :
14022
14023  lt_aix_libpath_sed='
14024      /Import File Strings/,/^$/ {
14025	  /^0/ {
14026	      s/^0  *\([^ ]*\) *$/\1/
14027	      p
14028	  }
14029      }'
14030  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14031  # Check for a 64-bit object if we didn't find anything.
14032  if test -z "$lt_cv_aix_libpath_"; then
14033    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14034  fi
14035fi
14036rm -f core conftest.err conftest.$ac_objext conftest.beam \
14037    conftest$ac_exeext conftest.$ac_ext
14038  if test -z "$lt_cv_aix_libpath_"; then
14039    lt_cv_aix_libpath_=/usr/lib:/lib
14040  fi
14041
14042fi
14043
14044  aix_libpath=$lt_cv_aix_libpath_
14045fi
14046
14047        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14048        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
14049      else
14050	if test ia64 = "$host_cpu"; then
14051	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
14052	  allow_undefined_flag="-z nodefs"
14053	  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"
14054	else
14055	 # Determine the default libpath from the value encoded in an
14056	 # empty executable.
14057	 if test set = "${lt_cv_aix_libpath+set}"; then
14058  aix_libpath=$lt_cv_aix_libpath
14059else
14060  if test ${lt_cv_aix_libpath_+y}
14061then :
14062  printf %s "(cached) " >&6
14063else $as_nop
14064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065/* end confdefs.h.  */
14066
14067#ifdef FC_DUMMY_MAIN
14068#ifndef FC_DUMMY_MAIN_EQ_F77
14069#  ifdef __cplusplus
14070     extern "C"
14071#  endif
14072   int FC_DUMMY_MAIN() { return 1; }
14073#endif
14074#endif
14075int
14076main (void)
14077{
14078
14079  ;
14080  return 0;
14081}
14082_ACEOF
14083if ac_fn_c_try_link "$LINENO"
14084then :
14085
14086  lt_aix_libpath_sed='
14087      /Import File Strings/,/^$/ {
14088	  /^0/ {
14089	      s/^0  *\([^ ]*\) *$/\1/
14090	      p
14091	  }
14092      }'
14093  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14094  # Check for a 64-bit object if we didn't find anything.
14095  if test -z "$lt_cv_aix_libpath_"; then
14096    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14097  fi
14098fi
14099rm -f core conftest.err conftest.$ac_objext conftest.beam \
14100    conftest$ac_exeext conftest.$ac_ext
14101  if test -z "$lt_cv_aix_libpath_"; then
14102    lt_cv_aix_libpath_=/usr/lib:/lib
14103  fi
14104
14105fi
14106
14107  aix_libpath=$lt_cv_aix_libpath_
14108fi
14109
14110	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
14111	  # Warning - without using the other run time loading flags,
14112	  # -berok will link without error, but may produce a broken library.
14113	  no_undefined_flag=' $wl-bernotok'
14114	  allow_undefined_flag=' $wl-berok'
14115	  if test yes = "$with_gnu_ld"; then
14116	    # We only use this code for GNU lds that support --whole-archive.
14117	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
14118	  else
14119	    # Exported symbols can be pulled into shared objects from archives
14120	    whole_archive_flag_spec='$convenience'
14121	  fi
14122	  archive_cmds_need_lc=yes
14123	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
14124	  # -brtl affects multiple linker settings, -berok does not and is overridden later
14125	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
14126	  if test svr4 != "$with_aix_soname"; then
14127	    # This is similar to how AIX traditionally builds its shared libraries.
14128	    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'
14129	  fi
14130	  if test aix != "$with_aix_soname"; then
14131	    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'
14132	  else
14133	    # used by -dlpreopen to get the symbols
14134	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
14135	  fi
14136	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
14137	fi
14138      fi
14139      ;;
14140
14141    amigaos*)
14142      case $host_cpu in
14143      powerpc)
14144            # see comment about AmigaOS4 .so support
14145            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14146            archive_expsym_cmds=''
14147        ;;
14148      m68k)
14149            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)'
14150            hardcode_libdir_flag_spec='-L$libdir'
14151            hardcode_minus_L=yes
14152        ;;
14153      esac
14154      ;;
14155
14156    bsdi[45]*)
14157      export_dynamic_flag_spec=-rdynamic
14158      ;;
14159
14160    cygwin* | mingw* | pw32* | cegcc*)
14161      # When not using gcc, we currently assume that we are using
14162      # Microsoft Visual C++.
14163      # hardcode_libdir_flag_spec is actually meaningless, as there is
14164      # no search path for DLLs.
14165      case $cc_basename in
14166      cl*)
14167	# Native MSVC
14168	hardcode_libdir_flag_spec=' '
14169	allow_undefined_flag=unsupported
14170	always_export_symbols=yes
14171	file_list_spec='@'
14172	# Tell ltmain to make .lib files, not .a files.
14173	libext=lib
14174	# Tell ltmain to make .dll files, not .so files.
14175	shrext_cmds=.dll
14176	# FIXME: Setting linknames here is a bad hack.
14177	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
14178	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
14179            cp "$export_symbols" "$output_objdir/$soname.def";
14180            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
14181          else
14182            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
14183          fi~
14184          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14185          linknames='
14186	# The linker will not automatically build a static lib if we build a DLL.
14187	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14188	enable_shared_with_static_runtimes=yes
14189	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14190	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14191	# Don't use ranlib
14192	old_postinstall_cmds='chmod 644 $oldlib'
14193	postlink_cmds='lt_outputfile="@OUTPUT@"~
14194          lt_tool_outputfile="@TOOL_OUTPUT@"~
14195          case $lt_outputfile in
14196            *.exe|*.EXE) ;;
14197            *)
14198              lt_outputfile=$lt_outputfile.exe
14199              lt_tool_outputfile=$lt_tool_outputfile.exe
14200              ;;
14201          esac~
14202          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14203            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14204            $RM "$lt_outputfile.manifest";
14205          fi'
14206	;;
14207      *)
14208	# Assume MSVC wrapper
14209	hardcode_libdir_flag_spec=' '
14210	allow_undefined_flag=unsupported
14211	# Tell ltmain to make .lib files, not .a files.
14212	libext=lib
14213	# Tell ltmain to make .dll files, not .so files.
14214	shrext_cmds=.dll
14215	# FIXME: Setting linknames here is a bad hack.
14216	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14217	# The linker will automatically build a .lib file if we build a DLL.
14218	old_archive_from_new_cmds='true'
14219	# FIXME: Should let the user specify the lib program.
14220	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14221	enable_shared_with_static_runtimes=yes
14222	;;
14223      esac
14224      ;;
14225
14226    darwin* | rhapsody*)
14227
14228
14229  archive_cmds_need_lc=no
14230  hardcode_direct=no
14231  hardcode_automatic=yes
14232  hardcode_shlibpath_var=unsupported
14233  if test yes = "$lt_cv_ld_force_load"; then
14234    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\"`'
14235
14236  else
14237    whole_archive_flag_spec=''
14238  fi
14239  link_all_deplibs=yes
14240  allow_undefined_flag=$_lt_dar_allow_undefined
14241  case $cc_basename in
14242     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14243     *) _lt_dar_can_shared=$GCC ;;
14244  esac
14245  if test yes = "$_lt_dar_can_shared"; then
14246    output_verbose_link_cmd=func_echo_all
14247    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14248    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14249    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"
14250    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"
14251
14252  else
14253  ld_shlibs=no
14254  fi
14255
14256      ;;
14257
14258    dgux*)
14259      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14260      hardcode_libdir_flag_spec='-L$libdir'
14261      hardcode_shlibpath_var=no
14262      ;;
14263
14264    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14265    # support.  Future versions do this automatically, but an explicit c++rt0.o
14266    # does not break anything, and helps significantly (at the cost of a little
14267    # extra space).
14268    freebsd2.2*)
14269      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14270      hardcode_libdir_flag_spec='-R$libdir'
14271      hardcode_direct=yes
14272      hardcode_shlibpath_var=no
14273      ;;
14274
14275    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14276    freebsd2.*)
14277      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14278      hardcode_direct=yes
14279      hardcode_minus_L=yes
14280      hardcode_shlibpath_var=no
14281      ;;
14282
14283    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14284    freebsd* | dragonfly*)
14285      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14286      hardcode_libdir_flag_spec='-R$libdir'
14287      hardcode_direct=yes
14288      hardcode_shlibpath_var=no
14289      ;;
14290
14291    hpux9*)
14292      if test yes = "$GCC"; then
14293	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'
14294      else
14295	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'
14296      fi
14297      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14298      hardcode_libdir_separator=:
14299      hardcode_direct=yes
14300
14301      # hardcode_minus_L: Not really in the search PATH,
14302      # but as the default location of the library.
14303      hardcode_minus_L=yes
14304      export_dynamic_flag_spec='$wl-E'
14305      ;;
14306
14307    hpux10*)
14308      if test yes,no = "$GCC,$with_gnu_ld"; then
14309	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14310      else
14311	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14312      fi
14313      if test no = "$with_gnu_ld"; then
14314	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14315	hardcode_libdir_separator=:
14316	hardcode_direct=yes
14317	hardcode_direct_absolute=yes
14318	export_dynamic_flag_spec='$wl-E'
14319	# hardcode_minus_L: Not really in the search PATH,
14320	# but as the default location of the library.
14321	hardcode_minus_L=yes
14322      fi
14323      ;;
14324
14325    hpux11*)
14326      if test yes,no = "$GCC,$with_gnu_ld"; then
14327	case $host_cpu in
14328	hppa*64*)
14329	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14330	  ;;
14331	ia64*)
14332	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14333	  ;;
14334	*)
14335	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14336	  ;;
14337	esac
14338      else
14339	case $host_cpu in
14340	hppa*64*)
14341	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14342	  ;;
14343	ia64*)
14344	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14345	  ;;
14346	*)
14347
14348	  # Older versions of the 11.00 compiler do not understand -b yet
14349	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14350	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14351printf %s "checking if $CC understands -b... " >&6; }
14352if test ${lt_cv_prog_compiler__b+y}
14353then :
14354  printf %s "(cached) " >&6
14355else $as_nop
14356  lt_cv_prog_compiler__b=no
14357   save_LDFLAGS=$LDFLAGS
14358   LDFLAGS="$LDFLAGS -b"
14359   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14360   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14361     # The linker can only warn and ignore the option if not recognized
14362     # So say no if there are warnings
14363     if test -s conftest.err; then
14364       # Append any errors to the config.log.
14365       cat conftest.err 1>&5
14366       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14367       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14368       if diff conftest.exp conftest.er2 >/dev/null; then
14369         lt_cv_prog_compiler__b=yes
14370       fi
14371     else
14372       lt_cv_prog_compiler__b=yes
14373     fi
14374   fi
14375   $RM -r conftest*
14376   LDFLAGS=$save_LDFLAGS
14377
14378fi
14379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14380printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14381
14382if test yes = "$lt_cv_prog_compiler__b"; then
14383    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14384else
14385    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14386fi
14387
14388	  ;;
14389	esac
14390      fi
14391      if test no = "$with_gnu_ld"; then
14392	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14393	hardcode_libdir_separator=:
14394
14395	case $host_cpu in
14396	hppa*64*|ia64*)
14397	  hardcode_direct=no
14398	  hardcode_shlibpath_var=no
14399	  ;;
14400	*)
14401	  hardcode_direct=yes
14402	  hardcode_direct_absolute=yes
14403	  export_dynamic_flag_spec='$wl-E'
14404
14405	  # hardcode_minus_L: Not really in the search PATH,
14406	  # but as the default location of the library.
14407	  hardcode_minus_L=yes
14408	  ;;
14409	esac
14410      fi
14411      ;;
14412
14413    irix5* | irix6* | nonstopux*)
14414      if test yes = "$GCC"; then
14415	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'
14416	# Try to use the -exported_symbol ld option, if it does not
14417	# work, assume that -exports_file does not work either and
14418	# implicitly export all symbols.
14419	# This should be the same for all languages, so no per-tag cache variable.
14420	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14421printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14422if test ${lt_cv_irix_exported_symbol+y}
14423then :
14424  printf %s "(cached) " >&6
14425else $as_nop
14426  save_LDFLAGS=$LDFLAGS
14427	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14428	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14429/* end confdefs.h.  */
14430int foo (void) { return 0; }
14431_ACEOF
14432if ac_fn_c_try_link "$LINENO"
14433then :
14434  lt_cv_irix_exported_symbol=yes
14435else $as_nop
14436  lt_cv_irix_exported_symbol=no
14437fi
14438rm -f core conftest.err conftest.$ac_objext conftest.beam \
14439    conftest$ac_exeext conftest.$ac_ext
14440           LDFLAGS=$save_LDFLAGS
14441fi
14442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14443printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14444	if test yes = "$lt_cv_irix_exported_symbol"; then
14445          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'
14446	fi
14447      else
14448	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'
14449	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'
14450      fi
14451      archive_cmds_need_lc='no'
14452      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14453      hardcode_libdir_separator=:
14454      inherit_rpath=yes
14455      link_all_deplibs=yes
14456      ;;
14457
14458    linux*)
14459      case $cc_basename in
14460      tcc*)
14461	# Fabrice Bellard et al's Tiny C Compiler
14462	ld_shlibs=yes
14463	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14464	;;
14465      esac
14466      ;;
14467
14468    netbsd*)
14469      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14470	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14471      else
14472	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14473      fi
14474      hardcode_libdir_flag_spec='-R$libdir'
14475      hardcode_direct=yes
14476      hardcode_shlibpath_var=no
14477      ;;
14478
14479    newsos6)
14480      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14481      hardcode_direct=yes
14482      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14483      hardcode_libdir_separator=:
14484      hardcode_shlibpath_var=no
14485      ;;
14486
14487    *nto* | *qnx*)
14488      ;;
14489
14490    openbsd* | bitrig*)
14491      if test -f /usr/libexec/ld.so; then
14492	hardcode_direct=yes
14493	hardcode_shlibpath_var=no
14494	hardcode_direct_absolute=yes
14495	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14496	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14497	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14498	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14499	  export_dynamic_flag_spec='$wl-E'
14500	else
14501	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14502	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14503	fi
14504      else
14505	ld_shlibs=no
14506      fi
14507      ;;
14508
14509    os2*)
14510      hardcode_libdir_flag_spec='-L$libdir'
14511      hardcode_minus_L=yes
14512      allow_undefined_flag=unsupported
14513      shrext_cmds=.dll
14514      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14515	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14516	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14517	$ECHO EXPORTS >> $output_objdir/$libname.def~
14518	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14519	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14520	emximp -o $lib $output_objdir/$libname.def'
14521      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14522	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14523	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14524	$ECHO EXPORTS >> $output_objdir/$libname.def~
14525	prefix_cmds="$SED"~
14526	if test EXPORTS = "`$SED 1q $export_symbols`"; then
14527	  prefix_cmds="$prefix_cmds -e 1d";
14528	fi~
14529	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14530	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14531	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14532	emximp -o $lib $output_objdir/$libname.def'
14533      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14534      enable_shared_with_static_runtimes=yes
14535      ;;
14536
14537    osf3*)
14538      if test yes = "$GCC"; then
14539	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14540	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'
14541      else
14542	allow_undefined_flag=' -expect_unresolved \*'
14543	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'
14544      fi
14545      archive_cmds_need_lc='no'
14546      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14547      hardcode_libdir_separator=:
14548      ;;
14549
14550    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14551      if test yes = "$GCC"; then
14552	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14553	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'
14554	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14555      else
14556	allow_undefined_flag=' -expect_unresolved \*'
14557	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'
14558	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~
14559          $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'
14560
14561	# Both c and cxx compiler support -rpath directly
14562	hardcode_libdir_flag_spec='-rpath $libdir'
14563      fi
14564      archive_cmds_need_lc='no'
14565      hardcode_libdir_separator=:
14566      ;;
14567
14568    solaris*)
14569      no_undefined_flag=' -z defs'
14570      if test yes = "$GCC"; then
14571	wlarc='$wl'
14572	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14573	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14574          $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'
14575      else
14576	case `$CC -V 2>&1` in
14577	*"Compilers 5.0"*)
14578	  wlarc=''
14579	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14580	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14581            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14582	  ;;
14583	*)
14584	  wlarc='$wl'
14585	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14586	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14587            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14588	  ;;
14589	esac
14590      fi
14591      hardcode_libdir_flag_spec='-R$libdir'
14592      hardcode_shlibpath_var=no
14593      case $host_os in
14594      solaris2.[0-5] | solaris2.[0-5].*) ;;
14595      *)
14596	# The compiler driver will combine and reorder linker options,
14597	# but understands '-z linker_flag'.  GCC discards it without '$wl',
14598	# but is careful enough not to reorder.
14599	# Supported since Solaris 2.6 (maybe 2.5.1?)
14600	if test yes = "$GCC"; then
14601	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14602	else
14603	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14604	fi
14605	;;
14606      esac
14607      link_all_deplibs=yes
14608      ;;
14609
14610    sunos4*)
14611      if test sequent = "$host_vendor"; then
14612	# Use $CC to link under sequent, because it throws in some extra .o
14613	# files that make .init and .fini sections work.
14614	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14615      else
14616	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14617      fi
14618      hardcode_libdir_flag_spec='-L$libdir'
14619      hardcode_direct=yes
14620      hardcode_minus_L=yes
14621      hardcode_shlibpath_var=no
14622      ;;
14623
14624    sysv4)
14625      case $host_vendor in
14626	sni)
14627	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14628	  hardcode_direct=yes # is this really true???
14629	;;
14630	siemens)
14631	  ## LD is ld it makes a PLAMLIB
14632	  ## CC just makes a GrossModule.
14633	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14634	  reload_cmds='$CC -r -o $output$reload_objs'
14635	  hardcode_direct=no
14636        ;;
14637	motorola)
14638	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14639	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14640	;;
14641      esac
14642      runpath_var='LD_RUN_PATH'
14643      hardcode_shlibpath_var=no
14644      ;;
14645
14646    sysv4.3*)
14647      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14648      hardcode_shlibpath_var=no
14649      export_dynamic_flag_spec='-Bexport'
14650      ;;
14651
14652    sysv4*MP*)
14653      if test -d /usr/nec; then
14654	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14655	hardcode_shlibpath_var=no
14656	runpath_var=LD_RUN_PATH
14657	hardcode_runpath_var=yes
14658	ld_shlibs=yes
14659      fi
14660      ;;
14661
14662    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14663      no_undefined_flag='$wl-z,text'
14664      archive_cmds_need_lc=no
14665      hardcode_shlibpath_var=no
14666      runpath_var='LD_RUN_PATH'
14667
14668      if test yes = "$GCC"; then
14669	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14670	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14671      else
14672	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14673	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14674      fi
14675      ;;
14676
14677    sysv5* | sco3.2v5* | sco5v6*)
14678      # Note: We CANNOT use -z defs as we might desire, because we do not
14679      # link with -lc, and that would cause any symbols used from libc to
14680      # always be unresolved, which means just about no library would
14681      # ever link correctly.  If we're not using GNU ld we use -z text
14682      # though, which does catch some bad symbols but isn't as heavy-handed
14683      # as -z defs.
14684      no_undefined_flag='$wl-z,text'
14685      allow_undefined_flag='$wl-z,nodefs'
14686      archive_cmds_need_lc=no
14687      hardcode_shlibpath_var=no
14688      hardcode_libdir_flag_spec='$wl-R,$libdir'
14689      hardcode_libdir_separator=':'
14690      link_all_deplibs=yes
14691      export_dynamic_flag_spec='$wl-Bexport'
14692      runpath_var='LD_RUN_PATH'
14693
14694      if test yes = "$GCC"; then
14695	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14696	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14697      else
14698	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14699	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14700      fi
14701      ;;
14702
14703    uts4*)
14704      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14705      hardcode_libdir_flag_spec='-L$libdir'
14706      hardcode_shlibpath_var=no
14707      ;;
14708
14709    *)
14710      ld_shlibs=no
14711      ;;
14712    esac
14713
14714    if test sni = "$host_vendor"; then
14715      case $host in
14716      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14717	export_dynamic_flag_spec='$wl-Blargedynsym'
14718	;;
14719      esac
14720    fi
14721  fi
14722
14723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14724printf "%s\n" "$ld_shlibs" >&6; }
14725test no = "$ld_shlibs" && can_build_shared=no
14726
14727with_gnu_ld=$with_gnu_ld
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743#
14744# Do we need to explicitly link libc?
14745#
14746case "x$archive_cmds_need_lc" in
14747x|xyes)
14748  # Assume -lc should be added
14749  archive_cmds_need_lc=yes
14750
14751  if test yes,yes = "$GCC,$enable_shared"; then
14752    case $archive_cmds in
14753    *'~'*)
14754      # FIXME: we may have to deal with multi-command sequences.
14755      ;;
14756    '$CC '*)
14757      # Test whether the compiler implicitly links with -lc since on some
14758      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14759      # to ld, don't add -lc before -lgcc.
14760      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14761printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14762if test ${lt_cv_archive_cmds_need_lc+y}
14763then :
14764  printf %s "(cached) " >&6
14765else $as_nop
14766  $RM conftest*
14767	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14768
14769	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14770  (eval $ac_compile) 2>&5
14771  ac_status=$?
14772  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14773  test $ac_status = 0; } 2>conftest.err; then
14774	  soname=conftest
14775	  lib=conftest
14776	  libobjs=conftest.$ac_objext
14777	  deplibs=
14778	  wl=$lt_prog_compiler_wl
14779	  pic_flag=$lt_prog_compiler_pic
14780	  compiler_flags=-v
14781	  linker_flags=-v
14782	  verstring=
14783	  output_objdir=.
14784	  libname=conftest
14785	  lt_save_allow_undefined_flag=$allow_undefined_flag
14786	  allow_undefined_flag=
14787	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14788  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14789  ac_status=$?
14790  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14791  test $ac_status = 0; }
14792	  then
14793	    lt_cv_archive_cmds_need_lc=no
14794	  else
14795	    lt_cv_archive_cmds_need_lc=yes
14796	  fi
14797	  allow_undefined_flag=$lt_save_allow_undefined_flag
14798	else
14799	  cat conftest.err 1>&5
14800	fi
14801	$RM conftest*
14802
14803fi
14804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14805printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14806      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14807      ;;
14808    esac
14809  fi
14810  ;;
14811esac
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962
14963
14964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14965printf %s "checking dynamic linker characteristics... " >&6; }
14966
14967if test yes = "$GCC"; then
14968  case $host_os in
14969    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14970    *) lt_awk_arg='/^libraries:/' ;;
14971  esac
14972  case $host_os in
14973    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14974    *) lt_sed_strip_eq='s|=/|/|g' ;;
14975  esac
14976  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14977  case $lt_search_path_spec in
14978  *\;*)
14979    # if the path contains ";" then we assume it to be the separator
14980    # otherwise default to the standard path separator (i.e. ":") - it is
14981    # assumed that no part of a normal pathname contains ";" but that should
14982    # okay in the real world where ";" in dirpaths is itself problematic.
14983    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14984    ;;
14985  *)
14986    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14987    ;;
14988  esac
14989  # Ok, now we have the path, separated by spaces, we can step through it
14990  # and add multilib dir if necessary...
14991  lt_tmp_lt_search_path_spec=
14992  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14993  # ...but if some path component already ends with the multilib dir we assume
14994  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14995  case "$lt_multi_os_dir; $lt_search_path_spec " in
14996  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14997    lt_multi_os_dir=
14998    ;;
14999  esac
15000  for lt_sys_path in $lt_search_path_spec; do
15001    if test -d "$lt_sys_path$lt_multi_os_dir"; then
15002      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
15003    elif test -n "$lt_multi_os_dir"; then
15004      test -d "$lt_sys_path" && \
15005	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15006    fi
15007  done
15008  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15009BEGIN {RS = " "; FS = "/|\n";} {
15010  lt_foo = "";
15011  lt_count = 0;
15012  for (lt_i = NF; lt_i > 0; lt_i--) {
15013    if ($lt_i != "" && $lt_i != ".") {
15014      if ($lt_i == "..") {
15015        lt_count++;
15016      } else {
15017        if (lt_count == 0) {
15018          lt_foo = "/" $lt_i lt_foo;
15019        } else {
15020          lt_count--;
15021        }
15022      }
15023    }
15024  }
15025  if (lt_foo != "") { lt_freq[lt_foo]++; }
15026  if (lt_freq[lt_foo] == 1) { print lt_foo; }
15027}'`
15028  # AWK program above erroneously prepends '/' to C:/dos/paths
15029  # for these hosts.
15030  case $host_os in
15031    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15032      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
15033  esac
15034  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15035else
15036  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15037fi
15038library_names_spec=
15039libname_spec='lib$name'
15040soname_spec=
15041shrext_cmds=.so
15042postinstall_cmds=
15043postuninstall_cmds=
15044finish_cmds=
15045finish_eval=
15046shlibpath_var=
15047shlibpath_overrides_runpath=unknown
15048version_type=none
15049dynamic_linker="$host_os ld.so"
15050sys_lib_dlsearch_path_spec="/lib /usr/lib"
15051need_lib_prefix=unknown
15052hardcode_into_libs=no
15053
15054# when you set need_version to no, make sure it does not cause -set_version
15055# flags to be left without arguments
15056need_version=unknown
15057
15058
15059
15060case $host_os in
15061aix3*)
15062  version_type=linux # correct to gnu/linux during the next big refactor
15063  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15064  shlibpath_var=LIBPATH
15065
15066  # AIX 3 has no versioning support, so we append a major version to the name.
15067  soname_spec='$libname$release$shared_ext$major'
15068  ;;
15069
15070aix[4-9]*)
15071  version_type=linux # correct to gnu/linux during the next big refactor
15072  need_lib_prefix=no
15073  need_version=no
15074  hardcode_into_libs=yes
15075  if test ia64 = "$host_cpu"; then
15076    # AIX 5 supports IA64
15077    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15078    shlibpath_var=LD_LIBRARY_PATH
15079  else
15080    # With GCC up to 2.95.x, collect2 would create an import file
15081    # for dependence libraries.  The import file would start with
15082    # the line '#! .'.  This would cause the generated library to
15083    # depend on '.', always an invalid library.  This was fixed in
15084    # development snapshots of GCC prior to 3.0.
15085    case $host_os in
15086      aix4 | aix4.[01] | aix4.[01].*)
15087      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15088	   echo ' yes '
15089	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15090	:
15091      else
15092	can_build_shared=no
15093      fi
15094      ;;
15095    esac
15096    # Using Import Files as archive members, it is possible to support
15097    # filename-based versioning of shared library archives on AIX. While
15098    # this would work for both with and without runtime linking, it will
15099    # prevent static linking of such archives. So we do filename-based
15100    # shared library versioning with .so extension only, which is used
15101    # when both runtime linking and shared linking is enabled.
15102    # Unfortunately, runtime linking may impact performance, so we do
15103    # not want this to be the default eventually. Also, we use the
15104    # versioned .so libs for executables only if there is the -brtl
15105    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15106    # To allow for filename-based versioning support, we need to create
15107    # libNAME.so.V as an archive file, containing:
15108    # *) an Import File, referring to the versioned filename of the
15109    #    archive as well as the shared archive member, telling the
15110    #    bitwidth (32 or 64) of that shared object, and providing the
15111    #    list of exported symbols of that shared object, eventually
15112    #    decorated with the 'weak' keyword
15113    # *) the shared object with the F_LOADONLY flag set, to really avoid
15114    #    it being seen by the linker.
15115    # At run time we better use the real file rather than another symlink,
15116    # but for link time we create the symlink libNAME.so -> libNAME.so.V
15117
15118    case $with_aix_soname,$aix_use_runtimelinking in
15119    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15120    # soname into executable. Probably we can add versioning support to
15121    # collect2, so additional links can be useful in future.
15122    aix,yes) # traditional libtool
15123      dynamic_linker='AIX unversionable lib.so'
15124      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15125      # instead of lib<name>.a to let people know that these are not
15126      # typical AIX shared libraries.
15127      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15128      ;;
15129    aix,no) # traditional AIX only
15130      dynamic_linker='AIX lib.a(lib.so.V)'
15131      # We preserve .a as extension for shared libraries through AIX4.2
15132      # and later when we are not doing run time linking.
15133      library_names_spec='$libname$release.a $libname.a'
15134      soname_spec='$libname$release$shared_ext$major'
15135      ;;
15136    svr4,*) # full svr4 only
15137      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15138      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15139      # We do not specify a path in Import Files, so LIBPATH fires.
15140      shlibpath_overrides_runpath=yes
15141      ;;
15142    *,yes) # both, prefer svr4
15143      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15144      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15145      # unpreferred sharedlib libNAME.a needs extra handling
15146      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"'
15147      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"'
15148      # We do not specify a path in Import Files, so LIBPATH fires.
15149      shlibpath_overrides_runpath=yes
15150      ;;
15151    *,no) # both, prefer aix
15152      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15153      library_names_spec='$libname$release.a $libname.a'
15154      soname_spec='$libname$release$shared_ext$major'
15155      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15156      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)'
15157      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"'
15158      ;;
15159    esac
15160    shlibpath_var=LIBPATH
15161  fi
15162  ;;
15163
15164amigaos*)
15165  case $host_cpu in
15166  powerpc)
15167    # Since July 2007 AmigaOS4 officially supports .so libraries.
15168    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15169    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15170    ;;
15171  m68k)
15172    library_names_spec='$libname.ixlibrary $libname.a'
15173    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15174    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'
15175    ;;
15176  esac
15177  ;;
15178
15179beos*)
15180  library_names_spec='$libname$shared_ext'
15181  dynamic_linker="$host_os ld.so"
15182  shlibpath_var=LIBRARY_PATH
15183  ;;
15184
15185bsdi[45]*)
15186  version_type=linux # correct to gnu/linux during the next big refactor
15187  need_version=no
15188  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15189  soname_spec='$libname$release$shared_ext$major'
15190  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15191  shlibpath_var=LD_LIBRARY_PATH
15192  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15193  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15194  # the default ld.so.conf also contains /usr/contrib/lib and
15195  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15196  # libtool to hard-code these into programs
15197  ;;
15198
15199cygwin* | mingw* | pw32* | cegcc*)
15200  version_type=windows
15201  shrext_cmds=.dll
15202  need_version=no
15203  need_lib_prefix=no
15204
15205  case $GCC,$cc_basename in
15206  yes,*)
15207    # gcc
15208    library_names_spec='$libname.dll.a'
15209    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15210    postinstall_cmds='base_file=`basename \$file`~
15211      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15212      dldir=$destdir/`dirname \$dlpath`~
15213      test -d \$dldir || mkdir -p \$dldir~
15214      $install_prog $dir/$dlname \$dldir/$dlname~
15215      chmod a+x \$dldir/$dlname~
15216      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15217        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15218      fi'
15219    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15220      dlpath=$dir/\$dldll~
15221       $RM \$dlpath'
15222    shlibpath_overrides_runpath=yes
15223
15224    case $host_os in
15225    cygwin*)
15226      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15227      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15228
15229      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15230      ;;
15231    mingw* | cegcc*)
15232      # MinGW DLLs use traditional 'lib' prefix
15233      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15234      ;;
15235    pw32*)
15236      # pw32 DLLs use 'pw' prefix rather than 'lib'
15237      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15238      ;;
15239    esac
15240    dynamic_linker='Win32 ld.exe'
15241    ;;
15242
15243  *,cl*)
15244    # Native MSVC
15245    libname_spec='$name'
15246    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15247    library_names_spec='$libname.dll.lib'
15248
15249    case $build_os in
15250    mingw*)
15251      sys_lib_search_path_spec=
15252      lt_save_ifs=$IFS
15253      IFS=';'
15254      for lt_path in $LIB
15255      do
15256        IFS=$lt_save_ifs
15257        # Let DOS variable expansion print the short 8.3 style file name.
15258        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15259        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15260      done
15261      IFS=$lt_save_ifs
15262      # Convert to MSYS style.
15263      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15264      ;;
15265    cygwin*)
15266      # Convert to unix form, then to dos form, then back to unix form
15267      # but this time dos style (no spaces!) so that the unix form looks
15268      # like /cygdrive/c/PROGRA~1:/cygdr...
15269      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15270      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15271      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15272      ;;
15273    *)
15274      sys_lib_search_path_spec=$LIB
15275      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15276        # It is most probably a Windows format PATH.
15277        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15278      else
15279        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15280      fi
15281      # FIXME: find the short name or the path components, as spaces are
15282      # common. (e.g. "Program Files" -> "PROGRA~1")
15283      ;;
15284    esac
15285
15286    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15287    postinstall_cmds='base_file=`basename \$file`~
15288      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15289      dldir=$destdir/`dirname \$dlpath`~
15290      test -d \$dldir || mkdir -p \$dldir~
15291      $install_prog $dir/$dlname \$dldir/$dlname'
15292    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15293      dlpath=$dir/\$dldll~
15294       $RM \$dlpath'
15295    shlibpath_overrides_runpath=yes
15296    dynamic_linker='Win32 link.exe'
15297    ;;
15298
15299  *)
15300    # Assume MSVC wrapper
15301    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15302    dynamic_linker='Win32 ld.exe'
15303    ;;
15304  esac
15305  # FIXME: first we should search . and the directory the executable is in
15306  shlibpath_var=PATH
15307  ;;
15308
15309darwin* | rhapsody*)
15310  dynamic_linker="$host_os dyld"
15311  version_type=darwin
15312  need_lib_prefix=no
15313  need_version=no
15314  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
15315  soname_spec='$libname$release$major$shared_ext'
15316  shlibpath_overrides_runpath=yes
15317  shlibpath_var=DYLD_LIBRARY_PATH
15318  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
15319
15320  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15321  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15322  ;;
15323
15324dgux*)
15325  version_type=linux # correct to gnu/linux during the next big refactor
15326  need_lib_prefix=no
15327  need_version=no
15328  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15329  soname_spec='$libname$release$shared_ext$major'
15330  shlibpath_var=LD_LIBRARY_PATH
15331  ;;
15332
15333freebsd* | dragonfly*)
15334  # DragonFly does not have aout.  When/if they implement a new
15335  # versioning mechanism, adjust this.
15336  if test -x /usr/bin/objformat; then
15337    objformat=`/usr/bin/objformat`
15338  else
15339    case $host_os in
15340    freebsd[23].*) objformat=aout ;;
15341    *) objformat=elf ;;
15342    esac
15343  fi
15344  # Handle Gentoo/FreeBSD as it was Linux
15345  case $host_vendor in
15346    gentoo)
15347      version_type=linux ;;
15348    *)
15349      version_type=freebsd-$objformat ;;
15350  esac
15351
15352  case $version_type in
15353    freebsd-elf*)
15354      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15355      soname_spec='$libname$release$shared_ext$major'
15356      need_version=no
15357      need_lib_prefix=no
15358      ;;
15359    freebsd-*)
15360      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15361      need_version=yes
15362      ;;
15363    linux)
15364      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15365      soname_spec='${libname}${release}${shared_ext}$major'
15366      need_lib_prefix=no
15367      need_version=no
15368      ;;
15369  esac
15370  shlibpath_var=LD_LIBRARY_PATH
15371  case $host_os in
15372  freebsd2.*)
15373    shlibpath_overrides_runpath=yes
15374    ;;
15375  freebsd3.[01]* | freebsdelf3.[01]*)
15376    shlibpath_overrides_runpath=yes
15377    hardcode_into_libs=yes
15378    ;;
15379  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15380  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15381    shlibpath_overrides_runpath=no
15382    hardcode_into_libs=yes
15383    ;;
15384  *) # from 4.6 on, and DragonFly
15385    shlibpath_overrides_runpath=yes
15386    hardcode_into_libs=yes
15387    ;;
15388  esac
15389  ;;
15390
15391haiku*)
15392  version_type=linux # correct to gnu/linux during the next big refactor
15393  need_lib_prefix=no
15394  need_version=no
15395  dynamic_linker="$host_os runtime_loader"
15396  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15397  soname_spec='$libname$release$shared_ext$major'
15398  shlibpath_var=LIBRARY_PATH
15399  shlibpath_overrides_runpath=no
15400  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15401  hardcode_into_libs=yes
15402  ;;
15403
15404hpux9* | hpux10* | hpux11*)
15405  # Give a soname corresponding to the major version so that dld.sl refuses to
15406  # link against other versions.
15407  version_type=sunos
15408  need_lib_prefix=no
15409  need_version=no
15410  case $host_cpu in
15411  ia64*)
15412    shrext_cmds='.so'
15413    hardcode_into_libs=yes
15414    dynamic_linker="$host_os dld.so"
15415    shlibpath_var=LD_LIBRARY_PATH
15416    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15417    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15418    soname_spec='$libname$release$shared_ext$major'
15419    if test 32 = "$HPUX_IA64_MODE"; then
15420      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15421      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15422    else
15423      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15424      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15425    fi
15426    ;;
15427  hppa*64*)
15428    shrext_cmds='.sl'
15429    hardcode_into_libs=yes
15430    dynamic_linker="$host_os dld.sl"
15431    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15432    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15433    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15434    soname_spec='$libname$release$shared_ext$major'
15435    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15436    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15437    ;;
15438  *)
15439    shrext_cmds='.sl'
15440    dynamic_linker="$host_os dld.sl"
15441    shlibpath_var=SHLIB_PATH
15442    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15443    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15444    soname_spec='$libname$release$shared_ext$major'
15445    ;;
15446  esac
15447  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15448  postinstall_cmds='chmod 555 $lib'
15449  # or fails outright, so override atomically:
15450  install_override_mode=555
15451  ;;
15452
15453interix[3-9]*)
15454  version_type=linux # correct to gnu/linux during the next big refactor
15455  need_lib_prefix=no
15456  need_version=no
15457  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15458  soname_spec='$libname$release$shared_ext$major'
15459  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15460  shlibpath_var=LD_LIBRARY_PATH
15461  shlibpath_overrides_runpath=no
15462  hardcode_into_libs=yes
15463  ;;
15464
15465irix5* | irix6* | nonstopux*)
15466  case $host_os in
15467    nonstopux*) version_type=nonstopux ;;
15468    *)
15469	if test yes = "$lt_cv_prog_gnu_ld"; then
15470		version_type=linux # correct to gnu/linux during the next big refactor
15471	else
15472		version_type=irix
15473	fi ;;
15474  esac
15475  need_lib_prefix=no
15476  need_version=no
15477  soname_spec='$libname$release$shared_ext$major'
15478  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15479  case $host_os in
15480  irix5* | nonstopux*)
15481    libsuff= shlibsuff=
15482    ;;
15483  *)
15484    case $LD in # libtool.m4 will add one of these switches to LD
15485    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15486      libsuff= shlibsuff= libmagic=32-bit;;
15487    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15488      libsuff=32 shlibsuff=N32 libmagic=N32;;
15489    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15490      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15491    *) libsuff= shlibsuff= libmagic=never-match;;
15492    esac
15493    ;;
15494  esac
15495  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15496  shlibpath_overrides_runpath=no
15497  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15498  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15499  hardcode_into_libs=yes
15500  ;;
15501
15502# No shared lib support for Linux oldld, aout, or coff.
15503linux*oldld* | linux*aout* | linux*coff*)
15504  dynamic_linker=no
15505  ;;
15506
15507linux*android*)
15508  version_type=none # Android doesn't support versioned libraries.
15509  need_lib_prefix=no
15510  need_version=no
15511  library_names_spec='$libname$release$shared_ext'
15512  soname_spec='$libname$release$shared_ext'
15513  finish_cmds=
15514  shlibpath_var=LD_LIBRARY_PATH
15515  shlibpath_overrides_runpath=yes
15516
15517  # This implies no fast_install, which is unacceptable.
15518  # Some rework will be needed to allow for fast_install
15519  # before this can be enabled.
15520  hardcode_into_libs=yes
15521
15522  dynamic_linker='Android linker'
15523  # Don't embed -rpath directories since the linker doesn't support them.
15524  hardcode_libdir_flag_spec='-L$libdir'
15525  ;;
15526
15527# This must be glibc/ELF.
15528linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15529  version_type=linux # correct to gnu/linux during the next big refactor
15530  need_lib_prefix=no
15531  need_version=no
15532  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15533  soname_spec='$libname$release$shared_ext$major'
15534  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15535  shlibpath_var=LD_LIBRARY_PATH
15536  shlibpath_overrides_runpath=no
15537
15538  # Some binutils ld are patched to set DT_RUNPATH
15539  if test ${lt_cv_shlibpath_overrides_runpath+y}
15540then :
15541  printf %s "(cached) " >&6
15542else $as_nop
15543  lt_cv_shlibpath_overrides_runpath=no
15544    save_LDFLAGS=$LDFLAGS
15545    save_libdir=$libdir
15546    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15547	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15548    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549/* end confdefs.h.  */
15550
15551#ifdef FC_DUMMY_MAIN
15552#ifndef FC_DUMMY_MAIN_EQ_F77
15553#  ifdef __cplusplus
15554     extern "C"
15555#  endif
15556   int FC_DUMMY_MAIN() { return 1; }
15557#endif
15558#endif
15559int
15560main (void)
15561{
15562
15563  ;
15564  return 0;
15565}
15566_ACEOF
15567if ac_fn_c_try_link "$LINENO"
15568then :
15569  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15570then :
15571  lt_cv_shlibpath_overrides_runpath=yes
15572fi
15573fi
15574rm -f core conftest.err conftest.$ac_objext conftest.beam \
15575    conftest$ac_exeext conftest.$ac_ext
15576    LDFLAGS=$save_LDFLAGS
15577    libdir=$save_libdir
15578
15579fi
15580
15581  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15582
15583  # This implies no fast_install, which is unacceptable.
15584  # Some rework will be needed to allow for fast_install
15585  # before this can be enabled.
15586  hardcode_into_libs=yes
15587
15588  # Ideally, we could use ldconfig to report *all* directores which are
15589  # searched for libraries, however this is still not possible.  Aside from not
15590  # being certain /sbin/ldconfig is available, command
15591  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15592  # even though it is searched at run-time.  Try to do the best guess by
15593  # appending ld.so.conf contents (and includes) to the search path.
15594  if test -f /etc/ld.so.conf; then
15595    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' ' '`
15596    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15597  fi
15598
15599  # We used to test for /lib/ld.so.1 and disable shared libraries on
15600  # powerpc, because MkLinux only supported shared libraries with the
15601  # GNU dynamic linker.  Since this was broken with cross compilers,
15602  # most powerpc-linux boxes support dynamic linking these days and
15603  # people can always --disable-shared, the test was removed, and we
15604  # assume the GNU/Linux dynamic linker is in use.
15605  dynamic_linker='GNU/Linux ld.so'
15606  ;;
15607
15608netbsd*)
15609  version_type=sunos
15610  need_lib_prefix=no
15611  need_version=no
15612  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15613    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15614    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15615    dynamic_linker='NetBSD (a.out) ld.so'
15616  else
15617    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15618    soname_spec='$libname$release$shared_ext$major'
15619    dynamic_linker='NetBSD ld.elf_so'
15620  fi
15621  shlibpath_var=LD_LIBRARY_PATH
15622  shlibpath_overrides_runpath=yes
15623  hardcode_into_libs=yes
15624  ;;
15625
15626newsos6)
15627  version_type=linux # correct to gnu/linux during the next big refactor
15628  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15629  shlibpath_var=LD_LIBRARY_PATH
15630  shlibpath_overrides_runpath=yes
15631  ;;
15632
15633*nto* | *qnx*)
15634  version_type=qnx
15635  need_lib_prefix=no
15636  need_version=no
15637  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15638  soname_spec='$libname$release$shared_ext$major'
15639  shlibpath_var=LD_LIBRARY_PATH
15640  shlibpath_overrides_runpath=no
15641  hardcode_into_libs=yes
15642  dynamic_linker='ldqnx.so'
15643  ;;
15644
15645openbsd* | bitrig*)
15646  version_type=sunos
15647  sys_lib_dlsearch_path_spec=/usr/lib
15648  need_lib_prefix=no
15649  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15650    need_version=no
15651  else
15652    need_version=yes
15653  fi
15654  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15655  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15656  shlibpath_var=LD_LIBRARY_PATH
15657  shlibpath_overrides_runpath=yes
15658  ;;
15659
15660os2*)
15661  libname_spec='$name'
15662  version_type=windows
15663  shrext_cmds=.dll
15664  need_version=no
15665  need_lib_prefix=no
15666  # OS/2 can only load a DLL with a base name of 8 characters or less.
15667  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15668    v=$($ECHO $release$versuffix | tr -d .-);
15669    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15670    $ECHO $n$v`$shared_ext'
15671  library_names_spec='${libname}_dll.$libext'
15672  dynamic_linker='OS/2 ld.exe'
15673  shlibpath_var=BEGINLIBPATH
15674  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15675  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15676  postinstall_cmds='base_file=`basename \$file`~
15677    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15678    dldir=$destdir/`dirname \$dlpath`~
15679    test -d \$dldir || mkdir -p \$dldir~
15680    $install_prog $dir/$dlname \$dldir/$dlname~
15681    chmod a+x \$dldir/$dlname~
15682    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15683      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15684    fi'
15685  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15686    dlpath=$dir/\$dldll~
15687    $RM \$dlpath'
15688  ;;
15689
15690osf3* | osf4* | osf5*)
15691  version_type=osf
15692  need_lib_prefix=no
15693  need_version=no
15694  soname_spec='$libname$release$shared_ext$major'
15695  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15696  shlibpath_var=LD_LIBRARY_PATH
15697  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15698  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15699  ;;
15700
15701rdos*)
15702  dynamic_linker=no
15703  ;;
15704
15705solaris*)
15706  version_type=linux # correct to gnu/linux during the next big refactor
15707  need_lib_prefix=no
15708  need_version=no
15709  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15710  soname_spec='$libname$release$shared_ext$major'
15711  shlibpath_var=LD_LIBRARY_PATH
15712  shlibpath_overrides_runpath=yes
15713  hardcode_into_libs=yes
15714  # ldd complains unless libraries are executable
15715  postinstall_cmds='chmod +x $lib'
15716  ;;
15717
15718sunos4*)
15719  version_type=sunos
15720  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15721  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15722  shlibpath_var=LD_LIBRARY_PATH
15723  shlibpath_overrides_runpath=yes
15724  if test yes = "$with_gnu_ld"; then
15725    need_lib_prefix=no
15726  fi
15727  need_version=yes
15728  ;;
15729
15730sysv4 | sysv4.3*)
15731  version_type=linux # correct to gnu/linux during the next big refactor
15732  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15733  soname_spec='$libname$release$shared_ext$major'
15734  shlibpath_var=LD_LIBRARY_PATH
15735  case $host_vendor in
15736    sni)
15737      shlibpath_overrides_runpath=no
15738      need_lib_prefix=no
15739      runpath_var=LD_RUN_PATH
15740      ;;
15741    siemens)
15742      need_lib_prefix=no
15743      ;;
15744    motorola)
15745      need_lib_prefix=no
15746      need_version=no
15747      shlibpath_overrides_runpath=no
15748      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15749      ;;
15750  esac
15751  ;;
15752
15753sysv4*MP*)
15754  if test -d /usr/nec; then
15755    version_type=linux # correct to gnu/linux during the next big refactor
15756    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15757    soname_spec='$libname$shared_ext.$major'
15758    shlibpath_var=LD_LIBRARY_PATH
15759  fi
15760  ;;
15761
15762sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15763  version_type=sco
15764  need_lib_prefix=no
15765  need_version=no
15766  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15767  soname_spec='$libname$release$shared_ext$major'
15768  shlibpath_var=LD_LIBRARY_PATH
15769  shlibpath_overrides_runpath=yes
15770  hardcode_into_libs=yes
15771  if test yes = "$with_gnu_ld"; then
15772    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15773  else
15774    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15775    case $host_os in
15776      sco3.2v5*)
15777        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15778	;;
15779    esac
15780  fi
15781  sys_lib_dlsearch_path_spec='/usr/lib'
15782  ;;
15783
15784tpf*)
15785  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15786  version_type=linux # correct to gnu/linux during the next big refactor
15787  need_lib_prefix=no
15788  need_version=no
15789  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15790  shlibpath_var=LD_LIBRARY_PATH
15791  shlibpath_overrides_runpath=no
15792  hardcode_into_libs=yes
15793  ;;
15794
15795uts4*)
15796  version_type=linux # correct to gnu/linux during the next big refactor
15797  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15798  soname_spec='$libname$release$shared_ext$major'
15799  shlibpath_var=LD_LIBRARY_PATH
15800  ;;
15801
15802*)
15803  dynamic_linker=no
15804  ;;
15805esac
15806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15807printf "%s\n" "$dynamic_linker" >&6; }
15808test no = "$dynamic_linker" && can_build_shared=no
15809
15810variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15811if test yes = "$GCC"; then
15812  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15813fi
15814
15815if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15816  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15817fi
15818
15819if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15820  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15821fi
15822
15823# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15824configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15825
15826# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15827func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15828
15829# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15830configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15929printf %s "checking how to hardcode library paths into programs... " >&6; }
15930hardcode_action=
15931if test -n "$hardcode_libdir_flag_spec" ||
15932   test -n "$runpath_var" ||
15933   test yes = "$hardcode_automatic"; then
15934
15935  # We can hardcode non-existent directories.
15936  if test no != "$hardcode_direct" &&
15937     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15938     # have to relink, otherwise we might link with an installed library
15939     # when we should be linking with a yet-to-be-installed one
15940     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15941     test no != "$hardcode_minus_L"; then
15942    # Linking always hardcodes the temporary library directory.
15943    hardcode_action=relink
15944  else
15945    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15946    hardcode_action=immediate
15947  fi
15948else
15949  # We cannot hardcode anything, or else we can only hardcode existing
15950  # directories.
15951  hardcode_action=unsupported
15952fi
15953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15954printf "%s\n" "$hardcode_action" >&6; }
15955
15956if test relink = "$hardcode_action" ||
15957   test yes = "$inherit_rpath"; then
15958  # Fast installation is not supported
15959  enable_fast_install=no
15960elif test yes = "$shlibpath_overrides_runpath" ||
15961     test no = "$enable_shared"; then
15962  # Fast installation is not necessary
15963  enable_fast_install=needless
15964fi
15965
15966
15967
15968
15969
15970
15971  if test yes != "$enable_dlopen"; then
15972  enable_dlopen=unknown
15973  enable_dlopen_self=unknown
15974  enable_dlopen_self_static=unknown
15975else
15976  lt_cv_dlopen=no
15977  lt_cv_dlopen_libs=
15978
15979  case $host_os in
15980  beos*)
15981    lt_cv_dlopen=load_add_on
15982    lt_cv_dlopen_libs=
15983    lt_cv_dlopen_self=yes
15984    ;;
15985
15986  mingw* | pw32* | cegcc*)
15987    lt_cv_dlopen=LoadLibrary
15988    lt_cv_dlopen_libs=
15989    ;;
15990
15991  cygwin*)
15992    lt_cv_dlopen=dlopen
15993    lt_cv_dlopen_libs=
15994    ;;
15995
15996  darwin*)
15997    # if libdl is installed we need to link against it
15998    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15999printf %s "checking for dlopen in -ldl... " >&6; }
16000if test ${ac_cv_lib_dl_dlopen+y}
16001then :
16002  printf %s "(cached) " >&6
16003else $as_nop
16004  ac_check_lib_save_LIBS=$LIBS
16005LIBS="-ldl  $LIBS"
16006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007/* end confdefs.h.  */
16008
16009/* Override any GCC internal prototype to avoid an error.
16010   Use char because int might match the return type of a GCC
16011   builtin and then its argument prototype would still apply.  */
16012char dlopen ();
16013#ifdef FC_DUMMY_MAIN
16014#ifndef FC_DUMMY_MAIN_EQ_F77
16015#  ifdef __cplusplus
16016     extern "C"
16017#  endif
16018   int FC_DUMMY_MAIN() { return 1; }
16019#endif
16020#endif
16021int
16022main (void)
16023{
16024return dlopen ();
16025  ;
16026  return 0;
16027}
16028_ACEOF
16029if ac_fn_c_try_link "$LINENO"
16030then :
16031  ac_cv_lib_dl_dlopen=yes
16032else $as_nop
16033  ac_cv_lib_dl_dlopen=no
16034fi
16035rm -f core conftest.err conftest.$ac_objext conftest.beam \
16036    conftest$ac_exeext conftest.$ac_ext
16037LIBS=$ac_check_lib_save_LIBS
16038fi
16039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16040printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16041if test "x$ac_cv_lib_dl_dlopen" = xyes
16042then :
16043  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16044else $as_nop
16045
16046    lt_cv_dlopen=dyld
16047    lt_cv_dlopen_libs=
16048    lt_cv_dlopen_self=yes
16049
16050fi
16051
16052    ;;
16053
16054  tpf*)
16055    # Don't try to run any link tests for TPF.  We know it's impossible
16056    # because TPF is a cross-compiler, and we know how we open DSOs.
16057    lt_cv_dlopen=dlopen
16058    lt_cv_dlopen_libs=
16059    lt_cv_dlopen_self=no
16060    ;;
16061
16062  *)
16063    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16064if test "x$ac_cv_func_shl_load" = xyes
16065then :
16066  lt_cv_dlopen=shl_load
16067else $as_nop
16068  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16069printf %s "checking for shl_load in -ldld... " >&6; }
16070if test ${ac_cv_lib_dld_shl_load+y}
16071then :
16072  printf %s "(cached) " >&6
16073else $as_nop
16074  ac_check_lib_save_LIBS=$LIBS
16075LIBS="-ldld  $LIBS"
16076cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16077/* end confdefs.h.  */
16078
16079/* Override any GCC internal prototype to avoid an error.
16080   Use char because int might match the return type of a GCC
16081   builtin and then its argument prototype would still apply.  */
16082char shl_load ();
16083#ifdef FC_DUMMY_MAIN
16084#ifndef FC_DUMMY_MAIN_EQ_F77
16085#  ifdef __cplusplus
16086     extern "C"
16087#  endif
16088   int FC_DUMMY_MAIN() { return 1; }
16089#endif
16090#endif
16091int
16092main (void)
16093{
16094return shl_load ();
16095  ;
16096  return 0;
16097}
16098_ACEOF
16099if ac_fn_c_try_link "$LINENO"
16100then :
16101  ac_cv_lib_dld_shl_load=yes
16102else $as_nop
16103  ac_cv_lib_dld_shl_load=no
16104fi
16105rm -f core conftest.err conftest.$ac_objext conftest.beam \
16106    conftest$ac_exeext conftest.$ac_ext
16107LIBS=$ac_check_lib_save_LIBS
16108fi
16109{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16110printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
16111if test "x$ac_cv_lib_dld_shl_load" = xyes
16112then :
16113  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
16114else $as_nop
16115  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16116if test "x$ac_cv_func_dlopen" = xyes
16117then :
16118  lt_cv_dlopen=dlopen
16119else $as_nop
16120  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16121printf %s "checking for dlopen in -ldl... " >&6; }
16122if test ${ac_cv_lib_dl_dlopen+y}
16123then :
16124  printf %s "(cached) " >&6
16125else $as_nop
16126  ac_check_lib_save_LIBS=$LIBS
16127LIBS="-ldl  $LIBS"
16128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16129/* end confdefs.h.  */
16130
16131/* Override any GCC internal prototype to avoid an error.
16132   Use char because int might match the return type of a GCC
16133   builtin and then its argument prototype would still apply.  */
16134char dlopen ();
16135#ifdef FC_DUMMY_MAIN
16136#ifndef FC_DUMMY_MAIN_EQ_F77
16137#  ifdef __cplusplus
16138     extern "C"
16139#  endif
16140   int FC_DUMMY_MAIN() { return 1; }
16141#endif
16142#endif
16143int
16144main (void)
16145{
16146return dlopen ();
16147  ;
16148  return 0;
16149}
16150_ACEOF
16151if ac_fn_c_try_link "$LINENO"
16152then :
16153  ac_cv_lib_dl_dlopen=yes
16154else $as_nop
16155  ac_cv_lib_dl_dlopen=no
16156fi
16157rm -f core conftest.err conftest.$ac_objext conftest.beam \
16158    conftest$ac_exeext conftest.$ac_ext
16159LIBS=$ac_check_lib_save_LIBS
16160fi
16161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16162printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
16163if test "x$ac_cv_lib_dl_dlopen" = xyes
16164then :
16165  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
16166else $as_nop
16167  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16168printf %s "checking for dlopen in -lsvld... " >&6; }
16169if test ${ac_cv_lib_svld_dlopen+y}
16170then :
16171  printf %s "(cached) " >&6
16172else $as_nop
16173  ac_check_lib_save_LIBS=$LIBS
16174LIBS="-lsvld  $LIBS"
16175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176/* end confdefs.h.  */
16177
16178/* Override any GCC internal prototype to avoid an error.
16179   Use char because int might match the return type of a GCC
16180   builtin and then its argument prototype would still apply.  */
16181char dlopen ();
16182#ifdef FC_DUMMY_MAIN
16183#ifndef FC_DUMMY_MAIN_EQ_F77
16184#  ifdef __cplusplus
16185     extern "C"
16186#  endif
16187   int FC_DUMMY_MAIN() { return 1; }
16188#endif
16189#endif
16190int
16191main (void)
16192{
16193return dlopen ();
16194  ;
16195  return 0;
16196}
16197_ACEOF
16198if ac_fn_c_try_link "$LINENO"
16199then :
16200  ac_cv_lib_svld_dlopen=yes
16201else $as_nop
16202  ac_cv_lib_svld_dlopen=no
16203fi
16204rm -f core conftest.err conftest.$ac_objext conftest.beam \
16205    conftest$ac_exeext conftest.$ac_ext
16206LIBS=$ac_check_lib_save_LIBS
16207fi
16208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16209printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
16210if test "x$ac_cv_lib_svld_dlopen" = xyes
16211then :
16212  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
16213else $as_nop
16214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16215printf %s "checking for dld_link in -ldld... " >&6; }
16216if test ${ac_cv_lib_dld_dld_link+y}
16217then :
16218  printf %s "(cached) " >&6
16219else $as_nop
16220  ac_check_lib_save_LIBS=$LIBS
16221LIBS="-ldld  $LIBS"
16222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223/* end confdefs.h.  */
16224
16225/* Override any GCC internal prototype to avoid an error.
16226   Use char because int might match the return type of a GCC
16227   builtin and then its argument prototype would still apply.  */
16228char dld_link ();
16229#ifdef FC_DUMMY_MAIN
16230#ifndef FC_DUMMY_MAIN_EQ_F77
16231#  ifdef __cplusplus
16232     extern "C"
16233#  endif
16234   int FC_DUMMY_MAIN() { return 1; }
16235#endif
16236#endif
16237int
16238main (void)
16239{
16240return dld_link ();
16241  ;
16242  return 0;
16243}
16244_ACEOF
16245if ac_fn_c_try_link "$LINENO"
16246then :
16247  ac_cv_lib_dld_dld_link=yes
16248else $as_nop
16249  ac_cv_lib_dld_dld_link=no
16250fi
16251rm -f core conftest.err conftest.$ac_objext conftest.beam \
16252    conftest$ac_exeext conftest.$ac_ext
16253LIBS=$ac_check_lib_save_LIBS
16254fi
16255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16256printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16257if test "x$ac_cv_lib_dld_dld_link" = xyes
16258then :
16259  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16260fi
16261
16262
16263fi
16264
16265
16266fi
16267
16268
16269fi
16270
16271
16272fi
16273
16274
16275fi
16276
16277    ;;
16278  esac
16279
16280  if test no = "$lt_cv_dlopen"; then
16281    enable_dlopen=no
16282  else
16283    enable_dlopen=yes
16284  fi
16285
16286  case $lt_cv_dlopen in
16287  dlopen)
16288    save_CPPFLAGS=$CPPFLAGS
16289    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16290
16291    save_LDFLAGS=$LDFLAGS
16292    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16293
16294    save_LIBS=$LIBS
16295    LIBS="$lt_cv_dlopen_libs $LIBS"
16296
16297    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16298printf %s "checking whether a program can dlopen itself... " >&6; }
16299if test ${lt_cv_dlopen_self+y}
16300then :
16301  printf %s "(cached) " >&6
16302else $as_nop
16303  	  if test yes = "$cross_compiling"; then :
16304  lt_cv_dlopen_self=cross
16305else
16306  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16307  lt_status=$lt_dlunknown
16308  cat > conftest.$ac_ext <<_LT_EOF
16309#line $LINENO "configure"
16310#include "confdefs.h"
16311
16312#if HAVE_DLFCN_H
16313#include <dlfcn.h>
16314#endif
16315
16316#include <stdio.h>
16317
16318#ifdef RTLD_GLOBAL
16319#  define LT_DLGLOBAL		RTLD_GLOBAL
16320#else
16321#  ifdef DL_GLOBAL
16322#    define LT_DLGLOBAL		DL_GLOBAL
16323#  else
16324#    define LT_DLGLOBAL		0
16325#  endif
16326#endif
16327
16328/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16329   find out it does not work in some platform. */
16330#ifndef LT_DLLAZY_OR_NOW
16331#  ifdef RTLD_LAZY
16332#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16333#  else
16334#    ifdef DL_LAZY
16335#      define LT_DLLAZY_OR_NOW		DL_LAZY
16336#    else
16337#      ifdef RTLD_NOW
16338#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16339#      else
16340#        ifdef DL_NOW
16341#          define LT_DLLAZY_OR_NOW	DL_NOW
16342#        else
16343#          define LT_DLLAZY_OR_NOW	0
16344#        endif
16345#      endif
16346#    endif
16347#  endif
16348#endif
16349
16350/* When -fvisibility=hidden is used, assume the code has been annotated
16351   correspondingly for the symbols needed.  */
16352#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16353int fnord () __attribute__((visibility("default")));
16354#endif
16355
16356int fnord () { return 42; }
16357int main ()
16358{
16359  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16360  int status = $lt_dlunknown;
16361
16362  if (self)
16363    {
16364      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16365      else
16366        {
16367	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16368          else puts (dlerror ());
16369	}
16370      /* dlclose (self); */
16371    }
16372  else
16373    puts (dlerror ());
16374
16375  return status;
16376}
16377_LT_EOF
16378  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16379  (eval $ac_link) 2>&5
16380  ac_status=$?
16381  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16382  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16383    (./conftest; exit; ) >&5 2>/dev/null
16384    lt_status=$?
16385    case x$lt_status in
16386      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16387      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16388      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16389    esac
16390  else :
16391    # compilation failed
16392    lt_cv_dlopen_self=no
16393  fi
16394fi
16395rm -fr conftest*
16396
16397
16398fi
16399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16400printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16401
16402    if test yes = "$lt_cv_dlopen_self"; then
16403      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16404      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16405printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16406if test ${lt_cv_dlopen_self_static+y}
16407then :
16408  printf %s "(cached) " >&6
16409else $as_nop
16410  	  if test yes = "$cross_compiling"; then :
16411  lt_cv_dlopen_self_static=cross
16412else
16413  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16414  lt_status=$lt_dlunknown
16415  cat > conftest.$ac_ext <<_LT_EOF
16416#line $LINENO "configure"
16417#include "confdefs.h"
16418
16419#if HAVE_DLFCN_H
16420#include <dlfcn.h>
16421#endif
16422
16423#include <stdio.h>
16424
16425#ifdef RTLD_GLOBAL
16426#  define LT_DLGLOBAL		RTLD_GLOBAL
16427#else
16428#  ifdef DL_GLOBAL
16429#    define LT_DLGLOBAL		DL_GLOBAL
16430#  else
16431#    define LT_DLGLOBAL		0
16432#  endif
16433#endif
16434
16435/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16436   find out it does not work in some platform. */
16437#ifndef LT_DLLAZY_OR_NOW
16438#  ifdef RTLD_LAZY
16439#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
16440#  else
16441#    ifdef DL_LAZY
16442#      define LT_DLLAZY_OR_NOW		DL_LAZY
16443#    else
16444#      ifdef RTLD_NOW
16445#        define LT_DLLAZY_OR_NOW	RTLD_NOW
16446#      else
16447#        ifdef DL_NOW
16448#          define LT_DLLAZY_OR_NOW	DL_NOW
16449#        else
16450#          define LT_DLLAZY_OR_NOW	0
16451#        endif
16452#      endif
16453#    endif
16454#  endif
16455#endif
16456
16457/* When -fvisibility=hidden is used, assume the code has been annotated
16458   correspondingly for the symbols needed.  */
16459#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16460int fnord () __attribute__((visibility("default")));
16461#endif
16462
16463int fnord () { return 42; }
16464int main ()
16465{
16466  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16467  int status = $lt_dlunknown;
16468
16469  if (self)
16470    {
16471      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16472      else
16473        {
16474	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16475          else puts (dlerror ());
16476	}
16477      /* dlclose (self); */
16478    }
16479  else
16480    puts (dlerror ());
16481
16482  return status;
16483}
16484_LT_EOF
16485  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16486  (eval $ac_link) 2>&5
16487  ac_status=$?
16488  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16489  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16490    (./conftest; exit; ) >&5 2>/dev/null
16491    lt_status=$?
16492    case x$lt_status in
16493      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16494      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16495      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16496    esac
16497  else :
16498    # compilation failed
16499    lt_cv_dlopen_self_static=no
16500  fi
16501fi
16502rm -fr conftest*
16503
16504
16505fi
16506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16507printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16508    fi
16509
16510    CPPFLAGS=$save_CPPFLAGS
16511    LDFLAGS=$save_LDFLAGS
16512    LIBS=$save_LIBS
16513    ;;
16514  esac
16515
16516  case $lt_cv_dlopen_self in
16517  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16518  *) enable_dlopen_self=unknown ;;
16519  esac
16520
16521  case $lt_cv_dlopen_self_static in
16522  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16523  *) enable_dlopen_self_static=unknown ;;
16524  esac
16525fi
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543striplib=
16544old_striplib=
16545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16546printf %s "checking whether stripping libraries is possible... " >&6; }
16547if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16548  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16549  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16550  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16551printf "%s\n" "yes" >&6; }
16552else
16553# FIXME - insert some real tests, host_os isn't really good enough
16554  case $host_os in
16555  darwin*)
16556    if test -n "$STRIP"; then
16557      striplib="$STRIP -x"
16558      old_striplib="$STRIP -S"
16559      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16560printf "%s\n" "yes" >&6; }
16561    else
16562      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563printf "%s\n" "no" >&6; }
16564    fi
16565    ;;
16566  *)
16567    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16568printf "%s\n" "no" >&6; }
16569    ;;
16570  esac
16571fi
16572
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584  # Report what library types will actually be built
16585  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16586printf %s "checking if libtool supports shared libraries... " >&6; }
16587  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16588printf "%s\n" "$can_build_shared" >&6; }
16589
16590  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16591printf %s "checking whether to build shared libraries... " >&6; }
16592  test no = "$can_build_shared" && enable_shared=no
16593
16594  # On AIX, shared libraries and static libraries use the same namespace, and
16595  # are all built from PIC.
16596  case $host_os in
16597  aix3*)
16598    test yes = "$enable_shared" && enable_static=no
16599    if test -n "$RANLIB"; then
16600      archive_cmds="$archive_cmds~\$RANLIB \$lib"
16601      postinstall_cmds='$RANLIB $lib'
16602    fi
16603    ;;
16604
16605  aix[4-9]*)
16606    if test ia64 != "$host_cpu"; then
16607      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16608      yes,aix,yes) ;;			# shared object as lib.so file only
16609      yes,svr4,*) ;;			# shared object as lib.so archive member only
16610      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
16611      esac
16612    fi
16613    ;;
16614  esac
16615  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16616printf "%s\n" "$enable_shared" >&6; }
16617
16618  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16619printf %s "checking whether to build static libraries... " >&6; }
16620  # Make sure either enable_shared or enable_static is yes.
16621  test yes = "$enable_shared" || enable_static=yes
16622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16623printf "%s\n" "$enable_static" >&6; }
16624
16625
16626
16627
16628fi
16629ac_ext=cpp
16630ac_cpp='$CXXCPP $CPPFLAGS'
16631ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16632ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16633ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16634
16635CC=$lt_save_CC
16636
16637      if test -n "$CXX" && ( test no != "$CXX" &&
16638    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
16639    (test g++ != "$CXX"))); then
16640  ac_ext=cpp
16641ac_cpp='$CXXCPP $CPPFLAGS'
16642ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16643ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16644ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16646printf %s "checking how to run the C++ preprocessor... " >&6; }
16647if test -z "$CXXCPP"; then
16648  if test ${ac_cv_prog_CXXCPP+y}
16649then :
16650  printf %s "(cached) " >&6
16651else $as_nop
16652      # Double quotes because $CXX needs to be expanded
16653    for CXXCPP in "$CXX -E" cpp /lib/cpp
16654    do
16655      ac_preproc_ok=false
16656for ac_cxx_preproc_warn_flag in '' yes
16657do
16658  # Use a header file that comes with gcc, so configuring glibc
16659  # with a fresh cross-compiler works.
16660  # On the NeXT, cc -E runs the code through the compiler's parser,
16661  # not just through cpp. "Syntax error" is here to catch this case.
16662  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663/* end confdefs.h.  */
16664#include <limits.h>
16665		     Syntax error
16666_ACEOF
16667if ac_fn_cxx_try_cpp "$LINENO"
16668then :
16669
16670else $as_nop
16671  # Broken: fails on valid input.
16672continue
16673fi
16674rm -f conftest.err conftest.i conftest.$ac_ext
16675
16676  # OK, works on sane cases.  Now check whether nonexistent headers
16677  # can be detected and how.
16678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16679/* end confdefs.h.  */
16680#include <ac_nonexistent.h>
16681_ACEOF
16682if ac_fn_cxx_try_cpp "$LINENO"
16683then :
16684  # Broken: success on invalid input.
16685continue
16686else $as_nop
16687  # Passes both tests.
16688ac_preproc_ok=:
16689break
16690fi
16691rm -f conftest.err conftest.i conftest.$ac_ext
16692
16693done
16694# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16695rm -f conftest.i conftest.err conftest.$ac_ext
16696if $ac_preproc_ok
16697then :
16698  break
16699fi
16700
16701    done
16702    ac_cv_prog_CXXCPP=$CXXCPP
16703
16704fi
16705  CXXCPP=$ac_cv_prog_CXXCPP
16706else
16707  ac_cv_prog_CXXCPP=$CXXCPP
16708fi
16709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16710printf "%s\n" "$CXXCPP" >&6; }
16711ac_preproc_ok=false
16712for ac_cxx_preproc_warn_flag in '' yes
16713do
16714  # Use a header file that comes with gcc, so configuring glibc
16715  # with a fresh cross-compiler works.
16716  # On the NeXT, cc -E runs the code through the compiler's parser,
16717  # not just through cpp. "Syntax error" is here to catch this case.
16718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719/* end confdefs.h.  */
16720#include <limits.h>
16721		     Syntax error
16722_ACEOF
16723if ac_fn_cxx_try_cpp "$LINENO"
16724then :
16725
16726else $as_nop
16727  # Broken: fails on valid input.
16728continue
16729fi
16730rm -f conftest.err conftest.i conftest.$ac_ext
16731
16732  # OK, works on sane cases.  Now check whether nonexistent headers
16733  # can be detected and how.
16734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735/* end confdefs.h.  */
16736#include <ac_nonexistent.h>
16737_ACEOF
16738if ac_fn_cxx_try_cpp "$LINENO"
16739then :
16740  # Broken: success on invalid input.
16741continue
16742else $as_nop
16743  # Passes both tests.
16744ac_preproc_ok=:
16745break
16746fi
16747rm -f conftest.err conftest.i conftest.$ac_ext
16748
16749done
16750# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16751rm -f conftest.i conftest.err conftest.$ac_ext
16752if $ac_preproc_ok
16753then :
16754
16755else $as_nop
16756  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16757printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16758as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16759See \`config.log' for more details" "$LINENO" 5; }
16760fi
16761
16762ac_ext=cpp
16763ac_cpp='$CXXCPP $CPPFLAGS'
16764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16767
16768else
16769  _lt_caught_CXX_error=yes
16770fi
16771
16772ac_ext=cpp
16773ac_cpp='$CXXCPP $CPPFLAGS'
16774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16777
16778archive_cmds_need_lc_CXX=no
16779allow_undefined_flag_CXX=
16780always_export_symbols_CXX=no
16781archive_expsym_cmds_CXX=
16782compiler_needs_object_CXX=no
16783export_dynamic_flag_spec_CXX=
16784hardcode_direct_CXX=no
16785hardcode_direct_absolute_CXX=no
16786hardcode_libdir_flag_spec_CXX=
16787hardcode_libdir_separator_CXX=
16788hardcode_minus_L_CXX=no
16789hardcode_shlibpath_var_CXX=unsupported
16790hardcode_automatic_CXX=no
16791inherit_rpath_CXX=no
16792module_cmds_CXX=
16793module_expsym_cmds_CXX=
16794link_all_deplibs_CXX=unknown
16795old_archive_cmds_CXX=$old_archive_cmds
16796reload_flag_CXX=$reload_flag
16797reload_cmds_CXX=$reload_cmds
16798no_undefined_flag_CXX=
16799whole_archive_flag_spec_CXX=
16800enable_shared_with_static_runtimes_CXX=no
16801
16802# Source file extension for C++ test sources.
16803ac_ext=cpp
16804
16805# Object file extension for compiled C++ test sources.
16806objext=o
16807objext_CXX=$objext
16808
16809# No sense in running all these tests if we already determined that
16810# the CXX compiler isn't working.  Some variables (like enable_shared)
16811# are currently assumed to apply to all compilers on this platform,
16812# and will be corrupted by setting them based on a non-working compiler.
16813if test yes != "$_lt_caught_CXX_error"; then
16814  # Code to be used in simple compile tests
16815  lt_simple_compile_test_code="int some_variable = 0;"
16816
16817  # Code to be used in simple link tests
16818  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16819
16820  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16821
16822
16823
16824
16825
16826
16827# If no C compiler was specified, use CC.
16828LTCC=${LTCC-"$CC"}
16829
16830# If no C compiler flags were specified, use CFLAGS.
16831LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16832
16833# Allow CC to be a program name with arguments.
16834compiler=$CC
16835
16836
16837  # save warnings/boilerplate of simple test code
16838  ac_outfile=conftest.$ac_objext
16839echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16840eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16841_lt_compiler_boilerplate=`cat conftest.err`
16842$RM conftest*
16843
16844  ac_outfile=conftest.$ac_objext
16845echo "$lt_simple_link_test_code" >conftest.$ac_ext
16846eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16847_lt_linker_boilerplate=`cat conftest.err`
16848$RM -r conftest*
16849
16850
16851  # Allow CC to be a program name with arguments.
16852  lt_save_CC=$CC
16853  lt_save_CFLAGS=$CFLAGS
16854  lt_save_LD=$LD
16855  lt_save_GCC=$GCC
16856  GCC=$GXX
16857  lt_save_with_gnu_ld=$with_gnu_ld
16858  lt_save_path_LD=$lt_cv_path_LD
16859  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16860    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16861  else
16862    $as_unset lt_cv_prog_gnu_ld
16863  fi
16864  if test -n "${lt_cv_path_LDCXX+set}"; then
16865    lt_cv_path_LD=$lt_cv_path_LDCXX
16866  else
16867    $as_unset lt_cv_path_LD
16868  fi
16869  test -z "${LDCXX+set}" || LD=$LDCXX
16870  CC=${CXX-"c++"}
16871  CFLAGS=$CXXFLAGS
16872  compiler=$CC
16873  compiler_CXX=$CC
16874  func_cc_basename $compiler
16875cc_basename=$func_cc_basename_result
16876
16877
16878  if test -n "$compiler"; then
16879    # We don't want -fno-exception when compiling C++ code, so set the
16880    # no_builtin_flag separately
16881    if test yes = "$GXX"; then
16882      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16883    else
16884      lt_prog_compiler_no_builtin_flag_CXX=
16885    fi
16886
16887    if test yes = "$GXX"; then
16888      # Set up default GNU C++ configuration
16889
16890
16891
16892# Check whether --with-gnu-ld was given.
16893if test ${with_gnu_ld+y}
16894then :
16895  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
16896else $as_nop
16897  with_gnu_ld=no
16898fi
16899
16900ac_prog=ld
16901if test yes = "$GCC"; then
16902  # Check if gcc -print-prog-name=ld gives a path.
16903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16904printf %s "checking for ld used by $CC... " >&6; }
16905  case $host in
16906  *-*-mingw*)
16907    # gcc leaves a trailing carriage return, which upsets mingw
16908    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16909  *)
16910    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16911  esac
16912  case $ac_prog in
16913    # Accept absolute paths.
16914    [\\/]* | ?:[\\/]*)
16915      re_direlt='/[^/][^/]*/\.\./'
16916      # Canonicalize the pathname of ld
16917      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16918      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16919	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16920      done
16921      test -z "$LD" && LD=$ac_prog
16922      ;;
16923  "")
16924    # If it fails, then pretend we aren't using GCC.
16925    ac_prog=ld
16926    ;;
16927  *)
16928    # If it is relative, then search for the first ld in PATH.
16929    with_gnu_ld=unknown
16930    ;;
16931  esac
16932elif test yes = "$with_gnu_ld"; then
16933  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16934printf %s "checking for GNU ld... " >&6; }
16935else
16936  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16937printf %s "checking for non-GNU ld... " >&6; }
16938fi
16939if test ${lt_cv_path_LD+y}
16940then :
16941  printf %s "(cached) " >&6
16942else $as_nop
16943  if test -z "$LD"; then
16944  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16945  for ac_dir in $PATH; do
16946    IFS=$lt_save_ifs
16947    test -z "$ac_dir" && ac_dir=.
16948    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16949      lt_cv_path_LD=$ac_dir/$ac_prog
16950      # Check to see if the program is GNU ld.  I'd rather use --version,
16951      # but apparently some variants of GNU ld only accept -v.
16952      # Break only if it was the GNU/non-GNU ld that we prefer.
16953      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16954      *GNU* | *'with BFD'*)
16955	test no != "$with_gnu_ld" && break
16956	;;
16957      *)
16958	test yes != "$with_gnu_ld" && break
16959	;;
16960      esac
16961    fi
16962  done
16963  IFS=$lt_save_ifs
16964else
16965  lt_cv_path_LD=$LD # Let the user override the test with a path.
16966fi
16967fi
16968
16969LD=$lt_cv_path_LD
16970if test -n "$LD"; then
16971  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16972printf "%s\n" "$LD" >&6; }
16973else
16974  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16975printf "%s\n" "no" >&6; }
16976fi
16977test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16979printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
16980if test ${lt_cv_prog_gnu_ld+y}
16981then :
16982  printf %s "(cached) " >&6
16983else $as_nop
16984  # I'd rather use --version here, but apparently some GNU lds only accept -v.
16985case `$LD -v 2>&1 </dev/null` in
16986*GNU* | *'with BFD'*)
16987  lt_cv_prog_gnu_ld=yes
16988  ;;
16989*)
16990  lt_cv_prog_gnu_ld=no
16991  ;;
16992esac
16993fi
16994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16995printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
16996with_gnu_ld=$lt_cv_prog_gnu_ld
16997
16998
16999
17000
17001
17002
17003
17004      # Check if GNU C++ uses GNU ld as the underlying linker, since the
17005      # archiving commands below assume that GNU ld is being used.
17006      if test yes = "$with_gnu_ld"; then
17007        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17008        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'
17009
17010        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17011        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17012
17013        # If archive_cmds runs LD, not CC, wlarc should be empty
17014        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17015        #     investigate it a little bit more. (MM)
17016        wlarc='$wl'
17017
17018        # ancient GNU ld didn't support --whole-archive et. al.
17019        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17020	  $GREP 'no-whole-archive' > /dev/null; then
17021          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17022        else
17023          whole_archive_flag_spec_CXX=
17024        fi
17025      else
17026        with_gnu_ld=no
17027        wlarc=
17028
17029        # A generic and very simple default shared library creation
17030        # command for GNU C++ for the case where it uses the native
17031        # linker, instead of GNU ld.  If possible, this setting should
17032        # overridden to take advantage of the native linker features on
17033        # the platform it is being used on.
17034        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17035      fi
17036
17037      # Commands to make compiler produce verbose output that lists
17038      # what "hidden" libraries, object files and flags are used when
17039      # linking a shared library.
17040      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17041
17042    else
17043      GXX=no
17044      with_gnu_ld=no
17045      wlarc=
17046    fi
17047
17048    # PORTME: fill in a description of your system's C++ link characteristics
17049    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17050printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17051    ld_shlibs_CXX=yes
17052    case $host_os in
17053      aix3*)
17054        # FIXME: insert proper C++ library support
17055        ld_shlibs_CXX=no
17056        ;;
17057      aix[4-9]*)
17058        if test ia64 = "$host_cpu"; then
17059          # On IA64, the linker does run time linking by default, so we don't
17060          # have to do anything special.
17061          aix_use_runtimelinking=no
17062          exp_sym_flag='-Bexport'
17063          no_entry_flag=
17064        else
17065          aix_use_runtimelinking=no
17066
17067          # Test if we are trying to use run time linking or normal
17068          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17069          # have runtime linking enabled, and use it for executables.
17070          # For shared libraries, we enable/disable runtime linking
17071          # depending on the kind of the shared library created -
17072          # when "with_aix_soname,aix_use_runtimelinking" is:
17073          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
17074          # "aix,yes"  lib.so          shared, rtl:yes, for executables
17075          #            lib.a           static archive
17076          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
17077          #            lib.a(lib.so.V) shared, rtl:no,  for executables
17078          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17079          #            lib.a(lib.so.V) shared, rtl:no
17080          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
17081          #            lib.a           static archive
17082          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17083	    for ld_flag in $LDFLAGS; do
17084	      case $ld_flag in
17085	      *-brtl*)
17086	        aix_use_runtimelinking=yes
17087	        break
17088	        ;;
17089	      esac
17090	    done
17091	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17092	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
17093	      # so we don't have lib.a shared libs to link our executables.
17094	      # We have to force runtime linking in this case.
17095	      aix_use_runtimelinking=yes
17096	      LDFLAGS="$LDFLAGS -Wl,-brtl"
17097	    fi
17098	    ;;
17099          esac
17100
17101          exp_sym_flag='-bexport'
17102          no_entry_flag='-bnoentry'
17103        fi
17104
17105        # When large executables or shared objects are built, AIX ld can
17106        # have problems creating the table of contents.  If linking a library
17107        # or program results in "error TOC overflow" add -mminimal-toc to
17108        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17109        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17110
17111        archive_cmds_CXX=''
17112        hardcode_direct_CXX=yes
17113        hardcode_direct_absolute_CXX=yes
17114        hardcode_libdir_separator_CXX=':'
17115        link_all_deplibs_CXX=yes
17116        file_list_spec_CXX='$wl-f,'
17117        case $with_aix_soname,$aix_use_runtimelinking in
17118        aix,*) ;;	# no import file
17119        svr4,* | *,yes) # use import file
17120          # The Import File defines what to hardcode.
17121          hardcode_direct_CXX=no
17122          hardcode_direct_absolute_CXX=no
17123          ;;
17124        esac
17125
17126        if test yes = "$GXX"; then
17127          case $host_os in aix4.[012]|aix4.[012].*)
17128          # We only want to do this on AIX 4.2 and lower, the check
17129          # below for broken collect2 doesn't work under 4.3+
17130	  collect2name=`$CC -print-prog-name=collect2`
17131	  if test -f "$collect2name" &&
17132	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17133	  then
17134	    # We have reworked collect2
17135	    :
17136	  else
17137	    # We have old collect2
17138	    hardcode_direct_CXX=unsupported
17139	    # It fails to find uninstalled libraries when the uninstalled
17140	    # path is not listed in the libpath.  Setting hardcode_minus_L
17141	    # to unsupported forces relinking
17142	    hardcode_minus_L_CXX=yes
17143	    hardcode_libdir_flag_spec_CXX='-L$libdir'
17144	    hardcode_libdir_separator_CXX=
17145	  fi
17146          esac
17147          shared_flag='-shared'
17148	  if test yes = "$aix_use_runtimelinking"; then
17149	    shared_flag=$shared_flag' $wl-G'
17150	  fi
17151	  # Need to ensure runtime linking is disabled for the traditional
17152	  # shared library, or the linker may eventually find shared libraries
17153	  # /with/ Import File - we do not want to mix them.
17154	  shared_flag_aix='-shared'
17155	  shared_flag_svr4='-shared $wl-G'
17156        else
17157          # not using gcc
17158          if test ia64 = "$host_cpu"; then
17159	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17160	  # chokes on -Wl,-G. The following line is correct:
17161	  shared_flag='-G'
17162          else
17163	    if test yes = "$aix_use_runtimelinking"; then
17164	      shared_flag='$wl-G'
17165	    else
17166	      shared_flag='$wl-bM:SRE'
17167	    fi
17168	    shared_flag_aix='$wl-bM:SRE'
17169	    shared_flag_svr4='$wl-G'
17170          fi
17171        fi
17172
17173        export_dynamic_flag_spec_CXX='$wl-bexpall'
17174        # It seems that -bexpall does not export symbols beginning with
17175        # underscore (_), so it is better to generate a list of symbols to
17176	# export.
17177        always_export_symbols_CXX=yes
17178	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17179          # Warning - without using the other runtime loading flags (-brtl),
17180          # -berok will link without error, but may produce a broken library.
17181          # The "-G" linker flag allows undefined symbols.
17182          no_undefined_flag_CXX='-bernotok'
17183          # Determine the default libpath from the value encoded in an empty
17184          # executable.
17185          if test set = "${lt_cv_aix_libpath+set}"; then
17186  aix_libpath=$lt_cv_aix_libpath
17187else
17188  if test ${lt_cv_aix_libpath__CXX+y}
17189then :
17190  printf %s "(cached) " >&6
17191else $as_nop
17192  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193/* end confdefs.h.  */
17194
17195#ifdef FC_DUMMY_MAIN
17196#ifndef FC_DUMMY_MAIN_EQ_F77
17197#  ifdef __cplusplus
17198     extern "C"
17199#  endif
17200   int FC_DUMMY_MAIN() { return 1; }
17201#endif
17202#endif
17203int
17204main (void)
17205{
17206
17207  ;
17208  return 0;
17209}
17210_ACEOF
17211if ac_fn_cxx_try_link "$LINENO"
17212then :
17213
17214  lt_aix_libpath_sed='
17215      /Import File Strings/,/^$/ {
17216	  /^0/ {
17217	      s/^0  *\([^ ]*\) *$/\1/
17218	      p
17219	  }
17220      }'
17221  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17222  # Check for a 64-bit object if we didn't find anything.
17223  if test -z "$lt_cv_aix_libpath__CXX"; then
17224    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17225  fi
17226fi
17227rm -f core conftest.err conftest.$ac_objext conftest.beam \
17228    conftest$ac_exeext conftest.$ac_ext
17229  if test -z "$lt_cv_aix_libpath__CXX"; then
17230    lt_cv_aix_libpath__CXX=/usr/lib:/lib
17231  fi
17232
17233fi
17234
17235  aix_libpath=$lt_cv_aix_libpath__CXX
17236fi
17237
17238          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17239
17240          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
17241        else
17242          if test ia64 = "$host_cpu"; then
17243	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
17244	    allow_undefined_flag_CXX="-z nodefs"
17245	    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"
17246          else
17247	    # Determine the default libpath from the value encoded in an
17248	    # empty executable.
17249	    if test set = "${lt_cv_aix_libpath+set}"; then
17250  aix_libpath=$lt_cv_aix_libpath
17251else
17252  if test ${lt_cv_aix_libpath__CXX+y}
17253then :
17254  printf %s "(cached) " >&6
17255else $as_nop
17256  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17257/* end confdefs.h.  */
17258
17259#ifdef FC_DUMMY_MAIN
17260#ifndef FC_DUMMY_MAIN_EQ_F77
17261#  ifdef __cplusplus
17262     extern "C"
17263#  endif
17264   int FC_DUMMY_MAIN() { return 1; }
17265#endif
17266#endif
17267int
17268main (void)
17269{
17270
17271  ;
17272  return 0;
17273}
17274_ACEOF
17275if ac_fn_cxx_try_link "$LINENO"
17276then :
17277
17278  lt_aix_libpath_sed='
17279      /Import File Strings/,/^$/ {
17280	  /^0/ {
17281	      s/^0  *\([^ ]*\) *$/\1/
17282	      p
17283	  }
17284      }'
17285  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17286  # Check for a 64-bit object if we didn't find anything.
17287  if test -z "$lt_cv_aix_libpath__CXX"; then
17288    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17289  fi
17290fi
17291rm -f core conftest.err conftest.$ac_objext conftest.beam \
17292    conftest$ac_exeext conftest.$ac_ext
17293  if test -z "$lt_cv_aix_libpath__CXX"; then
17294    lt_cv_aix_libpath__CXX=/usr/lib:/lib
17295  fi
17296
17297fi
17298
17299  aix_libpath=$lt_cv_aix_libpath__CXX
17300fi
17301
17302	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
17303	    # Warning - without using the other run time loading flags,
17304	    # -berok will link without error, but may produce a broken library.
17305	    no_undefined_flag_CXX=' $wl-bernotok'
17306	    allow_undefined_flag_CXX=' $wl-berok'
17307	    if test yes = "$with_gnu_ld"; then
17308	      # We only use this code for GNU lds that support --whole-archive.
17309	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17310	    else
17311	      # Exported symbols can be pulled into shared objects from archives
17312	      whole_archive_flag_spec_CXX='$convenience'
17313	    fi
17314	    archive_cmds_need_lc_CXX=yes
17315	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17316	    # -brtl affects multiple linker settings, -berok does not and is overridden later
17317	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17318	    if test svr4 != "$with_aix_soname"; then
17319	      # This is similar to how AIX traditionally builds its shared
17320	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
17321	      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'
17322	    fi
17323	    if test aix != "$with_aix_soname"; then
17324	      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'
17325	    else
17326	      # used by -dlpreopen to get the symbols
17327	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17328	    fi
17329	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
17330          fi
17331        fi
17332        ;;
17333
17334      beos*)
17335	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17336	  allow_undefined_flag_CXX=unsupported
17337	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17338	  # support --undefined.  This deserves some investigation.  FIXME
17339	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17340	else
17341	  ld_shlibs_CXX=no
17342	fi
17343	;;
17344
17345      chorus*)
17346        case $cc_basename in
17347          *)
17348	  # FIXME: insert proper C++ library support
17349	  ld_shlibs_CXX=no
17350	  ;;
17351        esac
17352        ;;
17353
17354      cygwin* | mingw* | pw32* | cegcc*)
17355	case $GXX,$cc_basename in
17356	,cl* | no,cl*)
17357	  # Native MSVC
17358	  # hardcode_libdir_flag_spec is actually meaningless, as there is
17359	  # no search path for DLLs.
17360	  hardcode_libdir_flag_spec_CXX=' '
17361	  allow_undefined_flag_CXX=unsupported
17362	  always_export_symbols_CXX=yes
17363	  file_list_spec_CXX='@'
17364	  # Tell ltmain to make .lib files, not .a files.
17365	  libext=lib
17366	  # Tell ltmain to make .dll files, not .so files.
17367	  shrext_cmds=.dll
17368	  # FIXME: Setting linknames here is a bad hack.
17369	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17370	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17371              cp "$export_symbols" "$output_objdir/$soname.def";
17372              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17373            else
17374              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17375            fi~
17376            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17377            linknames='
17378	  # The linker will not automatically build a static lib if we build a DLL.
17379	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17380	  enable_shared_with_static_runtimes_CXX=yes
17381	  # Don't use ranlib
17382	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
17383	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17384            lt_tool_outputfile="@TOOL_OUTPUT@"~
17385            case $lt_outputfile in
17386              *.exe|*.EXE) ;;
17387              *)
17388                lt_outputfile=$lt_outputfile.exe
17389                lt_tool_outputfile=$lt_tool_outputfile.exe
17390                ;;
17391            esac~
17392            func_to_tool_file "$lt_outputfile"~
17393            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17394              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17395              $RM "$lt_outputfile.manifest";
17396            fi'
17397	  ;;
17398	*)
17399	  # g++
17400	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17401	  # as there is no search path for DLLs.
17402	  hardcode_libdir_flag_spec_CXX='-L$libdir'
17403	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
17404	  allow_undefined_flag_CXX=unsupported
17405	  always_export_symbols_CXX=no
17406	  enable_shared_with_static_runtimes_CXX=yes
17407
17408	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17409	    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'
17410	    # If the export-symbols file already is a .def file, use it as
17411	    # is; otherwise, prepend EXPORTS...
17412	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17413              cp $export_symbols $output_objdir/$soname.def;
17414            else
17415              echo EXPORTS > $output_objdir/$soname.def;
17416              cat $export_symbols >> $output_objdir/$soname.def;
17417            fi~
17418            $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'
17419	  else
17420	    ld_shlibs_CXX=no
17421	  fi
17422	  ;;
17423	esac
17424	;;
17425      darwin* | rhapsody*)
17426
17427
17428  archive_cmds_need_lc_CXX=no
17429  hardcode_direct_CXX=no
17430  hardcode_automatic_CXX=yes
17431  hardcode_shlibpath_var_CXX=unsupported
17432  if test yes = "$lt_cv_ld_force_load"; then
17433    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\"`'
17434
17435  else
17436    whole_archive_flag_spec_CXX=''
17437  fi
17438  link_all_deplibs_CXX=yes
17439  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
17440  case $cc_basename in
17441     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
17442     *) _lt_dar_can_shared=$GCC ;;
17443  esac
17444  if test yes = "$_lt_dar_can_shared"; then
17445    output_verbose_link_cmd=func_echo_all
17446    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"
17447    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
17448    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"
17449    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"
17450       if test yes != "$lt_cv_apple_cc_single_mod"; then
17451      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"
17452      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"
17453    fi
17454
17455  else
17456  ld_shlibs_CXX=no
17457  fi
17458
17459	;;
17460
17461      os2*)
17462	hardcode_libdir_flag_spec_CXX='-L$libdir'
17463	hardcode_minus_L_CXX=yes
17464	allow_undefined_flag_CXX=unsupported
17465	shrext_cmds=.dll
17466	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17467	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17468	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17469	  $ECHO EXPORTS >> $output_objdir/$libname.def~
17470	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17471	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17472	  emximp -o $lib $output_objdir/$libname.def'
17473	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17474	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17475	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17476	  $ECHO EXPORTS >> $output_objdir/$libname.def~
17477	  prefix_cmds="$SED"~
17478	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
17479	    prefix_cmds="$prefix_cmds -e 1d";
17480	  fi~
17481	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17482	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17483	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17484	  emximp -o $lib $output_objdir/$libname.def'
17485	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17486	enable_shared_with_static_runtimes_CXX=yes
17487	;;
17488
17489      dgux*)
17490        case $cc_basename in
17491          ec++*)
17492	    # FIXME: insert proper C++ library support
17493	    ld_shlibs_CXX=no
17494	    ;;
17495          ghcx*)
17496	    # Green Hills C++ Compiler
17497	    # FIXME: insert proper C++ library support
17498	    ld_shlibs_CXX=no
17499	    ;;
17500          *)
17501	    # FIXME: insert proper C++ library support
17502	    ld_shlibs_CXX=no
17503	    ;;
17504        esac
17505        ;;
17506
17507      freebsd2.*)
17508        # C++ shared libraries reported to be fairly broken before
17509	# switch to ELF
17510        ld_shlibs_CXX=no
17511        ;;
17512
17513      freebsd-elf*)
17514        archive_cmds_need_lc_CXX=no
17515        ;;
17516
17517      freebsd* | dragonfly*)
17518        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17519        # conventions
17520        ld_shlibs_CXX=yes
17521        ;;
17522
17523      haiku*)
17524        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17525        link_all_deplibs_CXX=yes
17526        ;;
17527
17528      hpux9*)
17529        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17530        hardcode_libdir_separator_CXX=:
17531        export_dynamic_flag_spec_CXX='$wl-E'
17532        hardcode_direct_CXX=yes
17533        hardcode_minus_L_CXX=yes # Not in the search PATH,
17534				             # but as the default
17535				             # location of the library.
17536
17537        case $cc_basename in
17538          CC*)
17539            # FIXME: insert proper C++ library support
17540            ld_shlibs_CXX=no
17541            ;;
17542          aCC*)
17543            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'
17544            # Commands to make compiler produce verbose output that lists
17545            # what "hidden" libraries, object files and flags are used when
17546            # linking a shared library.
17547            #
17548            # There doesn't appear to be a way to prevent this compiler from
17549            # explicitly linking system object files so we need to strip them
17550            # from the output so that they don't get included in the library
17551            # dependencies.
17552            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"'
17553            ;;
17554          *)
17555            if test yes = "$GXX"; then
17556              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'
17557            else
17558              # FIXME: insert proper C++ library support
17559              ld_shlibs_CXX=no
17560            fi
17561            ;;
17562        esac
17563        ;;
17564
17565      hpux10*|hpux11*)
17566        if test no = "$with_gnu_ld"; then
17567	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
17568	  hardcode_libdir_separator_CXX=:
17569
17570          case $host_cpu in
17571            hppa*64*|ia64*)
17572              ;;
17573            *)
17574	      export_dynamic_flag_spec_CXX='$wl-E'
17575              ;;
17576          esac
17577        fi
17578        case $host_cpu in
17579          hppa*64*|ia64*)
17580            hardcode_direct_CXX=no
17581            hardcode_shlibpath_var_CXX=no
17582            ;;
17583          *)
17584            hardcode_direct_CXX=yes
17585            hardcode_direct_absolute_CXX=yes
17586            hardcode_minus_L_CXX=yes # Not in the search PATH,
17587					         # but as the default
17588					         # location of the library.
17589            ;;
17590        esac
17591
17592        case $cc_basename in
17593          CC*)
17594	    # FIXME: insert proper C++ library support
17595	    ld_shlibs_CXX=no
17596	    ;;
17597          aCC*)
17598	    case $host_cpu in
17599	      hppa*64*)
17600	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17601	        ;;
17602	      ia64*)
17603	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17604	        ;;
17605	      *)
17606	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17607	        ;;
17608	    esac
17609	    # Commands to make compiler produce verbose output that lists
17610	    # what "hidden" libraries, object files and flags are used when
17611	    # linking a shared library.
17612	    #
17613	    # There doesn't appear to be a way to prevent this compiler from
17614	    # explicitly linking system object files so we need to strip them
17615	    # from the output so that they don't get included in the library
17616	    # dependencies.
17617	    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"'
17618	    ;;
17619          *)
17620	    if test yes = "$GXX"; then
17621	      if test no = "$with_gnu_ld"; then
17622	        case $host_cpu in
17623	          hppa*64*)
17624	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17625	            ;;
17626	          ia64*)
17627	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17628	            ;;
17629	          *)
17630	            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'
17631	            ;;
17632	        esac
17633	      fi
17634	    else
17635	      # FIXME: insert proper C++ library support
17636	      ld_shlibs_CXX=no
17637	    fi
17638	    ;;
17639        esac
17640        ;;
17641
17642      interix[3-9]*)
17643	hardcode_direct_CXX=no
17644	hardcode_shlibpath_var_CXX=no
17645	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17646	export_dynamic_flag_spec_CXX='$wl-E'
17647	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17648	# Instead, shared libraries are loaded at an image base (0x10000000 by
17649	# default) and relocated if they conflict, which is a slow very memory
17650	# consuming and fragmenting process.  To avoid this, we pick a random,
17651	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17652	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17653	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'
17654	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'
17655	;;
17656      irix5* | irix6*)
17657        case $cc_basename in
17658          CC*)
17659	    # SGI C++
17660	    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'
17661
17662	    # Archives containing C++ object files must be created using
17663	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17664	    # necessary to make sure instantiated templates are included
17665	    # in the archive.
17666	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17667	    ;;
17668          *)
17669	    if test yes = "$GXX"; then
17670	      if test no = "$with_gnu_ld"; then
17671	        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'
17672	      else
17673	        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'
17674	      fi
17675	    fi
17676	    link_all_deplibs_CXX=yes
17677	    ;;
17678        esac
17679        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17680        hardcode_libdir_separator_CXX=:
17681        inherit_rpath_CXX=yes
17682        ;;
17683
17684      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17685        case $cc_basename in
17686          KCC*)
17687	    # Kuck and Associates, Inc. (KAI) C++ Compiler
17688
17689	    # KCC will only create a shared library if the output file
17690	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
17691	    # to its proper name (with version) after linking.
17692	    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'
17693	    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'
17694	    # Commands to make compiler produce verbose output that lists
17695	    # what "hidden" libraries, object files and flags are used when
17696	    # linking a shared library.
17697	    #
17698	    # There doesn't appear to be a way to prevent this compiler from
17699	    # explicitly linking system object files so we need to strip them
17700	    # from the output so that they don't get included in the library
17701	    # dependencies.
17702	    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"'
17703
17704	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17705	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17706
17707	    # Archives containing C++ object files must be created using
17708	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17709	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17710	    ;;
17711	  icpc* | ecpc* )
17712	    # Intel C++
17713	    with_gnu_ld=yes
17714	    # version 8.0 and above of icpc choke on multiply defined symbols
17715	    # if we add $predep_objects and $postdep_objects, however 7.1 and
17716	    # earlier do not add the objects themselves.
17717	    case `$CC -V 2>&1` in
17718	      *"Version 7."*)
17719	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17720		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'
17721		;;
17722	      *)  # Version 8.0 or newer
17723	        tmp_idyn=
17724	        case $host_cpu in
17725		  ia64*) tmp_idyn=' -i_dynamic';;
17726		esac
17727	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17728		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'
17729		;;
17730	    esac
17731	    archive_cmds_need_lc_CXX=no
17732	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17733	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17734	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
17735	    ;;
17736          pgCC* | pgcpp*)
17737            # Portland Group C++ compiler
17738	    case `$CC -V` in
17739	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17740	      prelink_cmds_CXX='tpldir=Template.dir~
17741               rm -rf $tpldir~
17742               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17743               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17744	      old_archive_cmds_CXX='tpldir=Template.dir~
17745                rm -rf $tpldir~
17746                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17747                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17748                $RANLIB $oldlib'
17749	      archive_cmds_CXX='tpldir=Template.dir~
17750                rm -rf $tpldir~
17751                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17752                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17753	      archive_expsym_cmds_CXX='tpldir=Template.dir~
17754                rm -rf $tpldir~
17755                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17756                $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'
17757	      ;;
17758	    *) # Version 6 and above use weak symbols
17759	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17760	      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'
17761	      ;;
17762	    esac
17763
17764	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
17765	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17766	    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'
17767            ;;
17768	  cxx*)
17769	    # Compaq C++
17770	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
17771	    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'
17772
17773	    runpath_var=LD_RUN_PATH
17774	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17775	    hardcode_libdir_separator_CXX=:
17776
17777	    # Commands to make compiler produce verbose output that lists
17778	    # what "hidden" libraries, object files and flags are used when
17779	    # linking a shared library.
17780	    #
17781	    # There doesn't appear to be a way to prevent this compiler from
17782	    # explicitly linking system object files so we need to strip them
17783	    # from the output so that they don't get included in the library
17784	    # dependencies.
17785	    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'
17786	    ;;
17787	  xl* | mpixl* | bgxl*)
17788	    # IBM XL 8.0 on PPC, with GNU ld
17789	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17790	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
17791	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17792	    if test yes = "$supports_anon_versioning"; then
17793	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17794                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17795                echo "local: *; };" >> $output_objdir/$libname.ver~
17796                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17797	    fi
17798	    ;;
17799	  *)
17800	    case `$CC -V 2>&1 | sed 5q` in
17801	    *Sun\ C*)
17802	      # Sun C++ 5.9
17803	      no_undefined_flag_CXX=' -zdefs'
17804	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17805	      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'
17806	      hardcode_libdir_flag_spec_CXX='-R$libdir'
17807	      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'
17808	      compiler_needs_object_CXX=yes
17809
17810	      # Not sure whether something based on
17811	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17812	      # would be better.
17813	      output_verbose_link_cmd='func_echo_all'
17814
17815	      # Archives containing C++ object files must be created using
17816	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17817	      # necessary to make sure instantiated templates are included
17818	      # in the archive.
17819	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17820	      ;;
17821	    esac
17822	    ;;
17823	esac
17824	;;
17825
17826      lynxos*)
17827        # FIXME: insert proper C++ library support
17828	ld_shlibs_CXX=no
17829	;;
17830
17831      m88k*)
17832        # FIXME: insert proper C++ library support
17833        ld_shlibs_CXX=no
17834	;;
17835
17836      mvs*)
17837        case $cc_basename in
17838          cxx*)
17839	    # FIXME: insert proper C++ library support
17840	    ld_shlibs_CXX=no
17841	    ;;
17842	  *)
17843	    # FIXME: insert proper C++ library support
17844	    ld_shlibs_CXX=no
17845	    ;;
17846	esac
17847	;;
17848
17849      netbsd*)
17850        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17851	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17852	  wlarc=
17853	  hardcode_libdir_flag_spec_CXX='-R$libdir'
17854	  hardcode_direct_CXX=yes
17855	  hardcode_shlibpath_var_CXX=no
17856	fi
17857	# Workaround some broken pre-1.5 toolchains
17858	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17859	;;
17860
17861      *nto* | *qnx*)
17862        ld_shlibs_CXX=yes
17863	;;
17864
17865      openbsd* | bitrig*)
17866	if test -f /usr/libexec/ld.so; then
17867	  hardcode_direct_CXX=yes
17868	  hardcode_shlibpath_var_CXX=no
17869	  hardcode_direct_absolute_CXX=yes
17870	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17871	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17872	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
17873	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
17874	    export_dynamic_flag_spec_CXX='$wl-E'
17875	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17876	  fi
17877	  output_verbose_link_cmd=func_echo_all
17878	else
17879	  ld_shlibs_CXX=no
17880	fi
17881	;;
17882
17883      osf3* | osf4* | osf5*)
17884        case $cc_basename in
17885          KCC*)
17886	    # Kuck and Associates, Inc. (KAI) C++ Compiler
17887
17888	    # KCC will only create a shared library if the output file
17889	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
17890	    # to its proper name (with version) after linking.
17891	    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'
17892
17893	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
17894	    hardcode_libdir_separator_CXX=:
17895
17896	    # Archives containing C++ object files must be created using
17897	    # the KAI C++ compiler.
17898	    case $host in
17899	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17900	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17901	    esac
17902	    ;;
17903          RCC*)
17904	    # Rational C++ 2.4.1
17905	    # FIXME: insert proper C++ library support
17906	    ld_shlibs_CXX=no
17907	    ;;
17908          cxx*)
17909	    case $host in
17910	      osf3*)
17911	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17912	        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'
17913	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17914		;;
17915	      *)
17916	        allow_undefined_flag_CXX=' -expect_unresolved \*'
17917	        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'
17918	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17919                  echo "-hidden">> $lib.exp~
17920                  $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~
17921                  $RM $lib.exp'
17922	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17923		;;
17924	    esac
17925
17926	    hardcode_libdir_separator_CXX=:
17927
17928	    # Commands to make compiler produce verbose output that lists
17929	    # what "hidden" libraries, object files and flags are used when
17930	    # linking a shared library.
17931	    #
17932	    # There doesn't appear to be a way to prevent this compiler from
17933	    # explicitly linking system object files so we need to strip them
17934	    # from the output so that they don't get included in the library
17935	    # dependencies.
17936	    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"'
17937	    ;;
17938	  *)
17939	    if test yes,no = "$GXX,$with_gnu_ld"; then
17940	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
17941	      case $host in
17942	        osf3*)
17943	          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'
17944		  ;;
17945	        *)
17946	          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'
17947		  ;;
17948	      esac
17949
17950	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
17951	      hardcode_libdir_separator_CXX=:
17952
17953	      # Commands to make compiler produce verbose output that lists
17954	      # what "hidden" libraries, object files and flags are used when
17955	      # linking a shared library.
17956	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17957
17958	    else
17959	      # FIXME: insert proper C++ library support
17960	      ld_shlibs_CXX=no
17961	    fi
17962	    ;;
17963        esac
17964        ;;
17965
17966      psos*)
17967        # FIXME: insert proper C++ library support
17968        ld_shlibs_CXX=no
17969        ;;
17970
17971      sunos4*)
17972        case $cc_basename in
17973          CC*)
17974	    # Sun C++ 4.x
17975	    # FIXME: insert proper C++ library support
17976	    ld_shlibs_CXX=no
17977	    ;;
17978          lcc*)
17979	    # Lucid
17980	    # FIXME: insert proper C++ library support
17981	    ld_shlibs_CXX=no
17982	    ;;
17983          *)
17984	    # FIXME: insert proper C++ library support
17985	    ld_shlibs_CXX=no
17986	    ;;
17987        esac
17988        ;;
17989
17990      solaris*)
17991        case $cc_basename in
17992          CC* | sunCC*)
17993	    # Sun C++ 4.2, 5.x and Centerline C++
17994            archive_cmds_need_lc_CXX=yes
17995	    no_undefined_flag_CXX=' -zdefs'
17996	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17997	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17998              $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'
17999
18000	    hardcode_libdir_flag_spec_CXX='-R$libdir'
18001	    hardcode_shlibpath_var_CXX=no
18002	    case $host_os in
18003	      solaris2.[0-5] | solaris2.[0-5].*) ;;
18004	      *)
18005		# The compiler driver will combine and reorder linker options,
18006		# but understands '-z linker_flag'.
18007	        # Supported since Solaris 2.6 (maybe 2.5.1?)
18008		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18009	        ;;
18010	    esac
18011	    link_all_deplibs_CXX=yes
18012
18013	    output_verbose_link_cmd='func_echo_all'
18014
18015	    # Archives containing C++ object files must be created using
18016	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18017	    # necessary to make sure instantiated templates are included
18018	    # in the archive.
18019	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18020	    ;;
18021          gcx*)
18022	    # Green Hills C++ Compiler
18023	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18024
18025	    # The C++ compiler must be used to create the archive.
18026	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18027	    ;;
18028          *)
18029	    # GNU C++ compiler with Solaris linker
18030	    if test yes,no = "$GXX,$with_gnu_ld"; then
18031	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
18032	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18033	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18034	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18035                  $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'
18036
18037	        # Commands to make compiler produce verbose output that lists
18038	        # what "hidden" libraries, object files and flags are used when
18039	        # linking a shared library.
18040	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18041	      else
18042	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
18043	        # platform.
18044	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
18045	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18046                  $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'
18047
18048	        # Commands to make compiler produce verbose output that lists
18049	        # what "hidden" libraries, object files and flags are used when
18050	        # linking a shared library.
18051	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18052	      fi
18053
18054	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
18055	      case $host_os in
18056		solaris2.[0-5] | solaris2.[0-5].*) ;;
18057		*)
18058		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18059		  ;;
18060	      esac
18061	    fi
18062	    ;;
18063        esac
18064        ;;
18065
18066    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18067      no_undefined_flag_CXX='$wl-z,text'
18068      archive_cmds_need_lc_CXX=no
18069      hardcode_shlibpath_var_CXX=no
18070      runpath_var='LD_RUN_PATH'
18071
18072      case $cc_basename in
18073        CC*)
18074	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18075	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18076	  ;;
18077	*)
18078	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18079	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18080	  ;;
18081      esac
18082      ;;
18083
18084      sysv5* | sco3.2v5* | sco5v6*)
18085	# Note: We CANNOT use -z defs as we might desire, because we do not
18086	# link with -lc, and that would cause any symbols used from libc to
18087	# always be unresolved, which means just about no library would
18088	# ever link correctly.  If we're not using GNU ld we use -z text
18089	# though, which does catch some bad symbols but isn't as heavy-handed
18090	# as -z defs.
18091	no_undefined_flag_CXX='$wl-z,text'
18092	allow_undefined_flag_CXX='$wl-z,nodefs'
18093	archive_cmds_need_lc_CXX=no
18094	hardcode_shlibpath_var_CXX=no
18095	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
18096	hardcode_libdir_separator_CXX=':'
18097	link_all_deplibs_CXX=yes
18098	export_dynamic_flag_spec_CXX='$wl-Bexport'
18099	runpath_var='LD_RUN_PATH'
18100
18101	case $cc_basename in
18102          CC*)
18103	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18104	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18105	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18106              '"$old_archive_cmds_CXX"
18107	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18108              '"$reload_cmds_CXX"
18109	    ;;
18110	  *)
18111	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18112	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18113	    ;;
18114	esac
18115      ;;
18116
18117      tandem*)
18118        case $cc_basename in
18119          NCC*)
18120	    # NonStop-UX NCC 3.20
18121	    # FIXME: insert proper C++ library support
18122	    ld_shlibs_CXX=no
18123	    ;;
18124          *)
18125	    # FIXME: insert proper C++ library support
18126	    ld_shlibs_CXX=no
18127	    ;;
18128        esac
18129        ;;
18130
18131      vxworks*)
18132        # FIXME: insert proper C++ library support
18133        ld_shlibs_CXX=no
18134        ;;
18135
18136      *)
18137        # FIXME: insert proper C++ library support
18138        ld_shlibs_CXX=no
18139        ;;
18140    esac
18141
18142    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18143printf "%s\n" "$ld_shlibs_CXX" >&6; }
18144    test no = "$ld_shlibs_CXX" && can_build_shared=no
18145
18146    GCC_CXX=$GXX
18147    LD_CXX=$LD
18148
18149    ## CAVEAT EMPTOR:
18150    ## There is no encapsulation within the following macros, do not change
18151    ## the running order or otherwise move them around unless you know exactly
18152    ## what you are doing...
18153    # Dependencies to place before and after the object being linked:
18154predep_objects_CXX=
18155postdep_objects_CXX=
18156predeps_CXX=
18157postdeps_CXX=
18158compiler_lib_search_path_CXX=
18159
18160cat > conftest.$ac_ext <<_LT_EOF
18161class Foo
18162{
18163public:
18164  Foo (void) { a = 0; }
18165private:
18166  int a;
18167};
18168_LT_EOF
18169
18170
18171_lt_libdeps_save_CFLAGS=$CFLAGS
18172case "$CC $CFLAGS " in #(
18173*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18174*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18175*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
18176esac
18177
18178if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18179  (eval $ac_compile) 2>&5
18180  ac_status=$?
18181  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182  test $ac_status = 0; }; then
18183  # Parse the compiler output and extract the necessary
18184  # objects, libraries and library flags.
18185
18186  # Sentinel used to keep track of whether or not we are before
18187  # the conftest object file.
18188  pre_test_object_deps_done=no
18189
18190  for p in `eval "$output_verbose_link_cmd"`; do
18191    case $prev$p in
18192
18193    -L* | -R* | -l*)
18194       # Some compilers place space between "-{L,R}" and the path.
18195       # Remove the space.
18196       if test x-L = "$p" ||
18197          test x-R = "$p"; then
18198	 prev=$p
18199	 continue
18200       fi
18201
18202       # Expand the sysroot to ease extracting the directories later.
18203       if test -z "$prev"; then
18204         case $p in
18205         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18206         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18207         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18208         esac
18209       fi
18210       case $p in
18211       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18212       esac
18213       if test no = "$pre_test_object_deps_done"; then
18214	 case $prev in
18215	 -L | -R)
18216	   # Internal compiler library paths should come after those
18217	   # provided the user.  The postdeps already come after the
18218	   # user supplied libs so there is no need to process them.
18219	   if test -z "$compiler_lib_search_path_CXX"; then
18220	     compiler_lib_search_path_CXX=$prev$p
18221	   else
18222	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
18223	   fi
18224	   ;;
18225	 # The "-l" case would never come before the object being
18226	 # linked, so don't bother handling this case.
18227	 esac
18228       else
18229	 if test -z "$postdeps_CXX"; then
18230	   postdeps_CXX=$prev$p
18231	 else
18232	   postdeps_CXX="${postdeps_CXX} $prev$p"
18233	 fi
18234       fi
18235       prev=
18236       ;;
18237
18238    *.lto.$objext) ;; # Ignore GCC LTO objects
18239    *.$objext)
18240       # This assumes that the test object file only shows up
18241       # once in the compiler output.
18242       if test "$p" = "conftest.$objext"; then
18243	 pre_test_object_deps_done=yes
18244	 continue
18245       fi
18246
18247       if test no = "$pre_test_object_deps_done"; then
18248	 if test -z "$predep_objects_CXX"; then
18249	   predep_objects_CXX=$p
18250	 else
18251	   predep_objects_CXX="$predep_objects_CXX $p"
18252	 fi
18253       else
18254	 if test -z "$postdep_objects_CXX"; then
18255	   postdep_objects_CXX=$p
18256	 else
18257	   postdep_objects_CXX="$postdep_objects_CXX $p"
18258	 fi
18259       fi
18260       ;;
18261
18262    *) ;; # Ignore the rest.
18263
18264    esac
18265  done
18266
18267  # Clean up.
18268  rm -f a.out a.exe
18269else
18270  echo "libtool.m4: error: problem compiling CXX test program"
18271fi
18272
18273$RM -f confest.$objext
18274CFLAGS=$_lt_libdeps_save_CFLAGS
18275
18276# PORTME: override above test on systems where it is broken
18277case $host_os in
18278interix[3-9]*)
18279  # Interix 3.5 installs completely hosed .la files for C++, so rather than
18280  # hack all around it, let's just trust "g++" to DTRT.
18281  predep_objects_CXX=
18282  postdep_objects_CXX=
18283  postdeps_CXX=
18284  ;;
18285esac
18286
18287
18288case " $postdeps_CXX " in
18289*" -lc "*) archive_cmds_need_lc_CXX=no ;;
18290esac
18291 compiler_lib_search_dirs_CXX=
18292if test -n "${compiler_lib_search_path_CXX}"; then
18293 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
18294fi
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326    lt_prog_compiler_wl_CXX=
18327lt_prog_compiler_pic_CXX=
18328lt_prog_compiler_static_CXX=
18329
18330
18331  # C++ specific cases for pic, static, wl, etc.
18332  if test yes = "$GXX"; then
18333    lt_prog_compiler_wl_CXX='-Wl,'
18334    lt_prog_compiler_static_CXX='-static'
18335
18336    case $host_os in
18337    aix*)
18338      # All AIX code is PIC.
18339      if test ia64 = "$host_cpu"; then
18340	# AIX 5 now supports IA64 processor
18341	lt_prog_compiler_static_CXX='-Bstatic'
18342      fi
18343      lt_prog_compiler_pic_CXX='-fPIC'
18344      ;;
18345
18346    amigaos*)
18347      case $host_cpu in
18348      powerpc)
18349            # see comment about AmigaOS4 .so support
18350            lt_prog_compiler_pic_CXX='-fPIC'
18351        ;;
18352      m68k)
18353            # FIXME: we need at least 68020 code to build shared libraries, but
18354            # adding the '-m68020' flag to GCC prevents building anything better,
18355            # like '-m68040'.
18356            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18357        ;;
18358      esac
18359      ;;
18360
18361    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18362      # PIC is the default for these OSes.
18363      ;;
18364    mingw* | cygwin* | os2* | pw32* | cegcc*)
18365      # This hack is so that the source file can tell whether it is being
18366      # built for inclusion in a dll (and should export symbols for example).
18367      # Although the cygwin gcc ignores -fPIC, still need this for old-style
18368      # (--disable-auto-import) libraries
18369      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18370      case $host_os in
18371      os2*)
18372	lt_prog_compiler_static_CXX='$wl-static'
18373	;;
18374      esac
18375      ;;
18376    darwin* | rhapsody*)
18377      # PIC is the default on this platform
18378      # Common symbols not allowed in MH_DYLIB files
18379      lt_prog_compiler_pic_CXX='-fno-common'
18380      ;;
18381    *djgpp*)
18382      # DJGPP does not support shared libraries at all
18383      lt_prog_compiler_pic_CXX=
18384      ;;
18385    haiku*)
18386      # PIC is the default for Haiku.
18387      # The "-static" flag exists, but is broken.
18388      lt_prog_compiler_static_CXX=
18389      ;;
18390    interix[3-9]*)
18391      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18392      # Instead, we relocate shared libraries at runtime.
18393      ;;
18394    sysv4*MP*)
18395      if test -d /usr/nec; then
18396	lt_prog_compiler_pic_CXX=-Kconform_pic
18397      fi
18398      ;;
18399    hpux*)
18400      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18401      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18402      # sets the default TLS model and affects inlining.
18403      case $host_cpu in
18404      hppa*64*)
18405	;;
18406      *)
18407	lt_prog_compiler_pic_CXX='-fPIC'
18408	;;
18409      esac
18410      ;;
18411    *qnx* | *nto*)
18412      # QNX uses GNU C++, but need to define -shared option too, otherwise
18413      # it will coredump.
18414      lt_prog_compiler_pic_CXX='-fPIC -shared'
18415      ;;
18416    *)
18417      lt_prog_compiler_pic_CXX='-fPIC'
18418      ;;
18419    esac
18420  else
18421    case $host_os in
18422      aix[4-9]*)
18423	# All AIX code is PIC.
18424	if test ia64 = "$host_cpu"; then
18425	  # AIX 5 now supports IA64 processor
18426	  lt_prog_compiler_static_CXX='-Bstatic'
18427	else
18428	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18429	fi
18430	;;
18431      chorus*)
18432	case $cc_basename in
18433	cxch68*)
18434	  # Green Hills C++ Compiler
18435	  # _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"
18436	  ;;
18437	esac
18438	;;
18439      mingw* | cygwin* | os2* | pw32* | cegcc*)
18440	# This hack is so that the source file can tell whether it is being
18441	# built for inclusion in a dll (and should export symbols for example).
18442	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18443	;;
18444      dgux*)
18445	case $cc_basename in
18446	  ec++*)
18447	    lt_prog_compiler_pic_CXX='-KPIC'
18448	    ;;
18449	  ghcx*)
18450	    # Green Hills C++ Compiler
18451	    lt_prog_compiler_pic_CXX='-pic'
18452	    ;;
18453	  *)
18454	    ;;
18455	esac
18456	;;
18457      freebsd* | dragonfly*)
18458	# FreeBSD uses GNU C++
18459	;;
18460      hpux9* | hpux10* | hpux11*)
18461	case $cc_basename in
18462	  CC*)
18463	    lt_prog_compiler_wl_CXX='-Wl,'
18464	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18465	    if test ia64 != "$host_cpu"; then
18466	      lt_prog_compiler_pic_CXX='+Z'
18467	    fi
18468	    ;;
18469	  aCC*)
18470	    lt_prog_compiler_wl_CXX='-Wl,'
18471	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
18472	    case $host_cpu in
18473	    hppa*64*|ia64*)
18474	      # +Z the default
18475	      ;;
18476	    *)
18477	      lt_prog_compiler_pic_CXX='+Z'
18478	      ;;
18479	    esac
18480	    ;;
18481	  *)
18482	    ;;
18483	esac
18484	;;
18485      interix*)
18486	# This is c89, which is MS Visual C++ (no shared libs)
18487	# Anyone wants to do a port?
18488	;;
18489      irix5* | irix6* | nonstopux*)
18490	case $cc_basename in
18491	  CC*)
18492	    lt_prog_compiler_wl_CXX='-Wl,'
18493	    lt_prog_compiler_static_CXX='-non_shared'
18494	    # CC pic flag -KPIC is the default.
18495	    ;;
18496	  *)
18497	    ;;
18498	esac
18499	;;
18500      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18501	case $cc_basename in
18502	  KCC*)
18503	    # KAI C++ Compiler
18504	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18505	    lt_prog_compiler_pic_CXX='-fPIC'
18506	    ;;
18507	  ecpc* )
18508	    # old Intel C++ for x86_64, which still supported -KPIC.
18509	    lt_prog_compiler_wl_CXX='-Wl,'
18510	    lt_prog_compiler_pic_CXX='-KPIC'
18511	    lt_prog_compiler_static_CXX='-static'
18512	    ;;
18513	  icpc* )
18514	    # Intel C++, used to be incompatible with GCC.
18515	    # ICC 10 doesn't accept -KPIC any more.
18516	    lt_prog_compiler_wl_CXX='-Wl,'
18517	    lt_prog_compiler_pic_CXX='-fPIC'
18518	    lt_prog_compiler_static_CXX='-static'
18519	    ;;
18520	  pgCC* | pgcpp*)
18521	    # Portland Group C++ compiler
18522	    lt_prog_compiler_wl_CXX='-Wl,'
18523	    lt_prog_compiler_pic_CXX='-fpic'
18524	    lt_prog_compiler_static_CXX='-Bstatic'
18525	    ;;
18526	  cxx*)
18527	    # Compaq C++
18528	    # Make sure the PIC flag is empty.  It appears that all Alpha
18529	    # Linux and Compaq Tru64 Unix objects are PIC.
18530	    lt_prog_compiler_pic_CXX=
18531	    lt_prog_compiler_static_CXX='-non_shared'
18532	    ;;
18533	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18534	    # IBM XL 8.0, 9.0 on PPC and BlueGene
18535	    lt_prog_compiler_wl_CXX='-Wl,'
18536	    lt_prog_compiler_pic_CXX='-qpic'
18537	    lt_prog_compiler_static_CXX='-qstaticlink'
18538	    ;;
18539	  *)
18540	    case `$CC -V 2>&1 | sed 5q` in
18541	    *Sun\ C*)
18542	      # Sun C++ 5.9
18543	      lt_prog_compiler_pic_CXX='-KPIC'
18544	      lt_prog_compiler_static_CXX='-Bstatic'
18545	      lt_prog_compiler_wl_CXX='-Qoption ld '
18546	      ;;
18547	    esac
18548	    ;;
18549	esac
18550	;;
18551      lynxos*)
18552	;;
18553      m88k*)
18554	;;
18555      mvs*)
18556	case $cc_basename in
18557	  cxx*)
18558	    lt_prog_compiler_pic_CXX='-W c,exportall'
18559	    ;;
18560	  *)
18561	    ;;
18562	esac
18563	;;
18564      netbsd*)
18565	;;
18566      *qnx* | *nto*)
18567        # QNX uses GNU C++, but need to define -shared option too, otherwise
18568        # it will coredump.
18569        lt_prog_compiler_pic_CXX='-fPIC -shared'
18570        ;;
18571      osf3* | osf4* | osf5*)
18572	case $cc_basename in
18573	  KCC*)
18574	    lt_prog_compiler_wl_CXX='--backend -Wl,'
18575	    ;;
18576	  RCC*)
18577	    # Rational C++ 2.4.1
18578	    lt_prog_compiler_pic_CXX='-pic'
18579	    ;;
18580	  cxx*)
18581	    # Digital/Compaq C++
18582	    lt_prog_compiler_wl_CXX='-Wl,'
18583	    # Make sure the PIC flag is empty.  It appears that all Alpha
18584	    # Linux and Compaq Tru64 Unix objects are PIC.
18585	    lt_prog_compiler_pic_CXX=
18586	    lt_prog_compiler_static_CXX='-non_shared'
18587	    ;;
18588	  *)
18589	    ;;
18590	esac
18591	;;
18592      psos*)
18593	;;
18594      solaris*)
18595	case $cc_basename in
18596	  CC* | sunCC*)
18597	    # Sun C++ 4.2, 5.x and Centerline C++
18598	    lt_prog_compiler_pic_CXX='-KPIC'
18599	    lt_prog_compiler_static_CXX='-Bstatic'
18600	    lt_prog_compiler_wl_CXX='-Qoption ld '
18601	    ;;
18602	  gcx*)
18603	    # Green Hills C++ Compiler
18604	    lt_prog_compiler_pic_CXX='-PIC'
18605	    ;;
18606	  *)
18607	    ;;
18608	esac
18609	;;
18610      sunos4*)
18611	case $cc_basename in
18612	  CC*)
18613	    # Sun C++ 4.x
18614	    lt_prog_compiler_pic_CXX='-pic'
18615	    lt_prog_compiler_static_CXX='-Bstatic'
18616	    ;;
18617	  lcc*)
18618	    # Lucid
18619	    lt_prog_compiler_pic_CXX='-pic'
18620	    ;;
18621	  *)
18622	    ;;
18623	esac
18624	;;
18625      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18626	case $cc_basename in
18627	  CC*)
18628	    lt_prog_compiler_wl_CXX='-Wl,'
18629	    lt_prog_compiler_pic_CXX='-KPIC'
18630	    lt_prog_compiler_static_CXX='-Bstatic'
18631	    ;;
18632	esac
18633	;;
18634      tandem*)
18635	case $cc_basename in
18636	  NCC*)
18637	    # NonStop-UX NCC 3.20
18638	    lt_prog_compiler_pic_CXX='-KPIC'
18639	    ;;
18640	  *)
18641	    ;;
18642	esac
18643	;;
18644      vxworks*)
18645	;;
18646      *)
18647	lt_prog_compiler_can_build_shared_CXX=no
18648	;;
18649    esac
18650  fi
18651
18652case $host_os in
18653  # For platforms that do not support PIC, -DPIC is meaningless:
18654  *djgpp*)
18655    lt_prog_compiler_pic_CXX=
18656    ;;
18657  *)
18658    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18659    ;;
18660esac
18661
18662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18663printf %s "checking for $compiler option to produce PIC... " >&6; }
18664if test ${lt_cv_prog_compiler_pic_CXX+y}
18665then :
18666  printf %s "(cached) " >&6
18667else $as_nop
18668  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18669fi
18670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18671printf "%s\n" "$lt_cv_prog_compiler_pic_CXX" >&6; }
18672lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18673
18674#
18675# Check to make sure the PIC flag actually works.
18676#
18677if test -n "$lt_prog_compiler_pic_CXX"; then
18678  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18679printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18680if test ${lt_cv_prog_compiler_pic_works_CXX+y}
18681then :
18682  printf %s "(cached) " >&6
18683else $as_nop
18684  lt_cv_prog_compiler_pic_works_CXX=no
18685   ac_outfile=conftest.$ac_objext
18686   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18687   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
18688   # Insert the option either (1) after the last *FLAGS variable, or
18689   # (2) before a word containing "conftest.", or (3) at the end.
18690   # Note that $ac_compile itself does not contain backslashes and begins
18691   # with a dollar sign (not a hyphen), so the echo should work correctly.
18692   # The option is referenced via a variable to avoid confusing sed.
18693   lt_compile=`echo "$ac_compile" | $SED \
18694   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18695   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18696   -e 's:$: $lt_compiler_flag:'`
18697   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18698   (eval "$lt_compile" 2>conftest.err)
18699   ac_status=$?
18700   cat conftest.err >&5
18701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702   if (exit $ac_status) && test -s "$ac_outfile"; then
18703     # The compiler can only warn and ignore the option if not recognized
18704     # So say no if there are warnings other than the usual output.
18705     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18706     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18707     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18708       lt_cv_prog_compiler_pic_works_CXX=yes
18709     fi
18710   fi
18711   $RM conftest*
18712
18713fi
18714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18715printf "%s\n" "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18716
18717if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
18718    case $lt_prog_compiler_pic_CXX in
18719     "" | " "*) ;;
18720     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18721     esac
18722else
18723    lt_prog_compiler_pic_CXX=
18724     lt_prog_compiler_can_build_shared_CXX=no
18725fi
18726
18727fi
18728
18729
18730
18731
18732
18733#
18734# Check to make sure the static flag actually works.
18735#
18736wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18738printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18739if test ${lt_cv_prog_compiler_static_works_CXX+y}
18740then :
18741  printf %s "(cached) " >&6
18742else $as_nop
18743  lt_cv_prog_compiler_static_works_CXX=no
18744   save_LDFLAGS=$LDFLAGS
18745   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18746   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18747   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18748     # The linker can only warn and ignore the option if not recognized
18749     # So say no if there are warnings
18750     if test -s conftest.err; then
18751       # Append any errors to the config.log.
18752       cat conftest.err 1>&5
18753       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18754       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18755       if diff conftest.exp conftest.er2 >/dev/null; then
18756         lt_cv_prog_compiler_static_works_CXX=yes
18757       fi
18758     else
18759       lt_cv_prog_compiler_static_works_CXX=yes
18760     fi
18761   fi
18762   $RM -r conftest*
18763   LDFLAGS=$save_LDFLAGS
18764
18765fi
18766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18767printf "%s\n" "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18768
18769if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
18770    :
18771else
18772    lt_prog_compiler_static_CXX=
18773fi
18774
18775
18776
18777
18778    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18779printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18780if test ${lt_cv_prog_compiler_c_o_CXX+y}
18781then :
18782  printf %s "(cached) " >&6
18783else $as_nop
18784  lt_cv_prog_compiler_c_o_CXX=no
18785   $RM -r conftest 2>/dev/null
18786   mkdir conftest
18787   cd conftest
18788   mkdir out
18789   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18790
18791   lt_compiler_flag="-o out/conftest2.$ac_objext"
18792   # Insert the option either (1) after the last *FLAGS variable, or
18793   # (2) before a word containing "conftest.", or (3) at the end.
18794   # Note that $ac_compile itself does not contain backslashes and begins
18795   # with a dollar sign (not a hyphen), so the echo should work correctly.
18796   lt_compile=`echo "$ac_compile" | $SED \
18797   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18798   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18799   -e 's:$: $lt_compiler_flag:'`
18800   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18801   (eval "$lt_compile" 2>out/conftest.err)
18802   ac_status=$?
18803   cat out/conftest.err >&5
18804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18806   then
18807     # The compiler can only warn and ignore the option if not recognized
18808     # So say no if there are warnings
18809     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18810     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18811     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18812       lt_cv_prog_compiler_c_o_CXX=yes
18813     fi
18814   fi
18815   chmod u+w . 2>&5
18816   $RM conftest*
18817   # SGI C++ compiler will create directory out/ii_files/ for
18818   # template instantiation
18819   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18820   $RM out/* && rmdir out
18821   cd ..
18822   $RM -r conftest
18823   $RM conftest*
18824
18825fi
18826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18827printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18828
18829
18830
18831    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18832printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18833if test ${lt_cv_prog_compiler_c_o_CXX+y}
18834then :
18835  printf %s "(cached) " >&6
18836else $as_nop
18837  lt_cv_prog_compiler_c_o_CXX=no
18838   $RM -r conftest 2>/dev/null
18839   mkdir conftest
18840   cd conftest
18841   mkdir out
18842   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18843
18844   lt_compiler_flag="-o out/conftest2.$ac_objext"
18845   # Insert the option either (1) after the last *FLAGS variable, or
18846   # (2) before a word containing "conftest.", or (3) at the end.
18847   # Note that $ac_compile itself does not contain backslashes and begins
18848   # with a dollar sign (not a hyphen), so the echo should work correctly.
18849   lt_compile=`echo "$ac_compile" | $SED \
18850   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18851   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18852   -e 's:$: $lt_compiler_flag:'`
18853   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18854   (eval "$lt_compile" 2>out/conftest.err)
18855   ac_status=$?
18856   cat out/conftest.err >&5
18857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18858   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18859   then
18860     # The compiler can only warn and ignore the option if not recognized
18861     # So say no if there are warnings
18862     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18863     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18864     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18865       lt_cv_prog_compiler_c_o_CXX=yes
18866     fi
18867   fi
18868   chmod u+w . 2>&5
18869   $RM conftest*
18870   # SGI C++ compiler will create directory out/ii_files/ for
18871   # template instantiation
18872   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18873   $RM out/* && rmdir out
18874   cd ..
18875   $RM -r conftest
18876   $RM conftest*
18877
18878fi
18879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18880printf "%s\n" "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18881
18882
18883
18884
18885hard_links=nottested
18886if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
18887  # do not overwrite the value of need_locks provided by the user
18888  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18889printf %s "checking if we can lock with hard links... " >&6; }
18890  hard_links=yes
18891  $RM conftest*
18892  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18893  touch conftest.a
18894  ln conftest.a conftest.b 2>&5 || hard_links=no
18895  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18896  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18897printf "%s\n" "$hard_links" >&6; }
18898  if test no = "$hard_links"; then
18899    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18900printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18901    need_locks=warn
18902  fi
18903else
18904  need_locks=no
18905fi
18906
18907
18908
18909    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18910printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18911
18912  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18913  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18914  case $host_os in
18915  aix[4-9]*)
18916    # If we're using GNU nm, then we don't want the "-C" option.
18917    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
18918    # Without the "-l" option, or with the "-B" option, AIX nm treats
18919    # weak defined symbols like other global defined symbols, whereas
18920    # GNU nm marks them as "W".
18921    # While the 'weak' keyword is ignored in the Export File, we need
18922    # it in the Import File for the 'aix-soname' feature, so we have
18923    # to replace the "-B" option with "-P" for AIX nm.
18924    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18925      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'
18926    else
18927      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'
18928    fi
18929    ;;
18930  pw32*)
18931    export_symbols_cmds_CXX=$ltdll_cmds
18932    ;;
18933  cygwin* | mingw* | cegcc*)
18934    case $cc_basename in
18935    cl*)
18936      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18937      ;;
18938    *)
18939      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'
18940      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18941      ;;
18942    esac
18943    ;;
18944  *)
18945    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18946    ;;
18947  esac
18948
18949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18950printf "%s\n" "$ld_shlibs_CXX" >&6; }
18951test no = "$ld_shlibs_CXX" && can_build_shared=no
18952
18953with_gnu_ld_CXX=$with_gnu_ld
18954
18955
18956
18957
18958
18959
18960#
18961# Do we need to explicitly link libc?
18962#
18963case "x$archive_cmds_need_lc_CXX" in
18964x|xyes)
18965  # Assume -lc should be added
18966  archive_cmds_need_lc_CXX=yes
18967
18968  if test yes,yes = "$GCC,$enable_shared"; then
18969    case $archive_cmds_CXX in
18970    *'~'*)
18971      # FIXME: we may have to deal with multi-command sequences.
18972      ;;
18973    '$CC '*)
18974      # Test whether the compiler implicitly links with -lc since on some
18975      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18976      # to ld, don't add -lc before -lgcc.
18977      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18978printf %s "checking whether -lc should be explicitly linked in... " >&6; }
18979if test ${lt_cv_archive_cmds_need_lc_CXX+y}
18980then :
18981  printf %s "(cached) " >&6
18982else $as_nop
18983  $RM conftest*
18984	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18985
18986	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18987  (eval $ac_compile) 2>&5
18988  ac_status=$?
18989  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18990  test $ac_status = 0; } 2>conftest.err; then
18991	  soname=conftest
18992	  lib=conftest
18993	  libobjs=conftest.$ac_objext
18994	  deplibs=
18995	  wl=$lt_prog_compiler_wl_CXX
18996	  pic_flag=$lt_prog_compiler_pic_CXX
18997	  compiler_flags=-v
18998	  linker_flags=-v
18999	  verstring=
19000	  output_objdir=.
19001	  libname=conftest
19002	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19003	  allow_undefined_flag_CXX=
19004	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19005  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19006  ac_status=$?
19007  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19008  test $ac_status = 0; }
19009	  then
19010	    lt_cv_archive_cmds_need_lc_CXX=no
19011	  else
19012	    lt_cv_archive_cmds_need_lc_CXX=yes
19013	  fi
19014	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19015	else
19016	  cat conftest.err 1>&5
19017	fi
19018	$RM conftest*
19019
19020fi
19021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19022printf "%s\n" "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19023      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19024      ;;
19025    esac
19026  fi
19027  ;;
19028esac
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050
19051
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19092printf %s "checking dynamic linker characteristics... " >&6; }
19093
19094library_names_spec=
19095libname_spec='lib$name'
19096soname_spec=
19097shrext_cmds=.so
19098postinstall_cmds=
19099postuninstall_cmds=
19100finish_cmds=
19101finish_eval=
19102shlibpath_var=
19103shlibpath_overrides_runpath=unknown
19104version_type=none
19105dynamic_linker="$host_os ld.so"
19106sys_lib_dlsearch_path_spec="/lib /usr/lib"
19107need_lib_prefix=unknown
19108hardcode_into_libs=no
19109
19110# when you set need_version to no, make sure it does not cause -set_version
19111# flags to be left without arguments
19112need_version=unknown
19113
19114
19115
19116case $host_os in
19117aix3*)
19118  version_type=linux # correct to gnu/linux during the next big refactor
19119  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19120  shlibpath_var=LIBPATH
19121
19122  # AIX 3 has no versioning support, so we append a major version to the name.
19123  soname_spec='$libname$release$shared_ext$major'
19124  ;;
19125
19126aix[4-9]*)
19127  version_type=linux # correct to gnu/linux during the next big refactor
19128  need_lib_prefix=no
19129  need_version=no
19130  hardcode_into_libs=yes
19131  if test ia64 = "$host_cpu"; then
19132    # AIX 5 supports IA64
19133    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19134    shlibpath_var=LD_LIBRARY_PATH
19135  else
19136    # With GCC up to 2.95.x, collect2 would create an import file
19137    # for dependence libraries.  The import file would start with
19138    # the line '#! .'.  This would cause the generated library to
19139    # depend on '.', always an invalid library.  This was fixed in
19140    # development snapshots of GCC prior to 3.0.
19141    case $host_os in
19142      aix4 | aix4.[01] | aix4.[01].*)
19143      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19144	   echo ' yes '
19145	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19146	:
19147      else
19148	can_build_shared=no
19149      fi
19150      ;;
19151    esac
19152    # Using Import Files as archive members, it is possible to support
19153    # filename-based versioning of shared library archives on AIX. While
19154    # this would work for both with and without runtime linking, it will
19155    # prevent static linking of such archives. So we do filename-based
19156    # shared library versioning with .so extension only, which is used
19157    # when both runtime linking and shared linking is enabled.
19158    # Unfortunately, runtime linking may impact performance, so we do
19159    # not want this to be the default eventually. Also, we use the
19160    # versioned .so libs for executables only if there is the -brtl
19161    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19162    # To allow for filename-based versioning support, we need to create
19163    # libNAME.so.V as an archive file, containing:
19164    # *) an Import File, referring to the versioned filename of the
19165    #    archive as well as the shared archive member, telling the
19166    #    bitwidth (32 or 64) of that shared object, and providing the
19167    #    list of exported symbols of that shared object, eventually
19168    #    decorated with the 'weak' keyword
19169    # *) the shared object with the F_LOADONLY flag set, to really avoid
19170    #    it being seen by the linker.
19171    # At run time we better use the real file rather than another symlink,
19172    # but for link time we create the symlink libNAME.so -> libNAME.so.V
19173
19174    case $with_aix_soname,$aix_use_runtimelinking in
19175    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19176    # soname into executable. Probably we can add versioning support to
19177    # collect2, so additional links can be useful in future.
19178    aix,yes) # traditional libtool
19179      dynamic_linker='AIX unversionable lib.so'
19180      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19181      # instead of lib<name>.a to let people know that these are not
19182      # typical AIX shared libraries.
19183      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19184      ;;
19185    aix,no) # traditional AIX only
19186      dynamic_linker='AIX lib.a(lib.so.V)'
19187      # We preserve .a as extension for shared libraries through AIX4.2
19188      # and later when we are not doing run time linking.
19189      library_names_spec='$libname$release.a $libname.a'
19190      soname_spec='$libname$release$shared_ext$major'
19191      ;;
19192    svr4,*) # full svr4 only
19193      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19194      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19195      # We do not specify a path in Import Files, so LIBPATH fires.
19196      shlibpath_overrides_runpath=yes
19197      ;;
19198    *,yes) # both, prefer svr4
19199      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19200      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19201      # unpreferred sharedlib libNAME.a needs extra handling
19202      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"'
19203      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"'
19204      # We do not specify a path in Import Files, so LIBPATH fires.
19205      shlibpath_overrides_runpath=yes
19206      ;;
19207    *,no) # both, prefer aix
19208      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19209      library_names_spec='$libname$release.a $libname.a'
19210      soname_spec='$libname$release$shared_ext$major'
19211      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19212      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)'
19213      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"'
19214      ;;
19215    esac
19216    shlibpath_var=LIBPATH
19217  fi
19218  ;;
19219
19220amigaos*)
19221  case $host_cpu in
19222  powerpc)
19223    # Since July 2007 AmigaOS4 officially supports .so libraries.
19224    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19225    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19226    ;;
19227  m68k)
19228    library_names_spec='$libname.ixlibrary $libname.a'
19229    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19230    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'
19231    ;;
19232  esac
19233  ;;
19234
19235beos*)
19236  library_names_spec='$libname$shared_ext'
19237  dynamic_linker="$host_os ld.so"
19238  shlibpath_var=LIBRARY_PATH
19239  ;;
19240
19241bsdi[45]*)
19242  version_type=linux # correct to gnu/linux during the next big refactor
19243  need_version=no
19244  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19245  soname_spec='$libname$release$shared_ext$major'
19246  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19247  shlibpath_var=LD_LIBRARY_PATH
19248  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19249  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19250  # the default ld.so.conf also contains /usr/contrib/lib and
19251  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19252  # libtool to hard-code these into programs
19253  ;;
19254
19255cygwin* | mingw* | pw32* | cegcc*)
19256  version_type=windows
19257  shrext_cmds=.dll
19258  need_version=no
19259  need_lib_prefix=no
19260
19261  case $GCC,$cc_basename in
19262  yes,*)
19263    # gcc
19264    library_names_spec='$libname.dll.a'
19265    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19266    postinstall_cmds='base_file=`basename \$file`~
19267      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19268      dldir=$destdir/`dirname \$dlpath`~
19269      test -d \$dldir || mkdir -p \$dldir~
19270      $install_prog $dir/$dlname \$dldir/$dlname~
19271      chmod a+x \$dldir/$dlname~
19272      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19273        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19274      fi'
19275    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19276      dlpath=$dir/\$dldll~
19277       $RM \$dlpath'
19278    shlibpath_overrides_runpath=yes
19279
19280    case $host_os in
19281    cygwin*)
19282      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19283      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19284
19285      ;;
19286    mingw* | cegcc*)
19287      # MinGW DLLs use traditional 'lib' prefix
19288      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19289      ;;
19290    pw32*)
19291      # pw32 DLLs use 'pw' prefix rather than 'lib'
19292      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19293      ;;
19294    esac
19295    dynamic_linker='Win32 ld.exe'
19296    ;;
19297
19298  *,cl*)
19299    # Native MSVC
19300    libname_spec='$name'
19301    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19302    library_names_spec='$libname.dll.lib'
19303
19304    case $build_os in
19305    mingw*)
19306      sys_lib_search_path_spec=
19307      lt_save_ifs=$IFS
19308      IFS=';'
19309      for lt_path in $LIB
19310      do
19311        IFS=$lt_save_ifs
19312        # Let DOS variable expansion print the short 8.3 style file name.
19313        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19314        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19315      done
19316      IFS=$lt_save_ifs
19317      # Convert to MSYS style.
19318      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19319      ;;
19320    cygwin*)
19321      # Convert to unix form, then to dos form, then back to unix form
19322      # but this time dos style (no spaces!) so that the unix form looks
19323      # like /cygdrive/c/PROGRA~1:/cygdr...
19324      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19325      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19326      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19327      ;;
19328    *)
19329      sys_lib_search_path_spec=$LIB
19330      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19331        # It is most probably a Windows format PATH.
19332        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19333      else
19334        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19335      fi
19336      # FIXME: find the short name or the path components, as spaces are
19337      # common. (e.g. "Program Files" -> "PROGRA~1")
19338      ;;
19339    esac
19340
19341    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19342    postinstall_cmds='base_file=`basename \$file`~
19343      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19344      dldir=$destdir/`dirname \$dlpath`~
19345      test -d \$dldir || mkdir -p \$dldir~
19346      $install_prog $dir/$dlname \$dldir/$dlname'
19347    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19348      dlpath=$dir/\$dldll~
19349       $RM \$dlpath'
19350    shlibpath_overrides_runpath=yes
19351    dynamic_linker='Win32 link.exe'
19352    ;;
19353
19354  *)
19355    # Assume MSVC wrapper
19356    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19357    dynamic_linker='Win32 ld.exe'
19358    ;;
19359  esac
19360  # FIXME: first we should search . and the directory the executable is in
19361  shlibpath_var=PATH
19362  ;;
19363
19364darwin* | rhapsody*)
19365  dynamic_linker="$host_os dyld"
19366  version_type=darwin
19367  need_lib_prefix=no
19368  need_version=no
19369  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
19370  soname_spec='$libname$release$major$shared_ext'
19371  shlibpath_overrides_runpath=yes
19372  shlibpath_var=DYLD_LIBRARY_PATH
19373  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
19374
19375  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19376  ;;
19377
19378dgux*)
19379  version_type=linux # correct to gnu/linux during the next big refactor
19380  need_lib_prefix=no
19381  need_version=no
19382  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19383  soname_spec='$libname$release$shared_ext$major'
19384  shlibpath_var=LD_LIBRARY_PATH
19385  ;;
19386
19387freebsd* | dragonfly*)
19388  # DragonFly does not have aout.  When/if they implement a new
19389  # versioning mechanism, adjust this.
19390  if test -x /usr/bin/objformat; then
19391    objformat=`/usr/bin/objformat`
19392  else
19393    case $host_os in
19394    freebsd[23].*) objformat=aout ;;
19395    *) objformat=elf ;;
19396    esac
19397  fi
19398  # Handle Gentoo/FreeBSD as it was Linux
19399  case $host_vendor in
19400    gentoo)
19401      version_type=linux ;;
19402    *)
19403      version_type=freebsd-$objformat ;;
19404  esac
19405
19406  case $version_type in
19407    freebsd-elf*)
19408      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19409      soname_spec='$libname$release$shared_ext$major'
19410      need_version=no
19411      need_lib_prefix=no
19412      ;;
19413    freebsd-*)
19414      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19415      need_version=yes
19416      ;;
19417    linux)
19418      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19419      soname_spec='${libname}${release}${shared_ext}$major'
19420      need_lib_prefix=no
19421      need_version=no
19422      ;;
19423  esac
19424  shlibpath_var=LD_LIBRARY_PATH
19425  case $host_os in
19426  freebsd2.*)
19427    shlibpath_overrides_runpath=yes
19428    ;;
19429  freebsd3.[01]* | freebsdelf3.[01]*)
19430    shlibpath_overrides_runpath=yes
19431    hardcode_into_libs=yes
19432    ;;
19433  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19434  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19435    shlibpath_overrides_runpath=no
19436    hardcode_into_libs=yes
19437    ;;
19438  *) # from 4.6 on, and DragonFly
19439    shlibpath_overrides_runpath=yes
19440    hardcode_into_libs=yes
19441    ;;
19442  esac
19443  ;;
19444
19445haiku*)
19446  version_type=linux # correct to gnu/linux during the next big refactor
19447  need_lib_prefix=no
19448  need_version=no
19449  dynamic_linker="$host_os runtime_loader"
19450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19451  soname_spec='$libname$release$shared_ext$major'
19452  shlibpath_var=LIBRARY_PATH
19453  shlibpath_overrides_runpath=no
19454  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19455  hardcode_into_libs=yes
19456  ;;
19457
19458hpux9* | hpux10* | hpux11*)
19459  # Give a soname corresponding to the major version so that dld.sl refuses to
19460  # link against other versions.
19461  version_type=sunos
19462  need_lib_prefix=no
19463  need_version=no
19464  case $host_cpu in
19465  ia64*)
19466    shrext_cmds='.so'
19467    hardcode_into_libs=yes
19468    dynamic_linker="$host_os dld.so"
19469    shlibpath_var=LD_LIBRARY_PATH
19470    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19471    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19472    soname_spec='$libname$release$shared_ext$major'
19473    if test 32 = "$HPUX_IA64_MODE"; then
19474      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19475      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19476    else
19477      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19478      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19479    fi
19480    ;;
19481  hppa*64*)
19482    shrext_cmds='.sl'
19483    hardcode_into_libs=yes
19484    dynamic_linker="$host_os dld.sl"
19485    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19486    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19487    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19488    soname_spec='$libname$release$shared_ext$major'
19489    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19490    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19491    ;;
19492  *)
19493    shrext_cmds='.sl'
19494    dynamic_linker="$host_os dld.sl"
19495    shlibpath_var=SHLIB_PATH
19496    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19497    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19498    soname_spec='$libname$release$shared_ext$major'
19499    ;;
19500  esac
19501  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19502  postinstall_cmds='chmod 555 $lib'
19503  # or fails outright, so override atomically:
19504  install_override_mode=555
19505  ;;
19506
19507interix[3-9]*)
19508  version_type=linux # correct to gnu/linux during the next big refactor
19509  need_lib_prefix=no
19510  need_version=no
19511  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19512  soname_spec='$libname$release$shared_ext$major'
19513  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19514  shlibpath_var=LD_LIBRARY_PATH
19515  shlibpath_overrides_runpath=no
19516  hardcode_into_libs=yes
19517  ;;
19518
19519irix5* | irix6* | nonstopux*)
19520  case $host_os in
19521    nonstopux*) version_type=nonstopux ;;
19522    *)
19523	if test yes = "$lt_cv_prog_gnu_ld"; then
19524		version_type=linux # correct to gnu/linux during the next big refactor
19525	else
19526		version_type=irix
19527	fi ;;
19528  esac
19529  need_lib_prefix=no
19530  need_version=no
19531  soname_spec='$libname$release$shared_ext$major'
19532  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19533  case $host_os in
19534  irix5* | nonstopux*)
19535    libsuff= shlibsuff=
19536    ;;
19537  *)
19538    case $LD in # libtool.m4 will add one of these switches to LD
19539    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19540      libsuff= shlibsuff= libmagic=32-bit;;
19541    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19542      libsuff=32 shlibsuff=N32 libmagic=N32;;
19543    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19544      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19545    *) libsuff= shlibsuff= libmagic=never-match;;
19546    esac
19547    ;;
19548  esac
19549  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19550  shlibpath_overrides_runpath=no
19551  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19552  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19553  hardcode_into_libs=yes
19554  ;;
19555
19556# No shared lib support for Linux oldld, aout, or coff.
19557linux*oldld* | linux*aout* | linux*coff*)
19558  dynamic_linker=no
19559  ;;
19560
19561linux*android*)
19562  version_type=none # Android doesn't support versioned libraries.
19563  need_lib_prefix=no
19564  need_version=no
19565  library_names_spec='$libname$release$shared_ext'
19566  soname_spec='$libname$release$shared_ext'
19567  finish_cmds=
19568  shlibpath_var=LD_LIBRARY_PATH
19569  shlibpath_overrides_runpath=yes
19570
19571  # This implies no fast_install, which is unacceptable.
19572  # Some rework will be needed to allow for fast_install
19573  # before this can be enabled.
19574  hardcode_into_libs=yes
19575
19576  dynamic_linker='Android linker'
19577  # Don't embed -rpath directories since the linker doesn't support them.
19578  hardcode_libdir_flag_spec_CXX='-L$libdir'
19579  ;;
19580
19581# This must be glibc/ELF.
19582linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19583  version_type=linux # correct to gnu/linux during the next big refactor
19584  need_lib_prefix=no
19585  need_version=no
19586  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19587  soname_spec='$libname$release$shared_ext$major'
19588  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19589  shlibpath_var=LD_LIBRARY_PATH
19590  shlibpath_overrides_runpath=no
19591
19592  # Some binutils ld are patched to set DT_RUNPATH
19593  if test ${lt_cv_shlibpath_overrides_runpath+y}
19594then :
19595  printf %s "(cached) " >&6
19596else $as_nop
19597  lt_cv_shlibpath_overrides_runpath=no
19598    save_LDFLAGS=$LDFLAGS
19599    save_libdir=$libdir
19600    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19601	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19602    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19603/* end confdefs.h.  */
19604
19605#ifdef FC_DUMMY_MAIN
19606#ifndef FC_DUMMY_MAIN_EQ_F77
19607#  ifdef __cplusplus
19608     extern "C"
19609#  endif
19610   int FC_DUMMY_MAIN() { return 1; }
19611#endif
19612#endif
19613int
19614main (void)
19615{
19616
19617  ;
19618  return 0;
19619}
19620_ACEOF
19621if ac_fn_cxx_try_link "$LINENO"
19622then :
19623  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
19624then :
19625  lt_cv_shlibpath_overrides_runpath=yes
19626fi
19627fi
19628rm -f core conftest.err conftest.$ac_objext conftest.beam \
19629    conftest$ac_exeext conftest.$ac_ext
19630    LDFLAGS=$save_LDFLAGS
19631    libdir=$save_libdir
19632
19633fi
19634
19635  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19636
19637  # This implies no fast_install, which is unacceptable.
19638  # Some rework will be needed to allow for fast_install
19639  # before this can be enabled.
19640  hardcode_into_libs=yes
19641
19642  # Ideally, we could use ldconfig to report *all* directores which are
19643  # searched for libraries, however this is still not possible.  Aside from not
19644  # being certain /sbin/ldconfig is available, command
19645  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19646  # even though it is searched at run-time.  Try to do the best guess by
19647  # appending ld.so.conf contents (and includes) to the search path.
19648  if test -f /etc/ld.so.conf; then
19649    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' ' '`
19650    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19651  fi
19652
19653  # We used to test for /lib/ld.so.1 and disable shared libraries on
19654  # powerpc, because MkLinux only supported shared libraries with the
19655  # GNU dynamic linker.  Since this was broken with cross compilers,
19656  # most powerpc-linux boxes support dynamic linking these days and
19657  # people can always --disable-shared, the test was removed, and we
19658  # assume the GNU/Linux dynamic linker is in use.
19659  dynamic_linker='GNU/Linux ld.so'
19660  ;;
19661
19662netbsd*)
19663  version_type=sunos
19664  need_lib_prefix=no
19665  need_version=no
19666  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19667    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19668    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19669    dynamic_linker='NetBSD (a.out) ld.so'
19670  else
19671    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19672    soname_spec='$libname$release$shared_ext$major'
19673    dynamic_linker='NetBSD ld.elf_so'
19674  fi
19675  shlibpath_var=LD_LIBRARY_PATH
19676  shlibpath_overrides_runpath=yes
19677  hardcode_into_libs=yes
19678  ;;
19679
19680newsos6)
19681  version_type=linux # correct to gnu/linux during the next big refactor
19682  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19683  shlibpath_var=LD_LIBRARY_PATH
19684  shlibpath_overrides_runpath=yes
19685  ;;
19686
19687*nto* | *qnx*)
19688  version_type=qnx
19689  need_lib_prefix=no
19690  need_version=no
19691  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19692  soname_spec='$libname$release$shared_ext$major'
19693  shlibpath_var=LD_LIBRARY_PATH
19694  shlibpath_overrides_runpath=no
19695  hardcode_into_libs=yes
19696  dynamic_linker='ldqnx.so'
19697  ;;
19698
19699openbsd* | bitrig*)
19700  version_type=sunos
19701  sys_lib_dlsearch_path_spec=/usr/lib
19702  need_lib_prefix=no
19703  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19704    need_version=no
19705  else
19706    need_version=yes
19707  fi
19708  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19709  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19710  shlibpath_var=LD_LIBRARY_PATH
19711  shlibpath_overrides_runpath=yes
19712  ;;
19713
19714os2*)
19715  libname_spec='$name'
19716  version_type=windows
19717  shrext_cmds=.dll
19718  need_version=no
19719  need_lib_prefix=no
19720  # OS/2 can only load a DLL with a base name of 8 characters or less.
19721  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19722    v=$($ECHO $release$versuffix | tr -d .-);
19723    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19724    $ECHO $n$v`$shared_ext'
19725  library_names_spec='${libname}_dll.$libext'
19726  dynamic_linker='OS/2 ld.exe'
19727  shlibpath_var=BEGINLIBPATH
19728  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19729  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19730  postinstall_cmds='base_file=`basename \$file`~
19731    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19732    dldir=$destdir/`dirname \$dlpath`~
19733    test -d \$dldir || mkdir -p \$dldir~
19734    $install_prog $dir/$dlname \$dldir/$dlname~
19735    chmod a+x \$dldir/$dlname~
19736    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19737      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19738    fi'
19739  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19740    dlpath=$dir/\$dldll~
19741    $RM \$dlpath'
19742  ;;
19743
19744osf3* | osf4* | osf5*)
19745  version_type=osf
19746  need_lib_prefix=no
19747  need_version=no
19748  soname_spec='$libname$release$shared_ext$major'
19749  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19750  shlibpath_var=LD_LIBRARY_PATH
19751  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19752  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19753  ;;
19754
19755rdos*)
19756  dynamic_linker=no
19757  ;;
19758
19759solaris*)
19760  version_type=linux # correct to gnu/linux during the next big refactor
19761  need_lib_prefix=no
19762  need_version=no
19763  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19764  soname_spec='$libname$release$shared_ext$major'
19765  shlibpath_var=LD_LIBRARY_PATH
19766  shlibpath_overrides_runpath=yes
19767  hardcode_into_libs=yes
19768  # ldd complains unless libraries are executable
19769  postinstall_cmds='chmod +x $lib'
19770  ;;
19771
19772sunos4*)
19773  version_type=sunos
19774  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19775  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19776  shlibpath_var=LD_LIBRARY_PATH
19777  shlibpath_overrides_runpath=yes
19778  if test yes = "$with_gnu_ld"; then
19779    need_lib_prefix=no
19780  fi
19781  need_version=yes
19782  ;;
19783
19784sysv4 | sysv4.3*)
19785  version_type=linux # correct to gnu/linux during the next big refactor
19786  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19787  soname_spec='$libname$release$shared_ext$major'
19788  shlibpath_var=LD_LIBRARY_PATH
19789  case $host_vendor in
19790    sni)
19791      shlibpath_overrides_runpath=no
19792      need_lib_prefix=no
19793      runpath_var=LD_RUN_PATH
19794      ;;
19795    siemens)
19796      need_lib_prefix=no
19797      ;;
19798    motorola)
19799      need_lib_prefix=no
19800      need_version=no
19801      shlibpath_overrides_runpath=no
19802      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19803      ;;
19804  esac
19805  ;;
19806
19807sysv4*MP*)
19808  if test -d /usr/nec; then
19809    version_type=linux # correct to gnu/linux during the next big refactor
19810    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19811    soname_spec='$libname$shared_ext.$major'
19812    shlibpath_var=LD_LIBRARY_PATH
19813  fi
19814  ;;
19815
19816sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19817  version_type=sco
19818  need_lib_prefix=no
19819  need_version=no
19820  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19821  soname_spec='$libname$release$shared_ext$major'
19822  shlibpath_var=LD_LIBRARY_PATH
19823  shlibpath_overrides_runpath=yes
19824  hardcode_into_libs=yes
19825  if test yes = "$with_gnu_ld"; then
19826    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19827  else
19828    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19829    case $host_os in
19830      sco3.2v5*)
19831        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19832	;;
19833    esac
19834  fi
19835  sys_lib_dlsearch_path_spec='/usr/lib'
19836  ;;
19837
19838tpf*)
19839  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19840  version_type=linux # correct to gnu/linux during the next big refactor
19841  need_lib_prefix=no
19842  need_version=no
19843  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19844  shlibpath_var=LD_LIBRARY_PATH
19845  shlibpath_overrides_runpath=no
19846  hardcode_into_libs=yes
19847  ;;
19848
19849uts4*)
19850  version_type=linux # correct to gnu/linux during the next big refactor
19851  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19852  soname_spec='$libname$release$shared_ext$major'
19853  shlibpath_var=LD_LIBRARY_PATH
19854  ;;
19855
19856*)
19857  dynamic_linker=no
19858  ;;
19859esac
19860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19861printf "%s\n" "$dynamic_linker" >&6; }
19862test no = "$dynamic_linker" && can_build_shared=no
19863
19864variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19865if test yes = "$GCC"; then
19866  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19867fi
19868
19869if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19870  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19871fi
19872
19873if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19874  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19875fi
19876
19877# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19878configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19879
19880# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19881func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19882
19883# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19884configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894
19895
19896
19897
19898
19899
19900
19901
19902
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923
19924
19925    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19926printf %s "checking how to hardcode library paths into programs... " >&6; }
19927hardcode_action_CXX=
19928if test -n "$hardcode_libdir_flag_spec_CXX" ||
19929   test -n "$runpath_var_CXX" ||
19930   test yes = "$hardcode_automatic_CXX"; then
19931
19932  # We can hardcode non-existent directories.
19933  if test no != "$hardcode_direct_CXX" &&
19934     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19935     # have to relink, otherwise we might link with an installed library
19936     # when we should be linking with a yet-to-be-installed one
19937     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
19938     test no != "$hardcode_minus_L_CXX"; then
19939    # Linking always hardcodes the temporary library directory.
19940    hardcode_action_CXX=relink
19941  else
19942    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19943    hardcode_action_CXX=immediate
19944  fi
19945else
19946  # We cannot hardcode anything, or else we can only hardcode existing
19947  # directories.
19948  hardcode_action_CXX=unsupported
19949fi
19950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19951printf "%s\n" "$hardcode_action_CXX" >&6; }
19952
19953if test relink = "$hardcode_action_CXX" ||
19954   test yes = "$inherit_rpath_CXX"; then
19955  # Fast installation is not supported
19956  enable_fast_install=no
19957elif test yes = "$shlibpath_overrides_runpath" ||
19958     test no = "$enable_shared"; then
19959  # Fast installation is not necessary
19960  enable_fast_install=needless
19961fi
19962
19963
19964
19965
19966
19967
19968
19969  fi # test -n "$compiler"
19970
19971  CC=$lt_save_CC
19972  CFLAGS=$lt_save_CFLAGS
19973  LDCXX=$LD
19974  LD=$lt_save_LD
19975  GCC=$lt_save_GCC
19976  with_gnu_ld=$lt_save_with_gnu_ld
19977  lt_cv_path_LDCXX=$lt_cv_path_LD
19978  lt_cv_path_LD=$lt_save_path_LD
19979  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19980  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19981fi # test yes != "$_lt_caught_CXX_error"
19982
19983ac_ext=cpp
19984ac_cpp='$CXXCPP $CPPFLAGS'
19985ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19986ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19987ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19988
19989
19990
19991
19992
19993      ac_ext=${ac_fc_srcext-f}
19994ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19995ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19996ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19997
19998
19999if test -z "$FC" || test no = "$FC"; then
20000  _lt_disable_FC=yes
20001fi
20002
20003archive_cmds_need_lc_FC=no
20004allow_undefined_flag_FC=
20005always_export_symbols_FC=no
20006archive_expsym_cmds_FC=
20007export_dynamic_flag_spec_FC=
20008hardcode_direct_FC=no
20009hardcode_direct_absolute_FC=no
20010hardcode_libdir_flag_spec_FC=
20011hardcode_libdir_separator_FC=
20012hardcode_minus_L_FC=no
20013hardcode_automatic_FC=no
20014inherit_rpath_FC=no
20015module_cmds_FC=
20016module_expsym_cmds_FC=
20017link_all_deplibs_FC=unknown
20018old_archive_cmds_FC=$old_archive_cmds
20019reload_flag_FC=$reload_flag
20020reload_cmds_FC=$reload_cmds
20021no_undefined_flag_FC=
20022whole_archive_flag_spec_FC=
20023enable_shared_with_static_runtimes_FC=no
20024
20025# Source file extension for fc test sources.
20026ac_ext=${ac_fc_srcext-f}
20027
20028# Object file extension for compiled fc test sources.
20029objext=o
20030objext_FC=$objext
20031
20032# No sense in running all these tests if we already determined that
20033# the FC compiler isn't working.  Some variables (like enable_shared)
20034# are currently assumed to apply to all compilers on this platform,
20035# and will be corrupted by setting them based on a non-working compiler.
20036if test yes != "$_lt_disable_FC"; then
20037  # Code to be used in simple compile tests
20038  lt_simple_compile_test_code="\
20039      subroutine t
20040      return
20041      end
20042"
20043
20044  # Code to be used in simple link tests
20045  lt_simple_link_test_code="\
20046      program t
20047      end
20048"
20049
20050  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20051
20052
20053
20054
20055
20056
20057# If no C compiler was specified, use CC.
20058LTCC=${LTCC-"$CC"}
20059
20060# If no C compiler flags were specified, use CFLAGS.
20061LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20062
20063# Allow CC to be a program name with arguments.
20064compiler=$CC
20065
20066
20067  # save warnings/boilerplate of simple test code
20068  ac_outfile=conftest.$ac_objext
20069echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20070eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20071_lt_compiler_boilerplate=`cat conftest.err`
20072$RM conftest*
20073
20074  ac_outfile=conftest.$ac_objext
20075echo "$lt_simple_link_test_code" >conftest.$ac_ext
20076eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20077_lt_linker_boilerplate=`cat conftest.err`
20078$RM -r conftest*
20079
20080
20081  # Allow CC to be a program name with arguments.
20082  lt_save_CC=$CC
20083  lt_save_GCC=$GCC
20084  lt_save_CFLAGS=$CFLAGS
20085  CC=${FC-"f95"}
20086  CFLAGS=$FCFLAGS
20087  compiler=$CC
20088  GCC=$ac_cv_fc_compiler_gnu
20089
20090  compiler_FC=$CC
20091  func_cc_basename $compiler
20092cc_basename=$func_cc_basename_result
20093
20094
20095  if test -n "$compiler"; then
20096    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20097printf %s "checking if libtool supports shared libraries... " >&6; }
20098    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20099printf "%s\n" "$can_build_shared" >&6; }
20100
20101    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20102printf %s "checking whether to build shared libraries... " >&6; }
20103    test no = "$can_build_shared" && enable_shared=no
20104
20105    # On AIX, shared libraries and static libraries use the same namespace, and
20106    # are all built from PIC.
20107    case $host_os in
20108      aix3*)
20109        test yes = "$enable_shared" && enable_static=no
20110        if test -n "$RANLIB"; then
20111          archive_cmds="$archive_cmds~\$RANLIB \$lib"
20112          postinstall_cmds='$RANLIB $lib'
20113        fi
20114        ;;
20115      aix[4-9]*)
20116	if test ia64 != "$host_cpu"; then
20117	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
20118	  yes,aix,yes) ;;		# shared object as lib.so file only
20119	  yes,svr4,*) ;;		# shared object as lib.so archive member only
20120	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
20121	  esac
20122	fi
20123        ;;
20124    esac
20125    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20126printf "%s\n" "$enable_shared" >&6; }
20127
20128    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20129printf %s "checking whether to build static libraries... " >&6; }
20130    # Make sure either enable_shared or enable_static is yes.
20131    test yes = "$enable_shared" || enable_static=yes
20132    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20133printf "%s\n" "$enable_static" >&6; }
20134
20135    GCC_FC=$ac_cv_fc_compiler_gnu
20136    LD_FC=$LD
20137
20138    ## CAVEAT EMPTOR:
20139    ## There is no encapsulation within the following macros, do not change
20140    ## the running order or otherwise move them around unless you know exactly
20141    ## what you are doing...
20142    # Dependencies to place before and after the object being linked:
20143predep_objects_FC=
20144postdep_objects_FC=
20145predeps_FC=
20146postdeps_FC=
20147compiler_lib_search_path_FC=
20148
20149cat > conftest.$ac_ext <<_LT_EOF
20150      subroutine foo
20151      implicit none
20152      integer a
20153      a=0
20154      return
20155      end
20156_LT_EOF
20157
20158
20159_lt_libdeps_save_CFLAGS=$CFLAGS
20160case "$CC $CFLAGS " in #(
20161*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20162*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20163*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20164esac
20165
20166if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20167  (eval $ac_compile) 2>&5
20168  ac_status=$?
20169  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20170  test $ac_status = 0; }; then
20171  # Parse the compiler output and extract the necessary
20172  # objects, libraries and library flags.
20173
20174  # Sentinel used to keep track of whether or not we are before
20175  # the conftest object file.
20176  pre_test_object_deps_done=no
20177
20178  for p in `eval "$output_verbose_link_cmd"`; do
20179    case $prev$p in
20180
20181    -L* | -R* | -l*)
20182       # Some compilers place space between "-{L,R}" and the path.
20183       # Remove the space.
20184       if test x-L = "$p" ||
20185          test x-R = "$p"; then
20186	 prev=$p
20187	 continue
20188       fi
20189
20190       # Expand the sysroot to ease extracting the directories later.
20191       if test -z "$prev"; then
20192         case $p in
20193         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20194         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20195         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20196         esac
20197       fi
20198       case $p in
20199       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20200       esac
20201       if test no = "$pre_test_object_deps_done"; then
20202	 case $prev in
20203	 -L | -R)
20204	   # Internal compiler library paths should come after those
20205	   # provided the user.  The postdeps already come after the
20206	   # user supplied libs so there is no need to process them.
20207	   if test -z "$compiler_lib_search_path_FC"; then
20208	     compiler_lib_search_path_FC=$prev$p
20209	   else
20210	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} $prev$p"
20211	   fi
20212	   ;;
20213	 # The "-l" case would never come before the object being
20214	 # linked, so don't bother handling this case.
20215	 esac
20216       else
20217	 if test -z "$postdeps_FC"; then
20218	   postdeps_FC=$prev$p
20219	 else
20220	   postdeps_FC="${postdeps_FC} $prev$p"
20221	 fi
20222       fi
20223       prev=
20224       ;;
20225
20226    *.lto.$objext) ;; # Ignore GCC LTO objects
20227    *.$objext)
20228       # This assumes that the test object file only shows up
20229       # once in the compiler output.
20230       if test "$p" = "conftest.$objext"; then
20231	 pre_test_object_deps_done=yes
20232	 continue
20233       fi
20234
20235       if test no = "$pre_test_object_deps_done"; then
20236	 if test -z "$predep_objects_FC"; then
20237	   predep_objects_FC=$p
20238	 else
20239	   predep_objects_FC="$predep_objects_FC $p"
20240	 fi
20241       else
20242	 if test -z "$postdep_objects_FC"; then
20243	   postdep_objects_FC=$p
20244	 else
20245	   postdep_objects_FC="$postdep_objects_FC $p"
20246	 fi
20247       fi
20248       ;;
20249
20250    *) ;; # Ignore the rest.
20251
20252    esac
20253  done
20254
20255  # Clean up.
20256  rm -f a.out a.exe
20257else
20258  echo "libtool.m4: error: problem compiling FC test program"
20259fi
20260
20261$RM -f confest.$objext
20262CFLAGS=$_lt_libdeps_save_CFLAGS
20263
20264# PORTME: override above test on systems where it is broken
20265
20266
20267case " $postdeps_FC " in
20268*" -lc "*) archive_cmds_need_lc_FC=no ;;
20269esac
20270 compiler_lib_search_dirs_FC=
20271if test -n "${compiler_lib_search_path_FC}"; then
20272 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | $SED -e 's! -L! !g' -e 's!^ !!'`
20273fi
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287    lt_prog_compiler_wl_FC=
20288lt_prog_compiler_pic_FC=
20289lt_prog_compiler_static_FC=
20290
20291
20292  if test yes = "$GCC"; then
20293    lt_prog_compiler_wl_FC='-Wl,'
20294    lt_prog_compiler_static_FC='-static'
20295
20296    case $host_os in
20297      aix*)
20298      # All AIX code is PIC.
20299      if test ia64 = "$host_cpu"; then
20300	# AIX 5 now supports IA64 processor
20301	lt_prog_compiler_static_FC='-Bstatic'
20302      fi
20303      lt_prog_compiler_pic_FC='-fPIC'
20304      ;;
20305
20306    amigaos*)
20307      case $host_cpu in
20308      powerpc)
20309            # see comment about AmigaOS4 .so support
20310            lt_prog_compiler_pic_FC='-fPIC'
20311        ;;
20312      m68k)
20313            # FIXME: we need at least 68020 code to build shared libraries, but
20314            # adding the '-m68020' flag to GCC prevents building anything better,
20315            # like '-m68040'.
20316            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
20317        ;;
20318      esac
20319      ;;
20320
20321    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20322      # PIC is the default for these OSes.
20323      ;;
20324
20325    mingw* | cygwin* | pw32* | os2* | cegcc*)
20326      # This hack is so that the source file can tell whether it is being
20327      # built for inclusion in a dll (and should export symbols for example).
20328      # Although the cygwin gcc ignores -fPIC, still need this for old-style
20329      # (--disable-auto-import) libraries
20330      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
20331      case $host_os in
20332      os2*)
20333	lt_prog_compiler_static_FC='$wl-static'
20334	;;
20335      esac
20336      ;;
20337
20338    darwin* | rhapsody*)
20339      # PIC is the default on this platform
20340      # Common symbols not allowed in MH_DYLIB files
20341      lt_prog_compiler_pic_FC='-fno-common'
20342      ;;
20343
20344    haiku*)
20345      # PIC is the default for Haiku.
20346      # The "-static" flag exists, but is broken.
20347      lt_prog_compiler_static_FC=
20348      ;;
20349
20350    hpux*)
20351      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20352      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
20353      # sets the default TLS model and affects inlining.
20354      case $host_cpu in
20355      hppa*64*)
20356	# +Z the default
20357	;;
20358      *)
20359	lt_prog_compiler_pic_FC='-fPIC'
20360	;;
20361      esac
20362      ;;
20363
20364    interix[3-9]*)
20365      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20366      # Instead, we relocate shared libraries at runtime.
20367      ;;
20368
20369    msdosdjgpp*)
20370      # Just because we use GCC doesn't mean we suddenly get shared libraries
20371      # on systems that don't support them.
20372      lt_prog_compiler_can_build_shared_FC=no
20373      enable_shared=no
20374      ;;
20375
20376    *nto* | *qnx*)
20377      # QNX uses GNU C++, but need to define -shared option too, otherwise
20378      # it will coredump.
20379      lt_prog_compiler_pic_FC='-fPIC -shared'
20380      ;;
20381
20382    sysv4*MP*)
20383      if test -d /usr/nec; then
20384	lt_prog_compiler_pic_FC=-Kconform_pic
20385      fi
20386      ;;
20387
20388    *)
20389      lt_prog_compiler_pic_FC='-fPIC'
20390      ;;
20391    esac
20392
20393    case $cc_basename in
20394    nvcc*) # Cuda Compiler Driver 2.2
20395      lt_prog_compiler_wl_FC='-Xlinker '
20396      if test -n "$lt_prog_compiler_pic_FC"; then
20397        lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
20398      fi
20399      ;;
20400    esac
20401  else
20402    # PORTME Check for flag to pass linker flags through the system compiler.
20403    case $host_os in
20404    aix*)
20405      lt_prog_compiler_wl_FC='-Wl,'
20406      if test ia64 = "$host_cpu"; then
20407	# AIX 5 now supports IA64 processor
20408	lt_prog_compiler_static_FC='-Bstatic'
20409      else
20410	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
20411      fi
20412      ;;
20413
20414    darwin* | rhapsody*)
20415      # PIC is the default on this platform
20416      # Common symbols not allowed in MH_DYLIB files
20417      lt_prog_compiler_pic_FC='-fno-common'
20418      case $cc_basename in
20419      nagfor*)
20420        # NAG Fortran compiler
20421        lt_prog_compiler_wl_FC='-Wl,-Wl,,'
20422        lt_prog_compiler_pic_FC='-PIC'
20423        lt_prog_compiler_static_FC='-Bstatic'
20424        ;;
20425      esac
20426      ;;
20427
20428    mingw* | cygwin* | pw32* | os2* | cegcc*)
20429      # This hack is so that the source file can tell whether it is being
20430      # built for inclusion in a dll (and should export symbols for example).
20431      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
20432      case $host_os in
20433      os2*)
20434	lt_prog_compiler_static_FC='$wl-static'
20435	;;
20436      esac
20437      ;;
20438
20439    hpux9* | hpux10* | hpux11*)
20440      lt_prog_compiler_wl_FC='-Wl,'
20441      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20442      # not for PA HP-UX.
20443      case $host_cpu in
20444      hppa*64*|ia64*)
20445	# +Z the default
20446	;;
20447      *)
20448	lt_prog_compiler_pic_FC='+Z'
20449	;;
20450      esac
20451      # Is there a better lt_prog_compiler_static that works with the bundled CC?
20452      lt_prog_compiler_static_FC='$wl-a ${wl}archive'
20453      ;;
20454
20455    irix5* | irix6* | nonstopux*)
20456      lt_prog_compiler_wl_FC='-Wl,'
20457      # PIC (with -KPIC) is the default.
20458      lt_prog_compiler_static_FC='-non_shared'
20459      ;;
20460
20461    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20462      case $cc_basename in
20463      # old Intel for x86_64, which still supported -KPIC.
20464      ecc*)
20465	lt_prog_compiler_wl_FC='-Wl,'
20466	lt_prog_compiler_pic_FC='-KPIC'
20467	lt_prog_compiler_static_FC='-static'
20468        ;;
20469      # icc used to be incompatible with GCC.
20470      # ICC 10 doesn't accept -KPIC any more.
20471      icc* | ifort*)
20472	lt_prog_compiler_wl_FC='-Wl,'
20473	lt_prog_compiler_pic_FC='-fPIC'
20474	lt_prog_compiler_static_FC='-static'
20475        ;;
20476      # Lahey Fortran 8.1.
20477      lf95*)
20478	lt_prog_compiler_wl_FC='-Wl,'
20479	lt_prog_compiler_pic_FC='--shared'
20480	lt_prog_compiler_static_FC='--static'
20481	;;
20482      nagfor*)
20483	# NAG Fortran compiler
20484	lt_prog_compiler_wl_FC='-Wl,-Wl,,'
20485	lt_prog_compiler_pic_FC='-PIC'
20486	lt_prog_compiler_static_FC='-Bstatic'
20487	;;
20488      tcc*)
20489	# Fabrice Bellard et al's Tiny C Compiler
20490	lt_prog_compiler_wl_FC='-Wl,'
20491	lt_prog_compiler_pic_FC='-fPIC'
20492	lt_prog_compiler_static_FC='-static'
20493	;;
20494      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
20495        # Portland Group compilers (*not* the Pentium gcc compiler,
20496	# which looks to be a dead project)
20497	lt_prog_compiler_wl_FC='-Wl,'
20498	lt_prog_compiler_pic_FC='-fpic'
20499	lt_prog_compiler_static_FC='-Bstatic'
20500        ;;
20501      ccc*)
20502        lt_prog_compiler_wl_FC='-Wl,'
20503        # All Alpha code is PIC.
20504        lt_prog_compiler_static_FC='-non_shared'
20505        ;;
20506      xl* | bgxl* | bgf* | mpixl*)
20507	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
20508	lt_prog_compiler_wl_FC='-Wl,'
20509	lt_prog_compiler_pic_FC='-qpic'
20510	lt_prog_compiler_static_FC='-qstaticlink'
20511	;;
20512      *)
20513	case `$CC -V 2>&1 | sed 5q` in
20514	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
20515	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
20516	  lt_prog_compiler_pic_FC='-KPIC'
20517	  lt_prog_compiler_static_FC='-Bstatic'
20518	  lt_prog_compiler_wl_FC=''
20519	  ;;
20520	*Sun\ F* | *Sun*Fortran*)
20521	  lt_prog_compiler_pic_FC='-KPIC'
20522	  lt_prog_compiler_static_FC='-Bstatic'
20523	  lt_prog_compiler_wl_FC='-Qoption ld '
20524	  ;;
20525	*Sun\ C*)
20526	  # Sun C 5.9
20527	  lt_prog_compiler_pic_FC='-KPIC'
20528	  lt_prog_compiler_static_FC='-Bstatic'
20529	  lt_prog_compiler_wl_FC='-Wl,'
20530	  ;;
20531        *Intel*\ [CF]*Compiler*)
20532	  lt_prog_compiler_wl_FC='-Wl,'
20533	  lt_prog_compiler_pic_FC='-fPIC'
20534	  lt_prog_compiler_static_FC='-static'
20535	  ;;
20536	*Portland\ Group*)
20537	  lt_prog_compiler_wl_FC='-Wl,'
20538	  lt_prog_compiler_pic_FC='-fpic'
20539	  lt_prog_compiler_static_FC='-Bstatic'
20540	  ;;
20541	esac
20542	;;
20543      esac
20544      ;;
20545
20546    newsos6)
20547      lt_prog_compiler_pic_FC='-KPIC'
20548      lt_prog_compiler_static_FC='-Bstatic'
20549      ;;
20550
20551    *nto* | *qnx*)
20552      # QNX uses GNU C++, but need to define -shared option too, otherwise
20553      # it will coredump.
20554      lt_prog_compiler_pic_FC='-fPIC -shared'
20555      ;;
20556
20557    osf3* | osf4* | osf5*)
20558      lt_prog_compiler_wl_FC='-Wl,'
20559      # All OSF/1 code is PIC.
20560      lt_prog_compiler_static_FC='-non_shared'
20561      ;;
20562
20563    rdos*)
20564      lt_prog_compiler_static_FC='-non_shared'
20565      ;;
20566
20567    solaris*)
20568      lt_prog_compiler_pic_FC='-KPIC'
20569      lt_prog_compiler_static_FC='-Bstatic'
20570      case $cc_basename in
20571      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
20572	lt_prog_compiler_wl_FC='-Qoption ld ';;
20573      *)
20574	lt_prog_compiler_wl_FC='-Wl,';;
20575      esac
20576      ;;
20577
20578    sunos4*)
20579      lt_prog_compiler_wl_FC='-Qoption ld '
20580      lt_prog_compiler_pic_FC='-PIC'
20581      lt_prog_compiler_static_FC='-Bstatic'
20582      ;;
20583
20584    sysv4 | sysv4.2uw2* | sysv4.3*)
20585      lt_prog_compiler_wl_FC='-Wl,'
20586      lt_prog_compiler_pic_FC='-KPIC'
20587      lt_prog_compiler_static_FC='-Bstatic'
20588      ;;
20589
20590    sysv4*MP*)
20591      if test -d /usr/nec; then
20592	lt_prog_compiler_pic_FC='-Kconform_pic'
20593	lt_prog_compiler_static_FC='-Bstatic'
20594      fi
20595      ;;
20596
20597    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20598      lt_prog_compiler_wl_FC='-Wl,'
20599      lt_prog_compiler_pic_FC='-KPIC'
20600      lt_prog_compiler_static_FC='-Bstatic'
20601      ;;
20602
20603    unicos*)
20604      lt_prog_compiler_wl_FC='-Wl,'
20605      lt_prog_compiler_can_build_shared_FC=no
20606      ;;
20607
20608    uts4*)
20609      lt_prog_compiler_pic_FC='-pic'
20610      lt_prog_compiler_static_FC='-Bstatic'
20611      ;;
20612
20613    *)
20614      lt_prog_compiler_can_build_shared_FC=no
20615      ;;
20616    esac
20617  fi
20618
20619case $host_os in
20620  # For platforms that do not support PIC, -DPIC is meaningless:
20621  *djgpp*)
20622    lt_prog_compiler_pic_FC=
20623    ;;
20624  *)
20625    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
20626    ;;
20627esac
20628
20629{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20630printf %s "checking for $compiler option to produce PIC... " >&6; }
20631if test ${lt_cv_prog_compiler_pic_FC+y}
20632then :
20633  printf %s "(cached) " >&6
20634else $as_nop
20635  lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
20636fi
20637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
20638printf "%s\n" "$lt_cv_prog_compiler_pic_FC" >&6; }
20639lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
20640
20641#
20642# Check to make sure the PIC flag actually works.
20643#
20644if test -n "$lt_prog_compiler_pic_FC"; then
20645  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
20646printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
20647if test ${lt_cv_prog_compiler_pic_works_FC+y}
20648then :
20649  printf %s "(cached) " >&6
20650else $as_nop
20651  lt_cv_prog_compiler_pic_works_FC=no
20652   ac_outfile=conftest.$ac_objext
20653   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20654   lt_compiler_flag="$lt_prog_compiler_pic_FC"  ## exclude from sc_useless_quotes_in_assignment
20655   # Insert the option either (1) after the last *FLAGS variable, or
20656   # (2) before a word containing "conftest.", or (3) at the end.
20657   # Note that $ac_compile itself does not contain backslashes and begins
20658   # with a dollar sign (not a hyphen), so the echo should work correctly.
20659   # The option is referenced via a variable to avoid confusing sed.
20660   lt_compile=`echo "$ac_compile" | $SED \
20661   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20662   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20663   -e 's:$: $lt_compiler_flag:'`
20664   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20665   (eval "$lt_compile" 2>conftest.err)
20666   ac_status=$?
20667   cat conftest.err >&5
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   if (exit $ac_status) && test -s "$ac_outfile"; then
20670     # The compiler can only warn and ignore the option if not recognized
20671     # So say no if there are warnings other than the usual output.
20672     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
20673     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20674     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20675       lt_cv_prog_compiler_pic_works_FC=yes
20676     fi
20677   fi
20678   $RM conftest*
20679
20680fi
20681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
20682printf "%s\n" "$lt_cv_prog_compiler_pic_works_FC" >&6; }
20683
20684if test yes = "$lt_cv_prog_compiler_pic_works_FC"; then
20685    case $lt_prog_compiler_pic_FC in
20686     "" | " "*) ;;
20687     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
20688     esac
20689else
20690    lt_prog_compiler_pic_FC=
20691     lt_prog_compiler_can_build_shared_FC=no
20692fi
20693
20694fi
20695
20696
20697
20698
20699
20700#
20701# Check to make sure the static flag actually works.
20702#
20703wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
20704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20705printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20706if test ${lt_cv_prog_compiler_static_works_FC+y}
20707then :
20708  printf %s "(cached) " >&6
20709else $as_nop
20710  lt_cv_prog_compiler_static_works_FC=no
20711   save_LDFLAGS=$LDFLAGS
20712   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20713   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20714   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20715     # The linker can only warn and ignore the option if not recognized
20716     # So say no if there are warnings
20717     if test -s conftest.err; then
20718       # Append any errors to the config.log.
20719       cat conftest.err 1>&5
20720       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
20721       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20722       if diff conftest.exp conftest.er2 >/dev/null; then
20723         lt_cv_prog_compiler_static_works_FC=yes
20724       fi
20725     else
20726       lt_cv_prog_compiler_static_works_FC=yes
20727     fi
20728   fi
20729   $RM -r conftest*
20730   LDFLAGS=$save_LDFLAGS
20731
20732fi
20733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
20734printf "%s\n" "$lt_cv_prog_compiler_static_works_FC" >&6; }
20735
20736if test yes = "$lt_cv_prog_compiler_static_works_FC"; then
20737    :
20738else
20739    lt_prog_compiler_static_FC=
20740fi
20741
20742
20743
20744
20745    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20746printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20747if test ${lt_cv_prog_compiler_c_o_FC+y}
20748then :
20749  printf %s "(cached) " >&6
20750else $as_nop
20751  lt_cv_prog_compiler_c_o_FC=no
20752   $RM -r conftest 2>/dev/null
20753   mkdir conftest
20754   cd conftest
20755   mkdir out
20756   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20757
20758   lt_compiler_flag="-o out/conftest2.$ac_objext"
20759   # Insert the option either (1) after the last *FLAGS variable, or
20760   # (2) before a word containing "conftest.", or (3) at the end.
20761   # Note that $ac_compile itself does not contain backslashes and begins
20762   # with a dollar sign (not a hyphen), so the echo should work correctly.
20763   lt_compile=`echo "$ac_compile" | $SED \
20764   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20765   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20766   -e 's:$: $lt_compiler_flag:'`
20767   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20768   (eval "$lt_compile" 2>out/conftest.err)
20769   ac_status=$?
20770   cat out/conftest.err >&5
20771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20773   then
20774     # The compiler can only warn and ignore the option if not recognized
20775     # So say no if there are warnings
20776     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20777     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20778     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20779       lt_cv_prog_compiler_c_o_FC=yes
20780     fi
20781   fi
20782   chmod u+w . 2>&5
20783   $RM conftest*
20784   # SGI C++ compiler will create directory out/ii_files/ for
20785   # template instantiation
20786   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20787   $RM out/* && rmdir out
20788   cd ..
20789   $RM -r conftest
20790   $RM conftest*
20791
20792fi
20793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
20794printf "%s\n" "$lt_cv_prog_compiler_c_o_FC" >&6; }
20795
20796
20797
20798    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20799printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20800if test ${lt_cv_prog_compiler_c_o_FC+y}
20801then :
20802  printf %s "(cached) " >&6
20803else $as_nop
20804  lt_cv_prog_compiler_c_o_FC=no
20805   $RM -r conftest 2>/dev/null
20806   mkdir conftest
20807   cd conftest
20808   mkdir out
20809   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20810
20811   lt_compiler_flag="-o out/conftest2.$ac_objext"
20812   # Insert the option either (1) after the last *FLAGS variable, or
20813   # (2) before a word containing "conftest.", or (3) at the end.
20814   # Note that $ac_compile itself does not contain backslashes and begins
20815   # with a dollar sign (not a hyphen), so the echo should work correctly.
20816   lt_compile=`echo "$ac_compile" | $SED \
20817   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20818   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20819   -e 's:$: $lt_compiler_flag:'`
20820   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
20821   (eval "$lt_compile" 2>out/conftest.err)
20822   ac_status=$?
20823   cat out/conftest.err >&5
20824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20826   then
20827     # The compiler can only warn and ignore the option if not recognized
20828     # So say no if there are warnings
20829     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
20830     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20831     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20832       lt_cv_prog_compiler_c_o_FC=yes
20833     fi
20834   fi
20835   chmod u+w . 2>&5
20836   $RM conftest*
20837   # SGI C++ compiler will create directory out/ii_files/ for
20838   # template instantiation
20839   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20840   $RM out/* && rmdir out
20841   cd ..
20842   $RM -r conftest
20843   $RM conftest*
20844
20845fi
20846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
20847printf "%s\n" "$lt_cv_prog_compiler_c_o_FC" >&6; }
20848
20849
20850
20851
20852hard_links=nottested
20853if test no = "$lt_cv_prog_compiler_c_o_FC" && test no != "$need_locks"; then
20854  # do not overwrite the value of need_locks provided by the user
20855  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20856printf %s "checking if we can lock with hard links... " >&6; }
20857  hard_links=yes
20858  $RM conftest*
20859  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20860  touch conftest.a
20861  ln conftest.a conftest.b 2>&5 || hard_links=no
20862  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20863  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20864printf "%s\n" "$hard_links" >&6; }
20865  if test no = "$hard_links"; then
20866    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
20867printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
20868    need_locks=warn
20869  fi
20870else
20871  need_locks=no
20872fi
20873
20874
20875
20876    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20877printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20878
20879  runpath_var=
20880  allow_undefined_flag_FC=
20881  always_export_symbols_FC=no
20882  archive_cmds_FC=
20883  archive_expsym_cmds_FC=
20884  compiler_needs_object_FC=no
20885  enable_shared_with_static_runtimes_FC=no
20886  export_dynamic_flag_spec_FC=
20887  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20888  hardcode_automatic_FC=no
20889  hardcode_direct_FC=no
20890  hardcode_direct_absolute_FC=no
20891  hardcode_libdir_flag_spec_FC=
20892  hardcode_libdir_separator_FC=
20893  hardcode_minus_L_FC=no
20894  hardcode_shlibpath_var_FC=unsupported
20895  inherit_rpath_FC=no
20896  link_all_deplibs_FC=unknown
20897  module_cmds_FC=
20898  module_expsym_cmds_FC=
20899  old_archive_from_new_cmds_FC=
20900  old_archive_from_expsyms_cmds_FC=
20901  thread_safe_flag_spec_FC=
20902  whole_archive_flag_spec_FC=
20903  # include_expsyms should be a list of space-separated symbols to be *always*
20904  # included in the symbol list
20905  include_expsyms_FC=
20906  # exclude_expsyms can be an extended regexp of symbols to exclude
20907  # it will be wrapped by ' (' and ')$', so one must not match beginning or
20908  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
20909  # as well as any symbol that contains 'd'.
20910  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20911  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20912  # platforms (ab)use it in PIC code, but their linkers get confused if
20913  # the symbol is explicitly referenced.  Since portable code cannot
20914  # rely on this symbol name, it's probably fine to never include it in
20915  # preloaded symbol tables.
20916  # Exclude shared library initialization/finalization symbols.
20917  extract_expsyms_cmds=
20918
20919  case $host_os in
20920  cygwin* | mingw* | pw32* | cegcc*)
20921    # FIXME: the MSVC++ port hasn't been tested in a loooong time
20922    # When not using gcc, we currently assume that we are using
20923    # Microsoft Visual C++.
20924    if test yes != "$GCC"; then
20925      with_gnu_ld=no
20926    fi
20927    ;;
20928  interix*)
20929    # we just hope/assume this is gcc and not c89 (= MSVC++)
20930    with_gnu_ld=yes
20931    ;;
20932  openbsd* | bitrig*)
20933    with_gnu_ld=no
20934    ;;
20935  esac
20936
20937  ld_shlibs_FC=yes
20938
20939  # On some targets, GNU ld is compatible enough with the native linker
20940  # that we're better off using the native interface for both.
20941  lt_use_gnu_ld_interface=no
20942  if test yes = "$with_gnu_ld"; then
20943    case $host_os in
20944      aix*)
20945	# The AIX port of GNU ld has always aspired to compatibility
20946	# with the native linker.  However, as the warning in the GNU ld
20947	# block says, versions before 2.19.5* couldn't really create working
20948	# shared libraries, regardless of the interface used.
20949	case `$LD -v 2>&1` in
20950	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
20951	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
20952	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
20953	  *)
20954	    lt_use_gnu_ld_interface=yes
20955	    ;;
20956	esac
20957	;;
20958      *)
20959	lt_use_gnu_ld_interface=yes
20960	;;
20961    esac
20962  fi
20963
20964  if test yes = "$lt_use_gnu_ld_interface"; then
20965    # If archive_cmds runs LD, not CC, wlarc should be empty
20966    wlarc='$wl'
20967
20968    # Set some defaults for GNU ld with shared library support. These
20969    # are reset later if shared libraries are not supported. Putting them
20970    # here allows them to be overridden if necessary.
20971    runpath_var=LD_RUN_PATH
20972    hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
20973    export_dynamic_flag_spec_FC='$wl--export-dynamic'
20974    # ancient GNU ld didn't support --whole-archive et. al.
20975    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
20976      whole_archive_flag_spec_FC=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20977    else
20978      whole_archive_flag_spec_FC=
20979    fi
20980    supports_anon_versioning=no
20981    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
20982      *GNU\ gold*) supports_anon_versioning=yes ;;
20983      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20984      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20985      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20986      *\ 2.11.*) ;; # other 2.11 versions
20987      *) supports_anon_versioning=yes ;;
20988    esac
20989
20990    # See if GNU ld supports shared libraries.
20991    case $host_os in
20992    aix[3-9]*)
20993      # On AIX/PPC, the GNU linker is very broken
20994      if test ia64 != "$host_cpu"; then
20995	ld_shlibs_FC=no
20996	cat <<_LT_EOF 1>&2
20997
20998*** Warning: the GNU linker, at least up to release 2.19, is reported
20999*** to be unable to reliably create shared libraries on AIX.
21000*** Therefore, libtool is disabling shared libraries support.  If you
21001*** really care for shared libraries, you may want to install binutils
21002*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
21003*** You will then need to restart the configuration process.
21004
21005_LT_EOF
21006      fi
21007      ;;
21008
21009    amigaos*)
21010      case $host_cpu in
21011      powerpc)
21012            # see comment about AmigaOS4 .so support
21013            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21014            archive_expsym_cmds_FC=''
21015        ;;
21016      m68k)
21017            archive_cmds_FC='$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)'
21018            hardcode_libdir_flag_spec_FC='-L$libdir'
21019            hardcode_minus_L_FC=yes
21020        ;;
21021      esac
21022      ;;
21023
21024    beos*)
21025      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21026	allow_undefined_flag_FC=unsupported
21027	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21028	# support --undefined.  This deserves some investigation.  FIXME
21029	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21030      else
21031	ld_shlibs_FC=no
21032      fi
21033      ;;
21034
21035    cygwin* | mingw* | pw32* | cegcc*)
21036      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
21037      # as there is no search path for DLLs.
21038      hardcode_libdir_flag_spec_FC='-L$libdir'
21039      export_dynamic_flag_spec_FC='$wl--export-all-symbols'
21040      allow_undefined_flag_FC=unsupported
21041      always_export_symbols_FC=no
21042      enable_shared_with_static_runtimes_FC=yes
21043      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
21044      exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21045
21046      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
21047        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21048	# If the export-symbols file already is a .def file, use it as
21049	# is; otherwise, prepend EXPORTS...
21050	archive_expsym_cmds_FC='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
21051          cp $export_symbols $output_objdir/$soname.def;
21052        else
21053          echo EXPORTS > $output_objdir/$soname.def;
21054          cat $export_symbols >> $output_objdir/$soname.def;
21055        fi~
21056        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21057      else
21058	ld_shlibs_FC=no
21059      fi
21060      ;;
21061
21062    haiku*)
21063      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21064      link_all_deplibs_FC=yes
21065      ;;
21066
21067    os2*)
21068      hardcode_libdir_flag_spec_FC='-L$libdir'
21069      hardcode_minus_L_FC=yes
21070      allow_undefined_flag_FC=unsupported
21071      shrext_cmds=.dll
21072      archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21073	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21074	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21075	$ECHO EXPORTS >> $output_objdir/$libname.def~
21076	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
21077	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21078	emximp -o $lib $output_objdir/$libname.def'
21079      archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21080	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21081	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21082	$ECHO EXPORTS >> $output_objdir/$libname.def~
21083	prefix_cmds="$SED"~
21084	if test EXPORTS = "`$SED 1q $export_symbols`"; then
21085	  prefix_cmds="$prefix_cmds -e 1d";
21086	fi~
21087	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
21088	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
21089	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21090	emximp -o $lib $output_objdir/$libname.def'
21091      old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
21092      enable_shared_with_static_runtimes_FC=yes
21093      ;;
21094
21095    interix[3-9]*)
21096      hardcode_direct_FC=no
21097      hardcode_shlibpath_var_FC=no
21098      hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
21099      export_dynamic_flag_spec_FC='$wl-E'
21100      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21101      # Instead, shared libraries are loaded at an image base (0x10000000 by
21102      # default) and relocated if they conflict, which is a slow very memory
21103      # consuming and fragmenting process.  To avoid this, we pick a random,
21104      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21105      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21106      archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21107      archive_expsym_cmds_FC='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'
21108      ;;
21109
21110    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
21111      tmp_diet=no
21112      if test linux-dietlibc = "$host_os"; then
21113	case $cc_basename in
21114	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
21115	esac
21116      fi
21117      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
21118	 && test no = "$tmp_diet"
21119      then
21120	tmp_addflag=' $pic_flag'
21121	tmp_sharedflag='-shared'
21122	case $cc_basename,$host_cpu in
21123        pgcc*)				# Portland Group C compiler
21124	  whole_archive_flag_spec_FC='$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'
21125	  tmp_addflag=' $pic_flag'
21126	  ;;
21127	pgf77* | pgf90* | pgf95* | pgfortran*)
21128					# Portland Group f77 and f90 compilers
21129	  whole_archive_flag_spec_FC='$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'
21130	  tmp_addflag=' $pic_flag -Mnomain' ;;
21131	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
21132	  tmp_addflag=' -i_dynamic' ;;
21133	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
21134	  tmp_addflag=' -i_dynamic -nofor_main' ;;
21135	ifc* | ifort*)			# Intel Fortran compiler
21136	  tmp_addflag=' -nofor_main' ;;
21137	lf95*)				# Lahey Fortran 8.1
21138	  whole_archive_flag_spec_FC=
21139	  tmp_sharedflag='--shared' ;;
21140        nagfor*)                        # NAGFOR 5.3
21141          tmp_sharedflag='-Wl,-shared' ;;
21142	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
21143	  tmp_sharedflag='-qmkshrobj'
21144	  tmp_addflag= ;;
21145	nvcc*)	# Cuda Compiler Driver 2.2
21146	  whole_archive_flag_spec_FC='$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'
21147	  compiler_needs_object_FC=yes
21148	  ;;
21149	esac
21150	case `$CC -V 2>&1 | sed 5q` in
21151	*Sun\ C*)			# Sun C 5.9
21152	  whole_archive_flag_spec_FC='$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'
21153	  compiler_needs_object_FC=yes
21154	  tmp_sharedflag='-G' ;;
21155	*Sun\ F*)			# Sun Fortran 8.3
21156	  tmp_sharedflag='-G' ;;
21157	esac
21158	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21159
21160        if test yes = "$supports_anon_versioning"; then
21161          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
21162            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21163            echo "local: *; };" >> $output_objdir/$libname.ver~
21164            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
21165        fi
21166
21167	case $cc_basename in
21168	tcc*)
21169	  export_dynamic_flag_spec_FC='-rdynamic'
21170	  ;;
21171	xlf* | bgf* | bgxlf* | mpixlf*)
21172	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
21173	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
21174	  hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21175	  archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
21176	  if test yes = "$supports_anon_versioning"; then
21177	    archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
21178              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21179              echo "local: *; };" >> $output_objdir/$libname.ver~
21180              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
21181	  fi
21182	  ;;
21183	esac
21184      else
21185        ld_shlibs_FC=no
21186      fi
21187      ;;
21188
21189    netbsd*)
21190      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21191	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21192	wlarc=
21193      else
21194	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21195	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21196      fi
21197      ;;
21198
21199    solaris*)
21200      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
21201	ld_shlibs_FC=no
21202	cat <<_LT_EOF 1>&2
21203
21204*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21205*** create shared libraries on Solaris systems.  Therefore, libtool
21206*** is disabling shared libraries support.  We urge you to upgrade GNU
21207*** binutils to release 2.9.1 or newer.  Another option is to modify
21208*** your PATH or compiler configuration so that the native linker is
21209*** used, and then restart.
21210
21211_LT_EOF
21212      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21213	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21214	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21215      else
21216	ld_shlibs_FC=no
21217      fi
21218      ;;
21219
21220    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
21221      case `$LD -v 2>&1` in
21222        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
21223	ld_shlibs_FC=no
21224	cat <<_LT_EOF 1>&2
21225
21226*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
21227*** reliably create shared libraries on SCO systems.  Therefore, libtool
21228*** is disabling shared libraries support.  We urge you to upgrade GNU
21229*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
21230*** your PATH or compiler configuration so that the native linker is
21231*** used, and then restart.
21232
21233_LT_EOF
21234	;;
21235	*)
21236	  # For security reasons, it is highly recommended that you always
21237	  # use absolute paths for naming shared libraries, and exclude the
21238	  # DT_RUNPATH tag from executables and libraries.  But doing so
21239	  # requires that you compile everything twice, which is a pain.
21240	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21241	    hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21242	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21243	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21244	  else
21245	    ld_shlibs_FC=no
21246	  fi
21247	;;
21248      esac
21249      ;;
21250
21251    sunos4*)
21252      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21253      wlarc=
21254      hardcode_direct_FC=yes
21255      hardcode_shlibpath_var_FC=no
21256      ;;
21257
21258    *)
21259      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21260	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21261	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21262      else
21263	ld_shlibs_FC=no
21264      fi
21265      ;;
21266    esac
21267
21268    if test no = "$ld_shlibs_FC"; then
21269      runpath_var=
21270      hardcode_libdir_flag_spec_FC=
21271      export_dynamic_flag_spec_FC=
21272      whole_archive_flag_spec_FC=
21273    fi
21274  else
21275    # PORTME fill in a description of your system's linker (not GNU ld)
21276    case $host_os in
21277    aix3*)
21278      allow_undefined_flag_FC=unsupported
21279      always_export_symbols_FC=yes
21280      archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
21281      # Note: this linker hardcodes the directories in LIBPATH if there
21282      # are no directories specified by -L.
21283      hardcode_minus_L_FC=yes
21284      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
21285	# Neither direct hardcoding nor static linking is supported with a
21286	# broken collect2.
21287	hardcode_direct_FC=unsupported
21288      fi
21289      ;;
21290
21291    aix[4-9]*)
21292      if test ia64 = "$host_cpu"; then
21293	# On IA64, the linker does run time linking by default, so we don't
21294	# have to do anything special.
21295	aix_use_runtimelinking=no
21296	exp_sym_flag='-Bexport'
21297	no_entry_flag=
21298      else
21299	# If we're using GNU nm, then we don't want the "-C" option.
21300	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
21301	# Without the "-l" option, or with the "-B" option, AIX nm treats
21302	# weak defined symbols like other global defined symbols, whereas
21303	# GNU nm marks them as "W".
21304	# While the 'weak' keyword is ignored in the Export File, we need
21305	# it in the Import File for the 'aix-soname' feature, so we have
21306	# to replace the "-B" option with "-P" for AIX nm.
21307	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21308	  export_symbols_cmds_FC='$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'
21309	else
21310	  export_symbols_cmds_FC='`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'
21311	fi
21312	aix_use_runtimelinking=no
21313
21314	# Test if we are trying to use run time linking or normal
21315	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
21316	# have runtime linking enabled, and use it for executables.
21317	# For shared libraries, we enable/disable runtime linking
21318	# depending on the kind of the shared library created -
21319	# when "with_aix_soname,aix_use_runtimelinking" is:
21320	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
21321	# "aix,yes"  lib.so          shared, rtl:yes, for executables
21322	#            lib.a           static archive
21323	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
21324	#            lib.a(lib.so.V) shared, rtl:no,  for executables
21325	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
21326	#            lib.a(lib.so.V) shared, rtl:no
21327	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
21328	#            lib.a           static archive
21329	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
21330	  for ld_flag in $LDFLAGS; do
21331	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
21332	    aix_use_runtimelinking=yes
21333	    break
21334	  fi
21335	  done
21336	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
21337	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
21338	    # so we don't have lib.a shared libs to link our executables.
21339	    # We have to force runtime linking in this case.
21340	    aix_use_runtimelinking=yes
21341	    LDFLAGS="$LDFLAGS -Wl,-brtl"
21342	  fi
21343	  ;;
21344	esac
21345
21346	exp_sym_flag='-bexport'
21347	no_entry_flag='-bnoentry'
21348      fi
21349
21350      # When large executables or shared objects are built, AIX ld can
21351      # have problems creating the table of contents.  If linking a library
21352      # or program results in "error TOC overflow" add -mminimal-toc to
21353      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
21354      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21355
21356      archive_cmds_FC=''
21357      hardcode_direct_FC=yes
21358      hardcode_direct_absolute_FC=yes
21359      hardcode_libdir_separator_FC=':'
21360      link_all_deplibs_FC=yes
21361      file_list_spec_FC='$wl-f,'
21362      case $with_aix_soname,$aix_use_runtimelinking in
21363      aix,*) ;; # traditional, no import file
21364      svr4,* | *,yes) # use import file
21365	# The Import File defines what to hardcode.
21366	hardcode_direct_FC=no
21367	hardcode_direct_absolute_FC=no
21368	;;
21369      esac
21370
21371      if test yes = "$GCC"; then
21372	case $host_os in aix4.[012]|aix4.[012].*)
21373	# We only want to do this on AIX 4.2 and lower, the check
21374	# below for broken collect2 doesn't work under 4.3+
21375	  collect2name=`$CC -print-prog-name=collect2`
21376	  if test -f "$collect2name" &&
21377	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
21378	  then
21379	  # We have reworked collect2
21380	  :
21381	  else
21382	  # We have old collect2
21383	  hardcode_direct_FC=unsupported
21384	  # It fails to find uninstalled libraries when the uninstalled
21385	  # path is not listed in the libpath.  Setting hardcode_minus_L
21386	  # to unsupported forces relinking
21387	  hardcode_minus_L_FC=yes
21388	  hardcode_libdir_flag_spec_FC='-L$libdir'
21389	  hardcode_libdir_separator_FC=
21390	  fi
21391	  ;;
21392	esac
21393	shared_flag='-shared'
21394	if test yes = "$aix_use_runtimelinking"; then
21395	  shared_flag="$shared_flag "'$wl-G'
21396	fi
21397	# Need to ensure runtime linking is disabled for the traditional
21398	# shared library, or the linker may eventually find shared libraries
21399	# /with/ Import File - we do not want to mix them.
21400	shared_flag_aix='-shared'
21401	shared_flag_svr4='-shared $wl-G'
21402      else
21403	# not using gcc
21404	if test ia64 = "$host_cpu"; then
21405	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21406	# chokes on -Wl,-G. The following line is correct:
21407	  shared_flag='-G'
21408	else
21409	  if test yes = "$aix_use_runtimelinking"; then
21410	    shared_flag='$wl-G'
21411	  else
21412	    shared_flag='$wl-bM:SRE'
21413	  fi
21414	  shared_flag_aix='$wl-bM:SRE'
21415	  shared_flag_svr4='$wl-G'
21416	fi
21417      fi
21418
21419      export_dynamic_flag_spec_FC='$wl-bexpall'
21420      # It seems that -bexpall does not export symbols beginning with
21421      # underscore (_), so it is better to generate a list of symbols to export.
21422      always_export_symbols_FC=yes
21423      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
21424	# Warning - without using the other runtime loading flags (-brtl),
21425	# -berok will link without error, but may produce a broken library.
21426	allow_undefined_flag_FC='-berok'
21427        # Determine the default libpath from the value encoded in an
21428        # empty executable.
21429        if test set = "${lt_cv_aix_libpath+set}"; then
21430  aix_libpath=$lt_cv_aix_libpath
21431else
21432  if test ${lt_cv_aix_libpath__FC+y}
21433then :
21434  printf %s "(cached) " >&6
21435else $as_nop
21436  cat > conftest.$ac_ext <<_ACEOF
21437      program main
21438
21439      end
21440_ACEOF
21441if ac_fn_fc_try_link "$LINENO"
21442then :
21443
21444  lt_aix_libpath_sed='
21445      /Import File Strings/,/^$/ {
21446	  /^0/ {
21447	      s/^0  *\([^ ]*\) *$/\1/
21448	      p
21449	  }
21450      }'
21451  lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21452  # Check for a 64-bit object if we didn't find anything.
21453  if test -z "$lt_cv_aix_libpath__FC"; then
21454    lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21455  fi
21456fi
21457rm -f core conftest.err conftest.$ac_objext conftest.beam \
21458    conftest$ac_exeext conftest.$ac_ext
21459  if test -z "$lt_cv_aix_libpath__FC"; then
21460    lt_cv_aix_libpath__FC=/usr/lib:/lib
21461  fi
21462
21463fi
21464
21465  aix_libpath=$lt_cv_aix_libpath__FC
21466fi
21467
21468        hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
21469        archive_expsym_cmds_FC='$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
21470      else
21471	if test ia64 = "$host_cpu"; then
21472	  hardcode_libdir_flag_spec_FC='$wl-R $libdir:/usr/lib:/lib'
21473	  allow_undefined_flag_FC="-z nodefs"
21474	  archive_expsym_cmds_FC="\$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"
21475	else
21476	 # Determine the default libpath from the value encoded in an
21477	 # empty executable.
21478	 if test set = "${lt_cv_aix_libpath+set}"; then
21479  aix_libpath=$lt_cv_aix_libpath
21480else
21481  if test ${lt_cv_aix_libpath__FC+y}
21482then :
21483  printf %s "(cached) " >&6
21484else $as_nop
21485  cat > conftest.$ac_ext <<_ACEOF
21486      program main
21487
21488      end
21489_ACEOF
21490if ac_fn_fc_try_link "$LINENO"
21491then :
21492
21493  lt_aix_libpath_sed='
21494      /Import File Strings/,/^$/ {
21495	  /^0/ {
21496	      s/^0  *\([^ ]*\) *$/\1/
21497	      p
21498	  }
21499      }'
21500  lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21501  # Check for a 64-bit object if we didn't find anything.
21502  if test -z "$lt_cv_aix_libpath__FC"; then
21503    lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
21504  fi
21505fi
21506rm -f core conftest.err conftest.$ac_objext conftest.beam \
21507    conftest$ac_exeext conftest.$ac_ext
21508  if test -z "$lt_cv_aix_libpath__FC"; then
21509    lt_cv_aix_libpath__FC=/usr/lib:/lib
21510  fi
21511
21512fi
21513
21514  aix_libpath=$lt_cv_aix_libpath__FC
21515fi
21516
21517	 hardcode_libdir_flag_spec_FC='$wl-blibpath:$libdir:'"$aix_libpath"
21518	  # Warning - without using the other run time loading flags,
21519	  # -berok will link without error, but may produce a broken library.
21520	  no_undefined_flag_FC=' $wl-bernotok'
21521	  allow_undefined_flag_FC=' $wl-berok'
21522	  if test yes = "$with_gnu_ld"; then
21523	    # We only use this code for GNU lds that support --whole-archive.
21524	    whole_archive_flag_spec_FC='$wl--whole-archive$convenience $wl--no-whole-archive'
21525	  else
21526	    # Exported symbols can be pulled into shared objects from archives
21527	    whole_archive_flag_spec_FC='$convenience'
21528	  fi
21529	  archive_cmds_need_lc_FC=yes
21530	  archive_expsym_cmds_FC='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
21531	  # -brtl affects multiple linker settings, -berok does not and is overridden later
21532	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
21533	  if test svr4 != "$with_aix_soname"; then
21534	    # This is similar to how AIX traditionally builds its shared libraries.
21535	    archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$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'
21536	  fi
21537	  if test aix != "$with_aix_soname"; then
21538	    archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$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'
21539	  else
21540	    # used by -dlpreopen to get the symbols
21541	    archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
21542	  fi
21543	  archive_expsym_cmds_FC="$archive_expsym_cmds_FC"'~$RM -r $output_objdir/$realname.d'
21544	fi
21545      fi
21546      ;;
21547
21548    amigaos*)
21549      case $host_cpu in
21550      powerpc)
21551            # see comment about AmigaOS4 .so support
21552            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21553            archive_expsym_cmds_FC=''
21554        ;;
21555      m68k)
21556            archive_cmds_FC='$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)'
21557            hardcode_libdir_flag_spec_FC='-L$libdir'
21558            hardcode_minus_L_FC=yes
21559        ;;
21560      esac
21561      ;;
21562
21563    bsdi[45]*)
21564      export_dynamic_flag_spec_FC=-rdynamic
21565      ;;
21566
21567    cygwin* | mingw* | pw32* | cegcc*)
21568      # When not using gcc, we currently assume that we are using
21569      # Microsoft Visual C++.
21570      # hardcode_libdir_flag_spec is actually meaningless, as there is
21571      # no search path for DLLs.
21572      case $cc_basename in
21573      cl*)
21574	# Native MSVC
21575	hardcode_libdir_flag_spec_FC=' '
21576	allow_undefined_flag_FC=unsupported
21577	always_export_symbols_FC=yes
21578	file_list_spec_FC='@'
21579	# Tell ltmain to make .lib files, not .a files.
21580	libext=lib
21581	# Tell ltmain to make .dll files, not .so files.
21582	shrext_cmds=.dll
21583	# FIXME: Setting linknames here is a bad hack.
21584	archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
21585	archive_expsym_cmds_FC='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
21586            cp "$export_symbols" "$output_objdir/$soname.def";
21587            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
21588          else
21589            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
21590          fi~
21591          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
21592          linknames='
21593	# The linker will not automatically build a static lib if we build a DLL.
21594	# _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
21595	enable_shared_with_static_runtimes_FC=yes
21596	exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21597	export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
21598	# Don't use ranlib
21599	old_postinstall_cmds_FC='chmod 644 $oldlib'
21600	postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
21601          lt_tool_outputfile="@TOOL_OUTPUT@"~
21602          case $lt_outputfile in
21603            *.exe|*.EXE) ;;
21604            *)
21605              lt_outputfile=$lt_outputfile.exe
21606              lt_tool_outputfile=$lt_tool_outputfile.exe
21607              ;;
21608          esac~
21609          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
21610            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
21611            $RM "$lt_outputfile.manifest";
21612          fi'
21613	;;
21614      *)
21615	# Assume MSVC wrapper
21616	hardcode_libdir_flag_spec_FC=' '
21617	allow_undefined_flag_FC=unsupported
21618	# Tell ltmain to make .lib files, not .a files.
21619	libext=lib
21620	# Tell ltmain to make .dll files, not .so files.
21621	shrext_cmds=.dll
21622	# FIXME: Setting linknames here is a bad hack.
21623	archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
21624	# The linker will automatically build a .lib file if we build a DLL.
21625	old_archive_from_new_cmds_FC='true'
21626	# FIXME: Should let the user specify the lib program.
21627	old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
21628	enable_shared_with_static_runtimes_FC=yes
21629	;;
21630      esac
21631      ;;
21632
21633    darwin* | rhapsody*)
21634
21635
21636  archive_cmds_need_lc_FC=no
21637  hardcode_direct_FC=no
21638  hardcode_automatic_FC=yes
21639  hardcode_shlibpath_var_FC=unsupported
21640  if test yes = "$lt_cv_ld_force_load"; then
21641    whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
21642    compiler_needs_object_FC=yes
21643  else
21644    whole_archive_flag_spec_FC=''
21645  fi
21646  link_all_deplibs_FC=yes
21647  allow_undefined_flag_FC=$_lt_dar_allow_undefined
21648  case $cc_basename in
21649     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
21650     *) _lt_dar_can_shared=$GCC ;;
21651  esac
21652  if test yes = "$_lt_dar_can_shared"; then
21653    output_verbose_link_cmd=func_echo_all
21654    archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
21655    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
21656    archive_expsym_cmds_FC="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"
21657    module_expsym_cmds_FC="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"
21658
21659  else
21660  ld_shlibs_FC=no
21661  fi
21662
21663      ;;
21664
21665    dgux*)
21666      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21667      hardcode_libdir_flag_spec_FC='-L$libdir'
21668      hardcode_shlibpath_var_FC=no
21669      ;;
21670
21671    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21672    # support.  Future versions do this automatically, but an explicit c++rt0.o
21673    # does not break anything, and helps significantly (at the cost of a little
21674    # extra space).
21675    freebsd2.2*)
21676      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21677      hardcode_libdir_flag_spec_FC='-R$libdir'
21678      hardcode_direct_FC=yes
21679      hardcode_shlibpath_var_FC=no
21680      ;;
21681
21682    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21683    freebsd2.*)
21684      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21685      hardcode_direct_FC=yes
21686      hardcode_minus_L_FC=yes
21687      hardcode_shlibpath_var_FC=no
21688      ;;
21689
21690    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21691    freebsd* | dragonfly*)
21692      archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21693      hardcode_libdir_flag_spec_FC='-R$libdir'
21694      hardcode_direct_FC=yes
21695      hardcode_shlibpath_var_FC=no
21696      ;;
21697
21698    hpux9*)
21699      if test yes = "$GCC"; then
21700	archive_cmds_FC='$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'
21701      else
21702	archive_cmds_FC='$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'
21703      fi
21704      hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
21705      hardcode_libdir_separator_FC=:
21706      hardcode_direct_FC=yes
21707
21708      # hardcode_minus_L: Not really in the search PATH,
21709      # but as the default location of the library.
21710      hardcode_minus_L_FC=yes
21711      export_dynamic_flag_spec_FC='$wl-E'
21712      ;;
21713
21714    hpux10*)
21715      if test yes,no = "$GCC,$with_gnu_ld"; then
21716	archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21717      else
21718	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21719      fi
21720      if test no = "$with_gnu_ld"; then
21721	hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
21722	hardcode_libdir_separator_FC=:
21723	hardcode_direct_FC=yes
21724	hardcode_direct_absolute_FC=yes
21725	export_dynamic_flag_spec_FC='$wl-E'
21726	# hardcode_minus_L: Not really in the search PATH,
21727	# but as the default location of the library.
21728	hardcode_minus_L_FC=yes
21729      fi
21730      ;;
21731
21732    hpux11*)
21733      if test yes,no = "$GCC,$with_gnu_ld"; then
21734	case $host_cpu in
21735	hppa*64*)
21736	  archive_cmds_FC='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
21737	  ;;
21738	ia64*)
21739	  archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21740	  ;;
21741	*)
21742	  archive_cmds_FC='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21743	  ;;
21744	esac
21745      else
21746	case $host_cpu in
21747	hppa*64*)
21748	  archive_cmds_FC='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
21749	  ;;
21750	ia64*)
21751	  archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
21752	  ;;
21753	*)
21754	archive_cmds_FC='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21755	  ;;
21756	esac
21757      fi
21758      if test no = "$with_gnu_ld"; then
21759	hardcode_libdir_flag_spec_FC='$wl+b $wl$libdir'
21760	hardcode_libdir_separator_FC=:
21761
21762	case $host_cpu in
21763	hppa*64*|ia64*)
21764	  hardcode_direct_FC=no
21765	  hardcode_shlibpath_var_FC=no
21766	  ;;
21767	*)
21768	  hardcode_direct_FC=yes
21769	  hardcode_direct_absolute_FC=yes
21770	  export_dynamic_flag_spec_FC='$wl-E'
21771
21772	  # hardcode_minus_L: Not really in the search PATH,
21773	  # but as the default location of the library.
21774	  hardcode_minus_L_FC=yes
21775	  ;;
21776	esac
21777      fi
21778      ;;
21779
21780    irix5* | irix6* | nonstopux*)
21781      if test yes = "$GCC"; then
21782	archive_cmds_FC='$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'
21783	# Try to use the -exported_symbol ld option, if it does not
21784	# work, assume that -exports_file does not work either and
21785	# implicitly export all symbols.
21786	# This should be the same for all languages, so no per-tag cache variable.
21787	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
21788printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
21789if test ${lt_cv_irix_exported_symbol+y}
21790then :
21791  printf %s "(cached) " >&6
21792else $as_nop
21793  save_LDFLAGS=$LDFLAGS
21794	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
21795	   cat > conftest.$ac_ext <<_ACEOF
21796
21797      subroutine foo
21798      end
21799_ACEOF
21800if ac_fn_fc_try_link "$LINENO"
21801then :
21802  lt_cv_irix_exported_symbol=yes
21803else $as_nop
21804  lt_cv_irix_exported_symbol=no
21805fi
21806rm -f core conftest.err conftest.$ac_objext conftest.beam \
21807    conftest$ac_exeext conftest.$ac_ext
21808           LDFLAGS=$save_LDFLAGS
21809fi
21810{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
21811printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
21812	if test yes = "$lt_cv_irix_exported_symbol"; then
21813          archive_expsym_cmds_FC='$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'
21814	fi
21815      else
21816	archive_cmds_FC='$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'
21817	archive_expsym_cmds_FC='$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'
21818      fi
21819      archive_cmds_need_lc_FC='no'
21820      hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21821      hardcode_libdir_separator_FC=:
21822      inherit_rpath_FC=yes
21823      link_all_deplibs_FC=yes
21824      ;;
21825
21826    linux*)
21827      case $cc_basename in
21828      tcc*)
21829	# Fabrice Bellard et al's Tiny C Compiler
21830	ld_shlibs_FC=yes
21831	archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21832	;;
21833      esac
21834      ;;
21835
21836    netbsd*)
21837      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21838	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
21839      else
21840	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
21841      fi
21842      hardcode_libdir_flag_spec_FC='-R$libdir'
21843      hardcode_direct_FC=yes
21844      hardcode_shlibpath_var_FC=no
21845      ;;
21846
21847    newsos6)
21848      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21849      hardcode_direct_FC=yes
21850      hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21851      hardcode_libdir_separator_FC=:
21852      hardcode_shlibpath_var_FC=no
21853      ;;
21854
21855    *nto* | *qnx*)
21856      ;;
21857
21858    openbsd* | bitrig*)
21859      if test -f /usr/libexec/ld.so; then
21860	hardcode_direct_FC=yes
21861	hardcode_shlibpath_var_FC=no
21862	hardcode_direct_absolute_FC=yes
21863	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21864	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21865	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
21866	  hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
21867	  export_dynamic_flag_spec_FC='$wl-E'
21868	else
21869	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21870	  hardcode_libdir_flag_spec_FC='$wl-rpath,$libdir'
21871	fi
21872      else
21873	ld_shlibs_FC=no
21874      fi
21875      ;;
21876
21877    os2*)
21878      hardcode_libdir_flag_spec_FC='-L$libdir'
21879      hardcode_minus_L_FC=yes
21880      allow_undefined_flag_FC=unsupported
21881      shrext_cmds=.dll
21882      archive_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21883	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21884	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21885	$ECHO EXPORTS >> $output_objdir/$libname.def~
21886	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
21887	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21888	emximp -o $lib $output_objdir/$libname.def'
21889      archive_expsym_cmds_FC='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21890	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21891	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21892	$ECHO EXPORTS >> $output_objdir/$libname.def~
21893	prefix_cmds="$SED"~
21894	if test EXPORTS = "`$SED 1q $export_symbols`"; then
21895	  prefix_cmds="$prefix_cmds -e 1d";
21896	fi~
21897	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
21898	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
21899	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21900	emximp -o $lib $output_objdir/$libname.def'
21901      old_archive_From_new_cmds_FC='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
21902      enable_shared_with_static_runtimes_FC=yes
21903      ;;
21904
21905    osf3*)
21906      if test yes = "$GCC"; then
21907	allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
21908	archive_cmds_FC='$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'
21909      else
21910	allow_undefined_flag_FC=' -expect_unresolved \*'
21911	archive_cmds_FC='$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'
21912      fi
21913      archive_cmds_need_lc_FC='no'
21914      hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21915      hardcode_libdir_separator_FC=:
21916      ;;
21917
21918    osf4* | osf5*)	# as osf3* with the addition of -msym flag
21919      if test yes = "$GCC"; then
21920	allow_undefined_flag_FC=' $wl-expect_unresolved $wl\*'
21921	archive_cmds_FC='$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'
21922	hardcode_libdir_flag_spec_FC='$wl-rpath $wl$libdir'
21923      else
21924	allow_undefined_flag_FC=' -expect_unresolved \*'
21925	archive_cmds_FC='$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'
21926	archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
21927          $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'
21928
21929	# Both c and cxx compiler support -rpath directly
21930	hardcode_libdir_flag_spec_FC='-rpath $libdir'
21931      fi
21932      archive_cmds_need_lc_FC='no'
21933      hardcode_libdir_separator_FC=:
21934      ;;
21935
21936    solaris*)
21937      no_undefined_flag_FC=' -z defs'
21938      if test yes = "$GCC"; then
21939	wlarc='$wl'
21940	archive_cmds_FC='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
21941	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21942          $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'
21943      else
21944	case `$CC -V 2>&1` in
21945	*"Compilers 5.0"*)
21946	  wlarc=''
21947	  archive_cmds_FC='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
21948	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21949            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21950	  ;;
21951	*)
21952	  wlarc='$wl'
21953	  archive_cmds_FC='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21954	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21955            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21956	  ;;
21957	esac
21958      fi
21959      hardcode_libdir_flag_spec_FC='-R$libdir'
21960      hardcode_shlibpath_var_FC=no
21961      case $host_os in
21962      solaris2.[0-5] | solaris2.[0-5].*) ;;
21963      *)
21964	# The compiler driver will combine and reorder linker options,
21965	# but understands '-z linker_flag'.  GCC discards it without '$wl',
21966	# but is careful enough not to reorder.
21967	# Supported since Solaris 2.6 (maybe 2.5.1?)
21968	if test yes = "$GCC"; then
21969	  whole_archive_flag_spec_FC='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
21970	else
21971	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
21972	fi
21973	;;
21974      esac
21975      link_all_deplibs_FC=yes
21976      ;;
21977
21978    sunos4*)
21979      if test sequent = "$host_vendor"; then
21980	# Use $CC to link under sequent, because it throws in some extra .o
21981	# files that make .init and .fini sections work.
21982	archive_cmds_FC='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21983      else
21984	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21985      fi
21986      hardcode_libdir_flag_spec_FC='-L$libdir'
21987      hardcode_direct_FC=yes
21988      hardcode_minus_L_FC=yes
21989      hardcode_shlibpath_var_FC=no
21990      ;;
21991
21992    sysv4)
21993      case $host_vendor in
21994	sni)
21995	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21996	  hardcode_direct_FC=yes # is this really true???
21997	;;
21998	siemens)
21999	  ## LD is ld it makes a PLAMLIB
22000	  ## CC just makes a GrossModule.
22001	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22002	  reload_cmds_FC='$CC -r -o $output$reload_objs'
22003	  hardcode_direct_FC=no
22004        ;;
22005	motorola)
22006	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22007	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
22008	;;
22009      esac
22010      runpath_var='LD_RUN_PATH'
22011      hardcode_shlibpath_var_FC=no
22012      ;;
22013
22014    sysv4.3*)
22015      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22016      hardcode_shlibpath_var_FC=no
22017      export_dynamic_flag_spec_FC='-Bexport'
22018      ;;
22019
22020    sysv4*MP*)
22021      if test -d /usr/nec; then
22022	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22023	hardcode_shlibpath_var_FC=no
22024	runpath_var=LD_RUN_PATH
22025	hardcode_runpath_var=yes
22026	ld_shlibs_FC=yes
22027      fi
22028      ;;
22029
22030    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22031      no_undefined_flag_FC='$wl-z,text'
22032      archive_cmds_need_lc_FC=no
22033      hardcode_shlibpath_var_FC=no
22034      runpath_var='LD_RUN_PATH'
22035
22036      if test yes = "$GCC"; then
22037	archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22038	archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22039      else
22040	archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22041	archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22042      fi
22043      ;;
22044
22045    sysv5* | sco3.2v5* | sco5v6*)
22046      # Note: We CANNOT use -z defs as we might desire, because we do not
22047      # link with -lc, and that would cause any symbols used from libc to
22048      # always be unresolved, which means just about no library would
22049      # ever link correctly.  If we're not using GNU ld we use -z text
22050      # though, which does catch some bad symbols but isn't as heavy-handed
22051      # as -z defs.
22052      no_undefined_flag_FC='$wl-z,text'
22053      allow_undefined_flag_FC='$wl-z,nodefs'
22054      archive_cmds_need_lc_FC=no
22055      hardcode_shlibpath_var_FC=no
22056      hardcode_libdir_flag_spec_FC='$wl-R,$libdir'
22057      hardcode_libdir_separator_FC=':'
22058      link_all_deplibs_FC=yes
22059      export_dynamic_flag_spec_FC='$wl-Bexport'
22060      runpath_var='LD_RUN_PATH'
22061
22062      if test yes = "$GCC"; then
22063	archive_cmds_FC='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22064	archive_expsym_cmds_FC='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22065      else
22066	archive_cmds_FC='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22067	archive_expsym_cmds_FC='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22068      fi
22069      ;;
22070
22071    uts4*)
22072      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22073      hardcode_libdir_flag_spec_FC='-L$libdir'
22074      hardcode_shlibpath_var_FC=no
22075      ;;
22076
22077    *)
22078      ld_shlibs_FC=no
22079      ;;
22080    esac
22081
22082    if test sni = "$host_vendor"; then
22083      case $host in
22084      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22085	export_dynamic_flag_spec_FC='$wl-Blargedynsym'
22086	;;
22087      esac
22088    fi
22089  fi
22090
22091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
22092printf "%s\n" "$ld_shlibs_FC" >&6; }
22093test no = "$ld_shlibs_FC" && can_build_shared=no
22094
22095with_gnu_ld_FC=$with_gnu_ld
22096
22097
22098
22099
22100
22101
22102#
22103# Do we need to explicitly link libc?
22104#
22105case "x$archive_cmds_need_lc_FC" in
22106x|xyes)
22107  # Assume -lc should be added
22108  archive_cmds_need_lc_FC=yes
22109
22110  if test yes,yes = "$GCC,$enable_shared"; then
22111    case $archive_cmds_FC in
22112    *'~'*)
22113      # FIXME: we may have to deal with multi-command sequences.
22114      ;;
22115    '$CC '*)
22116      # Test whether the compiler implicitly links with -lc since on some
22117      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22118      # to ld, don't add -lc before -lgcc.
22119      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22120printf %s "checking whether -lc should be explicitly linked in... " >&6; }
22121if test ${lt_cv_archive_cmds_need_lc_FC+y}
22122then :
22123  printf %s "(cached) " >&6
22124else $as_nop
22125  $RM conftest*
22126	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22127
22128	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22129  (eval $ac_compile) 2>&5
22130  ac_status=$?
22131  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22132  test $ac_status = 0; } 2>conftest.err; then
22133	  soname=conftest
22134	  lib=conftest
22135	  libobjs=conftest.$ac_objext
22136	  deplibs=
22137	  wl=$lt_prog_compiler_wl_FC
22138	  pic_flag=$lt_prog_compiler_pic_FC
22139	  compiler_flags=-v
22140	  linker_flags=-v
22141	  verstring=
22142	  output_objdir=.
22143	  libname=conftest
22144	  lt_save_allow_undefined_flag=$allow_undefined_flag_FC
22145	  allow_undefined_flag_FC=
22146	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22147  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22148  ac_status=$?
22149  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22150  test $ac_status = 0; }
22151	  then
22152	    lt_cv_archive_cmds_need_lc_FC=no
22153	  else
22154	    lt_cv_archive_cmds_need_lc_FC=yes
22155	  fi
22156	  allow_undefined_flag_FC=$lt_save_allow_undefined_flag
22157	else
22158	  cat conftest.err 1>&5
22159	fi
22160	$RM conftest*
22161
22162fi
22163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
22164printf "%s\n" "$lt_cv_archive_cmds_need_lc_FC" >&6; }
22165      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
22166      ;;
22167    esac
22168  fi
22169  ;;
22170esac
22171
22172
22173
22174
22175
22176
22177
22178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216
22217
22218
22219
22220
22221
22222
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22234printf %s "checking dynamic linker characteristics... " >&6; }
22235
22236library_names_spec=
22237libname_spec='lib$name'
22238soname_spec=
22239shrext_cmds=.so
22240postinstall_cmds=
22241postuninstall_cmds=
22242finish_cmds=
22243finish_eval=
22244shlibpath_var=
22245shlibpath_overrides_runpath=unknown
22246version_type=none
22247dynamic_linker="$host_os ld.so"
22248sys_lib_dlsearch_path_spec="/lib /usr/lib"
22249need_lib_prefix=unknown
22250hardcode_into_libs=no
22251
22252# when you set need_version to no, make sure it does not cause -set_version
22253# flags to be left without arguments
22254need_version=unknown
22255
22256
22257
22258case $host_os in
22259aix3*)
22260  version_type=linux # correct to gnu/linux during the next big refactor
22261  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22262  shlibpath_var=LIBPATH
22263
22264  # AIX 3 has no versioning support, so we append a major version to the name.
22265  soname_spec='$libname$release$shared_ext$major'
22266  ;;
22267
22268aix[4-9]*)
22269  version_type=linux # correct to gnu/linux during the next big refactor
22270  need_lib_prefix=no
22271  need_version=no
22272  hardcode_into_libs=yes
22273  if test ia64 = "$host_cpu"; then
22274    # AIX 5 supports IA64
22275    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22276    shlibpath_var=LD_LIBRARY_PATH
22277  else
22278    # With GCC up to 2.95.x, collect2 would create an import file
22279    # for dependence libraries.  The import file would start with
22280    # the line '#! .'.  This would cause the generated library to
22281    # depend on '.', always an invalid library.  This was fixed in
22282    # development snapshots of GCC prior to 3.0.
22283    case $host_os in
22284      aix4 | aix4.[01] | aix4.[01].*)
22285      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22286	   echo ' yes '
22287	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22288	:
22289      else
22290	can_build_shared=no
22291      fi
22292      ;;
22293    esac
22294    # Using Import Files as archive members, it is possible to support
22295    # filename-based versioning of shared library archives on AIX. While
22296    # this would work for both with and without runtime linking, it will
22297    # prevent static linking of such archives. So we do filename-based
22298    # shared library versioning with .so extension only, which is used
22299    # when both runtime linking and shared linking is enabled.
22300    # Unfortunately, runtime linking may impact performance, so we do
22301    # not want this to be the default eventually. Also, we use the
22302    # versioned .so libs for executables only if there is the -brtl
22303    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
22304    # To allow for filename-based versioning support, we need to create
22305    # libNAME.so.V as an archive file, containing:
22306    # *) an Import File, referring to the versioned filename of the
22307    #    archive as well as the shared archive member, telling the
22308    #    bitwidth (32 or 64) of that shared object, and providing the
22309    #    list of exported symbols of that shared object, eventually
22310    #    decorated with the 'weak' keyword
22311    # *) the shared object with the F_LOADONLY flag set, to really avoid
22312    #    it being seen by the linker.
22313    # At run time we better use the real file rather than another symlink,
22314    # but for link time we create the symlink libNAME.so -> libNAME.so.V
22315
22316    case $with_aix_soname,$aix_use_runtimelinking in
22317    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22318    # soname into executable. Probably we can add versioning support to
22319    # collect2, so additional links can be useful in future.
22320    aix,yes) # traditional libtool
22321      dynamic_linker='AIX unversionable lib.so'
22322      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22323      # instead of lib<name>.a to let people know that these are not
22324      # typical AIX shared libraries.
22325      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22326      ;;
22327    aix,no) # traditional AIX only
22328      dynamic_linker='AIX lib.a(lib.so.V)'
22329      # We preserve .a as extension for shared libraries through AIX4.2
22330      # and later when we are not doing run time linking.
22331      library_names_spec='$libname$release.a $libname.a'
22332      soname_spec='$libname$release$shared_ext$major'
22333      ;;
22334    svr4,*) # full svr4 only
22335      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
22336      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22337      # We do not specify a path in Import Files, so LIBPATH fires.
22338      shlibpath_overrides_runpath=yes
22339      ;;
22340    *,yes) # both, prefer svr4
22341      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
22342      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22343      # unpreferred sharedlib libNAME.a needs extra handling
22344      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"'
22345      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"'
22346      # We do not specify a path in Import Files, so LIBPATH fires.
22347      shlibpath_overrides_runpath=yes
22348      ;;
22349    *,no) # both, prefer aix
22350      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
22351      library_names_spec='$libname$release.a $libname.a'
22352      soname_spec='$libname$release$shared_ext$major'
22353      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
22354      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)'
22355      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"'
22356      ;;
22357    esac
22358    shlibpath_var=LIBPATH
22359  fi
22360  ;;
22361
22362amigaos*)
22363  case $host_cpu in
22364  powerpc)
22365    # Since July 2007 AmigaOS4 officially supports .so libraries.
22366    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22367    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22368    ;;
22369  m68k)
22370    library_names_spec='$libname.ixlibrary $libname.a'
22371    # Create ${libname}_ixlibrary.a entries in /sys/libs.
22372    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'
22373    ;;
22374  esac
22375  ;;
22376
22377beos*)
22378  library_names_spec='$libname$shared_ext'
22379  dynamic_linker="$host_os ld.so"
22380  shlibpath_var=LIBRARY_PATH
22381  ;;
22382
22383bsdi[45]*)
22384  version_type=linux # correct to gnu/linux during the next big refactor
22385  need_version=no
22386  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22387  soname_spec='$libname$release$shared_ext$major'
22388  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22389  shlibpath_var=LD_LIBRARY_PATH
22390  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22391  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22392  # the default ld.so.conf also contains /usr/contrib/lib and
22393  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22394  # libtool to hard-code these into programs
22395  ;;
22396
22397cygwin* | mingw* | pw32* | cegcc*)
22398  version_type=windows
22399  shrext_cmds=.dll
22400  need_version=no
22401  need_lib_prefix=no
22402
22403  case $GCC,$cc_basename in
22404  yes,*)
22405    # gcc
22406    library_names_spec='$libname.dll.a'
22407    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22408    postinstall_cmds='base_file=`basename \$file`~
22409      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22410      dldir=$destdir/`dirname \$dlpath`~
22411      test -d \$dldir || mkdir -p \$dldir~
22412      $install_prog $dir/$dlname \$dldir/$dlname~
22413      chmod a+x \$dldir/$dlname~
22414      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22415        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22416      fi'
22417    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22418      dlpath=$dir/\$dldll~
22419       $RM \$dlpath'
22420    shlibpath_overrides_runpath=yes
22421
22422    case $host_os in
22423    cygwin*)
22424      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22425      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22426
22427      ;;
22428    mingw* | cegcc*)
22429      # MinGW DLLs use traditional 'lib' prefix
22430      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22431      ;;
22432    pw32*)
22433      # pw32 DLLs use 'pw' prefix rather than 'lib'
22434      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22435      ;;
22436    esac
22437    dynamic_linker='Win32 ld.exe'
22438    ;;
22439
22440  *,cl*)
22441    # Native MSVC
22442    libname_spec='$name'
22443    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22444    library_names_spec='$libname.dll.lib'
22445
22446    case $build_os in
22447    mingw*)
22448      sys_lib_search_path_spec=
22449      lt_save_ifs=$IFS
22450      IFS=';'
22451      for lt_path in $LIB
22452      do
22453        IFS=$lt_save_ifs
22454        # Let DOS variable expansion print the short 8.3 style file name.
22455        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22456        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22457      done
22458      IFS=$lt_save_ifs
22459      # Convert to MSYS style.
22460      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22461      ;;
22462    cygwin*)
22463      # Convert to unix form, then to dos form, then back to unix form
22464      # but this time dos style (no spaces!) so that the unix form looks
22465      # like /cygdrive/c/PROGRA~1:/cygdr...
22466      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22467      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
22468      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22469      ;;
22470    *)
22471      sys_lib_search_path_spec=$LIB
22472      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
22473        # It is most probably a Windows format PATH.
22474        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22475      else
22476        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22477      fi
22478      # FIXME: find the short name or the path components, as spaces are
22479      # common. (e.g. "Program Files" -> "PROGRA~1")
22480      ;;
22481    esac
22482
22483    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22484    postinstall_cmds='base_file=`basename \$file`~
22485      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22486      dldir=$destdir/`dirname \$dlpath`~
22487      test -d \$dldir || mkdir -p \$dldir~
22488      $install_prog $dir/$dlname \$dldir/$dlname'
22489    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22490      dlpath=$dir/\$dldll~
22491       $RM \$dlpath'
22492    shlibpath_overrides_runpath=yes
22493    dynamic_linker='Win32 link.exe'
22494    ;;
22495
22496  *)
22497    # Assume MSVC wrapper
22498    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
22499    dynamic_linker='Win32 ld.exe'
22500    ;;
22501  esac
22502  # FIXME: first we should search . and the directory the executable is in
22503  shlibpath_var=PATH
22504  ;;
22505
22506darwin* | rhapsody*)
22507  dynamic_linker="$host_os dyld"
22508  version_type=darwin
22509  need_lib_prefix=no
22510  need_version=no
22511  library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
22512  soname_spec='$libname$release$major$shared_ext'
22513  shlibpath_overrides_runpath=yes
22514  shlibpath_var=DYLD_LIBRARY_PATH
22515  shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
22516
22517  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22518  ;;
22519
22520dgux*)
22521  version_type=linux # correct to gnu/linux during the next big refactor
22522  need_lib_prefix=no
22523  need_version=no
22524  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22525  soname_spec='$libname$release$shared_ext$major'
22526  shlibpath_var=LD_LIBRARY_PATH
22527  ;;
22528
22529freebsd* | dragonfly*)
22530  # DragonFly does not have aout.  When/if they implement a new
22531  # versioning mechanism, adjust this.
22532  if test -x /usr/bin/objformat; then
22533    objformat=`/usr/bin/objformat`
22534  else
22535    case $host_os in
22536    freebsd[23].*) objformat=aout ;;
22537    *) objformat=elf ;;
22538    esac
22539  fi
22540  # Handle Gentoo/FreeBSD as it was Linux
22541  case $host_vendor in
22542    gentoo)
22543      version_type=linux ;;
22544    *)
22545      version_type=freebsd-$objformat ;;
22546  esac
22547
22548  case $version_type in
22549    freebsd-elf*)
22550      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22551      soname_spec='$libname$release$shared_ext$major'
22552      need_version=no
22553      need_lib_prefix=no
22554      ;;
22555    freebsd-*)
22556      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22557      need_version=yes
22558      ;;
22559    linux)
22560      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22561      soname_spec='${libname}${release}${shared_ext}$major'
22562      need_lib_prefix=no
22563      need_version=no
22564      ;;
22565  esac
22566  shlibpath_var=LD_LIBRARY_PATH
22567  case $host_os in
22568  freebsd2.*)
22569    shlibpath_overrides_runpath=yes
22570    ;;
22571  freebsd3.[01]* | freebsdelf3.[01]*)
22572    shlibpath_overrides_runpath=yes
22573    hardcode_into_libs=yes
22574    ;;
22575  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22576  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22577    shlibpath_overrides_runpath=no
22578    hardcode_into_libs=yes
22579    ;;
22580  *) # from 4.6 on, and DragonFly
22581    shlibpath_overrides_runpath=yes
22582    hardcode_into_libs=yes
22583    ;;
22584  esac
22585  ;;
22586
22587haiku*)
22588  version_type=linux # correct to gnu/linux during the next big refactor
22589  need_lib_prefix=no
22590  need_version=no
22591  dynamic_linker="$host_os runtime_loader"
22592  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22593  soname_spec='$libname$release$shared_ext$major'
22594  shlibpath_var=LIBRARY_PATH
22595  shlibpath_overrides_runpath=no
22596  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22597  hardcode_into_libs=yes
22598  ;;
22599
22600hpux9* | hpux10* | hpux11*)
22601  # Give a soname corresponding to the major version so that dld.sl refuses to
22602  # link against other versions.
22603  version_type=sunos
22604  need_lib_prefix=no
22605  need_version=no
22606  case $host_cpu in
22607  ia64*)
22608    shrext_cmds='.so'
22609    hardcode_into_libs=yes
22610    dynamic_linker="$host_os dld.so"
22611    shlibpath_var=LD_LIBRARY_PATH
22612    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22613    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22614    soname_spec='$libname$release$shared_ext$major'
22615    if test 32 = "$HPUX_IA64_MODE"; then
22616      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22617      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
22618    else
22619      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22620      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
22621    fi
22622    ;;
22623  hppa*64*)
22624    shrext_cmds='.sl'
22625    hardcode_into_libs=yes
22626    dynamic_linker="$host_os dld.sl"
22627    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22628    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22629    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22630    soname_spec='$libname$release$shared_ext$major'
22631    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22632    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22633    ;;
22634  *)
22635    shrext_cmds='.sl'
22636    dynamic_linker="$host_os dld.sl"
22637    shlibpath_var=SHLIB_PATH
22638    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22639    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22640    soname_spec='$libname$release$shared_ext$major'
22641    ;;
22642  esac
22643  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22644  postinstall_cmds='chmod 555 $lib'
22645  # or fails outright, so override atomically:
22646  install_override_mode=555
22647  ;;
22648
22649interix[3-9]*)
22650  version_type=linux # correct to gnu/linux during the next big refactor
22651  need_lib_prefix=no
22652  need_version=no
22653  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22654  soname_spec='$libname$release$shared_ext$major'
22655  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22656  shlibpath_var=LD_LIBRARY_PATH
22657  shlibpath_overrides_runpath=no
22658  hardcode_into_libs=yes
22659  ;;
22660
22661irix5* | irix6* | nonstopux*)
22662  case $host_os in
22663    nonstopux*) version_type=nonstopux ;;
22664    *)
22665	if test yes = "$lt_cv_prog_gnu_ld"; then
22666		version_type=linux # correct to gnu/linux during the next big refactor
22667	else
22668		version_type=irix
22669	fi ;;
22670  esac
22671  need_lib_prefix=no
22672  need_version=no
22673  soname_spec='$libname$release$shared_ext$major'
22674  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
22675  case $host_os in
22676  irix5* | nonstopux*)
22677    libsuff= shlibsuff=
22678    ;;
22679  *)
22680    case $LD in # libtool.m4 will add one of these switches to LD
22681    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22682      libsuff= shlibsuff= libmagic=32-bit;;
22683    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22684      libsuff=32 shlibsuff=N32 libmagic=N32;;
22685    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22686      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22687    *) libsuff= shlibsuff= libmagic=never-match;;
22688    esac
22689    ;;
22690  esac
22691  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22692  shlibpath_overrides_runpath=no
22693  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
22694  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
22695  hardcode_into_libs=yes
22696  ;;
22697
22698# No shared lib support for Linux oldld, aout, or coff.
22699linux*oldld* | linux*aout* | linux*coff*)
22700  dynamic_linker=no
22701  ;;
22702
22703linux*android*)
22704  version_type=none # Android doesn't support versioned libraries.
22705  need_lib_prefix=no
22706  need_version=no
22707  library_names_spec='$libname$release$shared_ext'
22708  soname_spec='$libname$release$shared_ext'
22709  finish_cmds=
22710  shlibpath_var=LD_LIBRARY_PATH
22711  shlibpath_overrides_runpath=yes
22712
22713  # This implies no fast_install, which is unacceptable.
22714  # Some rework will be needed to allow for fast_install
22715  # before this can be enabled.
22716  hardcode_into_libs=yes
22717
22718  dynamic_linker='Android linker'
22719  # Don't embed -rpath directories since the linker doesn't support them.
22720  hardcode_libdir_flag_spec_FC='-L$libdir'
22721  ;;
22722
22723# This must be glibc/ELF.
22724linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22725  version_type=linux # correct to gnu/linux during the next big refactor
22726  need_lib_prefix=no
22727  need_version=no
22728  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22729  soname_spec='$libname$release$shared_ext$major'
22730  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22731  shlibpath_var=LD_LIBRARY_PATH
22732  shlibpath_overrides_runpath=no
22733
22734  # Some binutils ld are patched to set DT_RUNPATH
22735  if test ${lt_cv_shlibpath_overrides_runpath+y}
22736then :
22737  printf %s "(cached) " >&6
22738else $as_nop
22739  lt_cv_shlibpath_overrides_runpath=no
22740    save_LDFLAGS=$LDFLAGS
22741    save_libdir=$libdir
22742    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
22743	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
22744    cat > conftest.$ac_ext <<_ACEOF
22745      program main
22746
22747      end
22748_ACEOF
22749if ac_fn_fc_try_link "$LINENO"
22750then :
22751  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
22752then :
22753  lt_cv_shlibpath_overrides_runpath=yes
22754fi
22755fi
22756rm -f core conftest.err conftest.$ac_objext conftest.beam \
22757    conftest$ac_exeext conftest.$ac_ext
22758    LDFLAGS=$save_LDFLAGS
22759    libdir=$save_libdir
22760
22761fi
22762
22763  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22764
22765  # This implies no fast_install, which is unacceptable.
22766  # Some rework will be needed to allow for fast_install
22767  # before this can be enabled.
22768  hardcode_into_libs=yes
22769
22770  # Ideally, we could use ldconfig to report *all* directores which are
22771  # searched for libraries, however this is still not possible.  Aside from not
22772  # being certain /sbin/ldconfig is available, command
22773  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
22774  # even though it is searched at run-time.  Try to do the best guess by
22775  # appending ld.so.conf contents (and includes) to the search path.
22776  if test -f /etc/ld.so.conf; then
22777    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' ' '`
22778    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22779  fi
22780
22781  # We used to test for /lib/ld.so.1 and disable shared libraries on
22782  # powerpc, because MkLinux only supported shared libraries with the
22783  # GNU dynamic linker.  Since this was broken with cross compilers,
22784  # most powerpc-linux boxes support dynamic linking these days and
22785  # people can always --disable-shared, the test was removed, and we
22786  # assume the GNU/Linux dynamic linker is in use.
22787  dynamic_linker='GNU/Linux ld.so'
22788  ;;
22789
22790netbsd*)
22791  version_type=sunos
22792  need_lib_prefix=no
22793  need_version=no
22794  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22795    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22796    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22797    dynamic_linker='NetBSD (a.out) ld.so'
22798  else
22799    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22800    soname_spec='$libname$release$shared_ext$major'
22801    dynamic_linker='NetBSD ld.elf_so'
22802  fi
22803  shlibpath_var=LD_LIBRARY_PATH
22804  shlibpath_overrides_runpath=yes
22805  hardcode_into_libs=yes
22806  ;;
22807
22808newsos6)
22809  version_type=linux # correct to gnu/linux during the next big refactor
22810  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22811  shlibpath_var=LD_LIBRARY_PATH
22812  shlibpath_overrides_runpath=yes
22813  ;;
22814
22815*nto* | *qnx*)
22816  version_type=qnx
22817  need_lib_prefix=no
22818  need_version=no
22819  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22820  soname_spec='$libname$release$shared_ext$major'
22821  shlibpath_var=LD_LIBRARY_PATH
22822  shlibpath_overrides_runpath=no
22823  hardcode_into_libs=yes
22824  dynamic_linker='ldqnx.so'
22825  ;;
22826
22827openbsd* | bitrig*)
22828  version_type=sunos
22829  sys_lib_dlsearch_path_spec=/usr/lib
22830  need_lib_prefix=no
22831  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
22832    need_version=no
22833  else
22834    need_version=yes
22835  fi
22836  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22837  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22838  shlibpath_var=LD_LIBRARY_PATH
22839  shlibpath_overrides_runpath=yes
22840  ;;
22841
22842os2*)
22843  libname_spec='$name'
22844  version_type=windows
22845  shrext_cmds=.dll
22846  need_version=no
22847  need_lib_prefix=no
22848  # OS/2 can only load a DLL with a base name of 8 characters or less.
22849  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
22850    v=$($ECHO $release$versuffix | tr -d .-);
22851    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
22852    $ECHO $n$v`$shared_ext'
22853  library_names_spec='${libname}_dll.$libext'
22854  dynamic_linker='OS/2 ld.exe'
22855  shlibpath_var=BEGINLIBPATH
22856  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22857  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22858  postinstall_cmds='base_file=`basename \$file`~
22859    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
22860    dldir=$destdir/`dirname \$dlpath`~
22861    test -d \$dldir || mkdir -p \$dldir~
22862    $install_prog $dir/$dlname \$dldir/$dlname~
22863    chmod a+x \$dldir/$dlname~
22864    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22865      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22866    fi'
22867  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
22868    dlpath=$dir/\$dldll~
22869    $RM \$dlpath'
22870  ;;
22871
22872osf3* | osf4* | osf5*)
22873  version_type=osf
22874  need_lib_prefix=no
22875  need_version=no
22876  soname_spec='$libname$release$shared_ext$major'
22877  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22878  shlibpath_var=LD_LIBRARY_PATH
22879  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22880  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22881  ;;
22882
22883rdos*)
22884  dynamic_linker=no
22885  ;;
22886
22887solaris*)
22888  version_type=linux # correct to gnu/linux during the next big refactor
22889  need_lib_prefix=no
22890  need_version=no
22891  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22892  soname_spec='$libname$release$shared_ext$major'
22893  shlibpath_var=LD_LIBRARY_PATH
22894  shlibpath_overrides_runpath=yes
22895  hardcode_into_libs=yes
22896  # ldd complains unless libraries are executable
22897  postinstall_cmds='chmod +x $lib'
22898  ;;
22899
22900sunos4*)
22901  version_type=sunos
22902  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22903  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22904  shlibpath_var=LD_LIBRARY_PATH
22905  shlibpath_overrides_runpath=yes
22906  if test yes = "$with_gnu_ld"; then
22907    need_lib_prefix=no
22908  fi
22909  need_version=yes
22910  ;;
22911
22912sysv4 | sysv4.3*)
22913  version_type=linux # correct to gnu/linux during the next big refactor
22914  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22915  soname_spec='$libname$release$shared_ext$major'
22916  shlibpath_var=LD_LIBRARY_PATH
22917  case $host_vendor in
22918    sni)
22919      shlibpath_overrides_runpath=no
22920      need_lib_prefix=no
22921      runpath_var=LD_RUN_PATH
22922      ;;
22923    siemens)
22924      need_lib_prefix=no
22925      ;;
22926    motorola)
22927      need_lib_prefix=no
22928      need_version=no
22929      shlibpath_overrides_runpath=no
22930      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22931      ;;
22932  esac
22933  ;;
22934
22935sysv4*MP*)
22936  if test -d /usr/nec; then
22937    version_type=linux # correct to gnu/linux during the next big refactor
22938    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22939    soname_spec='$libname$shared_ext.$major'
22940    shlibpath_var=LD_LIBRARY_PATH
22941  fi
22942  ;;
22943
22944sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22945  version_type=sco
22946  need_lib_prefix=no
22947  need_version=no
22948  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22949  soname_spec='$libname$release$shared_ext$major'
22950  shlibpath_var=LD_LIBRARY_PATH
22951  shlibpath_overrides_runpath=yes
22952  hardcode_into_libs=yes
22953  if test yes = "$with_gnu_ld"; then
22954    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22955  else
22956    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22957    case $host_os in
22958      sco3.2v5*)
22959        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22960	;;
22961    esac
22962  fi
22963  sys_lib_dlsearch_path_spec='/usr/lib'
22964  ;;
22965
22966tpf*)
22967  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22968  version_type=linux # correct to gnu/linux during the next big refactor
22969  need_lib_prefix=no
22970  need_version=no
22971  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22972  shlibpath_var=LD_LIBRARY_PATH
22973  shlibpath_overrides_runpath=no
22974  hardcode_into_libs=yes
22975  ;;
22976
22977uts4*)
22978  version_type=linux # correct to gnu/linux during the next big refactor
22979  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22980  soname_spec='$libname$release$shared_ext$major'
22981  shlibpath_var=LD_LIBRARY_PATH
22982  ;;
22983
22984*)
22985  dynamic_linker=no
22986  ;;
22987esac
22988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22989printf "%s\n" "$dynamic_linker" >&6; }
22990test no = "$dynamic_linker" && can_build_shared=no
22991
22992variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22993if test yes = "$GCC"; then
22994  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22995fi
22996
22997if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22998  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22999fi
23000
23001if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
23002  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
23003fi
23004
23005# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
23006configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
23007
23008# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
23009func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
23010
23011# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
23012configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23054printf %s "checking how to hardcode library paths into programs... " >&6; }
23055hardcode_action_FC=
23056if test -n "$hardcode_libdir_flag_spec_FC" ||
23057   test -n "$runpath_var_FC" ||
23058   test yes = "$hardcode_automatic_FC"; then
23059
23060  # We can hardcode non-existent directories.
23061  if test no != "$hardcode_direct_FC" &&
23062     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23063     # have to relink, otherwise we might link with an installed library
23064     # when we should be linking with a yet-to-be-installed one
23065     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" &&
23066     test no != "$hardcode_minus_L_FC"; then
23067    # Linking always hardcodes the temporary library directory.
23068    hardcode_action_FC=relink
23069  else
23070    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23071    hardcode_action_FC=immediate
23072  fi
23073else
23074  # We cannot hardcode anything, or else we can only hardcode existing
23075  # directories.
23076  hardcode_action_FC=unsupported
23077fi
23078{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
23079printf "%s\n" "$hardcode_action_FC" >&6; }
23080
23081if test relink = "$hardcode_action_FC" ||
23082   test yes = "$inherit_rpath_FC"; then
23083  # Fast installation is not supported
23084  enable_fast_install=no
23085elif test yes = "$shlibpath_overrides_runpath" ||
23086     test no = "$enable_shared"; then
23087  # Fast installation is not necessary
23088  enable_fast_install=needless
23089fi
23090
23091
23092
23093
23094
23095
23096
23097  fi # test -n "$compiler"
23098
23099  GCC=$lt_save_GCC
23100  CC=$lt_save_CC
23101  CFLAGS=$lt_save_CFLAGS
23102fi # test yes != "$_lt_disable_FC"
23103
23104ac_ext=cpp
23105ac_cpp='$CXXCPP $CPPFLAGS'
23106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23109
23110
23111
23112
23113
23114
23115
23116
23117
23118
23119
23120        ac_config_commands="$ac_config_commands libtool"
23121
23122
23123
23124
23125# Only expand once:
23126
23127
23128
23129# Output
23130ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile tests/Makefile fortran/Makefile qd-config fortran/second.f qd.pc"
23131
23132cat >confcache <<\_ACEOF
23133# This file is a shell script that caches the results of configure
23134# tests run on this system so they can be shared between configure
23135# scripts and configure runs, see configure's option --config-cache.
23136# It is not useful on other systems.  If it contains results you don't
23137# want to keep, you may remove or edit it.
23138#
23139# config.status only pays attention to the cache file if you give it
23140# the --recheck option to rerun configure.
23141#
23142# `ac_cv_env_foo' variables (set or unset) will be overridden when
23143# loading this file, other *unset* `ac_cv_foo' will be assigned the
23144# following values.
23145
23146_ACEOF
23147
23148# The following way of writing the cache mishandles newlines in values,
23149# but we know of no workaround that is simple, portable, and efficient.
23150# So, we kill variables containing newlines.
23151# Ultrix sh set writes to stderr and can't be redirected directly,
23152# and sets the high bit in the cache file unless we assign to the vars.
23153(
23154  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23155    eval ac_val=\$$ac_var
23156    case $ac_val in #(
23157    *${as_nl}*)
23158      case $ac_var in #(
23159      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
23160printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
23161      esac
23162      case $ac_var in #(
23163      _ | IFS | as_nl) ;; #(
23164      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
23165      *) { eval $ac_var=; unset $ac_var;} ;;
23166      esac ;;
23167    esac
23168  done
23169
23170  (set) 2>&1 |
23171    case $as_nl`(ac_space=' '; set) 2>&1` in #(
23172    *${as_nl}ac_space=\ *)
23173      # `set' does not quote correctly, so add quotes: double-quote
23174      # substitution turns \\\\ into \\, and sed turns \\ into \.
23175      sed -n \
23176	"s/'/'\\\\''/g;
23177	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23178      ;; #(
23179    *)
23180      # `set' quotes correctly as required by POSIX, so do not add quotes.
23181      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23182      ;;
23183    esac |
23184    sort
23185) |
23186  sed '
23187     /^ac_cv_env_/b end
23188     t clear
23189     :clear
23190     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
23191     t end
23192     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23193     :end' >>confcache
23194if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23195  if test -w "$cache_file"; then
23196    if test "x$cache_file" != "x/dev/null"; then
23197      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
23198printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
23199      if test ! -f "$cache_file" || test -h "$cache_file"; then
23200	cat confcache >"$cache_file"
23201      else
23202        case $cache_file in #(
23203        */* | ?:*)
23204	  mv -f confcache "$cache_file"$$ &&
23205	  mv -f "$cache_file"$$ "$cache_file" ;; #(
23206        *)
23207	  mv -f confcache "$cache_file" ;;
23208	esac
23209      fi
23210    fi
23211  else
23212    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
23213printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
23214  fi
23215fi
23216rm -f confcache
23217
23218test "x$prefix" = xNONE && prefix=$ac_default_prefix
23219# Let make expand exec_prefix.
23220test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23221
23222DEFS=-DHAVE_CONFIG_H
23223
23224ac_libobjs=
23225ac_ltlibobjs=
23226U=
23227for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23228  # 1. Remove the extension, and $U if already installed.
23229  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23230  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
23231  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23232  #    will be set to the directory where LIBOBJS objects are built.
23233  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23234  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
23235done
23236LIBOBJS=$ac_libobjs
23237
23238LTLIBOBJS=$ac_ltlibobjs
23239
23240
23241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
23242printf %s "checking that generated files are newer than configure... " >&6; }
23243   if test -n "$am_sleep_pid"; then
23244     # Hide warnings about reused PIDs.
23245     wait $am_sleep_pid 2>/dev/null
23246   fi
23247   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
23248printf "%s\n" "done" >&6; }
23249 if test -n "$EXEEXT"; then
23250  am__EXEEXT_TRUE=
23251  am__EXEEXT_FALSE='#'
23252else
23253  am__EXEEXT_TRUE='#'
23254  am__EXEEXT_FALSE=
23255fi
23256
23257if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23258  as_fn_error $? "conditional \"AMDEP\" was never defined.
23259Usually this means the macro was only invoked conditionally." "$LINENO" 5
23260fi
23261if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23262  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23263Usually this means the macro was only invoked conditionally." "$LINENO" 5
23264fi
23265if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23266  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23267Usually this means the macro was only invoked conditionally." "$LINENO" 5
23268fi
23269if test -z "${UPCASE_MODULE_TRUE}" && test -z "${UPCASE_MODULE_FALSE}"; then
23270  as_fn_error $? "conditional \"UPCASE_MODULE\" was never defined.
23271Usually this means the macro was only invoked conditionally." "$LINENO" 5
23272fi
23273if test -z "${HAVE_FORTRAN_TRUE}" && test -z "${HAVE_FORTRAN_FALSE}"; then
23274  as_fn_error $? "conditional \"HAVE_FORTRAN\" was never defined.
23275Usually this means the macro was only invoked conditionally." "$LINENO" 5
23276fi
23277
23278: "${CONFIG_STATUS=./config.status}"
23279ac_write_fail=0
23280ac_clean_files_save=$ac_clean_files
23281ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23282{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23283printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23284as_write_fail=0
23285cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23286#! $SHELL
23287# Generated by $as_me.
23288# Run this file to recreate the current configuration.
23289# Compiler output produced by configure, useful for debugging
23290# configure, is in config.log if it exists.
23291
23292debug=false
23293ac_cs_recheck=false
23294ac_cs_silent=false
23295
23296SHELL=\${CONFIG_SHELL-$SHELL}
23297export SHELL
23298_ASEOF
23299cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23300## -------------------- ##
23301## M4sh Initialization. ##
23302## -------------------- ##
23303
23304# Be more Bourne compatible
23305DUALCASE=1; export DUALCASE # for MKS sh
23306as_nop=:
23307if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23308then :
23309  emulate sh
23310  NULLCMD=:
23311  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23312  # is contrary to our usage.  Disable this feature.
23313  alias -g '${1+"$@"}'='"$@"'
23314  setopt NO_GLOB_SUBST
23315else $as_nop
23316  case `(set -o) 2>/dev/null` in #(
23317  *posix*) :
23318    set -o posix ;; #(
23319  *) :
23320     ;;
23321esac
23322fi
23323
23324
23325
23326# Reset variables that may have inherited troublesome values from
23327# the environment.
23328
23329# IFS needs to be set, to space, tab, and newline, in precisely that order.
23330# (If _AS_PATH_WALK were called with IFS unset, it would have the
23331# side effect of setting IFS to empty, thus disabling word splitting.)
23332# Quoting is to prevent editors from complaining about space-tab.
23333as_nl='
23334'
23335export as_nl
23336IFS=" ""	$as_nl"
23337
23338PS1='$ '
23339PS2='> '
23340PS4='+ '
23341
23342# Ensure predictable behavior from utilities with locale-dependent output.
23343LC_ALL=C
23344export LC_ALL
23345LANGUAGE=C
23346export LANGUAGE
23347
23348# We cannot yet rely on "unset" to work, but we need these variables
23349# to be unset--not just set to an empty or harmless value--now, to
23350# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
23351# also avoids known problems related to "unset" and subshell syntax
23352# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23353for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23354do eval test \${$as_var+y} \
23355  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23356done
23357
23358# Ensure that fds 0, 1, and 2 are open.
23359if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23360if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23361if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
23362
23363# The user is always right.
23364if ${PATH_SEPARATOR+false} :; then
23365  PATH_SEPARATOR=:
23366  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23367    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23368      PATH_SEPARATOR=';'
23369  }
23370fi
23371
23372
23373# Find who we are.  Look in the path if we contain no directory separator.
23374as_myself=
23375case $0 in #((
23376  *[\\/]* ) as_myself=$0 ;;
23377  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23378for as_dir in $PATH
23379do
23380  IFS=$as_save_IFS
23381  case $as_dir in #(((
23382    '') as_dir=./ ;;
23383    */) ;;
23384    *) as_dir=$as_dir/ ;;
23385  esac
23386    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23387  done
23388IFS=$as_save_IFS
23389
23390     ;;
23391esac
23392# We did not find ourselves, most probably we were run as `sh COMMAND'
23393# in which case we are not to be found in the path.
23394if test "x$as_myself" = x; then
23395  as_myself=$0
23396fi
23397if test ! -f "$as_myself"; then
23398  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23399  exit 1
23400fi
23401
23402
23403
23404# as_fn_error STATUS ERROR [LINENO LOG_FD]
23405# ----------------------------------------
23406# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23407# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23408# script with STATUS, using 1 if that was 0.
23409as_fn_error ()
23410{
23411  as_status=$1; test $as_status -eq 0 && as_status=1
23412  if test "$4"; then
23413    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23414    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23415  fi
23416  printf "%s\n" "$as_me: error: $2" >&2
23417  as_fn_exit $as_status
23418} # as_fn_error
23419
23420
23421
23422# as_fn_set_status STATUS
23423# -----------------------
23424# Set $? to STATUS, without forking.
23425as_fn_set_status ()
23426{
23427  return $1
23428} # as_fn_set_status
23429
23430# as_fn_exit STATUS
23431# -----------------
23432# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23433as_fn_exit ()
23434{
23435  set +e
23436  as_fn_set_status $1
23437  exit $1
23438} # as_fn_exit
23439
23440# as_fn_unset VAR
23441# ---------------
23442# Portably unset VAR.
23443as_fn_unset ()
23444{
23445  { eval $1=; unset $1;}
23446}
23447as_unset=as_fn_unset
23448
23449# as_fn_append VAR VALUE
23450# ----------------------
23451# Append the text in VALUE to the end of the definition contained in VAR. Take
23452# advantage of any shell optimizations that allow amortized linear growth over
23453# repeated appends, instead of the typical quadratic growth present in naive
23454# implementations.
23455if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23456then :
23457  eval 'as_fn_append ()
23458  {
23459    eval $1+=\$2
23460  }'
23461else $as_nop
23462  as_fn_append ()
23463  {
23464    eval $1=\$$1\$2
23465  }
23466fi # as_fn_append
23467
23468# as_fn_arith ARG...
23469# ------------------
23470# Perform arithmetic evaluation on the ARGs, and store the result in the
23471# global $as_val. Take advantage of shells that can avoid forks. The arguments
23472# must be portable across $(()) and expr.
23473if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23474then :
23475  eval 'as_fn_arith ()
23476  {
23477    as_val=$(( $* ))
23478  }'
23479else $as_nop
23480  as_fn_arith ()
23481  {
23482    as_val=`expr "$@" || test $? -eq 1`
23483  }
23484fi # as_fn_arith
23485
23486
23487if expr a : '\(a\)' >/dev/null 2>&1 &&
23488   test "X`expr 00001 : '.*\(...\)'`" = X001; then
23489  as_expr=expr
23490else
23491  as_expr=false
23492fi
23493
23494if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23495  as_basename=basename
23496else
23497  as_basename=false
23498fi
23499
23500if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23501  as_dirname=dirname
23502else
23503  as_dirname=false
23504fi
23505
23506as_me=`$as_basename -- "$0" ||
23507$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23508	 X"$0" : 'X\(//\)$' \| \
23509	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23510printf "%s\n" X/"$0" |
23511    sed '/^.*\/\([^/][^/]*\)\/*$/{
23512	    s//\1/
23513	    q
23514	  }
23515	  /^X\/\(\/\/\)$/{
23516	    s//\1/
23517	    q
23518	  }
23519	  /^X\/\(\/\).*/{
23520	    s//\1/
23521	    q
23522	  }
23523	  s/.*/./; q'`
23524
23525# Avoid depending upon Character Ranges.
23526as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23527as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23528as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23529as_cr_digits='0123456789'
23530as_cr_alnum=$as_cr_Letters$as_cr_digits
23531
23532
23533# Determine whether it's possible to make 'echo' print without a newline.
23534# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23535# for compatibility with existing Makefiles.
23536ECHO_C= ECHO_N= ECHO_T=
23537case `echo -n x` in #(((((
23538-n*)
23539  case `echo 'xy\c'` in
23540  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
23541  xy)  ECHO_C='\c';;
23542  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
23543       ECHO_T='	';;
23544  esac;;
23545*)
23546  ECHO_N='-n';;
23547esac
23548
23549# For backward compatibility with old third-party macros, we provide
23550# the shell variables $as_echo and $as_echo_n.  New code should use
23551# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23552as_echo='printf %s\n'
23553as_echo_n='printf %s'
23554
23555rm -f conf$$ conf$$.exe conf$$.file
23556if test -d conf$$.dir; then
23557  rm -f conf$$.dir/conf$$.file
23558else
23559  rm -f conf$$.dir
23560  mkdir conf$$.dir 2>/dev/null
23561fi
23562if (echo >conf$$.file) 2>/dev/null; then
23563  if ln -s conf$$.file conf$$ 2>/dev/null; then
23564    as_ln_s='ln -s'
23565    # ... but there are two gotchas:
23566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23568    # In both cases, we have to default to `cp -pR'.
23569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23570      as_ln_s='cp -pR'
23571  elif ln conf$$.file conf$$ 2>/dev/null; then
23572    as_ln_s=ln
23573  else
23574    as_ln_s='cp -pR'
23575  fi
23576else
23577  as_ln_s='cp -pR'
23578fi
23579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23580rmdir conf$$.dir 2>/dev/null
23581
23582
23583# as_fn_mkdir_p
23584# -------------
23585# Create "$as_dir" as a directory, including parents if necessary.
23586as_fn_mkdir_p ()
23587{
23588
23589  case $as_dir in #(
23590  -*) as_dir=./$as_dir;;
23591  esac
23592  test -d "$as_dir" || eval $as_mkdir_p || {
23593    as_dirs=
23594    while :; do
23595      case $as_dir in #(
23596      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23597      *) as_qdir=$as_dir;;
23598      esac
23599      as_dirs="'$as_qdir' $as_dirs"
23600      as_dir=`$as_dirname -- "$as_dir" ||
23601$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23602	 X"$as_dir" : 'X\(//\)[^/]' \| \
23603	 X"$as_dir" : 'X\(//\)$' \| \
23604	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23605printf "%s\n" X"$as_dir" |
23606    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23607	    s//\1/
23608	    q
23609	  }
23610	  /^X\(\/\/\)[^/].*/{
23611	    s//\1/
23612	    q
23613	  }
23614	  /^X\(\/\/\)$/{
23615	    s//\1/
23616	    q
23617	  }
23618	  /^X\(\/\).*/{
23619	    s//\1/
23620	    q
23621	  }
23622	  s/.*/./; q'`
23623      test -d "$as_dir" && break
23624    done
23625    test -z "$as_dirs" || eval "mkdir $as_dirs"
23626  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23627
23628
23629} # as_fn_mkdir_p
23630if mkdir -p . 2>/dev/null; then
23631  as_mkdir_p='mkdir -p "$as_dir"'
23632else
23633  test -d ./-p && rmdir ./-p
23634  as_mkdir_p=false
23635fi
23636
23637
23638# as_fn_executable_p FILE
23639# -----------------------
23640# Test if FILE is an executable regular file.
23641as_fn_executable_p ()
23642{
23643  test -f "$1" && test -x "$1"
23644} # as_fn_executable_p
23645as_test_x='test -x'
23646as_executable_p=as_fn_executable_p
23647
23648# Sed expression to map a string onto a valid CPP name.
23649as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23650
23651# Sed expression to map a string onto a valid variable name.
23652as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23653
23654
23655exec 6>&1
23656## ----------------------------------- ##
23657## Main body of $CONFIG_STATUS script. ##
23658## ----------------------------------- ##
23659_ASEOF
23660test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23661
23662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23663# Save the log message, to keep $0 and so on meaningful, and to
23664# report actual input values of CONFIG_FILES etc. instead of their
23665# values after options handling.
23666ac_log="
23667This file was extended by qd $as_me 2.3.23, which was
23668generated by GNU Autoconf 2.71.  Invocation command line was
23669
23670  CONFIG_FILES    = $CONFIG_FILES
23671  CONFIG_HEADERS  = $CONFIG_HEADERS
23672  CONFIG_LINKS    = $CONFIG_LINKS
23673  CONFIG_COMMANDS = $CONFIG_COMMANDS
23674  $ $0 $@
23675
23676on `(hostname || uname -n) 2>/dev/null | sed 1q`
23677"
23678
23679_ACEOF
23680
23681case $ac_config_files in *"
23682"*) set x $ac_config_files; shift; ac_config_files=$*;;
23683esac
23684
23685case $ac_config_headers in *"
23686"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23687esac
23688
23689
23690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23691# Files that config.status was made for.
23692config_files="$ac_config_files"
23693config_headers="$ac_config_headers"
23694config_commands="$ac_config_commands"
23695
23696_ACEOF
23697
23698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23699ac_cs_usage="\
23700\`$as_me' instantiates files and other configuration actions
23701from templates according to the current configuration.  Unless the files
23702and actions are specified as TAGs, all are instantiated by default.
23703
23704Usage: $0 [OPTION]... [TAG]...
23705
23706  -h, --help       print this help, then exit
23707  -V, --version    print version number and configuration settings, then exit
23708      --config     print configuration, then exit
23709  -q, --quiet, --silent
23710                   do not print progress messages
23711  -d, --debug      don't remove temporary files
23712      --recheck    update $as_me by reconfiguring in the same conditions
23713      --file=FILE[:TEMPLATE]
23714                   instantiate the configuration file FILE
23715      --header=FILE[:TEMPLATE]
23716                   instantiate the configuration header FILE
23717
23718Configuration files:
23719$config_files
23720
23721Configuration headers:
23722$config_headers
23723
23724Configuration commands:
23725$config_commands
23726
23727Report bugs to <dhbailey@lbl.gov>."
23728
23729_ACEOF
23730ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23731ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23732cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23733ac_cs_config='$ac_cs_config_escaped'
23734ac_cs_version="\\
23735qd config.status 2.3.23
23736configured by $0, generated by GNU Autoconf 2.71,
23737  with options \\"\$ac_cs_config\\"
23738
23739Copyright (C) 2021 Free Software Foundation, Inc.
23740This config.status script is free software; the Free Software Foundation
23741gives unlimited permission to copy, distribute and modify it."
23742
23743ac_pwd='$ac_pwd'
23744srcdir='$srcdir'
23745INSTALL='$INSTALL'
23746MKDIR_P='$MKDIR_P'
23747AWK='$AWK'
23748test -n "\$AWK" || AWK=awk
23749_ACEOF
23750
23751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23752# The default lists apply if the user does not specify any file.
23753ac_need_defaults=:
23754while test $# != 0
23755do
23756  case $1 in
23757  --*=?*)
23758    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23759    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23760    ac_shift=:
23761    ;;
23762  --*=)
23763    ac_option=`expr "X$1" : 'X\([^=]*\)='`
23764    ac_optarg=
23765    ac_shift=:
23766    ;;
23767  *)
23768    ac_option=$1
23769    ac_optarg=$2
23770    ac_shift=shift
23771    ;;
23772  esac
23773
23774  case $ac_option in
23775  # Handling of the options.
23776  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23777    ac_cs_recheck=: ;;
23778  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23779    printf "%s\n" "$ac_cs_version"; exit ;;
23780  --config | --confi | --conf | --con | --co | --c )
23781    printf "%s\n" "$ac_cs_config"; exit ;;
23782  --debug | --debu | --deb | --de | --d | -d )
23783    debug=: ;;
23784  --file | --fil | --fi | --f )
23785    $ac_shift
23786    case $ac_optarg in
23787    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23788    '') as_fn_error $? "missing file argument" ;;
23789    esac
23790    as_fn_append CONFIG_FILES " '$ac_optarg'"
23791    ac_need_defaults=false;;
23792  --header | --heade | --head | --hea )
23793    $ac_shift
23794    case $ac_optarg in
23795    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23796    esac
23797    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23798    ac_need_defaults=false;;
23799  --he | --h)
23800    # Conflict between --help and --header
23801    as_fn_error $? "ambiguous option: \`$1'
23802Try \`$0 --help' for more information.";;
23803  --help | --hel | -h )
23804    printf "%s\n" "$ac_cs_usage"; exit ;;
23805  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23806  | -silent | --silent | --silen | --sile | --sil | --si | --s)
23807    ac_cs_silent=: ;;
23808
23809  # This is an error.
23810  -*) as_fn_error $? "unrecognized option: \`$1'
23811Try \`$0 --help' for more information." ;;
23812
23813  *) as_fn_append ac_config_targets " $1"
23814     ac_need_defaults=false ;;
23815
23816  esac
23817  shift
23818done
23819
23820ac_configure_extra_args=
23821
23822if $ac_cs_silent; then
23823  exec 6>/dev/null
23824  ac_configure_extra_args="$ac_configure_extra_args --silent"
23825fi
23826
23827_ACEOF
23828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23829if \$ac_cs_recheck; then
23830  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23831  shift
23832  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23833  CONFIG_SHELL='$SHELL'
23834  export CONFIG_SHELL
23835  exec "\$@"
23836fi
23837
23838_ACEOF
23839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23840exec 5>>config.log
23841{
23842  echo
23843  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23844## Running $as_me. ##
23845_ASBOX
23846  printf "%s\n" "$ac_log"
23847} >&5
23848
23849_ACEOF
23850cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23851#
23852# INIT-COMMANDS
23853#
23854AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23855
23856
23857# The HP-UX ksh and POSIX shell print the target directory to stdout
23858# if CDPATH is set.
23859(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23860
23861sed_quote_subst='$sed_quote_subst'
23862double_quote_subst='$double_quote_subst'
23863delay_variable_subst='$delay_variable_subst'
23864macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23865macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23866enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23867enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23868pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23869enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23870shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
23871SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23872ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23873PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23874host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23875host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23876host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23877build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23878build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23879build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23880SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23881Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23882GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23883EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23884FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23885LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23886NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23887LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23888max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23889ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23890exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23891lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23892lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23893lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23894lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23895lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23896reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23897reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23898OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23899deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23900file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23901file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23902want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23903DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23904sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23905AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23906AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23907archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23908STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23909RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23910old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23911old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23912old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23913lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23914CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23915CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23916compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23917GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23918lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23919lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23920lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
23921lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23922lt_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"`'
23923lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
23924nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23925lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23926lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
23927objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23928MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23929lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23930lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23931lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23932lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23933lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23934need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23935MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23936DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23937NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23938LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23939OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23940OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23941libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23942shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23943extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23944archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23945enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23946export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23947whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23948compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23949old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23950old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23951archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23952archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23953module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23954module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23955with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23956allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23957no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23958hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23959hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23960hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23961hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23962hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23963hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23964hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23965inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23966link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23967always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23968export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23969exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23970include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23971prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23972postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23973file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23974variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23975need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23976need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23977version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23978runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23979shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23980shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23981libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23982library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23983soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23984install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23985postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23986postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23987finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23988finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23989hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23990sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23991configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
23992configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
23993hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23994enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23995enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23996enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23997old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23998striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23999compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
24000predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
24001postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
24002predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
24003postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
24004compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
24005LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
24006LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
24007reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
24008reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
24009reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24010reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
24011old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24012old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
24013compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
24014compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
24015GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
24016GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
24017lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
24018lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
24019lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
24020lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
24021lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
24022lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
24023lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
24024lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
24025lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
24026lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
24027archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
24028archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
24029enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
24030enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
24031export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24032export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
24033whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24034whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
24035compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
24036compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
24037old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24038old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
24039old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24040old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
24041archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24042archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
24043archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24044archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
24045module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24046module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
24047module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24048module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
24049with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
24050with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
24051allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24052allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
24053no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
24054no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
24055hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
24056hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
24057hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
24058hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
24059hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
24060hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
24061hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
24062hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
24063hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
24064hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
24065hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
24066hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
24067hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
24068hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
24069inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
24070inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
24071link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
24072link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
24073always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
24074always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
24075export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24076export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
24077exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24078exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
24079include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
24080include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
24081prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24082prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
24083postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
24084postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
24085file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
24086file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
24087hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
24088hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
24089compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
24090compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
24091predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24092predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
24093postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
24094postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
24095predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
24096predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
24097postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
24098postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
24099compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
24100compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
24101
24102LTCC='$LTCC'
24103LTCFLAGS='$LTCFLAGS'
24104compiler='$compiler_DEFAULT'
24105
24106# A function that is used when there is no print builtin or printf.
24107func_fallback_echo ()
24108{
24109  eval 'cat <<_LTECHO_EOF
24110\$1
24111_LTECHO_EOF'
24112}
24113
24114# Quote evaled strings.
24115for var in SHELL \
24116ECHO \
24117PATH_SEPARATOR \
24118SED \
24119GREP \
24120EGREP \
24121FGREP \
24122LD \
24123NM \
24124LN_S \
24125lt_SP2NL \
24126lt_NL2SP \
24127reload_flag \
24128OBJDUMP \
24129deplibs_check_method \
24130file_magic_cmd \
24131file_magic_glob \
24132want_nocaseglob \
24133DLLTOOL \
24134sharedlib_from_linklib_cmd \
24135AR \
24136AR_FLAGS \
24137archiver_list_spec \
24138STRIP \
24139RANLIB \
24140CC \
24141CFLAGS \
24142compiler \
24143lt_cv_sys_global_symbol_pipe \
24144lt_cv_sys_global_symbol_to_cdecl \
24145lt_cv_sys_global_symbol_to_import \
24146lt_cv_sys_global_symbol_to_c_name_address \
24147lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
24148lt_cv_nm_interface \
24149nm_file_list_spec \
24150lt_cv_truncate_bin \
24151lt_prog_compiler_no_builtin_flag \
24152lt_prog_compiler_pic \
24153lt_prog_compiler_wl \
24154lt_prog_compiler_static \
24155lt_cv_prog_compiler_c_o \
24156need_locks \
24157MANIFEST_TOOL \
24158DSYMUTIL \
24159NMEDIT \
24160LIPO \
24161OTOOL \
24162OTOOL64 \
24163shrext_cmds \
24164export_dynamic_flag_spec \
24165whole_archive_flag_spec \
24166compiler_needs_object \
24167with_gnu_ld \
24168allow_undefined_flag \
24169no_undefined_flag \
24170hardcode_libdir_flag_spec \
24171hardcode_libdir_separator \
24172exclude_expsyms \
24173include_expsyms \
24174file_list_spec \
24175variables_saved_for_relink \
24176libname_spec \
24177library_names_spec \
24178soname_spec \
24179install_override_mode \
24180finish_eval \
24181old_striplib \
24182striplib \
24183compiler_lib_search_dirs \
24184predep_objects \
24185postdep_objects \
24186predeps \
24187postdeps \
24188compiler_lib_search_path \
24189LD_CXX \
24190LD_FC \
24191reload_flag_CXX \
24192reload_flag_FC \
24193compiler_CXX \
24194compiler_FC \
24195lt_prog_compiler_no_builtin_flag_CXX \
24196lt_prog_compiler_no_builtin_flag_FC \
24197lt_prog_compiler_pic_CXX \
24198lt_prog_compiler_pic_FC \
24199lt_prog_compiler_wl_CXX \
24200lt_prog_compiler_wl_FC \
24201lt_prog_compiler_static_CXX \
24202lt_prog_compiler_static_FC \
24203lt_cv_prog_compiler_c_o_CXX \
24204lt_cv_prog_compiler_c_o_FC \
24205export_dynamic_flag_spec_CXX \
24206export_dynamic_flag_spec_FC \
24207whole_archive_flag_spec_CXX \
24208whole_archive_flag_spec_FC \
24209compiler_needs_object_CXX \
24210compiler_needs_object_FC \
24211with_gnu_ld_CXX \
24212with_gnu_ld_FC \
24213allow_undefined_flag_CXX \
24214allow_undefined_flag_FC \
24215no_undefined_flag_CXX \
24216no_undefined_flag_FC \
24217hardcode_libdir_flag_spec_CXX \
24218hardcode_libdir_flag_spec_FC \
24219hardcode_libdir_separator_CXX \
24220hardcode_libdir_separator_FC \
24221exclude_expsyms_CXX \
24222exclude_expsyms_FC \
24223include_expsyms_CXX \
24224include_expsyms_FC \
24225file_list_spec_CXX \
24226file_list_spec_FC \
24227compiler_lib_search_dirs_CXX \
24228compiler_lib_search_dirs_FC \
24229predep_objects_CXX \
24230predep_objects_FC \
24231postdep_objects_CXX \
24232postdep_objects_FC \
24233predeps_CXX \
24234predeps_FC \
24235postdeps_CXX \
24236postdeps_FC \
24237compiler_lib_search_path_CXX \
24238compiler_lib_search_path_FC; do
24239    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24240    *[\\\\\\\`\\"\\\$]*)
24241      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24242      ;;
24243    *)
24244      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24245      ;;
24246    esac
24247done
24248
24249# Double-quote double-evaled strings.
24250for var in reload_cmds \
24251old_postinstall_cmds \
24252old_postuninstall_cmds \
24253old_archive_cmds \
24254extract_expsyms_cmds \
24255old_archive_from_new_cmds \
24256old_archive_from_expsyms_cmds \
24257archive_cmds \
24258archive_expsym_cmds \
24259module_cmds \
24260module_expsym_cmds \
24261export_symbols_cmds \
24262prelink_cmds \
24263postlink_cmds \
24264postinstall_cmds \
24265postuninstall_cmds \
24266finish_cmds \
24267sys_lib_search_path_spec \
24268configure_time_dlsearch_path \
24269configure_time_lt_sys_library_path \
24270reload_cmds_CXX \
24271reload_cmds_FC \
24272old_archive_cmds_CXX \
24273old_archive_cmds_FC \
24274old_archive_from_new_cmds_CXX \
24275old_archive_from_new_cmds_FC \
24276old_archive_from_expsyms_cmds_CXX \
24277old_archive_from_expsyms_cmds_FC \
24278archive_cmds_CXX \
24279archive_cmds_FC \
24280archive_expsym_cmds_CXX \
24281archive_expsym_cmds_FC \
24282module_cmds_CXX \
24283module_cmds_FC \
24284module_expsym_cmds_CXX \
24285module_expsym_cmds_FC \
24286export_symbols_cmds_CXX \
24287export_symbols_cmds_FC \
24288prelink_cmds_CXX \
24289prelink_cmds_FC \
24290postlink_cmds_CXX \
24291postlink_cmds_FC; do
24292    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24293    *[\\\\\\\`\\"\\\$]*)
24294      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
24295      ;;
24296    *)
24297      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24298      ;;
24299    esac
24300done
24301
24302ac_aux_dir='$ac_aux_dir'
24303
24304# See if we are running on zsh, and set the options that allow our
24305# commands through without removal of \ escapes INIT.
24306if test -n "\${ZSH_VERSION+set}"; then
24307   setopt NO_GLOB_SUBST
24308fi
24309
24310
24311    PACKAGE='$PACKAGE'
24312    VERSION='$VERSION'
24313    RM='$RM'
24314    ofile='$ofile'
24315
24316
24317
24318
24319
24320
24321
24322
24323_ACEOF
24324
24325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24326
24327# Handling of arguments.
24328for ac_config_target in $ac_config_targets
24329do
24330  case $ac_config_target in
24331    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24332    "include/qd/qd_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/qd/qd_config.h" ;;
24333    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24334    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24335    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24336    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24337    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24338    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24339    "fortran/Makefile") CONFIG_FILES="$CONFIG_FILES fortran/Makefile" ;;
24340    "qd-config") CONFIG_FILES="$CONFIG_FILES qd-config" ;;
24341    "fortran/second.f") CONFIG_FILES="$CONFIG_FILES fortran/second.f" ;;
24342    "qd.pc") CONFIG_FILES="$CONFIG_FILES qd.pc" ;;
24343
24344  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24345  esac
24346done
24347
24348
24349# If the user did not use the arguments to specify the items to instantiate,
24350# then the envvar interface is used.  Set only those that are not.
24351# We use the long form for the default assignment because of an extremely
24352# bizarre bug on SunOS 4.1.3.
24353if $ac_need_defaults; then
24354  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24355  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24356  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24357fi
24358
24359# Have a temporary directory for convenience.  Make it in the build tree
24360# simply because there is no reason against having it here, and in addition,
24361# creating and moving files from /tmp can sometimes cause problems.
24362# Hook for its removal unless debugging.
24363# Note that there is a small window in which the directory will not be cleaned:
24364# after its creation but before its name has been assigned to `$tmp'.
24365$debug ||
24366{
24367  tmp= ac_tmp=
24368  trap 'exit_status=$?
24369  : "${ac_tmp:=$tmp}"
24370  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24371' 0
24372  trap 'as_fn_exit 1' 1 2 13 15
24373}
24374# Create a (secure) tmp directory for tmp files.
24375
24376{
24377  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24378  test -d "$tmp"
24379}  ||
24380{
24381  tmp=./conf$$-$RANDOM
24382  (umask 077 && mkdir "$tmp")
24383} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24384ac_tmp=$tmp
24385
24386# Set up the scripts for CONFIG_FILES section.
24387# No need to generate them if there are no CONFIG_FILES.
24388# This happens for instance with `./config.status config.h'.
24389if test -n "$CONFIG_FILES"; then
24390
24391
24392ac_cr=`echo X | tr X '\015'`
24393# On cygwin, bash can eat \r inside `` if the user requested igncr.
24394# But we know of no other shell where ac_cr would be empty at this
24395# point, so we can use a bashism as a fallback.
24396if test "x$ac_cr" = x; then
24397  eval ac_cr=\$\'\\r\'
24398fi
24399ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24400if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24401  ac_cs_awk_cr='\\r'
24402else
24403  ac_cs_awk_cr=$ac_cr
24404fi
24405
24406echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24407_ACEOF
24408
24409
24410{
24411  echo "cat >conf$$subs.awk <<_ACEOF" &&
24412  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24413  echo "_ACEOF"
24414} >conf$$subs.sh ||
24415  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24416ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24417ac_delim='%!_!# '
24418for ac_last_try in false false false false false :; do
24419  . ./conf$$subs.sh ||
24420    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24421
24422  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24423  if test $ac_delim_n = $ac_delim_num; then
24424    break
24425  elif $ac_last_try; then
24426    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24427  else
24428    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24429  fi
24430done
24431rm -f conf$$subs.sh
24432
24433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24434cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24435_ACEOF
24436sed -n '
24437h
24438s/^/S["/; s/!.*/"]=/
24439p
24440g
24441s/^[^!]*!//
24442:repl
24443t repl
24444s/'"$ac_delim"'$//
24445t delim
24446:nl
24447h
24448s/\(.\{148\}\)..*/\1/
24449t more1
24450s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24451p
24452n
24453b repl
24454:more1
24455s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24456p
24457g
24458s/.\{148\}//
24459t nl
24460:delim
24461h
24462s/\(.\{148\}\)..*/\1/
24463t more2
24464s/["\\]/\\&/g; s/^/"/; s/$/"/
24465p
24466b
24467:more2
24468s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24469p
24470g
24471s/.\{148\}//
24472t delim
24473' <conf$$subs.awk | sed '
24474/^[^""]/{
24475  N
24476  s/\n//
24477}
24478' >>$CONFIG_STATUS || ac_write_fail=1
24479rm -f conf$$subs.awk
24480cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24481_ACAWK
24482cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24483  for (key in S) S_is_set[key] = 1
24484  FS = ""
24485
24486}
24487{
24488  line = $ 0
24489  nfields = split(line, field, "@")
24490  substed = 0
24491  len = length(field[1])
24492  for (i = 2; i < nfields; i++) {
24493    key = field[i]
24494    keylen = length(key)
24495    if (S_is_set[key]) {
24496      value = S[key]
24497      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24498      len += length(value) + length(field[++i])
24499      substed = 1
24500    } else
24501      len += 1 + keylen
24502  }
24503
24504  print line
24505}
24506
24507_ACAWK
24508_ACEOF
24509cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24510if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24511  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24512else
24513  cat
24514fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24515  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24516_ACEOF
24517
24518# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24519# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24520# trailing colons and then remove the whole line if VPATH becomes empty
24521# (actually we leave an empty line to preserve line numbers).
24522if test "x$srcdir" = x.; then
24523  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
24524h
24525s///
24526s/^/:/
24527s/[	 ]*$/:/
24528s/:\$(srcdir):/:/g
24529s/:\${srcdir}:/:/g
24530s/:@srcdir@:/:/g
24531s/^:*//
24532s/:*$//
24533x
24534s/\(=[	 ]*\).*/\1/
24535G
24536s/\n//
24537s/^[^=]*=[	 ]*$//
24538}'
24539fi
24540
24541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24542fi # test -n "$CONFIG_FILES"
24543
24544# Set up the scripts for CONFIG_HEADERS section.
24545# No need to generate them if there are no CONFIG_HEADERS.
24546# This happens for instance with `./config.status Makefile'.
24547if test -n "$CONFIG_HEADERS"; then
24548cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
24549BEGIN {
24550_ACEOF
24551
24552# Transform confdefs.h into an awk script `defines.awk', embedded as
24553# here-document in config.status, that substitutes the proper values into
24554# config.h.in to produce config.h.
24555
24556# Create a delimiter string that does not exist in confdefs.h, to ease
24557# handling of long lines.
24558ac_delim='%!_!# '
24559for ac_last_try in false false :; do
24560  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
24561  if test -z "$ac_tt"; then
24562    break
24563  elif $ac_last_try; then
24564    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
24565  else
24566    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24567  fi
24568done
24569
24570# For the awk script, D is an array of macro values keyed by name,
24571# likewise P contains macro parameters if any.  Preserve backslash
24572# newline sequences.
24573
24574ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24575sed -n '
24576s/.\{148\}/&'"$ac_delim"'/g
24577t rset
24578:rset
24579s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
24580t def
24581d
24582:def
24583s/\\$//
24584t bsnl
24585s/["\\]/\\&/g
24586s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24587D["\1"]=" \3"/p
24588s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
24589d
24590:bsnl
24591s/["\\]/\\&/g
24592s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
24593D["\1"]=" \3\\\\\\n"\\/p
24594t cont
24595s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
24596t cont
24597d
24598:cont
24599n
24600s/.\{148\}/&'"$ac_delim"'/g
24601t clear
24602:clear
24603s/\\$//
24604t bsnlc
24605s/["\\]/\\&/g; s/^/"/; s/$/"/p
24606d
24607:bsnlc
24608s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
24609b cont
24610' <confdefs.h | sed '
24611s/'"$ac_delim"'/"\\\
24612"/g' >>$CONFIG_STATUS || ac_write_fail=1
24613
24614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24615  for (key in D) D_is_set[key] = 1
24616  FS = ""
24617}
24618/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
24619  line = \$ 0
24620  split(line, arg, " ")
24621  if (arg[1] == "#") {
24622    defundef = arg[2]
24623    mac1 = arg[3]
24624  } else {
24625    defundef = substr(arg[1], 2)
24626    mac1 = arg[2]
24627  }
24628  split(mac1, mac2, "(") #)
24629  macro = mac2[1]
24630  prefix = substr(line, 1, index(line, defundef) - 1)
24631  if (D_is_set[macro]) {
24632    # Preserve the white space surrounding the "#".
24633    print prefix "define", macro P[macro] D[macro]
24634    next
24635  } else {
24636    # Replace #undef with comments.  This is necessary, for example,
24637    # in the case of _POSIX_SOURCE, which is predefined and required
24638    # on some systems where configure will not decide to define it.
24639    if (defundef == "undef") {
24640      print "/*", prefix defundef, macro, "*/"
24641      next
24642    }
24643  }
24644}
24645{ print }
24646_ACAWK
24647_ACEOF
24648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24649  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
24650fi # test -n "$CONFIG_HEADERS"
24651
24652
24653eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
24654shift
24655for ac_tag
24656do
24657  case $ac_tag in
24658  :[FHLC]) ac_mode=$ac_tag; continue;;
24659  esac
24660  case $ac_mode$ac_tag in
24661  :[FHL]*:*);;
24662  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24663  :[FH]-) ac_tag=-:-;;
24664  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24665  esac
24666  ac_save_IFS=$IFS
24667  IFS=:
24668  set x $ac_tag
24669  IFS=$ac_save_IFS
24670  shift
24671  ac_file=$1
24672  shift
24673
24674  case $ac_mode in
24675  :L) ac_source=$1;;
24676  :[FH])
24677    ac_file_inputs=
24678    for ac_f
24679    do
24680      case $ac_f in
24681      -) ac_f="$ac_tmp/stdin";;
24682      *) # Look for the file first in the build tree, then in the source tree
24683	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
24684	 # because $ac_f cannot contain `:'.
24685	 test -f "$ac_f" ||
24686	   case $ac_f in
24687	   [\\/$]*) false;;
24688	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24689	   esac ||
24690	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24691      esac
24692      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24693      as_fn_append ac_file_inputs " '$ac_f'"
24694    done
24695
24696    # Let's still pretend it is `configure' which instantiates (i.e., don't
24697    # use $as_me), people would be surprised to read:
24698    #    /* config.h.  Generated by config.status.  */
24699    configure_input='Generated from '`
24700	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24701	`' by configure.'
24702    if test x"$ac_file" != x-; then
24703      configure_input="$ac_file.  $configure_input"
24704      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24705printf "%s\n" "$as_me: creating $ac_file" >&6;}
24706    fi
24707    # Neutralize special characters interpreted by sed in replacement strings.
24708    case $configure_input in #(
24709    *\&* | *\|* | *\\* )
24710       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24711       sed 's/[\\\\&|]/\\\\&/g'`;; #(
24712    *) ac_sed_conf_input=$configure_input;;
24713    esac
24714
24715    case $ac_tag in
24716    *:-:* | *:-) cat >"$ac_tmp/stdin" \
24717      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24718    esac
24719    ;;
24720  esac
24721
24722  ac_dir=`$as_dirname -- "$ac_file" ||
24723$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24724	 X"$ac_file" : 'X\(//\)[^/]' \| \
24725	 X"$ac_file" : 'X\(//\)$' \| \
24726	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24727printf "%s\n" X"$ac_file" |
24728    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24729	    s//\1/
24730	    q
24731	  }
24732	  /^X\(\/\/\)[^/].*/{
24733	    s//\1/
24734	    q
24735	  }
24736	  /^X\(\/\/\)$/{
24737	    s//\1/
24738	    q
24739	  }
24740	  /^X\(\/\).*/{
24741	    s//\1/
24742	    q
24743	  }
24744	  s/.*/./; q'`
24745  as_dir="$ac_dir"; as_fn_mkdir_p
24746  ac_builddir=.
24747
24748case "$ac_dir" in
24749.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24750*)
24751  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24752  # A ".." for each directory in $ac_dir_suffix.
24753  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24754  case $ac_top_builddir_sub in
24755  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24756  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24757  esac ;;
24758esac
24759ac_abs_top_builddir=$ac_pwd
24760ac_abs_builddir=$ac_pwd$ac_dir_suffix
24761# for backward compatibility:
24762ac_top_builddir=$ac_top_build_prefix
24763
24764case $srcdir in
24765  .)  # We are building in place.
24766    ac_srcdir=.
24767    ac_top_srcdir=$ac_top_builddir_sub
24768    ac_abs_top_srcdir=$ac_pwd ;;
24769  [\\/]* | ?:[\\/]* )  # Absolute name.
24770    ac_srcdir=$srcdir$ac_dir_suffix;
24771    ac_top_srcdir=$srcdir
24772    ac_abs_top_srcdir=$srcdir ;;
24773  *) # Relative name.
24774    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24775    ac_top_srcdir=$ac_top_build_prefix$srcdir
24776    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24777esac
24778ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24779
24780
24781  case $ac_mode in
24782  :F)
24783  #
24784  # CONFIG_FILE
24785  #
24786
24787  case $INSTALL in
24788  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24789  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24790  esac
24791  ac_MKDIR_P=$MKDIR_P
24792  case $MKDIR_P in
24793  [\\/$]* | ?:[\\/]* ) ;;
24794  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24795  esac
24796_ACEOF
24797
24798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24799# If the template does not know about datarootdir, expand it.
24800# FIXME: This hack should be removed a few years after 2.60.
24801ac_datarootdir_hack=; ac_datarootdir_seen=
24802ac_sed_dataroot='
24803/datarootdir/ {
24804  p
24805  q
24806}
24807/@datadir@/p
24808/@docdir@/p
24809/@infodir@/p
24810/@localedir@/p
24811/@mandir@/p'
24812case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24813*datarootdir*) ac_datarootdir_seen=yes;;
24814*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24815  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24816printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24817_ACEOF
24818cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24819  ac_datarootdir_hack='
24820  s&@datadir@&$datadir&g
24821  s&@docdir@&$docdir&g
24822  s&@infodir@&$infodir&g
24823  s&@localedir@&$localedir&g
24824  s&@mandir@&$mandir&g
24825  s&\\\${datarootdir}&$datarootdir&g' ;;
24826esac
24827_ACEOF
24828
24829# Neutralize VPATH when `$srcdir' = `.'.
24830# Shell code in configure.ac might set extrasub.
24831# FIXME: do we really want to maintain this feature?
24832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24833ac_sed_extra="$ac_vpsub
24834$extrasub
24835_ACEOF
24836cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24837:t
24838/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24839s|@configure_input@|$ac_sed_conf_input|;t t
24840s&@top_builddir@&$ac_top_builddir_sub&;t t
24841s&@top_build_prefix@&$ac_top_build_prefix&;t t
24842s&@srcdir@&$ac_srcdir&;t t
24843s&@abs_srcdir@&$ac_abs_srcdir&;t t
24844s&@top_srcdir@&$ac_top_srcdir&;t t
24845s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24846s&@builddir@&$ac_builddir&;t t
24847s&@abs_builddir@&$ac_abs_builddir&;t t
24848s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24849s&@INSTALL@&$ac_INSTALL&;t t
24850s&@MKDIR_P@&$ac_MKDIR_P&;t t
24851$ac_datarootdir_hack
24852"
24853eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24854  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24855
24856test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24857  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24858  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
24859      "$ac_tmp/out"`; test -z "$ac_out"; } &&
24860  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24861which seems to be undefined.  Please make sure it is defined" >&5
24862printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24863which seems to be undefined.  Please make sure it is defined" >&2;}
24864
24865  rm -f "$ac_tmp/stdin"
24866  case $ac_file in
24867  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24868  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24869  esac \
24870  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24871 ;;
24872  :H)
24873  #
24874  # CONFIG_HEADER
24875  #
24876  if test x"$ac_file" != x-; then
24877    {
24878      printf "%s\n" "/* $configure_input  */" >&1 \
24879      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24880    } >"$ac_tmp/config.h" \
24881      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24882    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24883      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24884printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24885    else
24886      rm -f "$ac_file"
24887      mv "$ac_tmp/config.h" "$ac_file" \
24888	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24889    fi
24890  else
24891    printf "%s\n" "/* $configure_input  */" >&1 \
24892      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24893      || as_fn_error $? "could not create -" "$LINENO" 5
24894  fi
24895# Compute "$ac_file"'s index in $config_headers.
24896_am_arg="$ac_file"
24897_am_stamp_count=1
24898for _am_header in $config_headers :; do
24899  case $_am_header in
24900    $_am_arg | $_am_arg:* )
24901      break ;;
24902    * )
24903      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24904  esac
24905done
24906echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24907$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24908	 X"$_am_arg" : 'X\(//\)[^/]' \| \
24909	 X"$_am_arg" : 'X\(//\)$' \| \
24910	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24911printf "%s\n" X"$_am_arg" |
24912    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24913	    s//\1/
24914	    q
24915	  }
24916	  /^X\(\/\/\)[^/].*/{
24917	    s//\1/
24918	    q
24919	  }
24920	  /^X\(\/\/\)$/{
24921	    s//\1/
24922	    q
24923	  }
24924	  /^X\(\/\).*/{
24925	    s//\1/
24926	    q
24927	  }
24928	  s/.*/./; q'`/stamp-h$_am_stamp_count
24929 ;;
24930
24931  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24932printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24933 ;;
24934  esac
24935
24936
24937  case $ac_file$ac_mode in
24938    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24939  # Older Autoconf quotes --file arguments for eval, but not when files
24940  # are listed without --file.  Let's play safe and only enable the eval
24941  # if we detect the quoting.
24942  # TODO: see whether this extra hack can be removed once we start
24943  # requiring Autoconf 2.70 or later.
24944  case $CONFIG_FILES in #(
24945  *\'*) :
24946    eval set x "$CONFIG_FILES" ;; #(
24947  *) :
24948    set x $CONFIG_FILES ;; #(
24949  *) :
24950     ;;
24951esac
24952  shift
24953  # Used to flag and report bootstrapping failures.
24954  am_rc=0
24955  for am_mf
24956  do
24957    # Strip MF so we end up with the name of the file.
24958    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24959    # Check whether this is an Automake generated Makefile which includes
24960    # dependency-tracking related rules and includes.
24961    # Grep'ing the whole file directly is not great: AIX grep has a line
24962    # limit of 2048, but all sed's we know have understand at least 4000.
24963    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24964      || continue
24965    am_dirpart=`$as_dirname -- "$am_mf" ||
24966$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24967	 X"$am_mf" : 'X\(//\)[^/]' \| \
24968	 X"$am_mf" : 'X\(//\)$' \| \
24969	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24970printf "%s\n" X"$am_mf" |
24971    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24972	    s//\1/
24973	    q
24974	  }
24975	  /^X\(\/\/\)[^/].*/{
24976	    s//\1/
24977	    q
24978	  }
24979	  /^X\(\/\/\)$/{
24980	    s//\1/
24981	    q
24982	  }
24983	  /^X\(\/\).*/{
24984	    s//\1/
24985	    q
24986	  }
24987	  s/.*/./; q'`
24988    am_filepart=`$as_basename -- "$am_mf" ||
24989$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24990	 X"$am_mf" : 'X\(//\)$' \| \
24991	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24992printf "%s\n" X/"$am_mf" |
24993    sed '/^.*\/\([^/][^/]*\)\/*$/{
24994	    s//\1/
24995	    q
24996	  }
24997	  /^X\/\(\/\/\)$/{
24998	    s//\1/
24999	    q
25000	  }
25001	  /^X\/\(\/\).*/{
25002	    s//\1/
25003	    q
25004	  }
25005	  s/.*/./; q'`
25006    { echo "$as_me:$LINENO: cd "$am_dirpart" \
25007      && sed -e '/# am--include-marker/d' "$am_filepart" \
25008        | $MAKE -f - am--depfiles" >&5
25009   (cd "$am_dirpart" \
25010      && sed -e '/# am--include-marker/d' "$am_filepart" \
25011        | $MAKE -f - am--depfiles) >&5 2>&5
25012   ac_status=$?
25013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014   (exit $ac_status); } || am_rc=$?
25015  done
25016  if test $am_rc -ne 0; then
25017    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25018printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25019as_fn_error $? "Something went wrong bootstrapping makefile fragments
25020    for automatic dependency tracking.  If GNU make was not used, consider
25021    re-running the configure script with MAKE=\"gmake\" (or whatever is
25022    necessary).  You can also try re-running configure with the
25023    '--disable-dependency-tracking' option to at least be able to build
25024    the package (albeit without support for automatic dependency tracking).
25025See \`config.log' for more details" "$LINENO" 5; }
25026  fi
25027  { am_dirpart=; unset am_dirpart;}
25028  { am_filepart=; unset am_filepart;}
25029  { am_mf=; unset am_mf;}
25030  { am_rc=; unset am_rc;}
25031  rm -f conftest-deps.mk
25032}
25033 ;;
25034    "libtool":C)
25035
25036    # See if we are running on zsh, and set the options that allow our
25037    # commands through without removal of \ escapes.
25038    if test -n "${ZSH_VERSION+set}"; then
25039      setopt NO_GLOB_SUBST
25040    fi
25041
25042    cfgfile=${ofile}T
25043    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
25044    $RM "$cfgfile"
25045
25046    cat <<_LT_EOF >> "$cfgfile"
25047#! $SHELL
25048# Generated automatically by $as_me ($PACKAGE) $VERSION
25049# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25050# NOTE: Changes made to this file will be lost: look at ltmain.sh.
25051
25052# Provide generalized library-building support services.
25053# Written by Gordon Matzigkeit, 1996
25054
25055# Copyright (C) 2014 Free Software Foundation, Inc.
25056# This is free software; see the source for copying conditions.  There is NO
25057# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
25058
25059# GNU Libtool is free software; you can redistribute it and/or modify
25060# it under the terms of the GNU General Public License as published by
25061# the Free Software Foundation; either version 2 of of the License, or
25062# (at your option) any later version.
25063#
25064# As a special exception to the GNU General Public License, if you
25065# distribute this file as part of a program or library that is built
25066# using GNU Libtool, you may include this file under the  same
25067# distribution terms that you use for the rest of that program.
25068#
25069# GNU Libtool is distributed in the hope that it will be useful, but
25070# WITHOUT ANY WARRANTY; without even the implied warranty of
25071# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
25072# GNU General Public License for more details.
25073#
25074# You should have received a copy of the GNU General Public License
25075# along with this program.  If not, see <http://www.gnu.org/licenses/>.
25076
25077
25078# The names of the tagged configurations supported by this script.
25079available_tags='CXX FC '
25080
25081# Configured defaults for sys_lib_dlsearch_path munging.
25082: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
25083
25084# ### BEGIN LIBTOOL CONFIG
25085
25086# Which release of libtool.m4 was used?
25087macro_version=$macro_version
25088macro_revision=$macro_revision
25089
25090# Whether or not to build shared libraries.
25091build_libtool_libs=$enable_shared
25092
25093# Whether or not to build static libraries.
25094build_old_libs=$enable_static
25095
25096# What type of objects to build.
25097pic_mode=$pic_mode
25098
25099# Whether or not to optimize for fast installation.
25100fast_install=$enable_fast_install
25101
25102# Shared archive member basename,for filename based shared library versioning on AIX.
25103shared_archive_member_spec=$shared_archive_member_spec
25104
25105# Shell to use when invoking shell scripts.
25106SHELL=$lt_SHELL
25107
25108# An echo program that protects backslashes.
25109ECHO=$lt_ECHO
25110
25111# The PATH separator for the build system.
25112PATH_SEPARATOR=$lt_PATH_SEPARATOR
25113
25114# The host system.
25115host_alias=$host_alias
25116host=$host
25117host_os=$host_os
25118
25119# The build system.
25120build_alias=$build_alias
25121build=$build
25122build_os=$build_os
25123
25124# A sed program that does not truncate output.
25125SED=$lt_SED
25126
25127# Sed that helps us avoid accidentally triggering echo(1) options like -n.
25128Xsed="\$SED -e 1s/^X//"
25129
25130# A grep program that handles long lines.
25131GREP=$lt_GREP
25132
25133# An ERE matcher.
25134EGREP=$lt_EGREP
25135
25136# A literal string matcher.
25137FGREP=$lt_FGREP
25138
25139# A BSD- or MS-compatible name lister.
25140NM=$lt_NM
25141
25142# Whether we need soft or hard links.
25143LN_S=$lt_LN_S
25144
25145# What is the maximum length of a command?
25146max_cmd_len=$max_cmd_len
25147
25148# Object file suffix (normally "o").
25149objext=$ac_objext
25150
25151# Executable file suffix (normally "").
25152exeext=$exeext
25153
25154# whether the shell understands "unset".
25155lt_unset=$lt_unset
25156
25157# turn spaces into newlines.
25158SP2NL=$lt_lt_SP2NL
25159
25160# turn newlines into spaces.
25161NL2SP=$lt_lt_NL2SP
25162
25163# convert \$build file names to \$host format.
25164to_host_file_cmd=$lt_cv_to_host_file_cmd
25165
25166# convert \$build files to toolchain format.
25167to_tool_file_cmd=$lt_cv_to_tool_file_cmd
25168
25169# An object symbol dumper.
25170OBJDUMP=$lt_OBJDUMP
25171
25172# Method to check whether dependent libraries are shared objects.
25173deplibs_check_method=$lt_deplibs_check_method
25174
25175# Command to use when deplibs_check_method = "file_magic".
25176file_magic_cmd=$lt_file_magic_cmd
25177
25178# How to find potential files when deplibs_check_method = "file_magic".
25179file_magic_glob=$lt_file_magic_glob
25180
25181# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
25182want_nocaseglob=$lt_want_nocaseglob
25183
25184# DLL creation program.
25185DLLTOOL=$lt_DLLTOOL
25186
25187# Command to associate shared and link libraries.
25188sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
25189
25190# The archiver.
25191AR=$lt_AR
25192
25193# Flags to create an archive.
25194AR_FLAGS=$lt_AR_FLAGS
25195
25196# How to feed a file listing to the archiver.
25197archiver_list_spec=$lt_archiver_list_spec
25198
25199# A symbol stripping program.
25200STRIP=$lt_STRIP
25201
25202# Commands used to install an old-style archive.
25203RANLIB=$lt_RANLIB
25204old_postinstall_cmds=$lt_old_postinstall_cmds
25205old_postuninstall_cmds=$lt_old_postuninstall_cmds
25206
25207# Whether to use a lock for old archive extraction.
25208lock_old_archive_extraction=$lock_old_archive_extraction
25209
25210# A C compiler.
25211LTCC=$lt_CC
25212
25213# LTCC compiler flags.
25214LTCFLAGS=$lt_CFLAGS
25215
25216# Take the output of nm and produce a listing of raw symbols and C names.
25217global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
25218
25219# Transform the output of nm in a proper C declaration.
25220global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
25221
25222# Transform the output of nm into a list of symbols to manually relocate.
25223global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
25224
25225# Transform the output of nm in a C name address pair.
25226global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
25227
25228# Transform the output of nm in a C name address pair when lib prefix is needed.
25229global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
25230
25231# The name lister interface.
25232nm_interface=$lt_lt_cv_nm_interface
25233
25234# Specify filename containing input files for \$NM.
25235nm_file_list_spec=$lt_nm_file_list_spec
25236
25237# The root where to search for dependent libraries,and where our libraries should be installed.
25238lt_sysroot=$lt_sysroot
25239
25240# Command to truncate a binary pipe.
25241lt_truncate_bin=$lt_lt_cv_truncate_bin
25242
25243# The name of the directory that contains temporary libtool files.
25244objdir=$objdir
25245
25246# Used to examine libraries when file_magic_cmd begins with "file".
25247MAGIC_CMD=$MAGIC_CMD
25248
25249# Must we lock files when doing compilation?
25250need_locks=$lt_need_locks
25251
25252# Manifest tool.
25253MANIFEST_TOOL=$lt_MANIFEST_TOOL
25254
25255# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
25256DSYMUTIL=$lt_DSYMUTIL
25257
25258# Tool to change global to local symbols on Mac OS X.
25259NMEDIT=$lt_NMEDIT
25260
25261# Tool to manipulate fat objects and archives on Mac OS X.
25262LIPO=$lt_LIPO
25263
25264# ldd/readelf like tool for Mach-O binaries on Mac OS X.
25265OTOOL=$lt_OTOOL
25266
25267# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
25268OTOOL64=$lt_OTOOL64
25269
25270# Old archive suffix (normally "a").
25271libext=$libext
25272
25273# Shared library suffix (normally ".so").
25274shrext_cmds=$lt_shrext_cmds
25275
25276# The commands to extract the exported symbol list from a shared archive.
25277extract_expsyms_cmds=$lt_extract_expsyms_cmds
25278
25279# Variables whose values should be saved in libtool wrapper scripts and
25280# restored at link time.
25281variables_saved_for_relink=$lt_variables_saved_for_relink
25282
25283# Do we need the "lib" prefix for modules?
25284need_lib_prefix=$need_lib_prefix
25285
25286# Do we need a version for libraries?
25287need_version=$need_version
25288
25289# Library versioning type.
25290version_type=$version_type
25291
25292# Shared library runtime path variable.
25293runpath_var=$runpath_var
25294
25295# Shared library path variable.
25296shlibpath_var=$shlibpath_var
25297
25298# Is shlibpath searched before the hard-coded library search path?
25299shlibpath_overrides_runpath=$shlibpath_overrides_runpath
25300
25301# Format of library name prefix.
25302libname_spec=$lt_libname_spec
25303
25304# List of archive names.  First name is the real one, the rest are links.
25305# The last name is the one that the linker finds with -lNAME
25306library_names_spec=$lt_library_names_spec
25307
25308# The coded name of the library, if different from the real name.
25309soname_spec=$lt_soname_spec
25310
25311# Permission mode override for installation of shared libraries.
25312install_override_mode=$lt_install_override_mode
25313
25314# Command to use after installation of a shared archive.
25315postinstall_cmds=$lt_postinstall_cmds
25316
25317# Command to use after uninstallation of a shared archive.
25318postuninstall_cmds=$lt_postuninstall_cmds
25319
25320# Commands used to finish a libtool library installation in a directory.
25321finish_cmds=$lt_finish_cmds
25322
25323# As "finish_cmds", except a single script fragment to be evaled but
25324# not shown.
25325finish_eval=$lt_finish_eval
25326
25327# Whether we should hardcode library paths into libraries.
25328hardcode_into_libs=$hardcode_into_libs
25329
25330# Compile-time system search path for libraries.
25331sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
25332
25333# Detected run-time system search path for libraries.
25334sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
25335
25336# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
25337configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
25338
25339# Whether dlopen is supported.
25340dlopen_support=$enable_dlopen
25341
25342# Whether dlopen of programs is supported.
25343dlopen_self=$enable_dlopen_self
25344
25345# Whether dlopen of statically linked programs is supported.
25346dlopen_self_static=$enable_dlopen_self_static
25347
25348# Commands to strip libraries.
25349old_striplib=$lt_old_striplib
25350striplib=$lt_striplib
25351
25352
25353# The linker used to build libraries.
25354LD=$lt_LD
25355
25356# How to create reloadable object files.
25357reload_flag=$lt_reload_flag
25358reload_cmds=$lt_reload_cmds
25359
25360# Commands used to build an old-style archive.
25361old_archive_cmds=$lt_old_archive_cmds
25362
25363# A language specific compiler.
25364CC=$lt_compiler
25365
25366# Is the compiler the GNU compiler?
25367with_gcc=$GCC
25368
25369# Compiler flag to turn off builtin functions.
25370no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
25371
25372# Additional compiler flags for building library objects.
25373pic_flag=$lt_lt_prog_compiler_pic
25374
25375# How to pass a linker flag through the compiler.
25376wl=$lt_lt_prog_compiler_wl
25377
25378# Compiler flag to prevent dynamic linking.
25379link_static_flag=$lt_lt_prog_compiler_static
25380
25381# Does compiler simultaneously support -c and -o options?
25382compiler_c_o=$lt_lt_cv_prog_compiler_c_o
25383
25384# Whether or not to add -lc for building shared libraries.
25385build_libtool_need_lc=$archive_cmds_need_lc
25386
25387# Whether or not to disallow shared libs when runtime libs are static.
25388allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25389
25390# Compiler flag to allow reflexive dlopens.
25391export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25392
25393# Compiler flag to generate shared objects directly from archives.
25394whole_archive_flag_spec=$lt_whole_archive_flag_spec
25395
25396# Whether the compiler copes with passing no objects directly.
25397compiler_needs_object=$lt_compiler_needs_object
25398
25399# Create an old-style archive from a shared archive.
25400old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25401
25402# Create a temporary old-style archive to link instead of a shared archive.
25403old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25404
25405# Commands used to build a shared archive.
25406archive_cmds=$lt_archive_cmds
25407archive_expsym_cmds=$lt_archive_expsym_cmds
25408
25409# Commands used to build a loadable module if different from building
25410# a shared archive.
25411module_cmds=$lt_module_cmds
25412module_expsym_cmds=$lt_module_expsym_cmds
25413
25414# Whether we are building with GNU ld or not.
25415with_gnu_ld=$lt_with_gnu_ld
25416
25417# Flag that allows shared libraries with undefined symbols to be built.
25418allow_undefined_flag=$lt_allow_undefined_flag
25419
25420# Flag that enforces no undefined symbols.
25421no_undefined_flag=$lt_no_undefined_flag
25422
25423# Flag to hardcode \$libdir into a binary during linking.
25424# This must work even if \$libdir does not exist
25425hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25426
25427# Whether we need a single "-rpath" flag with a separated argument.
25428hardcode_libdir_separator=$lt_hardcode_libdir_separator
25429
25430# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25431# DIR into the resulting binary.
25432hardcode_direct=$hardcode_direct
25433
25434# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25435# DIR into the resulting binary and the resulting library dependency is
25436# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25437# library is relocated.
25438hardcode_direct_absolute=$hardcode_direct_absolute
25439
25440# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25441# into the resulting binary.
25442hardcode_minus_L=$hardcode_minus_L
25443
25444# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25445# into the resulting binary.
25446hardcode_shlibpath_var=$hardcode_shlibpath_var
25447
25448# Set to "yes" if building a shared library automatically hardcodes DIR
25449# into the library and all subsequent libraries and executables linked
25450# against it.
25451hardcode_automatic=$hardcode_automatic
25452
25453# Set to yes if linker adds runtime paths of dependent libraries
25454# to runtime path list.
25455inherit_rpath=$inherit_rpath
25456
25457# Whether libtool must link a program against all its dependency libraries.
25458link_all_deplibs=$link_all_deplibs
25459
25460# Set to "yes" if exported symbols are required.
25461always_export_symbols=$always_export_symbols
25462
25463# The commands to list exported symbols.
25464export_symbols_cmds=$lt_export_symbols_cmds
25465
25466# Symbols that should not be listed in the preloaded symbols.
25467exclude_expsyms=$lt_exclude_expsyms
25468
25469# Symbols that must always be exported.
25470include_expsyms=$lt_include_expsyms
25471
25472# Commands necessary for linking programs (against libraries) with templates.
25473prelink_cmds=$lt_prelink_cmds
25474
25475# Commands necessary for finishing linking programs.
25476postlink_cmds=$lt_postlink_cmds
25477
25478# Specify filename containing input files.
25479file_list_spec=$lt_file_list_spec
25480
25481# How to hardcode a shared library path into an executable.
25482hardcode_action=$hardcode_action
25483
25484# The directories searched by this compiler when creating a shared library.
25485compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25486
25487# Dependencies to place before and after the objects being linked to
25488# create a shared library.
25489predep_objects=$lt_predep_objects
25490postdep_objects=$lt_postdep_objects
25491predeps=$lt_predeps
25492postdeps=$lt_postdeps
25493
25494# The library search path used internally by the compiler when linking
25495# a shared library.
25496compiler_lib_search_path=$lt_compiler_lib_search_path
25497
25498# ### END LIBTOOL CONFIG
25499
25500_LT_EOF
25501
25502    cat <<'_LT_EOF' >> "$cfgfile"
25503
25504# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
25505
25506# func_munge_path_list VARIABLE PATH
25507# -----------------------------------
25508# VARIABLE is name of variable containing _space_ separated list of
25509# directories to be munged by the contents of PATH, which is string
25510# having a format:
25511# "DIR[:DIR]:"
25512#       string "DIR[ DIR]" will be prepended to VARIABLE
25513# ":DIR[:DIR]"
25514#       string "DIR[ DIR]" will be appended to VARIABLE
25515# "DIRP[:DIRP]::[DIRA:]DIRA"
25516#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
25517#       "DIRA[ DIRA]" will be appended to VARIABLE
25518# "DIR[:DIR]"
25519#       VARIABLE will be replaced by "DIR[ DIR]"
25520func_munge_path_list ()
25521{
25522    case x$2 in
25523    x)
25524        ;;
25525    *:)
25526        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
25527        ;;
25528    x:*)
25529        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
25530        ;;
25531    *::*)
25532        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
25533        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
25534        ;;
25535    *)
25536        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
25537        ;;
25538    esac
25539}
25540
25541
25542# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
25543func_cc_basename ()
25544{
25545    for cc_temp in $*""; do
25546      case $cc_temp in
25547        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
25548        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
25549        \-*) ;;
25550        *) break;;
25551      esac
25552    done
25553    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
25554}
25555
25556
25557# ### END FUNCTIONS SHARED WITH CONFIGURE
25558
25559_LT_EOF
25560
25561  case $host_os in
25562  aix3*)
25563    cat <<\_LT_EOF >> "$cfgfile"
25564# AIX sometimes has problems with the GCC collect2 program.  For some
25565# reason, if we set the COLLECT_NAMES environment variable, the problems
25566# vanish in a puff of smoke.
25567if test set != "${COLLECT_NAMES+set}"; then
25568  COLLECT_NAMES=
25569  export COLLECT_NAMES
25570fi
25571_LT_EOF
25572    ;;
25573  esac
25574
25575
25576
25577ltmain=$ac_aux_dir/ltmain.sh
25578
25579
25580  # We use sed instead of cat because bash on DJGPP gets confused if
25581  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
25582  # text mode, it properly converts lines to CR/LF.  This bash problem
25583  # is reportedly fixed, but why not run on old versions too?
25584  sed '$q' "$ltmain" >> "$cfgfile" \
25585     || (rm -f "$cfgfile"; exit 1)
25586
25587   mv -f "$cfgfile" "$ofile" ||
25588    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25589  chmod +x "$ofile"
25590
25591
25592    cat <<_LT_EOF >> "$ofile"
25593
25594# ### BEGIN LIBTOOL TAG CONFIG: CXX
25595
25596# The linker used to build libraries.
25597LD=$lt_LD_CXX
25598
25599# How to create reloadable object files.
25600reload_flag=$lt_reload_flag_CXX
25601reload_cmds=$lt_reload_cmds_CXX
25602
25603# Commands used to build an old-style archive.
25604old_archive_cmds=$lt_old_archive_cmds_CXX
25605
25606# A language specific compiler.
25607CC=$lt_compiler_CXX
25608
25609# Is the compiler the GNU compiler?
25610with_gcc=$GCC_CXX
25611
25612# Compiler flag to turn off builtin functions.
25613no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25614
25615# Additional compiler flags for building library objects.
25616pic_flag=$lt_lt_prog_compiler_pic_CXX
25617
25618# How to pass a linker flag through the compiler.
25619wl=$lt_lt_prog_compiler_wl_CXX
25620
25621# Compiler flag to prevent dynamic linking.
25622link_static_flag=$lt_lt_prog_compiler_static_CXX
25623
25624# Does compiler simultaneously support -c and -o options?
25625compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25626
25627# Whether or not to add -lc for building shared libraries.
25628build_libtool_need_lc=$archive_cmds_need_lc_CXX
25629
25630# Whether or not to disallow shared libs when runtime libs are static.
25631allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25632
25633# Compiler flag to allow reflexive dlopens.
25634export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25635
25636# Compiler flag to generate shared objects directly from archives.
25637whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25638
25639# Whether the compiler copes with passing no objects directly.
25640compiler_needs_object=$lt_compiler_needs_object_CXX
25641
25642# Create an old-style archive from a shared archive.
25643old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25644
25645# Create a temporary old-style archive to link instead of a shared archive.
25646old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25647
25648# Commands used to build a shared archive.
25649archive_cmds=$lt_archive_cmds_CXX
25650archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25651
25652# Commands used to build a loadable module if different from building
25653# a shared archive.
25654module_cmds=$lt_module_cmds_CXX
25655module_expsym_cmds=$lt_module_expsym_cmds_CXX
25656
25657# Whether we are building with GNU ld or not.
25658with_gnu_ld=$lt_with_gnu_ld_CXX
25659
25660# Flag that allows shared libraries with undefined symbols to be built.
25661allow_undefined_flag=$lt_allow_undefined_flag_CXX
25662
25663# Flag that enforces no undefined symbols.
25664no_undefined_flag=$lt_no_undefined_flag_CXX
25665
25666# Flag to hardcode \$libdir into a binary during linking.
25667# This must work even if \$libdir does not exist
25668hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25669
25670# Whether we need a single "-rpath" flag with a separated argument.
25671hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25672
25673# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25674# DIR into the resulting binary.
25675hardcode_direct=$hardcode_direct_CXX
25676
25677# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25678# DIR into the resulting binary and the resulting library dependency is
25679# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25680# library is relocated.
25681hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25682
25683# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25684# into the resulting binary.
25685hardcode_minus_L=$hardcode_minus_L_CXX
25686
25687# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25688# into the resulting binary.
25689hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25690
25691# Set to "yes" if building a shared library automatically hardcodes DIR
25692# into the library and all subsequent libraries and executables linked
25693# against it.
25694hardcode_automatic=$hardcode_automatic_CXX
25695
25696# Set to yes if linker adds runtime paths of dependent libraries
25697# to runtime path list.
25698inherit_rpath=$inherit_rpath_CXX
25699
25700# Whether libtool must link a program against all its dependency libraries.
25701link_all_deplibs=$link_all_deplibs_CXX
25702
25703# Set to "yes" if exported symbols are required.
25704always_export_symbols=$always_export_symbols_CXX
25705
25706# The commands to list exported symbols.
25707export_symbols_cmds=$lt_export_symbols_cmds_CXX
25708
25709# Symbols that should not be listed in the preloaded symbols.
25710exclude_expsyms=$lt_exclude_expsyms_CXX
25711
25712# Symbols that must always be exported.
25713include_expsyms=$lt_include_expsyms_CXX
25714
25715# Commands necessary for linking programs (against libraries) with templates.
25716prelink_cmds=$lt_prelink_cmds_CXX
25717
25718# Commands necessary for finishing linking programs.
25719postlink_cmds=$lt_postlink_cmds_CXX
25720
25721# Specify filename containing input files.
25722file_list_spec=$lt_file_list_spec_CXX
25723
25724# How to hardcode a shared library path into an executable.
25725hardcode_action=$hardcode_action_CXX
25726
25727# The directories searched by this compiler when creating a shared library.
25728compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25729
25730# Dependencies to place before and after the objects being linked to
25731# create a shared library.
25732predep_objects=$lt_predep_objects_CXX
25733postdep_objects=$lt_postdep_objects_CXX
25734predeps=$lt_predeps_CXX
25735postdeps=$lt_postdeps_CXX
25736
25737# The library search path used internally by the compiler when linking
25738# a shared library.
25739compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25740
25741# ### END LIBTOOL TAG CONFIG: CXX
25742_LT_EOF
25743
25744
25745    cat <<_LT_EOF >> "$ofile"
25746
25747# ### BEGIN LIBTOOL TAG CONFIG: FC
25748
25749# The linker used to build libraries.
25750LD=$lt_LD_FC
25751
25752# How to create reloadable object files.
25753reload_flag=$lt_reload_flag_FC
25754reload_cmds=$lt_reload_cmds_FC
25755
25756# Commands used to build an old-style archive.
25757old_archive_cmds=$lt_old_archive_cmds_FC
25758
25759# A language specific compiler.
25760CC=$lt_compiler_FC
25761
25762# Is the compiler the GNU compiler?
25763with_gcc=$GCC_FC
25764
25765# Compiler flag to turn off builtin functions.
25766no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
25767
25768# Additional compiler flags for building library objects.
25769pic_flag=$lt_lt_prog_compiler_pic_FC
25770
25771# How to pass a linker flag through the compiler.
25772wl=$lt_lt_prog_compiler_wl_FC
25773
25774# Compiler flag to prevent dynamic linking.
25775link_static_flag=$lt_lt_prog_compiler_static_FC
25776
25777# Does compiler simultaneously support -c and -o options?
25778compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
25779
25780# Whether or not to add -lc for building shared libraries.
25781build_libtool_need_lc=$archive_cmds_need_lc_FC
25782
25783# Whether or not to disallow shared libs when runtime libs are static.
25784allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
25785
25786# Compiler flag to allow reflexive dlopens.
25787export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
25788
25789# Compiler flag to generate shared objects directly from archives.
25790whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
25791
25792# Whether the compiler copes with passing no objects directly.
25793compiler_needs_object=$lt_compiler_needs_object_FC
25794
25795# Create an old-style archive from a shared archive.
25796old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
25797
25798# Create a temporary old-style archive to link instead of a shared archive.
25799old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
25800
25801# Commands used to build a shared archive.
25802archive_cmds=$lt_archive_cmds_FC
25803archive_expsym_cmds=$lt_archive_expsym_cmds_FC
25804
25805# Commands used to build a loadable module if different from building
25806# a shared archive.
25807module_cmds=$lt_module_cmds_FC
25808module_expsym_cmds=$lt_module_expsym_cmds_FC
25809
25810# Whether we are building with GNU ld or not.
25811with_gnu_ld=$lt_with_gnu_ld_FC
25812
25813# Flag that allows shared libraries with undefined symbols to be built.
25814allow_undefined_flag=$lt_allow_undefined_flag_FC
25815
25816# Flag that enforces no undefined symbols.
25817no_undefined_flag=$lt_no_undefined_flag_FC
25818
25819# Flag to hardcode \$libdir into a binary during linking.
25820# This must work even if \$libdir does not exist
25821hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
25822
25823# Whether we need a single "-rpath" flag with a separated argument.
25824hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
25825
25826# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25827# DIR into the resulting binary.
25828hardcode_direct=$hardcode_direct_FC
25829
25830# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
25831# DIR into the resulting binary and the resulting library dependency is
25832# "absolute",i.e impossible to change by setting \$shlibpath_var if the
25833# library is relocated.
25834hardcode_direct_absolute=$hardcode_direct_absolute_FC
25835
25836# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25837# into the resulting binary.
25838hardcode_minus_L=$hardcode_minus_L_FC
25839
25840# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25841# into the resulting binary.
25842hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
25843
25844# Set to "yes" if building a shared library automatically hardcodes DIR
25845# into the library and all subsequent libraries and executables linked
25846# against it.
25847hardcode_automatic=$hardcode_automatic_FC
25848
25849# Set to yes if linker adds runtime paths of dependent libraries
25850# to runtime path list.
25851inherit_rpath=$inherit_rpath_FC
25852
25853# Whether libtool must link a program against all its dependency libraries.
25854link_all_deplibs=$link_all_deplibs_FC
25855
25856# Set to "yes" if exported symbols are required.
25857always_export_symbols=$always_export_symbols_FC
25858
25859# The commands to list exported symbols.
25860export_symbols_cmds=$lt_export_symbols_cmds_FC
25861
25862# Symbols that should not be listed in the preloaded symbols.
25863exclude_expsyms=$lt_exclude_expsyms_FC
25864
25865# Symbols that must always be exported.
25866include_expsyms=$lt_include_expsyms_FC
25867
25868# Commands necessary for linking programs (against libraries) with templates.
25869prelink_cmds=$lt_prelink_cmds_FC
25870
25871# Commands necessary for finishing linking programs.
25872postlink_cmds=$lt_postlink_cmds_FC
25873
25874# Specify filename containing input files.
25875file_list_spec=$lt_file_list_spec_FC
25876
25877# How to hardcode a shared library path into an executable.
25878hardcode_action=$hardcode_action_FC
25879
25880# The directories searched by this compiler when creating a shared library.
25881compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
25882
25883# Dependencies to place before and after the objects being linked to
25884# create a shared library.
25885predep_objects=$lt_predep_objects_FC
25886postdep_objects=$lt_postdep_objects_FC
25887predeps=$lt_predeps_FC
25888postdeps=$lt_postdeps_FC
25889
25890# The library search path used internally by the compiler when linking
25891# a shared library.
25892compiler_lib_search_path=$lt_compiler_lib_search_path_FC
25893
25894# ### END LIBTOOL TAG CONFIG: FC
25895_LT_EOF
25896
25897 ;;
25898
25899  esac
25900done # for ac_tag
25901
25902
25903as_fn_exit 0
25904_ACEOF
25905ac_clean_files=$ac_clean_files_save
25906
25907test $ac_write_fail = 0 ||
25908  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25909
25910
25911# configure is writing to config.log, and then calls config.status.
25912# config.status does its own redirection, appending to config.log.
25913# Unfortunately, on DOS this fails, as config.log is still kept open
25914# by configure, so config.status won't be able to write to it; its
25915# output is simply discarded.  So we exec the FD to /dev/null,
25916# effectively closing config.log, so it can be properly (re)opened and
25917# appended to by config.status.  When coming back to configure, we
25918# need to make the FD available again.
25919if test "$no_create" != yes; then
25920  ac_cs_success=:
25921  ac_config_status_args=
25922  test "$silent" = yes &&
25923    ac_config_status_args="$ac_config_status_args --quiet"
25924  exec 5>/dev/null
25925  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25926  exec 5>>config.log
25927  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25928  # would make configure fail if this is the last instruction.
25929  $ac_cs_success || as_fn_exit 1
25930fi
25931if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25932  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25933printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25934fi
25935
25936chmod +x qd-config
25937
25938echo
25939echo "Using "
25940echo "  C++ Compiler      = $CXX"
25941echo "  C++ Flags         = $CXXFLAGS $DEFS"
25942if test "$enable_fortran" = "yes"; then
25943  echo "  F90 Compiler      = $FC"
25944  echo "  F90 Flags         = $FCFLAGS $FCFLAGS_f90"
25945  echo "  F90 Libs          = $FCLIBS"
25946fi
25947echo "  enable fortran    = $enable_fortran"
25948echo "  enable inline     = $enable_inline"
25949echo "  enable x86 fix    = $x86_fix"
25950echo "  enable ieee add   = $enable_ieee_add"
25951echo "  enable sloppy mul = $enable_sloppy_mul"
25952echo "  enable sloppy div = $enable_sloppy_div"
25953echo "  fma               = $ax_cxx_fma"
25954echo "  fms               = $ax_cxx_fms"
25955
25956
25957