1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for fftw 3.3.9.
4#
5# Report bugs to <fftw@fftw.org>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  emulate sh
21  NULLCMD=:
22  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23  # is contrary to our usage.  Disable this feature.
24  alias -g '${1+"$@"}'='"$@"'
25  setopt NO_GLOB_SUBST
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47  as_echo='print -r --'
48  as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50  as_echo='printf %s\n'
51  as_echo_n='printf %s'
52else
53  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55    as_echo_n='/usr/ucb/echo -n'
56  else
57    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58    as_echo_n_body='eval
59      arg=$1;
60      case $arg in #(
61      *"$as_nl"*)
62	expr "X$arg" : "X\\(.*\\)$as_nl";
63	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64      esac;
65      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66    '
67    export as_echo_n_body
68    as_echo_n='sh -c $as_echo_n_body as_echo'
69  fi
70  export as_echo_body
71  as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76  PATH_SEPARATOR=:
77  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79      PATH_SEPARATOR=';'
80  }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order.  Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and fftw@fftw.org
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='fftw'
592PACKAGE_TARNAME='fftw'
593PACKAGE_VERSION='3.3.9'
594PACKAGE_STRING='fftw 3.3.9'
595PACKAGE_BUGREPORT='fftw@fftw.org'
596PACKAGE_URL=''
597
598ac_unique_file="kernel/ifftw.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638COMBINED_THREADS_FALSE
639COMBINED_THREADS_TRUE
640SMP_FALSE
641SMP_TRUE
642OPENMP_FALSE
643OPENMP_TRUE
644THREADS_FALSE
645THREADS_TRUE
646THREADLIBS
647PTHREAD_CFLAGS
648PTHREAD_LIBS
649PTHREAD_CC
650acx_pthread_config
651OPENMP_CFLAGS
652FLIBS
653ac_ct_F77
654FFLAGS
655F77
656INDENT
657LIBQUADMATH
658LIBOBJS
659POW_LIB
660ALLOCA
661C_FFTW_R2R_KIND
662STACK_ALIGN_CFLAGS
663NEON_CFLAGS
664VSX_CFLAGS
665ALTIVEC_CFLAGS
666KCVI_CFLAGS
667AVX512_CFLAGS
668AVX2_CFLAGS
669AVX_CFLAGS
670SSE2_CFLAGS
671MPI_FALSE
672MPI_TRUE
673C_MPI_FINT
674MPIRUN
675MPILIBS
676MPICC
677OCAMLBUILD
678CPP
679LT_SYS_LIBRARY_PATH
680OTOOL64
681OTOOL
682LIPO
683NMEDIT
684DSYMUTIL
685MANIFEST_TOOL
686RANLIB
687ac_ct_AR
688AR
689NM
690ac_ct_DUMPBIN
691DUMPBIN
692LD
693FGREP
694EGREP
695GREP
696SED
697LIBTOOL
698OBJDUMP
699DLLTOOL
700AS
701LN_S
702am__fastdepCC_FALSE
703am__fastdepCC_TRUE
704CCDEPMODE
705am__nodep
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__include
710DEPDIR
711OBJEXT
712EXEEXT
713ac_ct_CC
714CPPFLAGS
715LDFLAGS
716CFLAGS
717CC
718PREC_SUFFIX
719HAVE_GENERIC_SIMD256_FALSE
720HAVE_GENERIC_SIMD256_TRUE
721HAVE_GENERIC_SIMD128_FALSE
722HAVE_GENERIC_SIMD128_TRUE
723HAVE_NEON_FALSE
724HAVE_NEON_TRUE
725HAVE_VSX_FALSE
726HAVE_VSX_TRUE
727HAVE_ALTIVEC_FALSE
728HAVE_ALTIVEC_TRUE
729HAVE_KCVI_FALSE
730HAVE_KCVI_TRUE
731HAVE_AVX_128_FMA_FALSE
732HAVE_AVX_128_FMA_TRUE
733AVX_128_FMA_CFLAGS
734HAVE_AVX512_FALSE
735HAVE_AVX512_TRUE
736HAVE_AVX2_FALSE
737HAVE_AVX2_TRUE
738HAVE_AVX_FALSE
739HAVE_AVX_TRUE
740HAVE_SSE2_FALSE
741HAVE_SSE2_TRUE
742CHECK_PL_OPTS
743PRECISION
744QUAD_FALSE
745QUAD_TRUE
746LDOUBLE_FALSE
747LDOUBLE_TRUE
748SINGLE_FALSE
749SINGLE_TRUE
750BUILD_DOC_FALSE
751BUILD_DOC_TRUE
752host_os
753host_vendor
754host_cpu
755host
756build_os
757build_vendor
758build_cpu
759build
760SHARED_VERSION_INFO
761MAINT
762MAINTAINER_MODE_FALSE
763MAINTAINER_MODE_TRUE
764AM_BACKSLASH
765AM_DEFAULT_VERBOSITY
766AM_DEFAULT_V
767AM_V
768am__untar
769am__tar
770AMTAR
771am__leading_dot
772SET_MAKE
773AWK
774mkdir_p
775MKDIR_P
776INSTALL_STRIP_PROGRAM
777STRIP
778install_sh
779MAKEINFO
780AUTOHEADER
781AUTOMAKE
782AUTOCONF
783ACLOCAL
784VERSION
785PACKAGE
786CYGPATH_W
787am__isrc
788INSTALL_DATA
789INSTALL_SCRIPT
790INSTALL_PROGRAM
791target_alias
792host_alias
793build_alias
794LIBS
795ECHO_T
796ECHO_N
797ECHO_C
798DEFS
799mandir
800localedir
801libdir
802psdir
803pdfdir
804dvidir
805htmldir
806infodir
807docdir
808oldincludedir
809includedir
810runstatedir
811localstatedir
812sharedstatedir
813sysconfdir
814datadir
815datarootdir
816libexecdir
817sbindir
818bindir
819program_transform_name
820prefix
821exec_prefix
822PACKAGE_URL
823PACKAGE_BUGREPORT
824PACKAGE_STRING
825PACKAGE_VERSION
826PACKAGE_TARNAME
827PACKAGE_NAME
828PATH_SEPARATOR
829SHELL
830am__quote'
831ac_subst_files=''
832ac_user_opts='
833enable_option_checking
834enable_silent_rules
835enable_maintainer_mode
836enable_shared
837enable_debug
838enable_doc
839enable_random_estimator
840enable_alloca
841enable_single
842enable_float
843enable_long_double
844enable_quad_precision
845enable_sse
846enable_sse2
847enable_avx
848enable_avx2
849enable_avx512
850enable_avx_128_fma
851enable_kcvi
852enable_altivec
853enable_vsx
854enable_neon
855enable_armv8_pmccntr_el0
856enable_armv8_cntvct_el0
857enable_armv7a_cntvct
858enable_armv7a_pmccntr
859enable_generic_simd128
860enable_generic_simd256
861with_slow_timer
862enable_mips_zbus_timer
863with_our_malloc
864with_our_malloc16
865with_windows_f77_mangling
866with_incoming_stack_boundary
867enable_fma
868enable_dependency_tracking
869enable_static
870with_pic
871enable_fast_install
872with_aix_soname
873with_gnu_ld
874with_sysroot
875enable_libtool_lock
876enable_mpi
877enable_fortran
878with_g77_wrappers
879enable_openmp
880enable_threads
881with_combined_threads
882'
883      ac_precious_vars='build_alias
884host_alias
885target_alias
886CC
887CFLAGS
888LDFLAGS
889LIBS
890CPPFLAGS
891LT_SYS_LIBRARY_PATH
892CPP
893MPICC
894F77
895FFLAGS'
896
897
898# Initialize some variables set by options.
899ac_init_help=
900ac_init_version=false
901ac_unrecognized_opts=
902ac_unrecognized_sep=
903# The variables have the same names as the options, with
904# dashes changed to underlines.
905cache_file=/dev/null
906exec_prefix=NONE
907no_create=
908no_recursion=
909prefix=NONE
910program_prefix=NONE
911program_suffix=NONE
912program_transform_name=s,x,x,
913silent=
914site=
915srcdir=
916verbose=
917x_includes=NONE
918x_libraries=NONE
919
920# Installation directory options.
921# These are left unexpanded so users can "make install exec_prefix=/foo"
922# and all the variables that are supposed to be based on exec_prefix
923# by default will actually change.
924# Use braces instead of parens because sh, perl, etc. also accept them.
925# (The list follows the same order as the GNU Coding Standards.)
926bindir='${exec_prefix}/bin'
927sbindir='${exec_prefix}/sbin'
928libexecdir='${exec_prefix}/libexec'
929datarootdir='${prefix}/share'
930datadir='${datarootdir}'
931sysconfdir='${prefix}/etc'
932sharedstatedir='${prefix}/com'
933localstatedir='${prefix}/var'
934runstatedir='${localstatedir}/run'
935includedir='${prefix}/include'
936oldincludedir='/usr/include'
937docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938infodir='${datarootdir}/info'
939htmldir='${docdir}'
940dvidir='${docdir}'
941pdfdir='${docdir}'
942psdir='${docdir}'
943libdir='${exec_prefix}/lib'
944localedir='${datarootdir}/locale'
945mandir='${datarootdir}/man'
946
947ac_prev=
948ac_dashdash=
949for ac_option
950do
951  # If the previous option needs an argument, assign it.
952  if test -n "$ac_prev"; then
953    eval $ac_prev=\$ac_option
954    ac_prev=
955    continue
956  fi
957
958  case $ac_option in
959  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960  *=)   ac_optarg= ;;
961  *)    ac_optarg=yes ;;
962  esac
963
964  # Accept the important Cygnus configure options, so we can diagnose typos.
965
966  case $ac_dashdash$ac_option in
967  --)
968    ac_dashdash=yes ;;
969
970  -bindir | --bindir | --bindi | --bind | --bin | --bi)
971    ac_prev=bindir ;;
972  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973    bindir=$ac_optarg ;;
974
975  -build | --build | --buil | --bui | --bu)
976    ac_prev=build_alias ;;
977  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978    build_alias=$ac_optarg ;;
979
980  -cache-file | --cache-file | --cache-fil | --cache-fi \
981  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982    ac_prev=cache_file ;;
983  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985    cache_file=$ac_optarg ;;
986
987  --config-cache | -C)
988    cache_file=config.cache ;;
989
990  -datadir | --datadir | --datadi | --datad)
991    ac_prev=datadir ;;
992  -datadir=* | --datadir=* | --datadi=* | --datad=*)
993    datadir=$ac_optarg ;;
994
995  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996  | --dataroo | --dataro | --datar)
997    ac_prev=datarootdir ;;
998  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000    datarootdir=$ac_optarg ;;
1001
1002  -disable-* | --disable-*)
1003    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004    # Reject names that are not valid shell variable names.
1005    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006      as_fn_error $? "invalid feature name: $ac_useropt"
1007    ac_useropt_orig=$ac_useropt
1008    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009    case $ac_user_opts in
1010      *"
1011"enable_$ac_useropt"
1012"*) ;;
1013      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014	 ac_unrecognized_sep=', ';;
1015    esac
1016    eval enable_$ac_useropt=no ;;
1017
1018  -docdir | --docdir | --docdi | --doc | --do)
1019    ac_prev=docdir ;;
1020  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021    docdir=$ac_optarg ;;
1022
1023  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024    ac_prev=dvidir ;;
1025  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026    dvidir=$ac_optarg ;;
1027
1028  -enable-* | --enable-*)
1029    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030    # Reject names that are not valid shell variable names.
1031    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032      as_fn_error $? "invalid feature name: $ac_useropt"
1033    ac_useropt_orig=$ac_useropt
1034    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035    case $ac_user_opts in
1036      *"
1037"enable_$ac_useropt"
1038"*) ;;
1039      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040	 ac_unrecognized_sep=', ';;
1041    esac
1042    eval enable_$ac_useropt=\$ac_optarg ;;
1043
1044  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046  | --exec | --exe | --ex)
1047    ac_prev=exec_prefix ;;
1048  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050  | --exec=* | --exe=* | --ex=*)
1051    exec_prefix=$ac_optarg ;;
1052
1053  -gas | --gas | --ga | --g)
1054    # Obsolete; use --with-gas.
1055    with_gas=yes ;;
1056
1057  -help | --help | --hel | --he | -h)
1058    ac_init_help=long ;;
1059  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060    ac_init_help=recursive ;;
1061  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062    ac_init_help=short ;;
1063
1064  -host | --host | --hos | --ho)
1065    ac_prev=host_alias ;;
1066  -host=* | --host=* | --hos=* | --ho=*)
1067    host_alias=$ac_optarg ;;
1068
1069  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070    ac_prev=htmldir ;;
1071  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072  | --ht=*)
1073    htmldir=$ac_optarg ;;
1074
1075  -includedir | --includedir | --includedi | --included | --include \
1076  | --includ | --inclu | --incl | --inc)
1077    ac_prev=includedir ;;
1078  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079  | --includ=* | --inclu=* | --incl=* | --inc=*)
1080    includedir=$ac_optarg ;;
1081
1082  -infodir | --infodir | --infodi | --infod | --info | --inf)
1083    ac_prev=infodir ;;
1084  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085    infodir=$ac_optarg ;;
1086
1087  -libdir | --libdir | --libdi | --libd)
1088    ac_prev=libdir ;;
1089  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090    libdir=$ac_optarg ;;
1091
1092  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093  | --libexe | --libex | --libe)
1094    ac_prev=libexecdir ;;
1095  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096  | --libexe=* | --libex=* | --libe=*)
1097    libexecdir=$ac_optarg ;;
1098
1099  -localedir | --localedir | --localedi | --localed | --locale)
1100    ac_prev=localedir ;;
1101  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102    localedir=$ac_optarg ;;
1103
1104  -localstatedir | --localstatedir | --localstatedi | --localstated \
1105  | --localstate | --localstat | --localsta | --localst | --locals)
1106    ac_prev=localstatedir ;;
1107  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109    localstatedir=$ac_optarg ;;
1110
1111  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112    ac_prev=mandir ;;
1113  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114    mandir=$ac_optarg ;;
1115
1116  -nfp | --nfp | --nf)
1117    # Obsolete; use --without-fp.
1118    with_fp=no ;;
1119
1120  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121  | --no-cr | --no-c | -n)
1122    no_create=yes ;;
1123
1124  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126    no_recursion=yes ;;
1127
1128  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130  | --oldin | --oldi | --old | --ol | --o)
1131    ac_prev=oldincludedir ;;
1132  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135    oldincludedir=$ac_optarg ;;
1136
1137  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138    ac_prev=prefix ;;
1139  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140    prefix=$ac_optarg ;;
1141
1142  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143  | --program-pre | --program-pr | --program-p)
1144    ac_prev=program_prefix ;;
1145  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147    program_prefix=$ac_optarg ;;
1148
1149  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150  | --program-suf | --program-su | --program-s)
1151    ac_prev=program_suffix ;;
1152  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154    program_suffix=$ac_optarg ;;
1155
1156  -program-transform-name | --program-transform-name \
1157  | --program-transform-nam | --program-transform-na \
1158  | --program-transform-n | --program-transform- \
1159  | --program-transform | --program-transfor \
1160  | --program-transfo | --program-transf \
1161  | --program-trans | --program-tran \
1162  | --progr-tra | --program-tr | --program-t)
1163    ac_prev=program_transform_name ;;
1164  -program-transform-name=* | --program-transform-name=* \
1165  | --program-transform-nam=* | --program-transform-na=* \
1166  | --program-transform-n=* | --program-transform-=* \
1167  | --program-transform=* | --program-transfor=* \
1168  | --program-transfo=* | --program-transf=* \
1169  | --program-trans=* | --program-tran=* \
1170  | --progr-tra=* | --program-tr=* | --program-t=*)
1171    program_transform_name=$ac_optarg ;;
1172
1173  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174    ac_prev=pdfdir ;;
1175  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176    pdfdir=$ac_optarg ;;
1177
1178  -psdir | --psdir | --psdi | --psd | --ps)
1179    ac_prev=psdir ;;
1180  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181    psdir=$ac_optarg ;;
1182
1183  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184  | -silent | --silent | --silen | --sile | --sil)
1185    silent=yes ;;
1186
1187  -runstatedir | --runstatedir | --runstatedi | --runstated \
1188  | --runstate | --runstat | --runsta | --runst | --runs \
1189  | --run | --ru | --r)
1190    ac_prev=runstatedir ;;
1191  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1192  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1193  | --run=* | --ru=* | --r=*)
1194    runstatedir=$ac_optarg ;;
1195
1196  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197    ac_prev=sbindir ;;
1198  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199  | --sbi=* | --sb=*)
1200    sbindir=$ac_optarg ;;
1201
1202  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204  | --sharedst | --shareds | --shared | --share | --shar \
1205  | --sha | --sh)
1206    ac_prev=sharedstatedir ;;
1207  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210  | --sha=* | --sh=*)
1211    sharedstatedir=$ac_optarg ;;
1212
1213  -site | --site | --sit)
1214    ac_prev=site ;;
1215  -site=* | --site=* | --sit=*)
1216    site=$ac_optarg ;;
1217
1218  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219    ac_prev=srcdir ;;
1220  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221    srcdir=$ac_optarg ;;
1222
1223  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224  | --syscon | --sysco | --sysc | --sys | --sy)
1225    ac_prev=sysconfdir ;;
1226  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228    sysconfdir=$ac_optarg ;;
1229
1230  -target | --target | --targe | --targ | --tar | --ta | --t)
1231    ac_prev=target_alias ;;
1232  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233    target_alias=$ac_optarg ;;
1234
1235  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236    verbose=yes ;;
1237
1238  -version | --version | --versio | --versi | --vers | -V)
1239    ac_init_version=: ;;
1240
1241  -with-* | --with-*)
1242    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243    # Reject names that are not valid shell variable names.
1244    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245      as_fn_error $? "invalid package name: $ac_useropt"
1246    ac_useropt_orig=$ac_useropt
1247    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248    case $ac_user_opts in
1249      *"
1250"with_$ac_useropt"
1251"*) ;;
1252      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253	 ac_unrecognized_sep=', ';;
1254    esac
1255    eval with_$ac_useropt=\$ac_optarg ;;
1256
1257  -without-* | --without-*)
1258    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259    # Reject names that are not valid shell variable names.
1260    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261      as_fn_error $? "invalid package name: $ac_useropt"
1262    ac_useropt_orig=$ac_useropt
1263    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264    case $ac_user_opts in
1265      *"
1266"with_$ac_useropt"
1267"*) ;;
1268      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269	 ac_unrecognized_sep=', ';;
1270    esac
1271    eval with_$ac_useropt=no ;;
1272
1273  --x)
1274    # Obsolete; use --with-x.
1275    with_x=yes ;;
1276
1277  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278  | --x-incl | --x-inc | --x-in | --x-i)
1279    ac_prev=x_includes ;;
1280  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282    x_includes=$ac_optarg ;;
1283
1284  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286    ac_prev=x_libraries ;;
1287  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289    x_libraries=$ac_optarg ;;
1290
1291  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1292Try \`$0 --help' for more information"
1293    ;;
1294
1295  *=*)
1296    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297    # Reject names that are not valid shell variable names.
1298    case $ac_envvar in #(
1299      '' | [0-9]* | *[!_$as_cr_alnum]* )
1300      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1301    esac
1302    eval $ac_envvar=\$ac_optarg
1303    export $ac_envvar ;;
1304
1305  *)
1306    # FIXME: should be removed in autoconf 3.0.
1307    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1311    ;;
1312
1313  esac
1314done
1315
1316if test -n "$ac_prev"; then
1317  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318  as_fn_error $? "missing argument to $ac_option"
1319fi
1320
1321if test -n "$ac_unrecognized_opts"; then
1322  case $enable_option_checking in
1323    no) ;;
1324    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1325    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326  esac
1327fi
1328
1329# Check all directory arguments for consistency.
1330for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331		datadir sysconfdir sharedstatedir localstatedir includedir \
1332		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333		libdir localedir mandir runstatedir
1334do
1335  eval ac_val=\$$ac_var
1336  # Remove trailing slashes.
1337  case $ac_val in
1338    */ )
1339      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340      eval $ac_var=\$ac_val;;
1341  esac
1342  # Be sure to have absolute directory names.
1343  case $ac_val in
1344    [\\/$]* | ?:[\\/]* )  continue;;
1345    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346  esac
1347  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1348done
1349
1350# There might be people who depend on the old broken behavior: `$host'
1351# used to hold the argument of --host etc.
1352# FIXME: To remove some day.
1353build=$build_alias
1354host=$host_alias
1355target=$target_alias
1356
1357# FIXME: To remove some day.
1358if test "x$host_alias" != x; then
1359  if test "x$build_alias" = x; then
1360    cross_compiling=maybe
1361  elif test "x$build_alias" != "x$host_alias"; then
1362    cross_compiling=yes
1363  fi
1364fi
1365
1366ac_tool_prefix=
1367test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368
1369test "$silent" = yes && exec 6>/dev/null
1370
1371
1372ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373ac_ls_di=`ls -di .` &&
1374ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375  as_fn_error $? "working directory cannot be determined"
1376test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377  as_fn_error $? "pwd does not report name of working directory"
1378
1379
1380# Find the source files, if location was not specified.
1381if test -z "$srcdir"; then
1382  ac_srcdir_defaulted=yes
1383  # Try the directory containing this script, then the parent directory.
1384  ac_confdir=`$as_dirname -- "$as_myself" ||
1385$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386	 X"$as_myself" : 'X\(//\)[^/]' \| \
1387	 X"$as_myself" : 'X\(//\)$' \| \
1388	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389$as_echo X"$as_myself" |
1390    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391	    s//\1/
1392	    q
1393	  }
1394	  /^X\(\/\/\)[^/].*/{
1395	    s//\1/
1396	    q
1397	  }
1398	  /^X\(\/\/\)$/{
1399	    s//\1/
1400	    q
1401	  }
1402	  /^X\(\/\).*/{
1403	    s//\1/
1404	    q
1405	  }
1406	  s/.*/./; q'`
1407  srcdir=$ac_confdir
1408  if test ! -r "$srcdir/$ac_unique_file"; then
1409    srcdir=..
1410  fi
1411else
1412  ac_srcdir_defaulted=no
1413fi
1414if test ! -r "$srcdir/$ac_unique_file"; then
1415  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1417fi
1418ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419ac_abs_confdir=`(
1420	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1421	pwd)`
1422# When building in place, set srcdir=.
1423if test "$ac_abs_confdir" = "$ac_pwd"; then
1424  srcdir=.
1425fi
1426# Remove unnecessary trailing slashes from srcdir.
1427# Double slashes in file names in object file debugging info
1428# mess up M-x gdb in Emacs.
1429case $srcdir in
1430*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431esac
1432for ac_var in $ac_precious_vars; do
1433  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434  eval ac_env_${ac_var}_value=\$${ac_var}
1435  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437done
1438
1439#
1440# Report the --help message.
1441#
1442if test "$ac_init_help" = "long"; then
1443  # Omit some internal or obsolete options to make the list less imposing.
1444  # This message is too long to be a string in the A/UX 3.1 sh.
1445  cat <<_ACEOF
1446\`configure' configures fftw 3.3.9 to adapt to many kinds of systems.
1447
1448Usage: $0 [OPTION]... [VAR=VALUE]...
1449
1450To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451VAR=VALUE.  See below for descriptions of some of the useful variables.
1452
1453Defaults for the options are specified in brackets.
1454
1455Configuration:
1456  -h, --help              display this help and exit
1457      --help=short        display options specific to this package
1458      --help=recursive    display the short help of all the included packages
1459  -V, --version           display version information and exit
1460  -q, --quiet, --silent   do not print \`checking ...' messages
1461      --cache-file=FILE   cache test results in FILE [disabled]
1462  -C, --config-cache      alias for \`--cache-file=config.cache'
1463  -n, --no-create         do not create output files
1464      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1465
1466Installation directories:
1467  --prefix=PREFIX         install architecture-independent files in PREFIX
1468                          [$ac_default_prefix]
1469  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1470                          [PREFIX]
1471
1472By default, \`make install' will install all the files in
1473\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1474an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475for instance \`--prefix=\$HOME'.
1476
1477For better control, use the options below.
1478
1479Fine tuning of the installation directories:
1480  --bindir=DIR            user executables [EPREFIX/bin]
1481  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1482  --libexecdir=DIR        program executables [EPREFIX/libexec]
1483  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1484  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1485  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1486  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1487  --libdir=DIR            object code libraries [EPREFIX/lib]
1488  --includedir=DIR        C header files [PREFIX/include]
1489  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1490  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1491  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1492  --infodir=DIR           info documentation [DATAROOTDIR/info]
1493  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1494  --mandir=DIR            man documentation [DATAROOTDIR/man]
1495  --docdir=DIR            documentation root [DATAROOTDIR/doc/fftw]
1496  --htmldir=DIR           html documentation [DOCDIR]
1497  --dvidir=DIR            dvi documentation [DOCDIR]
1498  --pdfdir=DIR            pdf documentation [DOCDIR]
1499  --psdir=DIR             ps documentation [DOCDIR]
1500_ACEOF
1501
1502  cat <<\_ACEOF
1503
1504Program names:
1505  --program-prefix=PREFIX            prepend PREFIX to installed program names
1506  --program-suffix=SUFFIX            append SUFFIX to installed program names
1507  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1508
1509System types:
1510  --build=BUILD     configure for building on BUILD [guessed]
1511  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1512_ACEOF
1513fi
1514
1515if test -n "$ac_init_help"; then
1516  case $ac_init_help in
1517     short | recursive ) echo "Configuration of fftw 3.3.9:";;
1518   esac
1519  cat <<\_ACEOF
1520
1521Optional Features:
1522  --disable-option-checking  ignore unrecognized --enable/--with options
1523  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1524  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1525  --enable-silent-rules   less verbose build output (undo: "make V=1")
1526  --disable-silent-rules  verbose build output (undo: "make V=0")
1527  --enable-maintainer-mode
1528                          enable make rules and dependencies not useful (and
1529                          sometimes confusing) to the casual installer
1530  --enable-shared[=PKGS]  build shared libraries [default=no]
1531  --enable-debug          compile fftw with extra runtime checks for debugging
1532  --disable-doc           disable building the documentation
1533  --enable-random-estimator
1534                          enable pseudorandom estimator (debugging hack)
1535  --disable-alloca        disable use of the alloca() function (may be broken
1536                          on mingw64)
1537  --enable-single         compile fftw in single precision
1538  --enable-float          synonym for --enable-single
1539  --enable-long-double    compile fftw in long-double precision
1540  --enable-quad-precision compile fftw in quadruple precision if available
1541  --enable-sse            enable SSE optimizations
1542  --enable-sse2           enable SSE/SSE2 optimizations
1543  --enable-avx            enable AVX optimizations
1544  --enable-avx2           enable AVX2 optimizations
1545  --enable-avx512         enable AVX512 optimizations
1546  --enable-avx-128-fma    enable AVX128/FMA optimizations
1547  --enable-kcvi           enable Knights Corner vector instructions
1548                          optimizations
1549  --enable-altivec        enable Altivec optimizations
1550  --enable-vsx            enable IBM VSX optimizations
1551  --enable-neon           enable ARM NEON optimizations
1552  --enable-armv8-pmccntr-el0
1553                          enable the cycle counter on ARMv8 via the
1554                          PMCCNTR_EL0 register (see README-perfcounters for
1555                          details and mandatory instructions)
1556  --enable-armv8-cntvct-el0
1557                          enable the cycle counter on ARMv8 via the CNTVCT_EL0
1558                          register (see README-perfcounters for details and
1559                          mandatory instructions)
1560  --enable-armv7a-cntvct  enable the cycle counter on Armv7a via the CNTVCT
1561                          register (see README-perfcounters for details and
1562                          mandatory instructions)
1563  --enable-armv7a-pmccntr enable the cycle counter on Armv7a via the PMCCNTR
1564                          register (see README-perfcounters for details and
1565                          mandatory instructions)
1566  --enable-generic-simd128
1567                          enable generic (gcc) 128-bit SIMD optimizations
1568  --enable-generic-simd256
1569                          enable generic (gcc) 256-bit SIMD optimizations
1570  --enable-mips-zbus-timer
1571                          use MIPS ZBus cycle-counter
1572  --enable-fma            enable if the machine architecture "naturally"
1573                          prefers fused multiply-add instructions
1574  --enable-dependency-tracking
1575                          do not reject slow dependency extractors
1576  --disable-dependency-tracking
1577                          speeds up one-time build
1578  --enable-static[=PKGS]  build static libraries [default=yes]
1579  --enable-fast-install[=PKGS]
1580                          optimize for fast installation [default=yes]
1581  --disable-libtool-lock  avoid locking (might break parallel builds)
1582  --enable-mpi            compile FFTW MPI library
1583  --disable-fortran       don't include Fortran-callable wrappers
1584  --enable-openmp         use OpenMP directives for parallelism
1585  --enable-threads        compile FFTW SMP threads library
1586
1587Optional Packages:
1588  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1589  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1590  --with-slow-timer       use low-precision timers (SLOW)
1591  --with-our-malloc       use our aligned malloc (helpful for Win32)
1592  --with-our-malloc16     Obsolete alias for --with-our-malloc16
1593  --with-windows-f77-mangling
1594                          use common Win32 Fortran interface styles
1595  --with-incoming-stack-boundary=X
1596                          Assume that stack is aligned to (1<<X) bytes
1597  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1598                          both]
1599  --with-aix-soname=aix|svr4|both
1600                          shared library versioning (aka "SONAME") variant to
1601                          provide on AIX, [default=aix].
1602  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1603  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1604                          compiler's sysroot if not specified).
1605  --with-g77-wrappers     force inclusion of g77-compatible wrappers in
1606                          addition to any other Fortran compiler that is
1607                          detected
1608  --with-combined-threads combine threads into main libfftw3
1609
1610Some influential environment variables:
1611  CC          C compiler command
1612  CFLAGS      C compiler flags
1613  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1614              nonstandard directory <lib dir>
1615  LIBS        libraries to pass to the linker, e.g. -l<library>
1616  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1617              you have headers in a nonstandard directory <include dir>
1618  LT_SYS_LIBRARY_PATH
1619              User-defined run-time library search path.
1620  CPP         C preprocessor
1621  MPICC       MPI C compiler command
1622  F77         Fortran 77 compiler command
1623  FFLAGS      Fortran 77 compiler flags
1624
1625Use these variables to override the choices made by `configure' or to help
1626it to find libraries and programs with nonstandard names/locations.
1627
1628Report bugs to <fftw@fftw.org>.
1629_ACEOF
1630ac_status=$?
1631fi
1632
1633if test "$ac_init_help" = "recursive"; then
1634  # If there are subdirs, report their specific --help.
1635  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1636    test -d "$ac_dir" ||
1637      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1638      continue
1639    ac_builddir=.
1640
1641case "$ac_dir" in
1642.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643*)
1644  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1645  # A ".." for each directory in $ac_dir_suffix.
1646  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1647  case $ac_top_builddir_sub in
1648  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1649  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1650  esac ;;
1651esac
1652ac_abs_top_builddir=$ac_pwd
1653ac_abs_builddir=$ac_pwd$ac_dir_suffix
1654# for backward compatibility:
1655ac_top_builddir=$ac_top_build_prefix
1656
1657case $srcdir in
1658  .)  # We are building in place.
1659    ac_srcdir=.
1660    ac_top_srcdir=$ac_top_builddir_sub
1661    ac_abs_top_srcdir=$ac_pwd ;;
1662  [\\/]* | ?:[\\/]* )  # Absolute name.
1663    ac_srcdir=$srcdir$ac_dir_suffix;
1664    ac_top_srcdir=$srcdir
1665    ac_abs_top_srcdir=$srcdir ;;
1666  *) # Relative name.
1667    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1668    ac_top_srcdir=$ac_top_build_prefix$srcdir
1669    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670esac
1671ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672
1673    cd "$ac_dir" || { ac_status=$?; continue; }
1674    # Check for guested configure.
1675    if test -f "$ac_srcdir/configure.gnu"; then
1676      echo &&
1677      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1678    elif test -f "$ac_srcdir/configure"; then
1679      echo &&
1680      $SHELL "$ac_srcdir/configure" --help=recursive
1681    else
1682      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683    fi || ac_status=$?
1684    cd "$ac_pwd" || { ac_status=$?; break; }
1685  done
1686fi
1687
1688test -n "$ac_init_help" && exit $ac_status
1689if $ac_init_version; then
1690  cat <<\_ACEOF
1691fftw configure 3.3.9
1692generated by GNU Autoconf 2.69
1693
1694Copyright (C) 2012 Free Software Foundation, Inc.
1695This configure script is free software; the Free Software Foundation
1696gives unlimited permission to copy, distribute and modify it.
1697_ACEOF
1698  exit
1699fi
1700
1701## ------------------------ ##
1702## Autoconf initialization. ##
1703## ------------------------ ##
1704
1705# ac_fn_c_try_compile LINENO
1706# --------------------------
1707# Try to compile conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_compile ()
1709{
1710  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711  rm -f conftest.$ac_objext
1712  if { { ac_try="$ac_compile"
1713case "(($ac_try" in
1714  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715  *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719  (eval "$ac_compile") 2>conftest.err
1720  ac_status=$?
1721  if test -s conftest.err; then
1722    grep -v '^ *+' conftest.err >conftest.er1
1723    cat conftest.er1 >&5
1724    mv -f conftest.er1 conftest.err
1725  fi
1726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727  test $ac_status = 0; } && {
1728	 test -z "$ac_c_werror_flag" ||
1729	 test ! -s conftest.err
1730       } && test -s conftest.$ac_objext; then :
1731  ac_retval=0
1732else
1733  $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736	ac_retval=1
1737fi
1738  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739  as_fn_set_status $ac_retval
1740
1741} # ac_fn_c_try_compile
1742
1743# ac_fn_c_try_link LINENO
1744# -----------------------
1745# Try to link conftest.$ac_ext, and return whether this succeeded.
1746ac_fn_c_try_link ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  rm -f conftest.$ac_objext conftest$ac_exeext
1750  if { { ac_try="$ac_link"
1751case "(($ac_try" in
1752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753  *) ac_try_echo=$ac_try;;
1754esac
1755eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756$as_echo "$ac_try_echo"; } >&5
1757  (eval "$ac_link") 2>conftest.err
1758  ac_status=$?
1759  if test -s conftest.err; then
1760    grep -v '^ *+' conftest.err >conftest.er1
1761    cat conftest.er1 >&5
1762    mv -f conftest.er1 conftest.err
1763  fi
1764  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765  test $ac_status = 0; } && {
1766	 test -z "$ac_c_werror_flag" ||
1767	 test ! -s conftest.err
1768       } && test -s conftest$ac_exeext && {
1769	 test "$cross_compiling" = yes ||
1770	 test -x conftest$ac_exeext
1771       }; then :
1772  ac_retval=0
1773else
1774  $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777	ac_retval=1
1778fi
1779  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781  # interfere with the next link command; also delete a directory that is
1782  # left behind by Apple's compiler.  We do this before executing the actions.
1783  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785  as_fn_set_status $ac_retval
1786
1787} # ac_fn_c_try_link
1788
1789# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1790# -------------------------------------------------------
1791# Tests whether HEADER exists and can be compiled using the include files in
1792# INCLUDES, setting the cache variable VAR accordingly.
1793ac_fn_c_check_header_compile ()
1794{
1795  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797$as_echo_n "checking for $2... " >&6; }
1798if eval \${$3+:} false; then :
1799  $as_echo_n "(cached) " >&6
1800else
1801  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h.  */
1803$4
1804#include <$2>
1805_ACEOF
1806if ac_fn_c_try_compile "$LINENO"; then :
1807  eval "$3=yes"
1808else
1809  eval "$3=no"
1810fi
1811rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812fi
1813eval ac_res=\$$3
1814	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817
1818} # ac_fn_c_check_header_compile
1819
1820# ac_fn_c_try_cpp LINENO
1821# ----------------------
1822# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1823ac_fn_c_try_cpp ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  if { { ac_try="$ac_cpp conftest.$ac_ext"
1827case "(($ac_try" in
1828  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829  *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1834  ac_status=$?
1835  if test -s conftest.err; then
1836    grep -v '^ *+' conftest.err >conftest.er1
1837    cat conftest.er1 >&5
1838    mv -f conftest.er1 conftest.err
1839  fi
1840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841  test $ac_status = 0; } > conftest.i && {
1842	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1843	 test ! -s conftest.err
1844       }; then :
1845  ac_retval=0
1846else
1847  $as_echo "$as_me: failed program was:" >&5
1848sed 's/^/| /' conftest.$ac_ext >&5
1849
1850    ac_retval=1
1851fi
1852  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853  as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_cpp
1856
1857# ac_fn_c_try_run LINENO
1858# ----------------------
1859# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1860# that executables *can* be run.
1861ac_fn_c_try_run ()
1862{
1863  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864  if { { ac_try="$ac_link"
1865case "(($ac_try" in
1866  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867  *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871  (eval "$ac_link") 2>&5
1872  ac_status=$?
1873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1875  { { case "(($ac_try" in
1876  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877  *) ac_try_echo=$ac_try;;
1878esac
1879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880$as_echo "$ac_try_echo"; } >&5
1881  (eval "$ac_try") 2>&5
1882  ac_status=$?
1883  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884  test $ac_status = 0; }; }; then :
1885  ac_retval=0
1886else
1887  $as_echo "$as_me: program exited with status $ac_status" >&5
1888       $as_echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891       ac_retval=$ac_status
1892fi
1893  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895  as_fn_set_status $ac_retval
1896
1897} # ac_fn_c_try_run
1898
1899# ac_fn_c_check_func LINENO FUNC VAR
1900# ----------------------------------
1901# Tests whether FUNC exists, setting the cache variable VAR accordingly
1902ac_fn_c_check_func ()
1903{
1904  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
1907if eval \${$3+:} false; then :
1908  $as_echo_n "(cached) " >&6
1909else
1910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h.  */
1912/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1913   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1914#define $2 innocuous_$2
1915
1916/* System header to define __stub macros and hopefully few prototypes,
1917    which can conflict with char $2 (); below.
1918    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1919    <limits.h> exists even on freestanding compilers.  */
1920
1921#ifdef __STDC__
1922# include <limits.h>
1923#else
1924# include <assert.h>
1925#endif
1926
1927#undef $2
1928
1929/* Override any GCC internal prototype to avoid an error.
1930   Use char because int might match the return type of a GCC
1931   builtin and then its argument prototype would still apply.  */
1932#ifdef __cplusplus
1933extern "C"
1934#endif
1935char $2 ();
1936/* The GNU C library defines this for functions which it implements
1937    to always fail with ENOSYS.  Some functions are actually named
1938    something starting with __ and the normal name is an alias.  */
1939#if defined __stub_$2 || defined __stub___$2
1940choke me
1941#endif
1942
1943int
1944main ()
1945{
1946return $2 ();
1947  ;
1948  return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_link "$LINENO"; then :
1952  eval "$3=yes"
1953else
1954  eval "$3=no"
1955fi
1956rm -f core conftest.err conftest.$ac_objext \
1957    conftest$ac_exeext conftest.$ac_ext
1958fi
1959eval ac_res=\$$3
1960	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964} # ac_fn_c_check_func
1965
1966# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1967# --------------------------------------------
1968# Tries to find the compile-time value of EXPR in a program that includes
1969# INCLUDES, setting VAR accordingly. Returns whether the value could be
1970# computed
1971ac_fn_c_compute_int ()
1972{
1973  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974  if test "$cross_compiling" = yes; then
1975    # Depending upon the size, compute the lo and hi bounds.
1976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h.  */
1978$4
1979int
1980main ()
1981{
1982static int test_array [1 - 2 * !(($2) >= 0)];
1983test_array [0] = 0;
1984return test_array [0];
1985
1986  ;
1987  return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_compile "$LINENO"; then :
1991  ac_lo=0 ac_mid=0
1992  while :; do
1993    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994/* end confdefs.h.  */
1995$4
1996int
1997main ()
1998{
1999static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2000test_array [0] = 0;
2001return test_array [0];
2002
2003  ;
2004  return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_compile "$LINENO"; then :
2008  ac_hi=$ac_mid; break
2009else
2010  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2011			if test $ac_lo -le $ac_mid; then
2012			  ac_lo= ac_hi=
2013			  break
2014			fi
2015			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2016fi
2017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018  done
2019else
2020  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h.  */
2022$4
2023int
2024main ()
2025{
2026static int test_array [1 - 2 * !(($2) < 0)];
2027test_array [0] = 0;
2028return test_array [0];
2029
2030  ;
2031  return 0;
2032}
2033_ACEOF
2034if ac_fn_c_try_compile "$LINENO"; then :
2035  ac_hi=-1 ac_mid=-1
2036  while :; do
2037    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038/* end confdefs.h.  */
2039$4
2040int
2041main ()
2042{
2043static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2044test_array [0] = 0;
2045return test_array [0];
2046
2047  ;
2048  return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052  ac_lo=$ac_mid; break
2053else
2054  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2055			if test $ac_mid -le $ac_hi; then
2056			  ac_lo= ac_hi=
2057			  break
2058			fi
2059			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2060fi
2061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2062  done
2063else
2064  ac_lo= ac_hi=
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069# Binary search between lo and hi bounds.
2070while test "x$ac_lo" != "x$ac_hi"; do
2071  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2072  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073/* end confdefs.h.  */
2074$4
2075int
2076main ()
2077{
2078static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2079test_array [0] = 0;
2080return test_array [0];
2081
2082  ;
2083  return 0;
2084}
2085_ACEOF
2086if ac_fn_c_try_compile "$LINENO"; then :
2087  ac_hi=$ac_mid
2088else
2089  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2090fi
2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092done
2093case $ac_lo in #((
2094?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2095'') ac_retval=1 ;;
2096esac
2097  else
2098    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h.  */
2100$4
2101static long int longval () { return $2; }
2102static unsigned long int ulongval () { return $2; }
2103#include <stdio.h>
2104#include <stdlib.h>
2105int
2106main ()
2107{
2108
2109  FILE *f = fopen ("conftest.val", "w");
2110  if (! f)
2111    return 1;
2112  if (($2) < 0)
2113    {
2114      long int i = longval ();
2115      if (i != ($2))
2116	return 1;
2117      fprintf (f, "%ld", i);
2118    }
2119  else
2120    {
2121      unsigned long int i = ulongval ();
2122      if (i != ($2))
2123	return 1;
2124      fprintf (f, "%lu", i);
2125    }
2126  /* Do not output a trailing newline, as this causes \r\n confusion
2127     on some platforms.  */
2128  return ferror (f) || fclose (f) != 0;
2129
2130  ;
2131  return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_run "$LINENO"; then :
2135  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2136else
2137  ac_retval=1
2138fi
2139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2140  conftest.$ac_objext conftest.beam conftest.$ac_ext
2141rm -f conftest.val
2142
2143  fi
2144  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145  as_fn_set_status $ac_retval
2146
2147} # ac_fn_c_compute_int
2148
2149# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2150# -------------------------------------------------------
2151# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2152# the include files in INCLUDES and setting the cache variable VAR
2153# accordingly.
2154ac_fn_c_check_header_mongrel ()
2155{
2156  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157  if eval \${$3+:} false; then :
2158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159$as_echo_n "checking for $2... " >&6; }
2160if eval \${$3+:} false; then :
2161  $as_echo_n "(cached) " >&6
2162fi
2163eval ac_res=\$$3
2164	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2165$as_echo "$ac_res" >&6; }
2166else
2167  # Is the header compilable?
2168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2169$as_echo_n "checking $2 usability... " >&6; }
2170cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2171/* end confdefs.h.  */
2172$4
2173#include <$2>
2174_ACEOF
2175if ac_fn_c_try_compile "$LINENO"; then :
2176  ac_header_compiler=yes
2177else
2178  ac_header_compiler=no
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2182$as_echo "$ac_header_compiler" >&6; }
2183
2184# Is the header present?
2185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2186$as_echo_n "checking $2 presence... " >&6; }
2187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h.  */
2189#include <$2>
2190_ACEOF
2191if ac_fn_c_try_cpp "$LINENO"; then :
2192  ac_header_preproc=yes
2193else
2194  ac_header_preproc=no
2195fi
2196rm -f conftest.err conftest.i conftest.$ac_ext
2197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2198$as_echo "$ac_header_preproc" >&6; }
2199
2200# So?  What about this header?
2201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2202  yes:no: )
2203    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2204$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2205    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2206$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2207    ;;
2208  no:yes:* )
2209    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2210$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2211    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2212$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2213    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2214$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2215    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2216$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2217    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2218$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2219( $as_echo "## ---------------------------- ##
2220## Report this to fftw@fftw.org ##
2221## ---------------------------- ##"
2222     ) | sed "s/^/$as_me: WARNING:     /" >&2
2223    ;;
2224esac
2225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226$as_echo_n "checking for $2... " >&6; }
2227if eval \${$3+:} false; then :
2228  $as_echo_n "(cached) " >&6
2229else
2230  eval "$3=\$ac_header_compiler"
2231fi
2232eval ac_res=\$$3
2233	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234$as_echo "$ac_res" >&6; }
2235fi
2236  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2237
2238} # ac_fn_c_check_header_mongrel
2239
2240# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2241# -------------------------------------------
2242# Tests whether TYPE exists after having included INCLUDES, setting cache
2243# variable VAR accordingly.
2244ac_fn_c_check_type ()
2245{
2246  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2248$as_echo_n "checking for $2... " >&6; }
2249if eval \${$3+:} false; then :
2250  $as_echo_n "(cached) " >&6
2251else
2252  eval "$3=no"
2253  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254/* end confdefs.h.  */
2255$4
2256int
2257main ()
2258{
2259if (sizeof ($2))
2260	 return 0;
2261  ;
2262  return 0;
2263}
2264_ACEOF
2265if ac_fn_c_try_compile "$LINENO"; then :
2266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267/* end confdefs.h.  */
2268$4
2269int
2270main ()
2271{
2272if (sizeof (($2)))
2273	    return 0;
2274  ;
2275  return 0;
2276}
2277_ACEOF
2278if ac_fn_c_try_compile "$LINENO"; then :
2279
2280else
2281  eval "$3=yes"
2282fi
2283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2284fi
2285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2286fi
2287eval ac_res=\$$3
2288	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2289$as_echo "$ac_res" >&6; }
2290  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291
2292} # ac_fn_c_check_type
2293
2294# ac_fn_c_find_uintX_t LINENO BITS VAR
2295# ------------------------------------
2296# Finds an unsigned integer type with width BITS, setting cache variable VAR
2297# accordingly.
2298ac_fn_c_find_uintX_t ()
2299{
2300  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2302$as_echo_n "checking for uint$2_t... " >&6; }
2303if eval \${$3+:} false; then :
2304  $as_echo_n "(cached) " >&6
2305else
2306  eval "$3=no"
2307     # Order is important - never check a type that is potentially smaller
2308     # than half of the expected target width.
2309     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2310	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2311       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312/* end confdefs.h.  */
2313$ac_includes_default
2314int
2315main ()
2316{
2317static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2318test_array [0] = 0;
2319return test_array [0];
2320
2321  ;
2322  return 0;
2323}
2324_ACEOF
2325if ac_fn_c_try_compile "$LINENO"; then :
2326  case $ac_type in #(
2327  uint$2_t) :
2328    eval "$3=yes" ;; #(
2329  *) :
2330    eval "$3=\$ac_type" ;;
2331esac
2332fi
2333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334       if eval test \"x\$"$3"\" = x"no"; then :
2335
2336else
2337  break
2338fi
2339     done
2340fi
2341eval ac_res=\$$3
2342	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343$as_echo "$ac_res" >&6; }
2344  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2345
2346} # ac_fn_c_find_uintX_t
2347
2348# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2349# ---------------------------------------------
2350# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2351# accordingly.
2352ac_fn_c_check_decl ()
2353{
2354  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2355  as_decl_name=`echo $2|sed 's/ *(.*//'`
2356  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2358$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2359if eval \${$3+:} false; then :
2360  $as_echo_n "(cached) " >&6
2361else
2362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363/* end confdefs.h.  */
2364$4
2365int
2366main ()
2367{
2368#ifndef $as_decl_name
2369#ifdef __cplusplus
2370  (void) $as_decl_use;
2371#else
2372  (void) $as_decl_name;
2373#endif
2374#endif
2375
2376  ;
2377  return 0;
2378}
2379_ACEOF
2380if ac_fn_c_try_compile "$LINENO"; then :
2381  eval "$3=yes"
2382else
2383  eval "$3=no"
2384fi
2385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2386fi
2387eval ac_res=\$$3
2388	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2389$as_echo "$ac_res" >&6; }
2390  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2391
2392} # ac_fn_c_check_decl
2393
2394# ac_fn_f77_try_compile LINENO
2395# ----------------------------
2396# Try to compile conftest.$ac_ext, and return whether this succeeded.
2397ac_fn_f77_try_compile ()
2398{
2399  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400  rm -f conftest.$ac_objext
2401  if { { ac_try="$ac_compile"
2402case "(($ac_try" in
2403  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404  *) ac_try_echo=$ac_try;;
2405esac
2406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2407$as_echo "$ac_try_echo"; } >&5
2408  (eval "$ac_compile") 2>conftest.err
2409  ac_status=$?
2410  if test -s conftest.err; then
2411    grep -v '^ *+' conftest.err >conftest.er1
2412    cat conftest.er1 >&5
2413    mv -f conftest.er1 conftest.err
2414  fi
2415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2416  test $ac_status = 0; } && {
2417	 test -z "$ac_f77_werror_flag" ||
2418	 test ! -s conftest.err
2419       } && test -s conftest.$ac_objext; then :
2420  ac_retval=0
2421else
2422  $as_echo "$as_me: failed program was:" >&5
2423sed 's/^/| /' conftest.$ac_ext >&5
2424
2425	ac_retval=1
2426fi
2427  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2428  as_fn_set_status $ac_retval
2429
2430} # ac_fn_f77_try_compile
2431
2432# ac_fn_f77_try_link LINENO
2433# -------------------------
2434# Try to link conftest.$ac_ext, and return whether this succeeded.
2435ac_fn_f77_try_link ()
2436{
2437  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2438  rm -f conftest.$ac_objext conftest$ac_exeext
2439  if { { ac_try="$ac_link"
2440case "(($ac_try" in
2441  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2442  *) ac_try_echo=$ac_try;;
2443esac
2444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2445$as_echo "$ac_try_echo"; } >&5
2446  (eval "$ac_link") 2>conftest.err
2447  ac_status=$?
2448  if test -s conftest.err; then
2449    grep -v '^ *+' conftest.err >conftest.er1
2450    cat conftest.er1 >&5
2451    mv -f conftest.er1 conftest.err
2452  fi
2453  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2454  test $ac_status = 0; } && {
2455	 test -z "$ac_f77_werror_flag" ||
2456	 test ! -s conftest.err
2457       } && test -s conftest$ac_exeext && {
2458	 test "$cross_compiling" = yes ||
2459	 test -x conftest$ac_exeext
2460       }; then :
2461  ac_retval=0
2462else
2463  $as_echo "$as_me: failed program was:" >&5
2464sed 's/^/| /' conftest.$ac_ext >&5
2465
2466	ac_retval=1
2467fi
2468  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2469  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2470  # interfere with the next link command; also delete a directory that is
2471  # left behind by Apple's compiler.  We do this before executing the actions.
2472  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2473  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2474  as_fn_set_status $ac_retval
2475
2476} # ac_fn_f77_try_link
2477cat >config.log <<_ACEOF
2478This file contains any messages produced by compilers while
2479running configure, to aid debugging if configure makes a mistake.
2480
2481It was created by fftw $as_me 3.3.9, which was
2482generated by GNU Autoconf 2.69.  Invocation command line was
2483
2484  $ $0 $@
2485
2486_ACEOF
2487exec 5>>config.log
2488{
2489cat <<_ASUNAME
2490## --------- ##
2491## Platform. ##
2492## --------- ##
2493
2494hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2495uname -m = `(uname -m) 2>/dev/null || echo unknown`
2496uname -r = `(uname -r) 2>/dev/null || echo unknown`
2497uname -s = `(uname -s) 2>/dev/null || echo unknown`
2498uname -v = `(uname -v) 2>/dev/null || echo unknown`
2499
2500/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2501/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2502
2503/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2504/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2505/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2506/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2507/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2508/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2509/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2510
2511_ASUNAME
2512
2513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514for as_dir in $PATH
2515do
2516  IFS=$as_save_IFS
2517  test -z "$as_dir" && as_dir=.
2518    $as_echo "PATH: $as_dir"
2519  done
2520IFS=$as_save_IFS
2521
2522} >&5
2523
2524cat >&5 <<_ACEOF
2525
2526
2527## ----------- ##
2528## Core tests. ##
2529## ----------- ##
2530
2531_ACEOF
2532
2533
2534# Keep a trace of the command line.
2535# Strip out --no-create and --no-recursion so they do not pile up.
2536# Strip out --silent because we don't want to record it for future runs.
2537# Also quote any args containing shell meta-characters.
2538# Make two passes to allow for proper duplicate-argument suppression.
2539ac_configure_args=
2540ac_configure_args0=
2541ac_configure_args1=
2542ac_must_keep_next=false
2543for ac_pass in 1 2
2544do
2545  for ac_arg
2546  do
2547    case $ac_arg in
2548    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2549    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2550    | -silent | --silent | --silen | --sile | --sil)
2551      continue ;;
2552    *\'*)
2553      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2554    esac
2555    case $ac_pass in
2556    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2557    2)
2558      as_fn_append ac_configure_args1 " '$ac_arg'"
2559      if test $ac_must_keep_next = true; then
2560	ac_must_keep_next=false # Got value, back to normal.
2561      else
2562	case $ac_arg in
2563	  *=* | --config-cache | -C | -disable-* | --disable-* \
2564	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2565	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2566	  | -with-* | --with-* | -without-* | --without-* | --x)
2567	    case "$ac_configure_args0 " in
2568	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2569	    esac
2570	    ;;
2571	  -* ) ac_must_keep_next=true ;;
2572	esac
2573      fi
2574      as_fn_append ac_configure_args " '$ac_arg'"
2575      ;;
2576    esac
2577  done
2578done
2579{ ac_configure_args0=; unset ac_configure_args0;}
2580{ ac_configure_args1=; unset ac_configure_args1;}
2581
2582# When interrupted or exit'd, cleanup temporary files, and complete
2583# config.log.  We remove comments because anyway the quotes in there
2584# would cause problems or look ugly.
2585# WARNING: Use '\'' to represent an apostrophe within the trap.
2586# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2587trap 'exit_status=$?
2588  # Save into config.log some information that might help in debugging.
2589  {
2590    echo
2591
2592    $as_echo "## ---------------- ##
2593## Cache variables. ##
2594## ---------------- ##"
2595    echo
2596    # The following way of writing the cache mishandles newlines in values,
2597(
2598  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2599    eval ac_val=\$$ac_var
2600    case $ac_val in #(
2601    *${as_nl}*)
2602      case $ac_var in #(
2603      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2604$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2605      esac
2606      case $ac_var in #(
2607      _ | IFS | as_nl) ;; #(
2608      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2609      *) { eval $ac_var=; unset $ac_var;} ;;
2610      esac ;;
2611    esac
2612  done
2613  (set) 2>&1 |
2614    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2615    *${as_nl}ac_space=\ *)
2616      sed -n \
2617	"s/'\''/'\''\\\\'\'''\''/g;
2618	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2619      ;; #(
2620    *)
2621      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2622      ;;
2623    esac |
2624    sort
2625)
2626    echo
2627
2628    $as_echo "## ----------------- ##
2629## Output variables. ##
2630## ----------------- ##"
2631    echo
2632    for ac_var in $ac_subst_vars
2633    do
2634      eval ac_val=\$$ac_var
2635      case $ac_val in
2636      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2637      esac
2638      $as_echo "$ac_var='\''$ac_val'\''"
2639    done | sort
2640    echo
2641
2642    if test -n "$ac_subst_files"; then
2643      $as_echo "## ------------------- ##
2644## File substitutions. ##
2645## ------------------- ##"
2646      echo
2647      for ac_var in $ac_subst_files
2648      do
2649	eval ac_val=\$$ac_var
2650	case $ac_val in
2651	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2652	esac
2653	$as_echo "$ac_var='\''$ac_val'\''"
2654      done | sort
2655      echo
2656    fi
2657
2658    if test -s confdefs.h; then
2659      $as_echo "## ----------- ##
2660## confdefs.h. ##
2661## ----------- ##"
2662      echo
2663      cat confdefs.h
2664      echo
2665    fi
2666    test "$ac_signal" != 0 &&
2667      $as_echo "$as_me: caught signal $ac_signal"
2668    $as_echo "$as_me: exit $exit_status"
2669  } >&5
2670  rm -f core *.core core.conftest.* &&
2671    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2672    exit $exit_status
2673' 0
2674for ac_signal in 1 2 13 15; do
2675  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2676done
2677ac_signal=0
2678
2679# confdefs.h avoids OS command line length limits that DEFS can exceed.
2680rm -f -r conftest* confdefs.h
2681
2682$as_echo "/* confdefs.h */" > confdefs.h
2683
2684# Predefined preprocessor variables.
2685
2686cat >>confdefs.h <<_ACEOF
2687#define PACKAGE_NAME "$PACKAGE_NAME"
2688_ACEOF
2689
2690cat >>confdefs.h <<_ACEOF
2691#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2692_ACEOF
2693
2694cat >>confdefs.h <<_ACEOF
2695#define PACKAGE_VERSION "$PACKAGE_VERSION"
2696_ACEOF
2697
2698cat >>confdefs.h <<_ACEOF
2699#define PACKAGE_STRING "$PACKAGE_STRING"
2700_ACEOF
2701
2702cat >>confdefs.h <<_ACEOF
2703#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2704_ACEOF
2705
2706cat >>confdefs.h <<_ACEOF
2707#define PACKAGE_URL "$PACKAGE_URL"
2708_ACEOF
2709
2710
2711# Let the site file select an alternate cache file if it wants to.
2712# Prefer an explicitly selected file to automatically selected ones.
2713ac_site_file1=NONE
2714ac_site_file2=NONE
2715if test -n "$CONFIG_SITE"; then
2716  # We do not want a PATH search for config.site.
2717  case $CONFIG_SITE in #((
2718    -*)  ac_site_file1=./$CONFIG_SITE;;
2719    */*) ac_site_file1=$CONFIG_SITE;;
2720    *)   ac_site_file1=./$CONFIG_SITE;;
2721  esac
2722elif test "x$prefix" != xNONE; then
2723  ac_site_file1=$prefix/share/config.site
2724  ac_site_file2=$prefix/etc/config.site
2725else
2726  ac_site_file1=$ac_default_prefix/share/config.site
2727  ac_site_file2=$ac_default_prefix/etc/config.site
2728fi
2729for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2730do
2731  test "x$ac_site_file" = xNONE && continue
2732  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2733    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2734$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2735    sed 's/^/| /' "$ac_site_file" >&5
2736    . "$ac_site_file" \
2737      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2739as_fn_error $? "failed to load site script $ac_site_file
2740See \`config.log' for more details" "$LINENO" 5; }
2741  fi
2742done
2743
2744if test -r "$cache_file"; then
2745  # Some versions of bash will fail to source /dev/null (special files
2746  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2747  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2748    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2749$as_echo "$as_me: loading cache $cache_file" >&6;}
2750    case $cache_file in
2751      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2752      *)                      . "./$cache_file";;
2753    esac
2754  fi
2755else
2756  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2757$as_echo "$as_me: creating cache $cache_file" >&6;}
2758  >$cache_file
2759fi
2760
2761# Check that the precious variables saved in the cache have kept the same
2762# value.
2763ac_cache_corrupted=false
2764for ac_var in $ac_precious_vars; do
2765  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2766  eval ac_new_set=\$ac_env_${ac_var}_set
2767  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2768  eval ac_new_val=\$ac_env_${ac_var}_value
2769  case $ac_old_set,$ac_new_set in
2770    set,)
2771      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2772$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2773      ac_cache_corrupted=: ;;
2774    ,set)
2775      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2776$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2777      ac_cache_corrupted=: ;;
2778    ,);;
2779    *)
2780      if test "x$ac_old_val" != "x$ac_new_val"; then
2781	# differences in whitespace do not lead to failure.
2782	ac_old_val_w=`echo x $ac_old_val`
2783	ac_new_val_w=`echo x $ac_new_val`
2784	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2785	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2786$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2787	  ac_cache_corrupted=:
2788	else
2789	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2790$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2791	  eval $ac_var=\$ac_old_val
2792	fi
2793	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2794$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2795	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2796$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2797      fi;;
2798  esac
2799  # Pass precious variables to config.status.
2800  if test "$ac_new_set" = set; then
2801    case $ac_new_val in
2802    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2803    *) ac_arg=$ac_var=$ac_new_val ;;
2804    esac
2805    case " $ac_configure_args " in
2806      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2807      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2808    esac
2809  fi
2810done
2811if $ac_cache_corrupted; then
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2813$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2814  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2815$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2816  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2817fi
2818## -------------------- ##
2819## Main body of script. ##
2820## -------------------- ##
2821
2822ac_ext=c
2823ac_cpp='$CPP $CPPFLAGS'
2824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827
2828
2829
2830
2831SHARED_VERSION_INFO="9:9:6" # CURRENT:REVISION:AGE
2832
2833am__api_version='1.16'
2834
2835ac_aux_dir=
2836for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2837  if test -f "$ac_dir/install-sh"; then
2838    ac_aux_dir=$ac_dir
2839    ac_install_sh="$ac_aux_dir/install-sh -c"
2840    break
2841  elif test -f "$ac_dir/install.sh"; then
2842    ac_aux_dir=$ac_dir
2843    ac_install_sh="$ac_aux_dir/install.sh -c"
2844    break
2845  elif test -f "$ac_dir/shtool"; then
2846    ac_aux_dir=$ac_dir
2847    ac_install_sh="$ac_aux_dir/shtool install -c"
2848    break
2849  fi
2850done
2851if test -z "$ac_aux_dir"; then
2852  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2853fi
2854
2855# These three variables are undocumented and unsupported,
2856# and are intended to be withdrawn in a future Autoconf release.
2857# They can cause serious problems if a builder's source tree is in a directory
2858# whose full name contains unusual characters.
2859ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2860ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2861ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2862
2863
2864# Find a good install program.  We prefer a C program (faster),
2865# so one script is as good as another.  But avoid the broken or
2866# incompatible versions:
2867# SysV /etc/install, /usr/sbin/install
2868# SunOS /usr/etc/install
2869# IRIX /sbin/install
2870# AIX /bin/install
2871# AmigaOS /C/install, which installs bootblocks on floppy discs
2872# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2873# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2874# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2875# OS/2's system install, which has a completely different semantic
2876# ./install, which can be erroneously created by make from ./install.sh.
2877# Reject install programs that cannot install multiple files.
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2879$as_echo_n "checking for a BSD-compatible install... " >&6; }
2880if test -z "$INSTALL"; then
2881if ${ac_cv_path_install+:} false; then :
2882  $as_echo_n "(cached) " >&6
2883else
2884  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH
2886do
2887  IFS=$as_save_IFS
2888  test -z "$as_dir" && as_dir=.
2889    # Account for people who put trailing slashes in PATH elements.
2890case $as_dir/ in #((
2891  ./ | .// | /[cC]/* | \
2892  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2893  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2894  /usr/ucb/* ) ;;
2895  *)
2896    # OSF1 and SCO ODT 3.0 have their own names for install.
2897    # Don't use installbsd from OSF since it installs stuff as root
2898    # by default.
2899    for ac_prog in ginstall scoinst install; do
2900      for ac_exec_ext in '' $ac_executable_extensions; do
2901	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2902	  if test $ac_prog = install &&
2903	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2904	    # AIX install.  It has an incompatible calling convention.
2905	    :
2906	  elif test $ac_prog = install &&
2907	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2908	    # program-specific install script used by HP pwplus--don't use.
2909	    :
2910	  else
2911	    rm -rf conftest.one conftest.two conftest.dir
2912	    echo one > conftest.one
2913	    echo two > conftest.two
2914	    mkdir conftest.dir
2915	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2916	      test -s conftest.one && test -s conftest.two &&
2917	      test -s conftest.dir/conftest.one &&
2918	      test -s conftest.dir/conftest.two
2919	    then
2920	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2921	      break 3
2922	    fi
2923	  fi
2924	fi
2925      done
2926    done
2927    ;;
2928esac
2929
2930  done
2931IFS=$as_save_IFS
2932
2933rm -rf conftest.one conftest.two conftest.dir
2934
2935fi
2936  if test "${ac_cv_path_install+set}" = set; then
2937    INSTALL=$ac_cv_path_install
2938  else
2939    # As a last resort, use the slow shell script.  Don't cache a
2940    # value for INSTALL within a source directory, because that will
2941    # break other packages using the cache if that directory is
2942    # removed, or if the value is a relative name.
2943    INSTALL=$ac_install_sh
2944  fi
2945fi
2946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2947$as_echo "$INSTALL" >&6; }
2948
2949# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2950# It thinks the first close brace ends the variable substitution.
2951test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2952
2953test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2954
2955test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2956
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2958$as_echo_n "checking whether build environment is sane... " >&6; }
2959# Reject unsafe characters in $srcdir or the absolute working directory
2960# name.  Accept space and tab only in the latter.
2961am_lf='
2962'
2963case `pwd` in
2964  *[\\\"\#\$\&\'\`$am_lf]*)
2965    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2966esac
2967case $srcdir in
2968  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2969    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2970esac
2971
2972# Do 'set' in a subshell so we don't clobber the current shell's
2973# arguments.  Must try -L first in case configure is actually a
2974# symlink; some systems play weird games with the mod time of symlinks
2975# (eg FreeBSD returns the mod time of the symlink's containing
2976# directory).
2977if (
2978   am_has_slept=no
2979   for am_try in 1 2; do
2980     echo "timestamp, slept: $am_has_slept" > conftest.file
2981     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2982     if test "$*" = "X"; then
2983	# -L didn't work.
2984	set X `ls -t "$srcdir/configure" conftest.file`
2985     fi
2986     if test "$*" != "X $srcdir/configure conftest.file" \
2987	&& test "$*" != "X conftest.file $srcdir/configure"; then
2988
2989	# If neither matched, then we have a broken ls.  This can happen
2990	# if, for instance, CONFIG_SHELL is bash and it inherits a
2991	# broken ls alias from the environment.  This has actually
2992	# happened.  Such a system could not be considered "sane".
2993	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2994  alias in your environment" "$LINENO" 5
2995     fi
2996     if test "$2" = conftest.file || test $am_try -eq 2; then
2997       break
2998     fi
2999     # Just in case.
3000     sleep 1
3001     am_has_slept=yes
3002   done
3003   test "$2" = conftest.file
3004   )
3005then
3006   # Ok.
3007   :
3008else
3009   as_fn_error $? "newly created file is older than distributed files!
3010Check your system clock" "$LINENO" 5
3011fi
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013$as_echo "yes" >&6; }
3014# If we didn't sleep, we still need to ensure time stamps of config.status and
3015# generated files are strictly newer.
3016am_sleep_pid=
3017if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3018  ( sleep 1 ) &
3019  am_sleep_pid=$!
3020fi
3021
3022rm -f conftest.file
3023
3024test "$program_prefix" != NONE &&
3025  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3026# Use a double $ so make ignores it.
3027test "$program_suffix" != NONE &&
3028  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3029# Double any \ or $.
3030# By default was `s,x,x', remove it if useless.
3031ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3032program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3033
3034# Expand $ac_aux_dir to an absolute path.
3035am_aux_dir=`cd "$ac_aux_dir" && pwd`
3036
3037if test x"${MISSING+set}" != xset; then
3038  case $am_aux_dir in
3039  *\ * | *\	*)
3040    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3041  *)
3042    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3043  esac
3044fi
3045# Use eval to expand $SHELL
3046if eval "$MISSING --is-lightweight"; then
3047  am_missing_run="$MISSING "
3048else
3049  am_missing_run=
3050  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3051$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3052fi
3053
3054if test x"${install_sh+set}" != xset; then
3055  case $am_aux_dir in
3056  *\ * | *\	*)
3057    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3058  *)
3059    install_sh="\${SHELL} $am_aux_dir/install-sh"
3060  esac
3061fi
3062
3063# Installed binaries are usually stripped using 'strip' when the user
3064# run "make install-strip".  However 'strip' might not be the right
3065# tool to use in cross-compilation environments, therefore Automake
3066# will honor the 'STRIP' environment variable to overrule this program.
3067if test "$cross_compiling" != no; then
3068  if test -n "$ac_tool_prefix"; then
3069  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3070set dummy ${ac_tool_prefix}strip; ac_word=$2
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072$as_echo_n "checking for $ac_word... " >&6; }
3073if ${ac_cv_prog_STRIP+:} false; then :
3074  $as_echo_n "(cached) " >&6
3075else
3076  if test -n "$STRIP"; then
3077  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3078else
3079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080for as_dir in $PATH
3081do
3082  IFS=$as_save_IFS
3083  test -z "$as_dir" && as_dir=.
3084    for ac_exec_ext in '' $ac_executable_extensions; do
3085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3086    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3088    break 2
3089  fi
3090done
3091  done
3092IFS=$as_save_IFS
3093
3094fi
3095fi
3096STRIP=$ac_cv_prog_STRIP
3097if test -n "$STRIP"; then
3098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3099$as_echo "$STRIP" >&6; }
3100else
3101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102$as_echo "no" >&6; }
3103fi
3104
3105
3106fi
3107if test -z "$ac_cv_prog_STRIP"; then
3108  ac_ct_STRIP=$STRIP
3109  # Extract the first word of "strip", so it can be a program name with args.
3110set dummy strip; ac_word=$2
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112$as_echo_n "checking for $ac_word... " >&6; }
3113if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3114  $as_echo_n "(cached) " >&6
3115else
3116  if test -n "$ac_ct_STRIP"; then
3117  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3118else
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122  IFS=$as_save_IFS
3123  test -z "$as_dir" && as_dir=.
3124    for ac_exec_ext in '' $ac_executable_extensions; do
3125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3126    ac_cv_prog_ac_ct_STRIP="strip"
3127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3128    break 2
3129  fi
3130done
3131  done
3132IFS=$as_save_IFS
3133
3134fi
3135fi
3136ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3137if test -n "$ac_ct_STRIP"; then
3138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3139$as_echo "$ac_ct_STRIP" >&6; }
3140else
3141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142$as_echo "no" >&6; }
3143fi
3144
3145  if test "x$ac_ct_STRIP" = x; then
3146    STRIP=":"
3147  else
3148    case $cross_compiling:$ac_tool_warned in
3149yes:)
3150{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152ac_tool_warned=yes ;;
3153esac
3154    STRIP=$ac_ct_STRIP
3155  fi
3156else
3157  STRIP="$ac_cv_prog_STRIP"
3158fi
3159
3160fi
3161INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3162
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3164$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3165if test -z "$MKDIR_P"; then
3166  if ${ac_cv_path_mkdir+:} false; then :
3167  $as_echo_n "(cached) " >&6
3168else
3169  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3171do
3172  IFS=$as_save_IFS
3173  test -z "$as_dir" && as_dir=.
3174    for ac_prog in mkdir gmkdir; do
3175	 for ac_exec_ext in '' $ac_executable_extensions; do
3176	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3177	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3178	     'mkdir (GNU coreutils) '* | \
3179	     'mkdir (coreutils) '* | \
3180	     'mkdir (fileutils) '4.1*)
3181	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3182	       break 3;;
3183	   esac
3184	 done
3185       done
3186  done
3187IFS=$as_save_IFS
3188
3189fi
3190
3191  test -d ./--version && rmdir ./--version
3192  if test "${ac_cv_path_mkdir+set}" = set; then
3193    MKDIR_P="$ac_cv_path_mkdir -p"
3194  else
3195    # As a last resort, use the slow shell script.  Don't cache a
3196    # value for MKDIR_P within a source directory, because that will
3197    # break other packages using the cache if that directory is
3198    # removed, or if the value is a relative name.
3199    MKDIR_P="$ac_install_sh -d"
3200  fi
3201fi
3202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3203$as_echo "$MKDIR_P" >&6; }
3204
3205for ac_prog in gawk mawk nawk awk
3206do
3207  # Extract the first word of "$ac_prog", so it can be a program name with args.
3208set dummy $ac_prog; ac_word=$2
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210$as_echo_n "checking for $ac_word... " >&6; }
3211if ${ac_cv_prog_AWK+:} false; then :
3212  $as_echo_n "(cached) " >&6
3213else
3214  if test -n "$AWK"; then
3215  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3216else
3217as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218for as_dir in $PATH
3219do
3220  IFS=$as_save_IFS
3221  test -z "$as_dir" && as_dir=.
3222    for ac_exec_ext in '' $ac_executable_extensions; do
3223  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3224    ac_cv_prog_AWK="$ac_prog"
3225    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3226    break 2
3227  fi
3228done
3229  done
3230IFS=$as_save_IFS
3231
3232fi
3233fi
3234AWK=$ac_cv_prog_AWK
3235if test -n "$AWK"; then
3236  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3237$as_echo "$AWK" >&6; }
3238else
3239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240$as_echo "no" >&6; }
3241fi
3242
3243
3244  test -n "$AWK" && break
3245done
3246
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3248$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3249set x ${MAKE-make}
3250ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3251if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3252  $as_echo_n "(cached) " >&6
3253else
3254  cat >conftest.make <<\_ACEOF
3255SHELL = /bin/sh
3256all:
3257	@echo '@@@%%%=$(MAKE)=@@@%%%'
3258_ACEOF
3259# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3260case `${MAKE-make} -f conftest.make 2>/dev/null` in
3261  *@@@%%%=?*=@@@%%%*)
3262    eval ac_cv_prog_make_${ac_make}_set=yes;;
3263  *)
3264    eval ac_cv_prog_make_${ac_make}_set=no;;
3265esac
3266rm -f conftest.make
3267fi
3268if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3269  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3270$as_echo "yes" >&6; }
3271  SET_MAKE=
3272else
3273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275  SET_MAKE="MAKE=${MAKE-make}"
3276fi
3277
3278rm -rf .tst 2>/dev/null
3279mkdir .tst 2>/dev/null
3280if test -d .tst; then
3281  am__leading_dot=.
3282else
3283  am__leading_dot=_
3284fi
3285rmdir .tst 2>/dev/null
3286
3287# Check whether --enable-silent-rules was given.
3288if test "${enable_silent_rules+set}" = set; then :
3289  enableval=$enable_silent_rules;
3290fi
3291
3292case $enable_silent_rules in # (((
3293  yes) AM_DEFAULT_VERBOSITY=0;;
3294   no) AM_DEFAULT_VERBOSITY=1;;
3295    *) AM_DEFAULT_VERBOSITY=1;;
3296esac
3297am_make=${MAKE-make}
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3299$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3300if ${am_cv_make_support_nested_variables+:} false; then :
3301  $as_echo_n "(cached) " >&6
3302else
3303  if $as_echo 'TRUE=$(BAR$(V))
3304BAR0=false
3305BAR1=true
3306V=1
3307am__doit:
3308	@$(TRUE)
3309.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3310  am_cv_make_support_nested_variables=yes
3311else
3312  am_cv_make_support_nested_variables=no
3313fi
3314fi
3315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3316$as_echo "$am_cv_make_support_nested_variables" >&6; }
3317if test $am_cv_make_support_nested_variables = yes; then
3318    AM_V='$(V)'
3319  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3320else
3321  AM_V=$AM_DEFAULT_VERBOSITY
3322  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3323fi
3324AM_BACKSLASH='\'
3325
3326if test "`cd $srcdir && pwd`" != "`pwd`"; then
3327  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3328  # is not polluted with repeated "-I."
3329  am__isrc=' -I$(srcdir)'
3330  # test to see if srcdir already configured
3331  if test -f $srcdir/config.status; then
3332    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3333  fi
3334fi
3335
3336# test whether we have cygpath
3337if test -z "$CYGPATH_W"; then
3338  if (cygpath --version) >/dev/null 2>/dev/null; then
3339    CYGPATH_W='cygpath -w'
3340  else
3341    CYGPATH_W=echo
3342  fi
3343fi
3344
3345
3346# Define the identity of the package.
3347 PACKAGE='fftw'
3348 VERSION='3.3.9'
3349
3350
3351cat >>confdefs.h <<_ACEOF
3352#define PACKAGE "$PACKAGE"
3353_ACEOF
3354
3355
3356cat >>confdefs.h <<_ACEOF
3357#define VERSION "$VERSION"
3358_ACEOF
3359
3360# Some tools Automake needs.
3361
3362ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3363
3364
3365AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3366
3367
3368AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3369
3370
3371AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3372
3373
3374MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3375
3376# For better backward compatibility.  To be removed once Automake 1.9.x
3377# dies out for good.  For more background, see:
3378# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3379# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3380mkdir_p='$(MKDIR_P)'
3381
3382# We need awk for the "check" target (and possibly the TAP driver).  The
3383# system "awk" is bad on some platforms.
3384# Always define AMTAR for backward compatibility.  Yes, it's still used
3385# in the wild :-(  We should find a proper way to deprecate it ...
3386AMTAR='$${TAR-tar}'
3387
3388
3389# We'll loop over all known methods to create a tar archive until one works.
3390_am_tools='gnutar  pax cpio none'
3391
3392am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3393
3394
3395
3396
3397
3398
3399# POSIX will say in a future version that running "rm -f" with no argument
3400# is OK; and we want to be able to make that assumption in our Makefile
3401# recipes.  So use an aggressive probe to check that the usage we want is
3402# actually supported "in the wild" to an acceptable degree.
3403# See automake bug#10828.
3404# To make any issue more visible, cause the running configure to be aborted
3405# by default if the 'rm' program in use doesn't match our expectations; the
3406# user can still override this though.
3407if rm -f && rm -fr && rm -rf; then : OK; else
3408  cat >&2 <<'END'
3409Oops!
3410
3411Your 'rm' program seems unable to run without file operands specified
3412on the command line, even when the '-f' option is present.  This is contrary
3413to the behaviour of most rm programs out there, and not conforming with
3414the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3415
3416Please tell bug-automake@gnu.org about your system, including the value
3417of your $PATH and any error possibly output before this message.  This
3418can help us improve future automake versions.
3419
3420END
3421  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3422    echo 'Configuration will proceed anyway, since you have set the' >&2
3423    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3424    echo >&2
3425  else
3426    cat >&2 <<'END'
3427Aborting the configuration process, to ensure you take notice of the issue.
3428
3429You can download and install GNU coreutils to get an 'rm' implementation
3430that behaves properly: <https://www.gnu.org/software/coreutils/>.
3431
3432If you want to complete the configuration process using your problematic
3433'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3434to "yes", and re-run configure.
3435
3436END
3437    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3438  fi
3439fi
3440
3441ac_config_headers="$ac_config_headers config.h"
3442
3443
3444
3445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3446$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3447    # Check whether --enable-maintainer-mode was given.
3448if test "${enable_maintainer_mode+set}" = set; then :
3449  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3450else
3451  USE_MAINTAINER_MODE=no
3452fi
3453
3454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3455$as_echo "$USE_MAINTAINER_MODE" >&6; }
3456   if test $USE_MAINTAINER_MODE = yes; then
3457  MAINTAINER_MODE_TRUE=
3458  MAINTAINER_MODE_FALSE='#'
3459else
3460  MAINTAINER_MODE_TRUE='#'
3461  MAINTAINER_MODE_FALSE=
3462fi
3463
3464  MAINT=$MAINTAINER_MODE_TRUE
3465
3466
3467
3468# Check whether --enable-shared was given.
3469if test "${enable_shared+set}" = set; then :
3470  enableval=$enable_shared; p=${PACKAGE-default}
3471    case $enableval in
3472    yes) enable_shared=yes ;;
3473    no) enable_shared=no ;;
3474    *)
3475      enable_shared=no
3476      # Look at the argument we got.  We use all the common list separators.
3477      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
3478      for pkg in $enableval; do
3479	IFS=$lt_save_ifs
3480	if test "X$pkg" = "X$p"; then
3481	  enable_shared=yes
3482	fi
3483      done
3484      IFS=$lt_save_ifs
3485      ;;
3486    esac
3487else
3488  enable_shared=no
3489fi
3490
3491
3492
3493
3494
3495
3496
3497
3498 # Make sure we can run config.sub.
3499$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3500  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3501
3502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3503$as_echo_n "checking build system type... " >&6; }
3504if ${ac_cv_build+:} false; then :
3505  $as_echo_n "(cached) " >&6
3506else
3507  ac_build_alias=$build_alias
3508test "x$ac_build_alias" = x &&
3509  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3510test "x$ac_build_alias" = x &&
3511  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3512ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3513  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3514
3515fi
3516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3517$as_echo "$ac_cv_build" >&6; }
3518case $ac_cv_build in
3519*-*-*) ;;
3520*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3521esac
3522build=$ac_cv_build
3523ac_save_IFS=$IFS; IFS='-'
3524set x $ac_cv_build
3525shift
3526build_cpu=$1
3527build_vendor=$2
3528shift; shift
3529# Remember, the first character of IFS is used to create $*,
3530# except with old shells:
3531build_os=$*
3532IFS=$ac_save_IFS
3533case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3534
3535
3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3537$as_echo_n "checking host system type... " >&6; }
3538if ${ac_cv_host+:} false; then :
3539  $as_echo_n "(cached) " >&6
3540else
3541  if test "x$host_alias" = x; then
3542  ac_cv_host=$ac_cv_build
3543else
3544  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3545    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3546fi
3547
3548fi
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3550$as_echo "$ac_cv_host" >&6; }
3551case $ac_cv_host in
3552*-*-*) ;;
3553*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3554esac
3555host=$ac_cv_host
3556ac_save_IFS=$IFS; IFS='-'
3557set x $ac_cv_host
3558shift
3559host_cpu=$1
3560host_vendor=$2
3561shift; shift
3562# Remember, the first character of IFS is used to create $*,
3563# except with old shells:
3564host_os=$*
3565IFS=$ac_save_IFS
3566case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3567
3568
3569
3570case "${host_cpu}" in
3571  powerpc*) arch_prefers_fma=yes;;
3572  ia64*) arch_prefers_fma=yes;;
3573  hppa*) arch_prefers_fma=yes;;
3574  mips64*) arch_prefers_fma=yes;;
3575  *) arch_prefers_fma=no;;
3576esac
3577
3578# Check whether --enable-debug was given.
3579if test "${enable_debug+set}" = set; then :
3580  enableval=$enable_debug; ok=$enableval
3581else
3582  ok=no
3583fi
3584
3585if test "$ok" = "yes"; then
3586
3587$as_echo "#define FFTW_DEBUG 1" >>confdefs.h
3588
3589fi
3590
3591# Check whether --enable-doc was given.
3592if test "${enable_doc+set}" = set; then :
3593  enableval=$enable_doc; build_doc=$enableval
3594else
3595  build_doc=yes
3596fi
3597
3598 if test x"$build_doc" = xyes; then
3599  BUILD_DOC_TRUE=
3600  BUILD_DOC_FALSE='#'
3601else
3602  BUILD_DOC_TRUE='#'
3603  BUILD_DOC_FALSE=
3604fi
3605
3606
3607# Check whether --enable-random-estimator was given.
3608if test "${enable_random_estimator+set}" = set; then :
3609  enableval=$enable_random_estimator; ok=$enableval
3610else
3611  ok=no
3612fi
3613
3614if test "$ok" = "yes"; then
3615
3616$as_echo "#define FFTW_RANDOM_ESTIMATOR 1" >>confdefs.h
3617
3618    CHECK_PL_OPTS="--estimate"
3619fi
3620
3621# Check whether --enable-alloca was given.
3622if test "${enable_alloca+set}" = set; then :
3623  enableval=$enable_alloca; ok=$enableval
3624else
3625  ok=yes
3626fi
3627
3628if test "$ok" = "yes"; then
3629
3630$as_echo "#define FFTW_ENABLE_ALLOCA 1" >>confdefs.h
3631
3632fi
3633
3634# Check whether --enable-single was given.
3635if test "${enable_single+set}" = set; then :
3636  enableval=$enable_single; ok=$enableval
3637else
3638  ok=no
3639fi
3640
3641# Check whether --enable-float was given.
3642if test "${enable_float+set}" = set; then :
3643  enableval=$enable_float; ok=$enableval
3644fi
3645
3646if test "$ok" = "yes"; then
3647
3648$as_echo "#define FFTW_SINGLE 1" >>confdefs.h
3649
3650
3651$as_echo "#define BENCHFFT_SINGLE 1" >>confdefs.h
3652
3653    PRECISION=s
3654else
3655    PRECISION=d
3656fi
3657 if test "$ok" = "yes"; then
3658  SINGLE_TRUE=
3659  SINGLE_FALSE='#'
3660else
3661  SINGLE_TRUE='#'
3662  SINGLE_FALSE=
3663fi
3664
3665
3666# Check whether --enable-long-double was given.
3667if test "${enable_long_double+set}" = set; then :
3668  enableval=$enable_long_double; ok=$enableval
3669else
3670  ok=no
3671fi
3672
3673if test "$ok" = "yes"; then
3674    if test "$PRECISION" = "s"; then
3675        as_fn_error $? "--enable-single/--enable-long-double conflict" "$LINENO" 5
3676    fi
3677
3678$as_echo "#define FFTW_LDOUBLE 1" >>confdefs.h
3679
3680
3681$as_echo "#define BENCHFFT_LDOUBLE 1" >>confdefs.h
3682
3683    PRECISION=l
3684fi
3685 if test "$ok" = "yes"; then
3686  LDOUBLE_TRUE=
3687  LDOUBLE_FALSE='#'
3688else
3689  LDOUBLE_TRUE='#'
3690  LDOUBLE_FALSE=
3691fi
3692
3693
3694# Check whether --enable-quad-precision was given.
3695if test "${enable_quad_precision+set}" = set; then :
3696  enableval=$enable_quad_precision; ok=$enableval
3697else
3698  ok=no
3699fi
3700
3701if test "$ok" = "yes"; then
3702    if test "$PRECISION" != "d"; then
3703        as_fn_error $? "conflicting precisions specified" "$LINENO" 5
3704    fi
3705
3706$as_echo "#define FFTW_QUAD 1" >>confdefs.h
3707
3708
3709$as_echo "#define BENCHFFT_QUAD 1" >>confdefs.h
3710
3711    PRECISION=q
3712fi
3713 if test "$ok" = "yes"; then
3714  QUAD_TRUE=
3715  QUAD_FALSE='#'
3716else
3717  QUAD_TRUE='#'
3718  QUAD_FALSE=
3719fi
3720
3721
3722
3723
3724
3725# Check whether --enable-sse was given.
3726if test "${enable_sse+set}" = set; then :
3727  enableval=$enable_sse; have_sse=$enableval
3728else
3729  have_sse=no
3730fi
3731
3732if test "$have_sse" = "yes"; then
3733    if test "$PRECISION" != "s"; then
3734            as_fn_error $? "SSE requires single precision" "$LINENO" 5
3735    fi
3736fi
3737
3738# Check whether --enable-sse2 was given.
3739if test "${enable_sse2+set}" = set; then :
3740  enableval=$enable_sse2; have_sse2=$enableval
3741else
3742  have_sse2=no
3743fi
3744
3745if test "$have_sse" = "yes"; then have_sse2=yes; fi
3746if test "$have_sse2" = "yes"; then
3747
3748$as_echo "#define HAVE_SSE2 1" >>confdefs.h
3749
3750    if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
3751            as_fn_error $? "SSE2 requires single or double precision" "$LINENO" 5
3752    fi
3753fi
3754 if test "$have_sse2" = "yes"; then
3755  HAVE_SSE2_TRUE=
3756  HAVE_SSE2_FALSE='#'
3757else
3758  HAVE_SSE2_TRUE='#'
3759  HAVE_SSE2_FALSE=
3760fi
3761
3762
3763# Check whether --enable-avx was given.
3764if test "${enable_avx+set}" = set; then :
3765  enableval=$enable_avx; have_avx=$enableval
3766else
3767  have_avx=no
3768fi
3769
3770if test "$have_avx" = "yes"; then
3771
3772$as_echo "#define HAVE_AVX 1" >>confdefs.h
3773
3774    if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
3775        as_fn_error $? "AVX requires single or double precision" "$LINENO" 5
3776    fi
3777fi
3778 if test "$have_avx" = "yes"; then
3779  HAVE_AVX_TRUE=
3780  HAVE_AVX_FALSE='#'
3781else
3782  HAVE_AVX_TRUE='#'
3783  HAVE_AVX_FALSE=
3784fi
3785
3786
3787# Check whether --enable-avx2 was given.
3788if test "${enable_avx2+set}" = set; then :
3789  enableval=$enable_avx2; have_avx2=$enableval
3790else
3791  have_avx2=no
3792fi
3793
3794if test "$have_avx2" = "yes"; then
3795
3796$as_echo "#define HAVE_AVX2 1" >>confdefs.h
3797
3798    if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
3799        as_fn_error $? "AVX2 requires single or double precision" "$LINENO" 5
3800    fi
3801fi
3802 if test "$have_avx2" = "yes"; then
3803  HAVE_AVX2_TRUE=
3804  HAVE_AVX2_FALSE='#'
3805else
3806  HAVE_AVX2_TRUE='#'
3807  HAVE_AVX2_FALSE=
3808fi
3809
3810
3811# Check whether --enable-avx512 was given.
3812if test "${enable_avx512+set}" = set; then :
3813  enableval=$enable_avx512; have_avx512=$enableval
3814else
3815  have_avx512=no
3816fi
3817
3818if test "$have_avx512" = "yes"; then
3819
3820$as_echo "#define HAVE_AVX512 1" >>confdefs.h
3821
3822    if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
3823        as_fn_error $? "AVX512 requires single or double precision" "$LINENO" 5
3824    fi
3825fi
3826 if test "$have_avx512" = "yes"; then
3827  HAVE_AVX512_TRUE=
3828  HAVE_AVX512_FALSE='#'
3829else
3830  HAVE_AVX512_TRUE='#'
3831  HAVE_AVX512_FALSE=
3832fi
3833
3834
3835# Check whether --enable-avx-128-fma was given.
3836if test "${enable_avx_128_fma+set}" = set; then :
3837  enableval=$enable_avx_128_fma; have_avx_128_fma=$enableval
3838else
3839  have_avx_128_fma=no
3840fi
3841
3842if test "$have_avx_128_fma" = "yes"; then
3843
3844$as_echo "#define HAVE_AVX_128_FMA 1" >>confdefs.h
3845
3846    AVX_128_FMA_CFLAGS="${AVX_CFLAGS} -mfma4"
3847
3848fi
3849 if test "$have_avx_128_fma" = "yes"; then
3850  HAVE_AVX_128_FMA_TRUE=
3851  HAVE_AVX_128_FMA_FALSE='#'
3852else
3853  HAVE_AVX_128_FMA_TRUE='#'
3854  HAVE_AVX_128_FMA_FALSE=
3855fi
3856
3857
3858# Check whether --enable-kcvi was given.
3859if test "${enable_kcvi+set}" = set; then :
3860  enableval=$enable_kcvi; have_kcvi=$enableval
3861else
3862  have_kcvi=no
3863fi
3864
3865if test "$have_kcvi" = "yes"; then
3866
3867$as_echo "#define HAVE_KCVI 1" >>confdefs.h
3868
3869    if test "$PRECISION" != "d" -a "$PRECISION" != "s"; then
3870        as_fn_error $? "Knights Corner vector instructions requires single or double precision" "$LINENO" 5
3871    fi
3872fi
3873 if test "$have_kcvi" = "yes"; then
3874  HAVE_KCVI_TRUE=
3875  HAVE_KCVI_FALSE='#'
3876else
3877  HAVE_KCVI_TRUE='#'
3878  HAVE_KCVI_FALSE=
3879fi
3880
3881
3882# Check whether --enable-altivec was given.
3883if test "${enable_altivec+set}" = set; then :
3884  enableval=$enable_altivec; have_altivec=$enableval
3885else
3886  have_altivec=no
3887fi
3888
3889if test "$have_altivec" = "yes"; then
3890
3891$as_echo "#define HAVE_ALTIVEC 1" >>confdefs.h
3892
3893    if test "$PRECISION" != "s"; then
3894        as_fn_error $? "Altivec requires single precision" "$LINENO" 5
3895    fi
3896fi
3897 if test "$have_altivec" = "yes"; then
3898  HAVE_ALTIVEC_TRUE=
3899  HAVE_ALTIVEC_FALSE='#'
3900else
3901  HAVE_ALTIVEC_TRUE='#'
3902  HAVE_ALTIVEC_FALSE=
3903fi
3904
3905
3906# Check whether --enable-vsx was given.
3907if test "${enable_vsx+set}" = set; then :
3908  enableval=$enable_vsx; have_vsx=$enableval
3909else
3910  have_vsx=no
3911fi
3912
3913if test "$have_vsx" = "yes"; then
3914
3915$as_echo "#define HAVE_VSX 1" >>confdefs.h
3916
3917fi
3918 if test "$have_vsx" = "yes"; then
3919  HAVE_VSX_TRUE=
3920  HAVE_VSX_FALSE='#'
3921else
3922  HAVE_VSX_TRUE='#'
3923  HAVE_VSX_FALSE=
3924fi
3925
3926
3927# Check whether --enable-neon was given.
3928if test "${enable_neon+set}" = set; then :
3929  enableval=$enable_neon; have_neon=$enableval
3930else
3931  have_neon=no
3932fi
3933
3934if test "$have_neon" = "yes"; then
3935
3936$as_echo "#define HAVE_NEON 1" >>confdefs.h
3937
3938        case "${host_cpu}" in
3939                aarch64)
3940                ;;
3941                *)
3942        if test "$PRECISION" != "s"; then
3943            as_fn_error $? "NEON requires single precision" "$LINENO" 5
3944        fi
3945                ;;
3946        esac
3947fi
3948 if test "$have_neon" = "yes"; then
3949  HAVE_NEON_TRUE=
3950  HAVE_NEON_FALSE='#'
3951else
3952  HAVE_NEON_TRUE='#'
3953  HAVE_NEON_FALSE=
3954fi
3955
3956
3957# Check whether --enable-armv8-pmccntr-el0 was given.
3958if test "${enable_armv8_pmccntr_el0+set}" = set; then :
3959  enableval=$enable_armv8_pmccntr_el0; have_armv8pmccntrel0=$enableval
3960fi
3961
3962if test "$have_armv8pmccntrel0"x = "yes"x; then
3963
3964$as_echo "#define HAVE_ARMV8_PMCCNTR_EL0 1" >>confdefs.h
3965
3966fi
3967
3968# Check whether --enable-armv8-cntvct-el0 was given.
3969if test "${enable_armv8_cntvct_el0+set}" = set; then :
3970  enableval=$enable_armv8_cntvct_el0; have_armv8cntvctel0=$enableval
3971fi
3972
3973if test "$have_armv8cntvctel0"x = "yes"x; then
3974
3975$as_echo "#define HAVE_ARMV8_CNTVCT_EL0 1" >>confdefs.h
3976
3977fi
3978
3979# Check whether --enable-armv7a-cntvct was given.
3980if test "${enable_armv7a_cntvct+set}" = set; then :
3981  enableval=$enable_armv7a_cntvct; have_armv7acntvct=$enableval
3982fi
3983
3984if test "$have_armv7acntvct"x = "yes"x; then
3985
3986$as_echo "#define HAVE_ARMV7A_CNTVCT 1" >>confdefs.h
3987
3988fi
3989
3990# Check whether --enable-armv7a-pmccntr was given.
3991if test "${enable_armv7a_pmccntr+set}" = set; then :
3992  enableval=$enable_armv7a_pmccntr; have_armv7apmccntr=$enableval
3993fi
3994
3995if test "$have_armv7apmccntr"x = "yes"x; then
3996
3997$as_echo "#define HAVE_ARMV7A_PMCCNTR 1" >>confdefs.h
3998
3999fi
4000
4001# Check whether --enable-generic-simd128 was given.
4002if test "${enable_generic_simd128+set}" = set; then :
4003  enableval=$enable_generic_simd128; have_generic_simd128=$enableval
4004else
4005  have_generic_simd128=no
4006fi
4007
4008if test "$have_generic_simd128" = "yes"; then
4009
4010$as_echo "#define HAVE_GENERIC_SIMD128 1" >>confdefs.h
4011
4012fi
4013 if test "$have_generic_simd128" = "yes"; then
4014  HAVE_GENERIC_SIMD128_TRUE=
4015  HAVE_GENERIC_SIMD128_FALSE='#'
4016else
4017  HAVE_GENERIC_SIMD128_TRUE='#'
4018  HAVE_GENERIC_SIMD128_FALSE=
4019fi
4020
4021
4022# Check whether --enable-generic-simd256 was given.
4023if test "${enable_generic_simd256+set}" = set; then :
4024  enableval=$enable_generic_simd256; have_generic_simd256=$enableval
4025else
4026  have_generic_simd256=no
4027fi
4028
4029if test "$have_generic_simd256" = "yes"; then
4030
4031$as_echo "#define HAVE_GENERIC_SIMD256 1" >>confdefs.h
4032
4033fi
4034 if test "$have_generic_simd256" = "yes"; then
4035  HAVE_GENERIC_SIMD256_TRUE=
4036  HAVE_GENERIC_SIMD256_FALSE='#'
4037else
4038  HAVE_GENERIC_SIMD256_TRUE='#'
4039  HAVE_GENERIC_SIMD256_FALSE=
4040fi
4041
4042
4043
4044
4045
4046# Check whether --with-slow-timer was given.
4047if test "${with_slow_timer+set}" = set; then :
4048  withval=$with_slow_timer; with_slow_timer=$withval
4049else
4050  with_slow_timer=no
4051fi
4052
4053if test "$with_slow_timer" = "yes"; then
4054
4055$as_echo "#define WITH_SLOW_TIMER 1" >>confdefs.h
4056
4057fi
4058
4059# Check whether --enable-mips_zbus_timer was given.
4060if test "${enable_mips_zbus_timer+set}" = set; then :
4061  enableval=$enable_mips_zbus_timer; have_mips_zbus_timer=$enableval
4062else
4063  have_mips_zbus_timer=no
4064fi
4065
4066if test "$have_mips_zbus_timer" = "yes"; then
4067
4068$as_echo "#define HAVE_MIPS_ZBUS_TIMER 1" >>confdefs.h
4069
4070fi
4071
4072
4073# Check whether --with-our-malloc was given.
4074if test "${with_our_malloc+set}" = set; then :
4075  withval=$with_our_malloc; with_our_malloc=$withval
4076else
4077  with_our_malloc=no
4078fi
4079
4080
4081# Check whether --with-our-malloc16 was given.
4082if test "${with_our_malloc16+set}" = set; then :
4083  withval=$with_our_malloc16; with_our_malloc=$withval
4084fi
4085
4086if test "$with_our_malloc" = "yes"; then
4087
4088$as_echo "#define WITH_OUR_MALLOC 1" >>confdefs.h
4089
4090fi
4091
4092
4093# Check whether --with-windows-f77-mangling was given.
4094if test "${with_windows_f77_mangling+set}" = set; then :
4095  withval=$with_windows_f77_mangling; with_windows_f77_mangling=$withval
4096else
4097  with_windows_f77_mangling=no
4098fi
4099
4100if test "$with_windows_f77_mangling" = "yes"; then
4101
4102$as_echo "#define WINDOWS_F77_MANGLING 1" >>confdefs.h
4103
4104fi
4105
4106
4107# Check whether --with-incoming-stack-boundary was given.
4108if test "${with_incoming_stack_boundary+set}" = set; then :
4109  withval=$with_incoming_stack_boundary; with_incoming_stack_boundary=$withval
4110else
4111  with_incoming_stack_boundary=no
4112fi
4113
4114
4115
4116# Check whether --enable-fma was given.
4117if test "${enable_fma+set}" = set; then :
4118  enableval=$enable_fma; arch_prefers_fma=$enableval
4119fi
4120
4121if test "$arch_prefers_fma"x = "yes"x; then
4122
4123$as_echo "#define ARCH_PREFERS_FMA 1" >>confdefs.h
4124
4125fi
4126
4127case "$PRECISION" in
4128     s) PREC_SUFFIX=f;;
4129     d) PREC_SUFFIX=;;
4130     l) PREC_SUFFIX=l;;
4131     q) PREC_SUFFIX=q;;
4132esac
4133
4134
4135ac_ext=c
4136ac_cpp='$CPP $CPPFLAGS'
4137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139ac_compiler_gnu=$ac_cv_c_compiler_gnu
4140if test -n "$ac_tool_prefix"; then
4141  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4142set dummy ${ac_tool_prefix}gcc; ac_word=$2
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144$as_echo_n "checking for $ac_word... " >&6; }
4145if ${ac_cv_prog_CC+:} false; then :
4146  $as_echo_n "(cached) " >&6
4147else
4148  if test -n "$CC"; then
4149  ac_cv_prog_CC="$CC" # Let the user override the test.
4150else
4151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152for as_dir in $PATH
4153do
4154  IFS=$as_save_IFS
4155  test -z "$as_dir" && as_dir=.
4156    for ac_exec_ext in '' $ac_executable_extensions; do
4157  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4158    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4159    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160    break 2
4161  fi
4162done
4163  done
4164IFS=$as_save_IFS
4165
4166fi
4167fi
4168CC=$ac_cv_prog_CC
4169if test -n "$CC"; then
4170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171$as_echo "$CC" >&6; }
4172else
4173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174$as_echo "no" >&6; }
4175fi
4176
4177
4178fi
4179if test -z "$ac_cv_prog_CC"; then
4180  ac_ct_CC=$CC
4181  # Extract the first word of "gcc", so it can be a program name with args.
4182set dummy gcc; ac_word=$2
4183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184$as_echo_n "checking for $ac_word... " >&6; }
4185if ${ac_cv_prog_ac_ct_CC+:} false; then :
4186  $as_echo_n "(cached) " >&6
4187else
4188  if test -n "$ac_ct_CC"; then
4189  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4190else
4191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192for as_dir in $PATH
4193do
4194  IFS=$as_save_IFS
4195  test -z "$as_dir" && as_dir=.
4196    for ac_exec_ext in '' $ac_executable_extensions; do
4197  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4198    ac_cv_prog_ac_ct_CC="gcc"
4199    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200    break 2
4201  fi
4202done
4203  done
4204IFS=$as_save_IFS
4205
4206fi
4207fi
4208ac_ct_CC=$ac_cv_prog_ac_ct_CC
4209if test -n "$ac_ct_CC"; then
4210  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4211$as_echo "$ac_ct_CC" >&6; }
4212else
4213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214$as_echo "no" >&6; }
4215fi
4216
4217  if test "x$ac_ct_CC" = x; then
4218    CC=""
4219  else
4220    case $cross_compiling:$ac_tool_warned in
4221yes:)
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224ac_tool_warned=yes ;;
4225esac
4226    CC=$ac_ct_CC
4227  fi
4228else
4229  CC="$ac_cv_prog_CC"
4230fi
4231
4232if test -z "$CC"; then
4233          if test -n "$ac_tool_prefix"; then
4234    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4235set dummy ${ac_tool_prefix}cc; ac_word=$2
4236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237$as_echo_n "checking for $ac_word... " >&6; }
4238if ${ac_cv_prog_CC+:} false; then :
4239  $as_echo_n "(cached) " >&6
4240else
4241  if test -n "$CC"; then
4242  ac_cv_prog_CC="$CC" # Let the user override the test.
4243else
4244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245for as_dir in $PATH
4246do
4247  IFS=$as_save_IFS
4248  test -z "$as_dir" && as_dir=.
4249    for ac_exec_ext in '' $ac_executable_extensions; do
4250  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4251    ac_cv_prog_CC="${ac_tool_prefix}cc"
4252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4253    break 2
4254  fi
4255done
4256  done
4257IFS=$as_save_IFS
4258
4259fi
4260fi
4261CC=$ac_cv_prog_CC
4262if test -n "$CC"; then
4263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264$as_echo "$CC" >&6; }
4265else
4266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267$as_echo "no" >&6; }
4268fi
4269
4270
4271  fi
4272fi
4273if test -z "$CC"; then
4274  # Extract the first word of "cc", so it can be a program name with args.
4275set dummy cc; ac_word=$2
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277$as_echo_n "checking for $ac_word... " >&6; }
4278if ${ac_cv_prog_CC+:} false; then :
4279  $as_echo_n "(cached) " >&6
4280else
4281  if test -n "$CC"; then
4282  ac_cv_prog_CC="$CC" # Let the user override the test.
4283else
4284  ac_prog_rejected=no
4285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286for as_dir in $PATH
4287do
4288  IFS=$as_save_IFS
4289  test -z "$as_dir" && as_dir=.
4290    for ac_exec_ext in '' $ac_executable_extensions; do
4291  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4292    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4293       ac_prog_rejected=yes
4294       continue
4295     fi
4296    ac_cv_prog_CC="cc"
4297    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298    break 2
4299  fi
4300done
4301  done
4302IFS=$as_save_IFS
4303
4304if test $ac_prog_rejected = yes; then
4305  # We found a bogon in the path, so make sure we never use it.
4306  set dummy $ac_cv_prog_CC
4307  shift
4308  if test $# != 0; then
4309    # We chose a different compiler from the bogus one.
4310    # However, it has the same basename, so the bogon will be chosen
4311    # first if we set CC to just the basename; use the full file name.
4312    shift
4313    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4314  fi
4315fi
4316fi
4317fi
4318CC=$ac_cv_prog_CC
4319if test -n "$CC"; then
4320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321$as_echo "$CC" >&6; }
4322else
4323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324$as_echo "no" >&6; }
4325fi
4326
4327
4328fi
4329if test -z "$CC"; then
4330  if test -n "$ac_tool_prefix"; then
4331  for ac_prog in cl.exe
4332  do
4333    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336$as_echo_n "checking for $ac_word... " >&6; }
4337if ${ac_cv_prog_CC+:} false; then :
4338  $as_echo_n "(cached) " >&6
4339else
4340  if test -n "$CC"; then
4341  ac_cv_prog_CC="$CC" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346  IFS=$as_save_IFS
4347  test -z "$as_dir" && as_dir=.
4348    for ac_exec_ext in '' $ac_executable_extensions; do
4349  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4350    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4351    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4352    break 2
4353  fi
4354done
4355  done
4356IFS=$as_save_IFS
4357
4358fi
4359fi
4360CC=$ac_cv_prog_CC
4361if test -n "$CC"; then
4362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363$as_echo "$CC" >&6; }
4364else
4365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366$as_echo "no" >&6; }
4367fi
4368
4369
4370    test -n "$CC" && break
4371  done
4372fi
4373if test -z "$CC"; then
4374  ac_ct_CC=$CC
4375  for ac_prog in cl.exe
4376do
4377  # Extract the first word of "$ac_prog", so it can be a program name with args.
4378set dummy $ac_prog; ac_word=$2
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380$as_echo_n "checking for $ac_word... " >&6; }
4381if ${ac_cv_prog_ac_ct_CC+:} false; then :
4382  $as_echo_n "(cached) " >&6
4383else
4384  if test -n "$ac_ct_CC"; then
4385  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4386else
4387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388for as_dir in $PATH
4389do
4390  IFS=$as_save_IFS
4391  test -z "$as_dir" && as_dir=.
4392    for ac_exec_ext in '' $ac_executable_extensions; do
4393  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4394    ac_cv_prog_ac_ct_CC="$ac_prog"
4395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4396    break 2
4397  fi
4398done
4399  done
4400IFS=$as_save_IFS
4401
4402fi
4403fi
4404ac_ct_CC=$ac_cv_prog_ac_ct_CC
4405if test -n "$ac_ct_CC"; then
4406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407$as_echo "$ac_ct_CC" >&6; }
4408else
4409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410$as_echo "no" >&6; }
4411fi
4412
4413
4414  test -n "$ac_ct_CC" && break
4415done
4416
4417  if test "x$ac_ct_CC" = x; then
4418    CC=""
4419  else
4420    case $cross_compiling:$ac_tool_warned in
4421yes:)
4422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424ac_tool_warned=yes ;;
4425esac
4426    CC=$ac_ct_CC
4427  fi
4428fi
4429
4430fi
4431
4432
4433test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435as_fn_error $? "no acceptable C compiler found in \$PATH
4436See \`config.log' for more details" "$LINENO" 5; }
4437
4438# Provide some information about the compiler.
4439$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4440set X $ac_compile
4441ac_compiler=$2
4442for ac_option in --version -v -V -qversion; do
4443  { { ac_try="$ac_compiler $ac_option >&5"
4444case "(($ac_try" in
4445  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446  *) ac_try_echo=$ac_try;;
4447esac
4448eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449$as_echo "$ac_try_echo"; } >&5
4450  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4451  ac_status=$?
4452  if test -s conftest.err; then
4453    sed '10a\
4454... rest of stderr output deleted ...
4455         10q' conftest.err >conftest.er1
4456    cat conftest.er1 >&5
4457  fi
4458  rm -f conftest.er1 conftest.err
4459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460  test $ac_status = 0; }
4461done
4462
4463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464/* end confdefs.h.  */
4465
4466int
4467main ()
4468{
4469
4470  ;
4471  return 0;
4472}
4473_ACEOF
4474ac_clean_files_save=$ac_clean_files
4475ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4476# Try to create an executable without -o first, disregard a.out.
4477# It will help us diagnose broken compilers, and finding out an intuition
4478# of exeext.
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4480$as_echo_n "checking whether the C compiler works... " >&6; }
4481ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4482
4483# The possible output files:
4484ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4485
4486ac_rmfiles=
4487for ac_file in $ac_files
4488do
4489  case $ac_file in
4490    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4491    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4492  esac
4493done
4494rm -f $ac_rmfiles
4495
4496if { { ac_try="$ac_link_default"
4497case "(($ac_try" in
4498  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499  *) ac_try_echo=$ac_try;;
4500esac
4501eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502$as_echo "$ac_try_echo"; } >&5
4503  (eval "$ac_link_default") 2>&5
4504  ac_status=$?
4505  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506  test $ac_status = 0; }; then :
4507  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4508# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4509# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4510# so that the user can short-circuit this test for compilers unknown to
4511# Autoconf.
4512for ac_file in $ac_files ''
4513do
4514  test -f "$ac_file" || continue
4515  case $ac_file in
4516    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4517	;;
4518    [ab].out )
4519	# We found the default executable, but exeext='' is most
4520	# certainly right.
4521	break;;
4522    *.* )
4523	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4524	then :; else
4525	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526	fi
4527	# We set ac_cv_exeext here because the later test for it is not
4528	# safe: cross compilers may not add the suffix if given an `-o'
4529	# argument, so we may need to know it at that point already.
4530	# Even if this section looks crufty: it has the advantage of
4531	# actually working.
4532	break;;
4533    * )
4534	break;;
4535  esac
4536done
4537test "$ac_cv_exeext" = no && ac_cv_exeext=
4538
4539else
4540  ac_file=''
4541fi
4542if test -z "$ac_file"; then :
4543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; }
4545$as_echo "$as_me: failed program was:" >&5
4546sed 's/^/| /' conftest.$ac_ext >&5
4547
4548{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550as_fn_error 77 "C compiler cannot create executables
4551See \`config.log' for more details" "$LINENO" 5; }
4552else
4553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554$as_echo "yes" >&6; }
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4557$as_echo_n "checking for C compiler default output file name... " >&6; }
4558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4559$as_echo "$ac_file" >&6; }
4560ac_exeext=$ac_cv_exeext
4561
4562rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4563ac_clean_files=$ac_clean_files_save
4564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4565$as_echo_n "checking for suffix of executables... " >&6; }
4566if { { ac_try="$ac_link"
4567case "(($ac_try" in
4568  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569  *) ac_try_echo=$ac_try;;
4570esac
4571eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572$as_echo "$ac_try_echo"; } >&5
4573  (eval "$ac_link") 2>&5
4574  ac_status=$?
4575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576  test $ac_status = 0; }; then :
4577  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4578# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4579# work properly (i.e., refer to `conftest.exe'), while it won't with
4580# `rm'.
4581for ac_file in conftest.exe conftest conftest.*; do
4582  test -f "$ac_file" || continue
4583  case $ac_file in
4584    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4585    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4586	  break;;
4587    * ) break;;
4588  esac
4589done
4590else
4591  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4594See \`config.log' for more details" "$LINENO" 5; }
4595fi
4596rm -f conftest conftest$ac_cv_exeext
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4598$as_echo "$ac_cv_exeext" >&6; }
4599
4600rm -f conftest.$ac_ext
4601EXEEXT=$ac_cv_exeext
4602ac_exeext=$EXEEXT
4603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604/* end confdefs.h.  */
4605#include <stdio.h>
4606int
4607main ()
4608{
4609FILE *f = fopen ("conftest.out", "w");
4610 return ferror (f) || fclose (f) != 0;
4611
4612  ;
4613  return 0;
4614}
4615_ACEOF
4616ac_clean_files="$ac_clean_files conftest.out"
4617# Check that the compiler produces executables we can run.  If not, either
4618# the compiler is broken, or we cross compile.
4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4620$as_echo_n "checking whether we are cross compiling... " >&6; }
4621if test "$cross_compiling" != yes; then
4622  { { ac_try="$ac_link"
4623case "(($ac_try" in
4624  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625  *) ac_try_echo=$ac_try;;
4626esac
4627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628$as_echo "$ac_try_echo"; } >&5
4629  (eval "$ac_link") 2>&5
4630  ac_status=$?
4631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632  test $ac_status = 0; }
4633  if { ac_try='./conftest$ac_cv_exeext'
4634  { { case "(($ac_try" in
4635  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636  *) ac_try_echo=$ac_try;;
4637esac
4638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639$as_echo "$ac_try_echo"; } >&5
4640  (eval "$ac_try") 2>&5
4641  ac_status=$?
4642  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643  test $ac_status = 0; }; }; then
4644    cross_compiling=no
4645  else
4646    if test "$cross_compiling" = maybe; then
4647	cross_compiling=yes
4648    else
4649	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651as_fn_error $? "cannot run C compiled programs.
4652If you meant to cross compile, use \`--host'.
4653See \`config.log' for more details" "$LINENO" 5; }
4654    fi
4655  fi
4656fi
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4658$as_echo "$cross_compiling" >&6; }
4659
4660rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4661ac_clean_files=$ac_clean_files_save
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4663$as_echo_n "checking for suffix of object files... " >&6; }
4664if ${ac_cv_objext+:} false; then :
4665  $as_echo_n "(cached) " >&6
4666else
4667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4668/* end confdefs.h.  */
4669
4670int
4671main ()
4672{
4673
4674  ;
4675  return 0;
4676}
4677_ACEOF
4678rm -f conftest.o conftest.obj
4679if { { ac_try="$ac_compile"
4680case "(($ac_try" in
4681  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4682  *) ac_try_echo=$ac_try;;
4683esac
4684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4685$as_echo "$ac_try_echo"; } >&5
4686  (eval "$ac_compile") 2>&5
4687  ac_status=$?
4688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4689  test $ac_status = 0; }; then :
4690  for ac_file in conftest.o conftest.obj conftest.*; do
4691  test -f "$ac_file" || continue;
4692  case $ac_file in
4693    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4694    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4695       break;;
4696  esac
4697done
4698else
4699  $as_echo "$as_me: failed program was:" >&5
4700sed 's/^/| /' conftest.$ac_ext >&5
4701
4702{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704as_fn_error $? "cannot compute suffix of object files: cannot compile
4705See \`config.log' for more details" "$LINENO" 5; }
4706fi
4707rm -f conftest.$ac_cv_objext conftest.$ac_ext
4708fi
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4710$as_echo "$ac_cv_objext" >&6; }
4711OBJEXT=$ac_cv_objext
4712ac_objext=$OBJEXT
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4714$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4715if ${ac_cv_c_compiler_gnu+:} false; then :
4716  $as_echo_n "(cached) " >&6
4717else
4718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719/* end confdefs.h.  */
4720
4721int
4722main ()
4723{
4724#ifndef __GNUC__
4725       choke me
4726#endif
4727
4728  ;
4729  return 0;
4730}
4731_ACEOF
4732if ac_fn_c_try_compile "$LINENO"; then :
4733  ac_compiler_gnu=yes
4734else
4735  ac_compiler_gnu=no
4736fi
4737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738ac_cv_c_compiler_gnu=$ac_compiler_gnu
4739
4740fi
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4742$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4743if test $ac_compiler_gnu = yes; then
4744  GCC=yes
4745else
4746  GCC=
4747fi
4748ac_test_CFLAGS=${CFLAGS+set}
4749ac_save_CFLAGS=$CFLAGS
4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4751$as_echo_n "checking whether $CC accepts -g... " >&6; }
4752if ${ac_cv_prog_cc_g+:} false; then :
4753  $as_echo_n "(cached) " >&6
4754else
4755  ac_save_c_werror_flag=$ac_c_werror_flag
4756   ac_c_werror_flag=yes
4757   ac_cv_prog_cc_g=no
4758   CFLAGS="-g"
4759   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760/* end confdefs.h.  */
4761
4762int
4763main ()
4764{
4765
4766  ;
4767  return 0;
4768}
4769_ACEOF
4770if ac_fn_c_try_compile "$LINENO"; then :
4771  ac_cv_prog_cc_g=yes
4772else
4773  CFLAGS=""
4774      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h.  */
4776
4777int
4778main ()
4779{
4780
4781  ;
4782  return 0;
4783}
4784_ACEOF
4785if ac_fn_c_try_compile "$LINENO"; then :
4786
4787else
4788  ac_c_werror_flag=$ac_save_c_werror_flag
4789	 CFLAGS="-g"
4790	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791/* end confdefs.h.  */
4792
4793int
4794main ()
4795{
4796
4797  ;
4798  return 0;
4799}
4800_ACEOF
4801if ac_fn_c_try_compile "$LINENO"; then :
4802  ac_cv_prog_cc_g=yes
4803fi
4804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805fi
4806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4807fi
4808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809   ac_c_werror_flag=$ac_save_c_werror_flag
4810fi
4811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4812$as_echo "$ac_cv_prog_cc_g" >&6; }
4813if test "$ac_test_CFLAGS" = set; then
4814  CFLAGS=$ac_save_CFLAGS
4815elif test $ac_cv_prog_cc_g = yes; then
4816  if test "$GCC" = yes; then
4817    CFLAGS="-g -O2"
4818  else
4819    CFLAGS="-g"
4820  fi
4821else
4822  if test "$GCC" = yes; then
4823    CFLAGS="-O2"
4824  else
4825    CFLAGS=
4826  fi
4827fi
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4829$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4830if ${ac_cv_prog_cc_c89+:} false; then :
4831  $as_echo_n "(cached) " >&6
4832else
4833  ac_cv_prog_cc_c89=no
4834ac_save_CC=$CC
4835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836/* end confdefs.h.  */
4837#include <stdarg.h>
4838#include <stdio.h>
4839struct stat;
4840/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4841struct buf { int x; };
4842FILE * (*rcsopen) (struct buf *, struct stat *, int);
4843static char *e (p, i)
4844     char **p;
4845     int i;
4846{
4847  return p[i];
4848}
4849static char *f (char * (*g) (char **, int), char **p, ...)
4850{
4851  char *s;
4852  va_list v;
4853  va_start (v,p);
4854  s = g (p, va_arg (v,int));
4855  va_end (v);
4856  return s;
4857}
4858
4859/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4860   function prototypes and stuff, but not '\xHH' hex character constants.
4861   These don't provoke an error unfortunately, instead are silently treated
4862   as 'x'.  The following induces an error, until -std is added to get
4863   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4864   array size at least.  It's necessary to write '\x00'==0 to get something
4865   that's true only with -std.  */
4866int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4867
4868/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4869   inside strings and character constants.  */
4870#define FOO(x) 'x'
4871int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4872
4873int test (int i, double x);
4874struct s1 {int (*f) (int a);};
4875struct s2 {int (*f) (double a);};
4876int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4877int argc;
4878char **argv;
4879int
4880main ()
4881{
4882return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4883  ;
4884  return 0;
4885}
4886_ACEOF
4887for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4888	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4889do
4890  CC="$ac_save_CC $ac_arg"
4891  if ac_fn_c_try_compile "$LINENO"; then :
4892  ac_cv_prog_cc_c89=$ac_arg
4893fi
4894rm -f core conftest.err conftest.$ac_objext
4895  test "x$ac_cv_prog_cc_c89" != "xno" && break
4896done
4897rm -f conftest.$ac_ext
4898CC=$ac_save_CC
4899
4900fi
4901# AC_CACHE_VAL
4902case "x$ac_cv_prog_cc_c89" in
4903  x)
4904    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4905$as_echo "none needed" >&6; } ;;
4906  xno)
4907    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4908$as_echo "unsupported" >&6; } ;;
4909  *)
4910    CC="$CC $ac_cv_prog_cc_c89"
4911    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4912$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4913esac
4914if test "x$ac_cv_prog_cc_c89" != xno; then :
4915
4916fi
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
4923
4924ac_ext=c
4925ac_cpp='$CPP $CPPFLAGS'
4926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928ac_compiler_gnu=$ac_cv_c_compiler_gnu
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4930$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4931if ${am_cv_prog_cc_c_o+:} false; then :
4932  $as_echo_n "(cached) " >&6
4933else
4934  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935/* end confdefs.h.  */
4936
4937int
4938main ()
4939{
4940
4941  ;
4942  return 0;
4943}
4944_ACEOF
4945  # Make sure it works both with $CC and with simple cc.
4946  # Following AC_PROG_CC_C_O, we do the test twice because some
4947  # compilers refuse to overwrite an existing .o file with -o,
4948  # though they will create one.
4949  am_cv_prog_cc_c_o=yes
4950  for am_i in 1 2; do
4951    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4952   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4953   ac_status=$?
4954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955   (exit $ac_status); } \
4956         && test -f conftest2.$ac_objext; then
4957      : OK
4958    else
4959      am_cv_prog_cc_c_o=no
4960      break
4961    fi
4962  done
4963  rm -f core conftest*
4964  unset am_i
4965fi
4966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4967$as_echo "$am_cv_prog_cc_c_o" >&6; }
4968if test "$am_cv_prog_cc_c_o" != yes; then
4969   # Losing compiler, so override with the script.
4970   # FIXME: It is wrong to rewrite CC.
4971   # But if we don't then we get into trouble of one sort or another.
4972   # A longer-term fix would be to have automake use am__CC in this case,
4973   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4974   CC="$am_aux_dir/compile $CC"
4975fi
4976ac_ext=c
4977ac_cpp='$CPP $CPPFLAGS'
4978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4980ac_compiler_gnu=$ac_cv_c_compiler_gnu
4981
4982DEPDIR="${am__leading_dot}deps"
4983
4984ac_config_commands="$ac_config_commands depfiles"
4985
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4987$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4988cat > confinc.mk << 'END'
4989am__doit:
4990	@echo this is the am__doit target >confinc.out
4991.PHONY: am__doit
4992END
4993am__include="#"
4994am__quote=
4995# BSD make does it like this.
4996echo '.include "confinc.mk" # ignored' > confmf.BSD
4997# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4998echo 'include confinc.mk # ignored' > confmf.GNU
4999_am_result=no
5000for s in GNU BSD; do
5001  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5002   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5003   ac_status=$?
5004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005   (exit $ac_status); }
5006  case $?:`cat confinc.out 2>/dev/null` in #(
5007  '0:this is the am__doit target') :
5008    case $s in #(
5009  BSD) :
5010    am__include='.include' am__quote='"' ;; #(
5011  *) :
5012    am__include='include' am__quote='' ;;
5013esac ;; #(
5014  *) :
5015     ;;
5016esac
5017  if test "$am__include" != "#"; then
5018    _am_result="yes ($s style)"
5019    break
5020  fi
5021done
5022rm -f confinc.* confmf.*
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5024$as_echo "${_am_result}" >&6; }
5025
5026# Check whether --enable-dependency-tracking was given.
5027if test "${enable_dependency_tracking+set}" = set; then :
5028  enableval=$enable_dependency_tracking;
5029fi
5030
5031if test "x$enable_dependency_tracking" != xno; then
5032  am_depcomp="$ac_aux_dir/depcomp"
5033  AMDEPBACKSLASH='\'
5034  am__nodep='_no'
5035fi
5036 if test "x$enable_dependency_tracking" != xno; then
5037  AMDEP_TRUE=
5038  AMDEP_FALSE='#'
5039else
5040  AMDEP_TRUE='#'
5041  AMDEP_FALSE=
5042fi
5043
5044
5045
5046depcc="$CC"   am_compiler_list=
5047
5048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5049$as_echo_n "checking dependency style of $depcc... " >&6; }
5050if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5051  $as_echo_n "(cached) " >&6
5052else
5053  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5054  # We make a subdir and do the tests there.  Otherwise we can end up
5055  # making bogus files that we don't know about and never remove.  For
5056  # instance it was reported that on HP-UX the gcc test will end up
5057  # making a dummy file named 'D' -- because '-MD' means "put the output
5058  # in D".
5059  rm -rf conftest.dir
5060  mkdir conftest.dir
5061  # Copy depcomp to subdir because otherwise we won't find it if we're
5062  # using a relative directory.
5063  cp "$am_depcomp" conftest.dir
5064  cd conftest.dir
5065  # We will build objects and dependencies in a subdirectory because
5066  # it helps to detect inapplicable dependency modes.  For instance
5067  # both Tru64's cc and ICC support -MD to output dependencies as a
5068  # side effect of compilation, but ICC will put the dependencies in
5069  # the current directory while Tru64 will put them in the object
5070  # directory.
5071  mkdir sub
5072
5073  am_cv_CC_dependencies_compiler_type=none
5074  if test "$am_compiler_list" = ""; then
5075     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5076  fi
5077  am__universal=false
5078  case " $depcc " in #(
5079     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5080     esac
5081
5082  for depmode in $am_compiler_list; do
5083    # Setup a source with many dependencies, because some compilers
5084    # like to wrap large dependency lists on column 80 (with \), and
5085    # we should not choose a depcomp mode which is confused by this.
5086    #
5087    # We need to recreate these files for each test, as the compiler may
5088    # overwrite some of them when testing with obscure command lines.
5089    # This happens at least with the AIX C compiler.
5090    : > sub/conftest.c
5091    for i in 1 2 3 4 5 6; do
5092      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5093      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5094      # Solaris 10 /bin/sh.
5095      echo '/* dummy */' > sub/conftst$i.h
5096    done
5097    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5098
5099    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5100    # mode.  It turns out that the SunPro C++ compiler does not properly
5101    # handle '-M -o', and we need to detect this.  Also, some Intel
5102    # versions had trouble with output in subdirs.
5103    am__obj=sub/conftest.${OBJEXT-o}
5104    am__minus_obj="-o $am__obj"
5105    case $depmode in
5106    gcc)
5107      # This depmode causes a compiler race in universal mode.
5108      test "$am__universal" = false || continue
5109      ;;
5110    nosideeffect)
5111      # After this tag, mechanisms are not by side-effect, so they'll
5112      # only be used when explicitly requested.
5113      if test "x$enable_dependency_tracking" = xyes; then
5114	continue
5115      else
5116	break
5117      fi
5118      ;;
5119    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5120      # This compiler won't grok '-c -o', but also, the minuso test has
5121      # not run yet.  These depmodes are late enough in the game, and
5122      # so weak that their functioning should not be impacted.
5123      am__obj=conftest.${OBJEXT-o}
5124      am__minus_obj=
5125      ;;
5126    none) break ;;
5127    esac
5128    if depmode=$depmode \
5129       source=sub/conftest.c object=$am__obj \
5130       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5131       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5132         >/dev/null 2>conftest.err &&
5133       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5134       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5135       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5136       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5137      # icc doesn't choke on unknown options, it will just issue warnings
5138      # or remarks (even with -Werror).  So we grep stderr for any message
5139      # that says an option was ignored or not supported.
5140      # When given -MP, icc 7.0 and 7.1 complain thusly:
5141      #   icc: Command line warning: ignoring option '-M'; no argument required
5142      # The diagnosis changed in icc 8.0:
5143      #   icc: Command line remark: option '-MP' not supported
5144      if (grep 'ignoring option' conftest.err ||
5145          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5146        am_cv_CC_dependencies_compiler_type=$depmode
5147        break
5148      fi
5149    fi
5150  done
5151
5152  cd ..
5153  rm -rf conftest.dir
5154else
5155  am_cv_CC_dependencies_compiler_type=none
5156fi
5157
5158fi
5159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5160$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5161CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5162
5163 if
5164  test "x$enable_dependency_tracking" != xno \
5165  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5166  am__fastdepCC_TRUE=
5167  am__fastdepCC_FALSE='#'
5168else
5169  am__fastdepCC_TRUE='#'
5170  am__fastdepCC_FALSE=
5171fi
5172
5173
5174
5175
5176
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
5178$as_echo_n "checking for C compiler vendor... " >&6; }
5179if ${ax_cv_c_compiler_vendor+:} false; then :
5180  $as_echo_n "(cached) " >&6
5181else
5182  ax_cv_c_compiler_vendor=unknown
5183  # note: don't check for gcc first since some other compilers define __GNUC__
5184  for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__ibmxl__,__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
5185    vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
5186    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187/* end confdefs.h.  */
5188
5189int
5190main ()
5191{
5192
5193#if !($vencpp)
5194      thisisanerror;
5195#endif
5196
5197  ;
5198  return 0;
5199}
5200_ACEOF
5201if ac_fn_c_try_compile "$LINENO"; then :
5202  ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
5203fi
5204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205  done
5206
5207fi
5208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
5209$as_echo "$ax_cv_c_compiler_vendor" >&6; }
5210
5211   case $ac_cv_prog_cc_stdc in #(
5212  no) :
5213    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5214  *) :
5215    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5216$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5217if ${ac_cv_prog_cc_c99+:} false; then :
5218  $as_echo_n "(cached) " >&6
5219else
5220  ac_cv_prog_cc_c99=no
5221ac_save_CC=$CC
5222cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5223/* end confdefs.h.  */
5224#include <stdarg.h>
5225#include <stdbool.h>
5226#include <stdlib.h>
5227#include <wchar.h>
5228#include <stdio.h>
5229
5230// Check varargs macros.  These examples are taken from C99 6.10.3.5.
5231#define debug(...) fprintf (stderr, __VA_ARGS__)
5232#define showlist(...) puts (#__VA_ARGS__)
5233#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5234static void
5235test_varargs_macros (void)
5236{
5237  int x = 1234;
5238  int y = 5678;
5239  debug ("Flag");
5240  debug ("X = %d\n", x);
5241  showlist (The first, second, and third items.);
5242  report (x>y, "x is %d but y is %d", x, y);
5243}
5244
5245// Check long long types.
5246#define BIG64 18446744073709551615ull
5247#define BIG32 4294967295ul
5248#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5249#if !BIG_OK
5250  your preprocessor is broken;
5251#endif
5252#if BIG_OK
5253#else
5254  your preprocessor is broken;
5255#endif
5256static long long int bignum = -9223372036854775807LL;
5257static unsigned long long int ubignum = BIG64;
5258
5259struct incomplete_array
5260{
5261  int datasize;
5262  double data[];
5263};
5264
5265struct named_init {
5266  int number;
5267  const wchar_t *name;
5268  double average;
5269};
5270
5271typedef const char *ccp;
5272
5273static inline int
5274test_restrict (ccp restrict text)
5275{
5276  // See if C++-style comments work.
5277  // Iterate through items via the restricted pointer.
5278  // Also check for declarations in for loops.
5279  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5280    continue;
5281  return 0;
5282}
5283
5284// Check varargs and va_copy.
5285static void
5286test_varargs (const char *format, ...)
5287{
5288  va_list args;
5289  va_start (args, format);
5290  va_list args_copy;
5291  va_copy (args_copy, args);
5292
5293  const char *str;
5294  int number;
5295  float fnumber;
5296
5297  while (*format)
5298    {
5299      switch (*format++)
5300	{
5301	case 's': // string
5302	  str = va_arg (args_copy, const char *);
5303	  break;
5304	case 'd': // int
5305	  number = va_arg (args_copy, int);
5306	  break;
5307	case 'f': // float
5308	  fnumber = va_arg (args_copy, double);
5309	  break;
5310	default:
5311	  break;
5312	}
5313    }
5314  va_end (args_copy);
5315  va_end (args);
5316}
5317
5318int
5319main ()
5320{
5321
5322  // Check bool.
5323  _Bool success = false;
5324
5325  // Check restrict.
5326  if (test_restrict ("String literal") == 0)
5327    success = true;
5328  char *restrict newvar = "Another string";
5329
5330  // Check varargs.
5331  test_varargs ("s, d' f .", "string", 65, 34.234);
5332  test_varargs_macros ();
5333
5334  // Check flexible array members.
5335  struct incomplete_array *ia =
5336    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5337  ia->datasize = 10;
5338  for (int i = 0; i < ia->datasize; ++i)
5339    ia->data[i] = i * 1.234;
5340
5341  // Check named initializers.
5342  struct named_init ni = {
5343    .number = 34,
5344    .name = L"Test wide string",
5345    .average = 543.34343,
5346  };
5347
5348  ni.number = 58;
5349
5350  int dynamic_array[ni.number];
5351  dynamic_array[ni.number - 1] = 543;
5352
5353  // work around unused variable warnings
5354  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5355	  || dynamic_array[ni.number - 1] != 543);
5356
5357  ;
5358  return 0;
5359}
5360_ACEOF
5361for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5362do
5363  CC="$ac_save_CC $ac_arg"
5364  if ac_fn_c_try_compile "$LINENO"; then :
5365  ac_cv_prog_cc_c99=$ac_arg
5366fi
5367rm -f core conftest.err conftest.$ac_objext
5368  test "x$ac_cv_prog_cc_c99" != "xno" && break
5369done
5370rm -f conftest.$ac_ext
5371CC=$ac_save_CC
5372
5373fi
5374# AC_CACHE_VAL
5375case "x$ac_cv_prog_cc_c99" in
5376  x)
5377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5378$as_echo "none needed" >&6; } ;;
5379  xno)
5380    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5381$as_echo "unsupported" >&6; } ;;
5382  *)
5383    CC="$CC $ac_cv_prog_cc_c99"
5384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5385$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5386esac
5387if test "x$ac_cv_prog_cc_c99" != xno; then :
5388  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5389else
5390  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5391$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5392if ${ac_cv_prog_cc_c89+:} false; then :
5393  $as_echo_n "(cached) " >&6
5394else
5395  ac_cv_prog_cc_c89=no
5396ac_save_CC=$CC
5397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399#include <stdarg.h>
5400#include <stdio.h>
5401struct stat;
5402/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5403struct buf { int x; };
5404FILE * (*rcsopen) (struct buf *, struct stat *, int);
5405static char *e (p, i)
5406     char **p;
5407     int i;
5408{
5409  return p[i];
5410}
5411static char *f (char * (*g) (char **, int), char **p, ...)
5412{
5413  char *s;
5414  va_list v;
5415  va_start (v,p);
5416  s = g (p, va_arg (v,int));
5417  va_end (v);
5418  return s;
5419}
5420
5421/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5422   function prototypes and stuff, but not '\xHH' hex character constants.
5423   These don't provoke an error unfortunately, instead are silently treated
5424   as 'x'.  The following induces an error, until -std is added to get
5425   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5426   array size at least.  It's necessary to write '\x00'==0 to get something
5427   that's true only with -std.  */
5428int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5429
5430/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5431   inside strings and character constants.  */
5432#define FOO(x) 'x'
5433int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5434
5435int test (int i, double x);
5436struct s1 {int (*f) (int a);};
5437struct s2 {int (*f) (double a);};
5438int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5439int argc;
5440char **argv;
5441int
5442main ()
5443{
5444return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5445  ;
5446  return 0;
5447}
5448_ACEOF
5449for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5450	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5451do
5452  CC="$ac_save_CC $ac_arg"
5453  if ac_fn_c_try_compile "$LINENO"; then :
5454  ac_cv_prog_cc_c89=$ac_arg
5455fi
5456rm -f core conftest.err conftest.$ac_objext
5457  test "x$ac_cv_prog_cc_c89" != "xno" && break
5458done
5459rm -f conftest.$ac_ext
5460CC=$ac_save_CC
5461
5462fi
5463# AC_CACHE_VAL
5464case "x$ac_cv_prog_cc_c89" in
5465  x)
5466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5467$as_echo "none needed" >&6; } ;;
5468  xno)
5469    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5470$as_echo "unsupported" >&6; } ;;
5471  *)
5472    CC="$CC $ac_cv_prog_cc_c89"
5473    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5474$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5475esac
5476if test "x$ac_cv_prog_cc_c89" != xno; then :
5477  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5478else
5479  ac_cv_prog_cc_stdc=no
5480fi
5481
5482fi
5483 ;;
5484esac
5485  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5486$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5487  if ${ac_cv_prog_cc_stdc+:} false; then :
5488  $as_echo_n "(cached) " >&6
5489fi
5490
5491  case $ac_cv_prog_cc_stdc in #(
5492  no) :
5493    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5494$as_echo "unsupported" >&6; } ;; #(
5495  '') :
5496    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5497$as_echo "none needed" >&6; } ;; #(
5498  *) :
5499    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5500$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5501esac
5502
5503
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5505$as_echo_n "checking whether ln -s works... " >&6; }
5506LN_S=$as_ln_s
5507if test "$LN_S" = "ln -s"; then
5508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5509$as_echo "yes" >&6; }
5510else
5511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5512$as_echo "no, using $LN_S" >&6; }
5513fi
5514
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5516$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5517set x ${MAKE-make}
5518ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5519if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5520  $as_echo_n "(cached) " >&6
5521else
5522  cat >conftest.make <<\_ACEOF
5523SHELL = /bin/sh
5524all:
5525	@echo '@@@%%%=$(MAKE)=@@@%%%'
5526_ACEOF
5527# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5528case `${MAKE-make} -f conftest.make 2>/dev/null` in
5529  *@@@%%%=?*=@@@%%%*)
5530    eval ac_cv_prog_make_${ac_make}_set=yes;;
5531  *)
5532    eval ac_cv_prog_make_${ac_make}_set=no;;
5533esac
5534rm -f conftest.make
5535fi
5536if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5538$as_echo "yes" >&6; }
5539  SET_MAKE=
5540else
5541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
5543  SET_MAKE="MAKE=${MAKE-make}"
5544fi
5545
5546enable_win32_dll=yes
5547
5548case $host in
5549*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5550  if test -n "$ac_tool_prefix"; then
5551  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5552set dummy ${ac_tool_prefix}as; ac_word=$2
5553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5554$as_echo_n "checking for $ac_word... " >&6; }
5555if ${ac_cv_prog_AS+:} false; then :
5556  $as_echo_n "(cached) " >&6
5557else
5558  if test -n "$AS"; then
5559  ac_cv_prog_AS="$AS" # Let the user override the test.
5560else
5561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH
5563do
5564  IFS=$as_save_IFS
5565  test -z "$as_dir" && as_dir=.
5566    for ac_exec_ext in '' $ac_executable_extensions; do
5567  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5568    ac_cv_prog_AS="${ac_tool_prefix}as"
5569    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570    break 2
5571  fi
5572done
5573  done
5574IFS=$as_save_IFS
5575
5576fi
5577fi
5578AS=$ac_cv_prog_AS
5579if test -n "$AS"; then
5580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5581$as_echo "$AS" >&6; }
5582else
5583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584$as_echo "no" >&6; }
5585fi
5586
5587
5588fi
5589if test -z "$ac_cv_prog_AS"; then
5590  ac_ct_AS=$AS
5591  # Extract the first word of "as", so it can be a program name with args.
5592set dummy as; ac_word=$2
5593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594$as_echo_n "checking for $ac_word... " >&6; }
5595if ${ac_cv_prog_ac_ct_AS+:} false; then :
5596  $as_echo_n "(cached) " >&6
5597else
5598  if test -n "$ac_ct_AS"; then
5599  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5600else
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604  IFS=$as_save_IFS
5605  test -z "$as_dir" && as_dir=.
5606    for ac_exec_ext in '' $ac_executable_extensions; do
5607  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5608    ac_cv_prog_ac_ct_AS="as"
5609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610    break 2
5611  fi
5612done
5613  done
5614IFS=$as_save_IFS
5615
5616fi
5617fi
5618ac_ct_AS=$ac_cv_prog_ac_ct_AS
5619if test -n "$ac_ct_AS"; then
5620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5621$as_echo "$ac_ct_AS" >&6; }
5622else
5623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624$as_echo "no" >&6; }
5625fi
5626
5627  if test "x$ac_ct_AS" = x; then
5628    AS="false"
5629  else
5630    case $cross_compiling:$ac_tool_warned in
5631yes:)
5632{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5633$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5634ac_tool_warned=yes ;;
5635esac
5636    AS=$ac_ct_AS
5637  fi
5638else
5639  AS="$ac_cv_prog_AS"
5640fi
5641
5642  if test -n "$ac_tool_prefix"; then
5643  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5644set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646$as_echo_n "checking for $ac_word... " >&6; }
5647if ${ac_cv_prog_DLLTOOL+:} false; then :
5648  $as_echo_n "(cached) " >&6
5649else
5650  if test -n "$DLLTOOL"; then
5651  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656  IFS=$as_save_IFS
5657  test -z "$as_dir" && as_dir=.
5658    for ac_exec_ext in '' $ac_executable_extensions; do
5659  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5661    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5662    break 2
5663  fi
5664done
5665  done
5666IFS=$as_save_IFS
5667
5668fi
5669fi
5670DLLTOOL=$ac_cv_prog_DLLTOOL
5671if test -n "$DLLTOOL"; then
5672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5673$as_echo "$DLLTOOL" >&6; }
5674else
5675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5676$as_echo "no" >&6; }
5677fi
5678
5679
5680fi
5681if test -z "$ac_cv_prog_DLLTOOL"; then
5682  ac_ct_DLLTOOL=$DLLTOOL
5683  # Extract the first word of "dlltool", so it can be a program name with args.
5684set dummy dlltool; ac_word=$2
5685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686$as_echo_n "checking for $ac_word... " >&6; }
5687if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5688  $as_echo_n "(cached) " >&6
5689else
5690  if test -n "$ac_ct_DLLTOOL"; then
5691  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5692else
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696  IFS=$as_save_IFS
5697  test -z "$as_dir" && as_dir=.
5698    for ac_exec_ext in '' $ac_executable_extensions; do
5699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5700    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702    break 2
5703  fi
5704done
5705  done
5706IFS=$as_save_IFS
5707
5708fi
5709fi
5710ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5711if test -n "$ac_ct_DLLTOOL"; then
5712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5713$as_echo "$ac_ct_DLLTOOL" >&6; }
5714else
5715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716$as_echo "no" >&6; }
5717fi
5718
5719  if test "x$ac_ct_DLLTOOL" = x; then
5720    DLLTOOL="false"
5721  else
5722    case $cross_compiling:$ac_tool_warned in
5723yes:)
5724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5726ac_tool_warned=yes ;;
5727esac
5728    DLLTOOL=$ac_ct_DLLTOOL
5729  fi
5730else
5731  DLLTOOL="$ac_cv_prog_DLLTOOL"
5732fi
5733
5734  if test -n "$ac_tool_prefix"; then
5735  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5736set dummy ${ac_tool_prefix}objdump; ac_word=$2
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if ${ac_cv_prog_OBJDUMP+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  if test -n "$OBJDUMP"; then
5743  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748  IFS=$as_save_IFS
5749  test -z "$as_dir" && as_dir=.
5750    for ac_exec_ext in '' $ac_executable_extensions; do
5751  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5753    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754    break 2
5755  fi
5756done
5757  done
5758IFS=$as_save_IFS
5759
5760fi
5761fi
5762OBJDUMP=$ac_cv_prog_OBJDUMP
5763if test -n "$OBJDUMP"; then
5764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5765$as_echo "$OBJDUMP" >&6; }
5766else
5767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
5769fi
5770
5771
5772fi
5773if test -z "$ac_cv_prog_OBJDUMP"; then
5774  ac_ct_OBJDUMP=$OBJDUMP
5775  # Extract the first word of "objdump", so it can be a program name with args.
5776set dummy objdump; ac_word=$2
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778$as_echo_n "checking for $ac_word... " >&6; }
5779if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  if test -n "$ac_ct_OBJDUMP"; then
5783  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788  IFS=$as_save_IFS
5789  test -z "$as_dir" && as_dir=.
5790    for ac_exec_ext in '' $ac_executable_extensions; do
5791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5792    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794    break 2
5795  fi
5796done
5797  done
5798IFS=$as_save_IFS
5799
5800fi
5801fi
5802ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5803if test -n "$ac_ct_OBJDUMP"; then
5804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5805$as_echo "$ac_ct_OBJDUMP" >&6; }
5806else
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809fi
5810
5811  if test "x$ac_ct_OBJDUMP" = x; then
5812    OBJDUMP="false"
5813  else
5814    case $cross_compiling:$ac_tool_warned in
5815yes:)
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5817$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5818ac_tool_warned=yes ;;
5819esac
5820    OBJDUMP=$ac_ct_OBJDUMP
5821  fi
5822else
5823  OBJDUMP="$ac_cv_prog_OBJDUMP"
5824fi
5825
5826  ;;
5827esac
5828
5829test -z "$AS" && AS=as
5830
5831
5832
5833
5834
5835test -z "$DLLTOOL" && DLLTOOL=dlltool
5836
5837
5838
5839
5840
5841test -z "$OBJDUMP" && OBJDUMP=objdump
5842
5843
5844
5845
5846
5847
5848
5849case `pwd` in
5850  *\ * | *\	*)
5851    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5852$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5853esac
5854
5855
5856
5857macro_version='2.4.6'
5858macro_revision='2.4.6'
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872ltmain=$ac_aux_dir/ltmain.sh
5873
5874# Backslashify metacharacters that are still active within
5875# double-quoted strings.
5876sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5877
5878# Same as above, but do not quote variable references.
5879double_quote_subst='s/\(["`\\]\)/\\\1/g'
5880
5881# Sed substitution to delay expansion of an escaped shell variable in a
5882# double_quote_subst'ed string.
5883delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5884
5885# Sed substitution to delay expansion of an escaped single quote.
5886delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5887
5888# Sed substitution to avoid accidental globbing in evaled expressions
5889no_glob_subst='s/\*/\\\*/g'
5890
5891ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5892ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5893ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5894
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5896$as_echo_n "checking how to print strings... " >&6; }
5897# Test print first, because it will be a builtin if present.
5898if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5899   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5900  ECHO='print -r --'
5901elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5902  ECHO='printf %s\n'
5903else
5904  # Use this function as a fallback that always works.
5905  func_fallback_echo ()
5906  {
5907    eval 'cat <<_LTECHO_EOF
5908$1
5909_LTECHO_EOF'
5910  }
5911  ECHO='func_fallback_echo'
5912fi
5913
5914# func_echo_all arg...
5915# Invoke $ECHO with all args, space-separated.
5916func_echo_all ()
5917{
5918    $ECHO ""
5919}
5920
5921case $ECHO in
5922  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5923$as_echo "printf" >&6; } ;;
5924  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5925$as_echo "print -r" >&6; } ;;
5926  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5927$as_echo "cat" >&6; } ;;
5928esac
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5944$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5945if ${ac_cv_path_SED+:} false; then :
5946  $as_echo_n "(cached) " >&6
5947else
5948            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5949     for ac_i in 1 2 3 4 5 6 7; do
5950       ac_script="$ac_script$as_nl$ac_script"
5951     done
5952     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5953     { ac_script=; unset ac_script;}
5954     if test -z "$SED"; then
5955  ac_path_SED_found=false
5956  # Loop through the user's path and test for each of PROGNAME-LIST
5957  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958for as_dir in $PATH
5959do
5960  IFS=$as_save_IFS
5961  test -z "$as_dir" && as_dir=.
5962    for ac_prog in sed gsed; do
5963    for ac_exec_ext in '' $ac_executable_extensions; do
5964      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5965      as_fn_executable_p "$ac_path_SED" || continue
5966# Check for GNU ac_path_SED and select it if it is found.
5967  # Check for GNU $ac_path_SED
5968case `"$ac_path_SED" --version 2>&1` in
5969*GNU*)
5970  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5971*)
5972  ac_count=0
5973  $as_echo_n 0123456789 >"conftest.in"
5974  while :
5975  do
5976    cat "conftest.in" "conftest.in" >"conftest.tmp"
5977    mv "conftest.tmp" "conftest.in"
5978    cp "conftest.in" "conftest.nl"
5979    $as_echo '' >> "conftest.nl"
5980    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5981    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5982    as_fn_arith $ac_count + 1 && ac_count=$as_val
5983    if test $ac_count -gt ${ac_path_SED_max-0}; then
5984      # Best one so far, save it but keep looking for a better one
5985      ac_cv_path_SED="$ac_path_SED"
5986      ac_path_SED_max=$ac_count
5987    fi
5988    # 10*(2^10) chars as input seems more than enough
5989    test $ac_count -gt 10 && break
5990  done
5991  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5992esac
5993
5994      $ac_path_SED_found && break 3
5995    done
5996  done
5997  done
5998IFS=$as_save_IFS
5999  if test -z "$ac_cv_path_SED"; then
6000    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6001  fi
6002else
6003  ac_cv_path_SED=$SED
6004fi
6005
6006fi
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6008$as_echo "$ac_cv_path_SED" >&6; }
6009 SED="$ac_cv_path_SED"
6010  rm -f conftest.sed
6011
6012test -z "$SED" && SED=sed
6013Xsed="$SED -e 1s/^X//"
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6026$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6027if ${ac_cv_path_GREP+:} false; then :
6028  $as_echo_n "(cached) " >&6
6029else
6030  if test -z "$GREP"; then
6031  ac_path_GREP_found=false
6032  # Loop through the user's path and test for each of PROGNAME-LIST
6033  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6035do
6036  IFS=$as_save_IFS
6037  test -z "$as_dir" && as_dir=.
6038    for ac_prog in grep ggrep; do
6039    for ac_exec_ext in '' $ac_executable_extensions; do
6040      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6041      as_fn_executable_p "$ac_path_GREP" || continue
6042# Check for GNU ac_path_GREP and select it if it is found.
6043  # Check for GNU $ac_path_GREP
6044case `"$ac_path_GREP" --version 2>&1` in
6045*GNU*)
6046  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6047*)
6048  ac_count=0
6049  $as_echo_n 0123456789 >"conftest.in"
6050  while :
6051  do
6052    cat "conftest.in" "conftest.in" >"conftest.tmp"
6053    mv "conftest.tmp" "conftest.in"
6054    cp "conftest.in" "conftest.nl"
6055    $as_echo 'GREP' >> "conftest.nl"
6056    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6057    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6058    as_fn_arith $ac_count + 1 && ac_count=$as_val
6059    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6060      # Best one so far, save it but keep looking for a better one
6061      ac_cv_path_GREP="$ac_path_GREP"
6062      ac_path_GREP_max=$ac_count
6063    fi
6064    # 10*(2^10) chars as input seems more than enough
6065    test $ac_count -gt 10 && break
6066  done
6067  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6068esac
6069
6070      $ac_path_GREP_found && break 3
6071    done
6072  done
6073  done
6074IFS=$as_save_IFS
6075  if test -z "$ac_cv_path_GREP"; then
6076    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6077  fi
6078else
6079  ac_cv_path_GREP=$GREP
6080fi
6081
6082fi
6083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6084$as_echo "$ac_cv_path_GREP" >&6; }
6085 GREP="$ac_cv_path_GREP"
6086
6087
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6089$as_echo_n "checking for egrep... " >&6; }
6090if ${ac_cv_path_EGREP+:} false; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6094   then ac_cv_path_EGREP="$GREP -E"
6095   else
6096     if test -z "$EGREP"; then
6097  ac_path_EGREP_found=false
6098  # Loop through the user's path and test for each of PROGNAME-LIST
6099  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6101do
6102  IFS=$as_save_IFS
6103  test -z "$as_dir" && as_dir=.
6104    for ac_prog in egrep; do
6105    for ac_exec_ext in '' $ac_executable_extensions; do
6106      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6107      as_fn_executable_p "$ac_path_EGREP" || continue
6108# Check for GNU ac_path_EGREP and select it if it is found.
6109  # Check for GNU $ac_path_EGREP
6110case `"$ac_path_EGREP" --version 2>&1` in
6111*GNU*)
6112  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6113*)
6114  ac_count=0
6115  $as_echo_n 0123456789 >"conftest.in"
6116  while :
6117  do
6118    cat "conftest.in" "conftest.in" >"conftest.tmp"
6119    mv "conftest.tmp" "conftest.in"
6120    cp "conftest.in" "conftest.nl"
6121    $as_echo 'EGREP' >> "conftest.nl"
6122    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6123    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6124    as_fn_arith $ac_count + 1 && ac_count=$as_val
6125    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6126      # Best one so far, save it but keep looking for a better one
6127      ac_cv_path_EGREP="$ac_path_EGREP"
6128      ac_path_EGREP_max=$ac_count
6129    fi
6130    # 10*(2^10) chars as input seems more than enough
6131    test $ac_count -gt 10 && break
6132  done
6133  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6134esac
6135
6136      $ac_path_EGREP_found && break 3
6137    done
6138  done
6139  done
6140IFS=$as_save_IFS
6141  if test -z "$ac_cv_path_EGREP"; then
6142    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6143  fi
6144else
6145  ac_cv_path_EGREP=$EGREP
6146fi
6147
6148   fi
6149fi
6150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6151$as_echo "$ac_cv_path_EGREP" >&6; }
6152 EGREP="$ac_cv_path_EGREP"
6153
6154
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6156$as_echo_n "checking for fgrep... " >&6; }
6157if ${ac_cv_path_FGREP+:} false; then :
6158  $as_echo_n "(cached) " >&6
6159else
6160  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6161   then ac_cv_path_FGREP="$GREP -F"
6162   else
6163     if test -z "$FGREP"; then
6164  ac_path_FGREP_found=false
6165  # Loop through the user's path and test for each of PROGNAME-LIST
6166  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6168do
6169  IFS=$as_save_IFS
6170  test -z "$as_dir" && as_dir=.
6171    for ac_prog in fgrep; do
6172    for ac_exec_ext in '' $ac_executable_extensions; do
6173      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6174      as_fn_executable_p "$ac_path_FGREP" || continue
6175# Check for GNU ac_path_FGREP and select it if it is found.
6176  # Check for GNU $ac_path_FGREP
6177case `"$ac_path_FGREP" --version 2>&1` in
6178*GNU*)
6179  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6180*)
6181  ac_count=0
6182  $as_echo_n 0123456789 >"conftest.in"
6183  while :
6184  do
6185    cat "conftest.in" "conftest.in" >"conftest.tmp"
6186    mv "conftest.tmp" "conftest.in"
6187    cp "conftest.in" "conftest.nl"
6188    $as_echo 'FGREP' >> "conftest.nl"
6189    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6190    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6191    as_fn_arith $ac_count + 1 && ac_count=$as_val
6192    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6193      # Best one so far, save it but keep looking for a better one
6194      ac_cv_path_FGREP="$ac_path_FGREP"
6195      ac_path_FGREP_max=$ac_count
6196    fi
6197    # 10*(2^10) chars as input seems more than enough
6198    test $ac_count -gt 10 && break
6199  done
6200  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6201esac
6202
6203      $ac_path_FGREP_found && break 3
6204    done
6205  done
6206  done
6207IFS=$as_save_IFS
6208  if test -z "$ac_cv_path_FGREP"; then
6209    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6210  fi
6211else
6212  ac_cv_path_FGREP=$FGREP
6213fi
6214
6215   fi
6216fi
6217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6218$as_echo "$ac_cv_path_FGREP" >&6; }
6219 FGREP="$ac_cv_path_FGREP"
6220
6221
6222test -z "$GREP" && GREP=grep
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242# Check whether --with-gnu-ld was given.
6243if test "${with_gnu_ld+set}" = set; then :
6244  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6245else
6246  with_gnu_ld=no
6247fi
6248
6249ac_prog=ld
6250if test yes = "$GCC"; then
6251  # Check if gcc -print-prog-name=ld gives a path.
6252  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6253$as_echo_n "checking for ld used by $CC... " >&6; }
6254  case $host in
6255  *-*-mingw*)
6256    # gcc leaves a trailing carriage return, which upsets mingw
6257    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6258  *)
6259    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6260  esac
6261  case $ac_prog in
6262    # Accept absolute paths.
6263    [\\/]* | ?:[\\/]*)
6264      re_direlt='/[^/][^/]*/\.\./'
6265      # Canonicalize the pathname of ld
6266      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6267      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6268	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6269      done
6270      test -z "$LD" && LD=$ac_prog
6271      ;;
6272  "")
6273    # If it fails, then pretend we aren't using GCC.
6274    ac_prog=ld
6275    ;;
6276  *)
6277    # If it is relative, then search for the first ld in PATH.
6278    with_gnu_ld=unknown
6279    ;;
6280  esac
6281elif test yes = "$with_gnu_ld"; then
6282  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6283$as_echo_n "checking for GNU ld... " >&6; }
6284else
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6286$as_echo_n "checking for non-GNU ld... " >&6; }
6287fi
6288if ${lt_cv_path_LD+:} false; then :
6289  $as_echo_n "(cached) " >&6
6290else
6291  if test -z "$LD"; then
6292  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6293  for ac_dir in $PATH; do
6294    IFS=$lt_save_ifs
6295    test -z "$ac_dir" && ac_dir=.
6296    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6297      lt_cv_path_LD=$ac_dir/$ac_prog
6298      # Check to see if the program is GNU ld.  I'd rather use --version,
6299      # but apparently some variants of GNU ld only accept -v.
6300      # Break only if it was the GNU/non-GNU ld that we prefer.
6301      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6302      *GNU* | *'with BFD'*)
6303	test no != "$with_gnu_ld" && break
6304	;;
6305      *)
6306	test yes != "$with_gnu_ld" && break
6307	;;
6308      esac
6309    fi
6310  done
6311  IFS=$lt_save_ifs
6312else
6313  lt_cv_path_LD=$LD # Let the user override the test with a path.
6314fi
6315fi
6316
6317LD=$lt_cv_path_LD
6318if test -n "$LD"; then
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6320$as_echo "$LD" >&6; }
6321else
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323$as_echo "no" >&6; }
6324fi
6325test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6327$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6328if ${lt_cv_prog_gnu_ld+:} false; then :
6329  $as_echo_n "(cached) " >&6
6330else
6331  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6332case `$LD -v 2>&1 </dev/null` in
6333*GNU* | *'with BFD'*)
6334  lt_cv_prog_gnu_ld=yes
6335  ;;
6336*)
6337  lt_cv_prog_gnu_ld=no
6338  ;;
6339esac
6340fi
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6342$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6343with_gnu_ld=$lt_cv_prog_gnu_ld
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6354$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6355if ${lt_cv_path_NM+:} false; then :
6356  $as_echo_n "(cached) " >&6
6357else
6358  if test -n "$NM"; then
6359  # Let the user override the test.
6360  lt_cv_path_NM=$NM
6361else
6362  lt_nm_to_check=${ac_tool_prefix}nm
6363  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6364    lt_nm_to_check="$lt_nm_to_check nm"
6365  fi
6366  for lt_tmp_nm in $lt_nm_to_check; do
6367    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6368    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6369      IFS=$lt_save_ifs
6370      test -z "$ac_dir" && ac_dir=.
6371      tmp_nm=$ac_dir/$lt_tmp_nm
6372      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6373	# Check to see if the nm accepts a BSD-compat flag.
6374	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6375	#   nm: unknown option "B" ignored
6376	# Tru64's nm complains that /dev/null is an invalid object file
6377	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6378	case $build_os in
6379	mingw*) lt_bad_file=conftest.nm/nofile ;;
6380	*) lt_bad_file=/dev/null ;;
6381	esac
6382	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6383	*$lt_bad_file* | *'Invalid file or object type'*)
6384	  lt_cv_path_NM="$tmp_nm -B"
6385	  break 2
6386	  ;;
6387	*)
6388	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6389	  */dev/null*)
6390	    lt_cv_path_NM="$tmp_nm -p"
6391	    break 2
6392	    ;;
6393	  *)
6394	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6395	    continue # so that we can try to find one that supports BSD flags
6396	    ;;
6397	  esac
6398	  ;;
6399	esac
6400      fi
6401    done
6402    IFS=$lt_save_ifs
6403  done
6404  : ${lt_cv_path_NM=no}
6405fi
6406fi
6407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6408$as_echo "$lt_cv_path_NM" >&6; }
6409if test no != "$lt_cv_path_NM"; then
6410  NM=$lt_cv_path_NM
6411else
6412  # Didn't find any BSD compatible name lister, look for dumpbin.
6413  if test -n "$DUMPBIN"; then :
6414    # Let the user override the test.
6415  else
6416    if test -n "$ac_tool_prefix"; then
6417  for ac_prog in dumpbin "link -dump"
6418  do
6419    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6420set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422$as_echo_n "checking for $ac_word... " >&6; }
6423if ${ac_cv_prog_DUMPBIN+:} false; then :
6424  $as_echo_n "(cached) " >&6
6425else
6426  if test -n "$DUMPBIN"; then
6427  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6428else
6429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430for as_dir in $PATH
6431do
6432  IFS=$as_save_IFS
6433  test -z "$as_dir" && as_dir=.
6434    for ac_exec_ext in '' $ac_executable_extensions; do
6435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438    break 2
6439  fi
6440done
6441  done
6442IFS=$as_save_IFS
6443
6444fi
6445fi
6446DUMPBIN=$ac_cv_prog_DUMPBIN
6447if test -n "$DUMPBIN"; then
6448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6449$as_echo "$DUMPBIN" >&6; }
6450else
6451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452$as_echo "no" >&6; }
6453fi
6454
6455
6456    test -n "$DUMPBIN" && break
6457  done
6458fi
6459if test -z "$DUMPBIN"; then
6460  ac_ct_DUMPBIN=$DUMPBIN
6461  for ac_prog in dumpbin "link -dump"
6462do
6463  # Extract the first word of "$ac_prog", so it can be a program name with args.
6464set dummy $ac_prog; ac_word=$2
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
6467if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470  if test -n "$ac_ct_DUMPBIN"; then
6471  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476  IFS=$as_save_IFS
6477  test -z "$as_dir" && as_dir=.
6478    for ac_exec_ext in '' $ac_executable_extensions; do
6479  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6480    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482    break 2
6483  fi
6484done
6485  done
6486IFS=$as_save_IFS
6487
6488fi
6489fi
6490ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6491if test -n "$ac_ct_DUMPBIN"; then
6492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6493$as_echo "$ac_ct_DUMPBIN" >&6; }
6494else
6495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
6497fi
6498
6499
6500  test -n "$ac_ct_DUMPBIN" && break
6501done
6502
6503  if test "x$ac_ct_DUMPBIN" = x; then
6504    DUMPBIN=":"
6505  else
6506    case $cross_compiling:$ac_tool_warned in
6507yes:)
6508{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6510ac_tool_warned=yes ;;
6511esac
6512    DUMPBIN=$ac_ct_DUMPBIN
6513  fi
6514fi
6515
6516    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6517    *COFF*)
6518      DUMPBIN="$DUMPBIN -symbols -headers"
6519      ;;
6520    *)
6521      DUMPBIN=:
6522      ;;
6523    esac
6524  fi
6525
6526  if test : != "$DUMPBIN"; then
6527    NM=$DUMPBIN
6528  fi
6529fi
6530test -z "$NM" && NM=nm
6531
6532
6533
6534
6535
6536
6537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6538$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6539if ${lt_cv_nm_interface+:} false; then :
6540  $as_echo_n "(cached) " >&6
6541else
6542  lt_cv_nm_interface="BSD nm"
6543  echo "int some_variable = 0;" > conftest.$ac_ext
6544  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6545  (eval "$ac_compile" 2>conftest.err)
6546  cat conftest.err >&5
6547  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6548  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6549  cat conftest.err >&5
6550  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6551  cat conftest.out >&5
6552  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6553    lt_cv_nm_interface="MS dumpbin"
6554  fi
6555  rm -f conftest*
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6558$as_echo "$lt_cv_nm_interface" >&6; }
6559
6560# find the maximum length of command line arguments
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6562$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6563if ${lt_cv_sys_max_cmd_len+:} false; then :
6564  $as_echo_n "(cached) " >&6
6565else
6566    i=0
6567  teststring=ABCD
6568
6569  case $build_os in
6570  msdosdjgpp*)
6571    # On DJGPP, this test can blow up pretty badly due to problems in libc
6572    # (any single argument exceeding 2000 bytes causes a buffer overrun
6573    # during glob expansion).  Even if it were fixed, the result of this
6574    # check would be larger than it should be.
6575    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6576    ;;
6577
6578  gnu*)
6579    # Under GNU Hurd, this test is not required because there is
6580    # no limit to the length of command line arguments.
6581    # Libtool will interpret -1 as no limit whatsoever
6582    lt_cv_sys_max_cmd_len=-1;
6583    ;;
6584
6585  cygwin* | mingw* | cegcc*)
6586    # On Win9x/ME, this test blows up -- it succeeds, but takes
6587    # about 5 minutes as the teststring grows exponentially.
6588    # Worse, since 9x/ME are not pre-emptively multitasking,
6589    # you end up with a "frozen" computer, even though with patience
6590    # the test eventually succeeds (with a max line length of 256k).
6591    # Instead, let's just punt: use the minimum linelength reported by
6592    # all of the supported platforms: 8192 (on NT/2K/XP).
6593    lt_cv_sys_max_cmd_len=8192;
6594    ;;
6595
6596  mint*)
6597    # On MiNT this can take a long time and run out of memory.
6598    lt_cv_sys_max_cmd_len=8192;
6599    ;;
6600
6601  amigaos*)
6602    # On AmigaOS with pdksh, this test takes hours, literally.
6603    # So we just punt and use a minimum line length of 8192.
6604    lt_cv_sys_max_cmd_len=8192;
6605    ;;
6606
6607  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6608    # This has been around since 386BSD, at least.  Likely further.
6609    if test -x /sbin/sysctl; then
6610      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6611    elif test -x /usr/sbin/sysctl; then
6612      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6613    else
6614      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6615    fi
6616    # And add a safety zone
6617    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6618    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6619    ;;
6620
6621  interix*)
6622    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6623    lt_cv_sys_max_cmd_len=196608
6624    ;;
6625
6626  os2*)
6627    # The test takes a long time on OS/2.
6628    lt_cv_sys_max_cmd_len=8192
6629    ;;
6630
6631  osf*)
6632    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6633    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6634    # nice to cause kernel panics so lets avoid the loop below.
6635    # First set a reasonable default.
6636    lt_cv_sys_max_cmd_len=16384
6637    #
6638    if test -x /sbin/sysconfig; then
6639      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6640        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6641      esac
6642    fi
6643    ;;
6644  sco3.2v5*)
6645    lt_cv_sys_max_cmd_len=102400
6646    ;;
6647  sysv5* | sco5v6* | sysv4.2uw2*)
6648    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6649    if test -n "$kargmax"; then
6650      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6651    else
6652      lt_cv_sys_max_cmd_len=32768
6653    fi
6654    ;;
6655  *)
6656    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6657    if test -n "$lt_cv_sys_max_cmd_len" && \
6658       test undefined != "$lt_cv_sys_max_cmd_len"; then
6659      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6660      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6661    else
6662      # Make teststring a little bigger before we do anything with it.
6663      # a 1K string should be a reasonable start.
6664      for i in 1 2 3 4 5 6 7 8; do
6665        teststring=$teststring$teststring
6666      done
6667      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6668      # If test is not a shell built-in, we'll probably end up computing a
6669      # maximum length that is only half of the actual maximum length, but
6670      # we can't tell.
6671      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6672	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6673	      test 17 != "$i" # 1/2 MB should be enough
6674      do
6675        i=`expr $i + 1`
6676        teststring=$teststring$teststring
6677      done
6678      # Only check the string length outside the loop.
6679      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6680      teststring=
6681      # Add a significant safety factor because C++ compilers can tack on
6682      # massive amounts of additional arguments before passing them to the
6683      # linker.  It appears as though 1/2 is a usable value.
6684      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6685    fi
6686    ;;
6687  esac
6688
6689fi
6690
6691if test -n "$lt_cv_sys_max_cmd_len"; then
6692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6693$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6694else
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6696$as_echo "none" >&6; }
6697fi
6698max_cmd_len=$lt_cv_sys_max_cmd_len
6699
6700
6701
6702
6703
6704
6705: ${CP="cp -f"}
6706: ${MV="mv -f"}
6707: ${RM="rm -f"}
6708
6709if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6710  lt_unset=unset
6711else
6712  lt_unset=false
6713fi
6714
6715
6716
6717
6718
6719# test EBCDIC or ASCII
6720case `echo X|tr X '\101'` in
6721 A) # ASCII based system
6722    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6723  lt_SP2NL='tr \040 \012'
6724  lt_NL2SP='tr \015\012 \040\040'
6725  ;;
6726 *) # EBCDIC based system
6727  lt_SP2NL='tr \100 \n'
6728  lt_NL2SP='tr \r\n \100\100'
6729  ;;
6730esac
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6741$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6742if ${lt_cv_to_host_file_cmd+:} false; then :
6743  $as_echo_n "(cached) " >&6
6744else
6745  case $host in
6746  *-*-mingw* )
6747    case $build in
6748      *-*-mingw* ) # actually msys
6749        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6750        ;;
6751      *-*-cygwin* )
6752        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6753        ;;
6754      * ) # otherwise, assume *nix
6755        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6756        ;;
6757    esac
6758    ;;
6759  *-*-cygwin* )
6760    case $build in
6761      *-*-mingw* ) # actually msys
6762        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6763        ;;
6764      *-*-cygwin* )
6765        lt_cv_to_host_file_cmd=func_convert_file_noop
6766        ;;
6767      * ) # otherwise, assume *nix
6768        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6769        ;;
6770    esac
6771    ;;
6772  * ) # unhandled hosts (and "normal" native builds)
6773    lt_cv_to_host_file_cmd=func_convert_file_noop
6774    ;;
6775esac
6776
6777fi
6778
6779to_host_file_cmd=$lt_cv_to_host_file_cmd
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6781$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6782
6783
6784
6785
6786
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6788$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6789if ${lt_cv_to_tool_file_cmd+:} false; then :
6790  $as_echo_n "(cached) " >&6
6791else
6792  #assume ordinary cross tools, or native build.
6793lt_cv_to_tool_file_cmd=func_convert_file_noop
6794case $host in
6795  *-*-mingw* )
6796    case $build in
6797      *-*-mingw* ) # actually msys
6798        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6799        ;;
6800    esac
6801    ;;
6802esac
6803
6804fi
6805
6806to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6808$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6809
6810
6811
6812
6813
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6815$as_echo_n "checking for $LD option to reload object files... " >&6; }
6816if ${lt_cv_ld_reload_flag+:} false; then :
6817  $as_echo_n "(cached) " >&6
6818else
6819  lt_cv_ld_reload_flag='-r'
6820fi
6821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6822$as_echo "$lt_cv_ld_reload_flag" >&6; }
6823reload_flag=$lt_cv_ld_reload_flag
6824case $reload_flag in
6825"" | " "*) ;;
6826*) reload_flag=" $reload_flag" ;;
6827esac
6828reload_cmds='$LD$reload_flag -o $output$reload_objs'
6829case $host_os in
6830  cygwin* | mingw* | pw32* | cegcc*)
6831    if test yes != "$GCC"; then
6832      reload_cmds=false
6833    fi
6834    ;;
6835  darwin*)
6836    if test yes = "$GCC"; then
6837      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6838    else
6839      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6840    fi
6841    ;;
6842esac
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852if test -n "$ac_tool_prefix"; then
6853  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6854set dummy ${ac_tool_prefix}objdump; ac_word=$2
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856$as_echo_n "checking for $ac_word... " >&6; }
6857if ${ac_cv_prog_OBJDUMP+:} false; then :
6858  $as_echo_n "(cached) " >&6
6859else
6860  if test -n "$OBJDUMP"; then
6861  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6862else
6863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864for as_dir in $PATH
6865do
6866  IFS=$as_save_IFS
6867  test -z "$as_dir" && as_dir=.
6868    for ac_exec_ext in '' $ac_executable_extensions; do
6869  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6870    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6871    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872    break 2
6873  fi
6874done
6875  done
6876IFS=$as_save_IFS
6877
6878fi
6879fi
6880OBJDUMP=$ac_cv_prog_OBJDUMP
6881if test -n "$OBJDUMP"; then
6882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6883$as_echo "$OBJDUMP" >&6; }
6884else
6885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886$as_echo "no" >&6; }
6887fi
6888
6889
6890fi
6891if test -z "$ac_cv_prog_OBJDUMP"; then
6892  ac_ct_OBJDUMP=$OBJDUMP
6893  # Extract the first word of "objdump", so it can be a program name with args.
6894set dummy objdump; ac_word=$2
6895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896$as_echo_n "checking for $ac_word... " >&6; }
6897if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6898  $as_echo_n "(cached) " >&6
6899else
6900  if test -n "$ac_ct_OBJDUMP"; then
6901  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6902else
6903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904for as_dir in $PATH
6905do
6906  IFS=$as_save_IFS
6907  test -z "$as_dir" && as_dir=.
6908    for ac_exec_ext in '' $ac_executable_extensions; do
6909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6910    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912    break 2
6913  fi
6914done
6915  done
6916IFS=$as_save_IFS
6917
6918fi
6919fi
6920ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6921if test -n "$ac_ct_OBJDUMP"; then
6922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6923$as_echo "$ac_ct_OBJDUMP" >&6; }
6924else
6925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926$as_echo "no" >&6; }
6927fi
6928
6929  if test "x$ac_ct_OBJDUMP" = x; then
6930    OBJDUMP="false"
6931  else
6932    case $cross_compiling:$ac_tool_warned in
6933yes:)
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6935$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6936ac_tool_warned=yes ;;
6937esac
6938    OBJDUMP=$ac_ct_OBJDUMP
6939  fi
6940else
6941  OBJDUMP="$ac_cv_prog_OBJDUMP"
6942fi
6943
6944test -z "$OBJDUMP" && OBJDUMP=objdump
6945
6946
6947
6948
6949
6950
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6952$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6953if ${lt_cv_deplibs_check_method+:} false; then :
6954  $as_echo_n "(cached) " >&6
6955else
6956  lt_cv_file_magic_cmd='$MAGIC_CMD'
6957lt_cv_file_magic_test_file=
6958lt_cv_deplibs_check_method='unknown'
6959# Need to set the preceding variable on all platforms that support
6960# interlibrary dependencies.
6961# 'none' -- dependencies not supported.
6962# 'unknown' -- same as none, but documents that we really don't know.
6963# 'pass_all' -- all dependencies passed with no checks.
6964# 'test_compile' -- check by making test program.
6965# 'file_magic [[regex]]' -- check by looking for files in library path
6966# that responds to the $file_magic_cmd with a given extended regex.
6967# If you have 'file' or equivalent on your system and you're not sure
6968# whether 'pass_all' will *always* work, you probably want this one.
6969
6970case $host_os in
6971aix[4-9]*)
6972  lt_cv_deplibs_check_method=pass_all
6973  ;;
6974
6975beos*)
6976  lt_cv_deplibs_check_method=pass_all
6977  ;;
6978
6979bsdi[45]*)
6980  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6981  lt_cv_file_magic_cmd='/usr/bin/file -L'
6982  lt_cv_file_magic_test_file=/shlib/libc.so
6983  ;;
6984
6985cygwin*)
6986  # func_win32_libid is a shell function defined in ltmain.sh
6987  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6988  lt_cv_file_magic_cmd='func_win32_libid'
6989  ;;
6990
6991mingw* | pw32*)
6992  # Base MSYS/MinGW do not provide the 'file' command needed by
6993  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6994  # unless we find 'file', for example because we are cross-compiling.
6995  if ( file / ) >/dev/null 2>&1; then
6996    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6997    lt_cv_file_magic_cmd='func_win32_libid'
6998  else
6999    # Keep this pattern in sync with the one in func_win32_libid.
7000    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7001    lt_cv_file_magic_cmd='$OBJDUMP -f'
7002  fi
7003  ;;
7004
7005cegcc*)
7006  # use the weaker test based on 'objdump'. See mingw*.
7007  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7008  lt_cv_file_magic_cmd='$OBJDUMP -f'
7009  ;;
7010
7011darwin* | rhapsody*)
7012  lt_cv_deplibs_check_method=pass_all
7013  ;;
7014
7015freebsd* | dragonfly*)
7016  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7017    case $host_cpu in
7018    i*86 )
7019      # Not sure whether the presence of OpenBSD here was a mistake.
7020      # Let's accept both of them until this is cleared up.
7021      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7022      lt_cv_file_magic_cmd=/usr/bin/file
7023      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7024      ;;
7025    esac
7026  else
7027    lt_cv_deplibs_check_method=pass_all
7028  fi
7029  ;;
7030
7031haiku*)
7032  lt_cv_deplibs_check_method=pass_all
7033  ;;
7034
7035hpux10.20* | hpux11*)
7036  lt_cv_file_magic_cmd=/usr/bin/file
7037  case $host_cpu in
7038  ia64*)
7039    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7040    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7041    ;;
7042  hppa*64*)
7043    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]'
7044    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7045    ;;
7046  *)
7047    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7048    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7049    ;;
7050  esac
7051  ;;
7052
7053interix[3-9]*)
7054  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7055  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7056  ;;
7057
7058irix5* | irix6* | nonstopux*)
7059  case $LD in
7060  *-32|*"-32 ") libmagic=32-bit;;
7061  *-n32|*"-n32 ") libmagic=N32;;
7062  *-64|*"-64 ") libmagic=64-bit;;
7063  *) libmagic=never-match;;
7064  esac
7065  lt_cv_deplibs_check_method=pass_all
7066  ;;
7067
7068# This must be glibc/ELF.
7069linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7070  lt_cv_deplibs_check_method=pass_all
7071  ;;
7072
7073netbsd* | netbsdelf*-gnu)
7074  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7075    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7076  else
7077    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7078  fi
7079  ;;
7080
7081newos6*)
7082  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7083  lt_cv_file_magic_cmd=/usr/bin/file
7084  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7085  ;;
7086
7087*nto* | *qnx*)
7088  lt_cv_deplibs_check_method=pass_all
7089  ;;
7090
7091openbsd* | bitrig*)
7092  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7093    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7094  else
7095    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7096  fi
7097  ;;
7098
7099osf3* | osf4* | osf5*)
7100  lt_cv_deplibs_check_method=pass_all
7101  ;;
7102
7103rdos*)
7104  lt_cv_deplibs_check_method=pass_all
7105  ;;
7106
7107solaris*)
7108  lt_cv_deplibs_check_method=pass_all
7109  ;;
7110
7111sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7112  lt_cv_deplibs_check_method=pass_all
7113  ;;
7114
7115sysv4 | sysv4.3*)
7116  case $host_vendor in
7117  motorola)
7118    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]'
7119    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7120    ;;
7121  ncr)
7122    lt_cv_deplibs_check_method=pass_all
7123    ;;
7124  sequent)
7125    lt_cv_file_magic_cmd='/bin/file'
7126    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7127    ;;
7128  sni)
7129    lt_cv_file_magic_cmd='/bin/file'
7130    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7131    lt_cv_file_magic_test_file=/lib/libc.so
7132    ;;
7133  siemens)
7134    lt_cv_deplibs_check_method=pass_all
7135    ;;
7136  pc)
7137    lt_cv_deplibs_check_method=pass_all
7138    ;;
7139  esac
7140  ;;
7141
7142tpf*)
7143  lt_cv_deplibs_check_method=pass_all
7144  ;;
7145os2*)
7146  lt_cv_deplibs_check_method=pass_all
7147  ;;
7148esac
7149
7150fi
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7152$as_echo "$lt_cv_deplibs_check_method" >&6; }
7153
7154file_magic_glob=
7155want_nocaseglob=no
7156if test "$build" = "$host"; then
7157  case $host_os in
7158  mingw* | pw32*)
7159    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7160      want_nocaseglob=yes
7161    else
7162      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7163    fi
7164    ;;
7165  esac
7166fi
7167
7168file_magic_cmd=$lt_cv_file_magic_cmd
7169deplibs_check_method=$lt_cv_deplibs_check_method
7170test -z "$deplibs_check_method" && deplibs_check_method=unknown
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193if test -n "$ac_tool_prefix"; then
7194  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7195set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197$as_echo_n "checking for $ac_word... " >&6; }
7198if ${ac_cv_prog_DLLTOOL+:} false; then :
7199  $as_echo_n "(cached) " >&6
7200else
7201  if test -n "$DLLTOOL"; then
7202  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7203else
7204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205for as_dir in $PATH
7206do
7207  IFS=$as_save_IFS
7208  test -z "$as_dir" && as_dir=.
7209    for ac_exec_ext in '' $ac_executable_extensions; do
7210  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213    break 2
7214  fi
7215done
7216  done
7217IFS=$as_save_IFS
7218
7219fi
7220fi
7221DLLTOOL=$ac_cv_prog_DLLTOOL
7222if test -n "$DLLTOOL"; then
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7224$as_echo "$DLLTOOL" >&6; }
7225else
7226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227$as_echo "no" >&6; }
7228fi
7229
7230
7231fi
7232if test -z "$ac_cv_prog_DLLTOOL"; then
7233  ac_ct_DLLTOOL=$DLLTOOL
7234  # Extract the first word of "dlltool", so it can be a program name with args.
7235set dummy dlltool; ac_word=$2
7236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237$as_echo_n "checking for $ac_word... " >&6; }
7238if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7239  $as_echo_n "(cached) " >&6
7240else
7241  if test -n "$ac_ct_DLLTOOL"; then
7242  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7243else
7244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245for as_dir in $PATH
7246do
7247  IFS=$as_save_IFS
7248  test -z "$as_dir" && as_dir=.
7249    for ac_exec_ext in '' $ac_executable_extensions; do
7250  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7252    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253    break 2
7254  fi
7255done
7256  done
7257IFS=$as_save_IFS
7258
7259fi
7260fi
7261ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7262if test -n "$ac_ct_DLLTOOL"; then
7263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7264$as_echo "$ac_ct_DLLTOOL" >&6; }
7265else
7266  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267$as_echo "no" >&6; }
7268fi
7269
7270  if test "x$ac_ct_DLLTOOL" = x; then
7271    DLLTOOL="false"
7272  else
7273    case $cross_compiling:$ac_tool_warned in
7274yes:)
7275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277ac_tool_warned=yes ;;
7278esac
7279    DLLTOOL=$ac_ct_DLLTOOL
7280  fi
7281else
7282  DLLTOOL="$ac_cv_prog_DLLTOOL"
7283fi
7284
7285test -z "$DLLTOOL" && DLLTOOL=dlltool
7286
7287
7288
7289
7290
7291
7292
7293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7294$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7295if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7296  $as_echo_n "(cached) " >&6
7297else
7298  lt_cv_sharedlib_from_linklib_cmd='unknown'
7299
7300case $host_os in
7301cygwin* | mingw* | pw32* | cegcc*)
7302  # two different shell functions defined in ltmain.sh;
7303  # decide which one to use based on capabilities of $DLLTOOL
7304  case `$DLLTOOL --help 2>&1` in
7305  *--identify-strict*)
7306    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7307    ;;
7308  *)
7309    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7310    ;;
7311  esac
7312  ;;
7313*)
7314  # fallback: assume linklib IS sharedlib
7315  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7316  ;;
7317esac
7318
7319fi
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7321$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7322sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7323test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7324
7325
7326
7327
7328
7329
7330
7331if test -n "$ac_tool_prefix"; then
7332  for ac_prog in ar
7333  do
7334    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7335set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337$as_echo_n "checking for $ac_word... " >&6; }
7338if ${ac_cv_prog_AR+:} false; then :
7339  $as_echo_n "(cached) " >&6
7340else
7341  if test -n "$AR"; then
7342  ac_cv_prog_AR="$AR" # Let the user override the test.
7343else
7344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7345for as_dir in $PATH
7346do
7347  IFS=$as_save_IFS
7348  test -z "$as_dir" && as_dir=.
7349    for ac_exec_ext in '' $ac_executable_extensions; do
7350  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7352    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7353    break 2
7354  fi
7355done
7356  done
7357IFS=$as_save_IFS
7358
7359fi
7360fi
7361AR=$ac_cv_prog_AR
7362if test -n "$AR"; then
7363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7364$as_echo "$AR" >&6; }
7365else
7366  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367$as_echo "no" >&6; }
7368fi
7369
7370
7371    test -n "$AR" && break
7372  done
7373fi
7374if test -z "$AR"; then
7375  ac_ct_AR=$AR
7376  for ac_prog in ar
7377do
7378  # Extract the first word of "$ac_prog", so it can be a program name with args.
7379set dummy $ac_prog; ac_word=$2
7380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7381$as_echo_n "checking for $ac_word... " >&6; }
7382if ${ac_cv_prog_ac_ct_AR+:} false; then :
7383  $as_echo_n "(cached) " >&6
7384else
7385  if test -n "$ac_ct_AR"; then
7386  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7387else
7388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389for as_dir in $PATH
7390do
7391  IFS=$as_save_IFS
7392  test -z "$as_dir" && as_dir=.
7393    for ac_exec_ext in '' $ac_executable_extensions; do
7394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395    ac_cv_prog_ac_ct_AR="$ac_prog"
7396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7397    break 2
7398  fi
7399done
7400  done
7401IFS=$as_save_IFS
7402
7403fi
7404fi
7405ac_ct_AR=$ac_cv_prog_ac_ct_AR
7406if test -n "$ac_ct_AR"; then
7407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7408$as_echo "$ac_ct_AR" >&6; }
7409else
7410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7411$as_echo "no" >&6; }
7412fi
7413
7414
7415  test -n "$ac_ct_AR" && break
7416done
7417
7418  if test "x$ac_ct_AR" = x; then
7419    AR="false"
7420  else
7421    case $cross_compiling:$ac_tool_warned in
7422yes:)
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425ac_tool_warned=yes ;;
7426esac
7427    AR=$ac_ct_AR
7428  fi
7429fi
7430
7431: ${AR=ar}
7432: ${AR_FLAGS=cru}
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7445$as_echo_n "checking for archiver @FILE support... " >&6; }
7446if ${lt_cv_ar_at_file+:} false; then :
7447  $as_echo_n "(cached) " >&6
7448else
7449  lt_cv_ar_at_file=no
7450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451/* end confdefs.h.  */
7452
7453int
7454main ()
7455{
7456
7457  ;
7458  return 0;
7459}
7460_ACEOF
7461if ac_fn_c_try_compile "$LINENO"; then :
7462  echo conftest.$ac_objext > conftest.lst
7463      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7464      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7465  (eval $lt_ar_try) 2>&5
7466  ac_status=$?
7467  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468  test $ac_status = 0; }
7469      if test 0 -eq "$ac_status"; then
7470	# Ensure the archiver fails upon bogus file names.
7471	rm -f conftest.$ac_objext libconftest.a
7472	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7473  (eval $lt_ar_try) 2>&5
7474  ac_status=$?
7475  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476  test $ac_status = 0; }
7477	if test 0 -ne "$ac_status"; then
7478          lt_cv_ar_at_file=@
7479        fi
7480      fi
7481      rm -f conftest.* libconftest.a
7482
7483fi
7484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485
7486fi
7487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7488$as_echo "$lt_cv_ar_at_file" >&6; }
7489
7490if test no = "$lt_cv_ar_at_file"; then
7491  archiver_list_spec=
7492else
7493  archiver_list_spec=$lt_cv_ar_at_file
7494fi
7495
7496
7497
7498
7499
7500
7501
7502if test -n "$ac_tool_prefix"; then
7503  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7504set dummy ${ac_tool_prefix}strip; ac_word=$2
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506$as_echo_n "checking for $ac_word... " >&6; }
7507if ${ac_cv_prog_STRIP+:} false; then :
7508  $as_echo_n "(cached) " >&6
7509else
7510  if test -n "$STRIP"; then
7511  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7512else
7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516  IFS=$as_save_IFS
7517  test -z "$as_dir" && as_dir=.
7518    for ac_exec_ext in '' $ac_executable_extensions; do
7519  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7520    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522    break 2
7523  fi
7524done
7525  done
7526IFS=$as_save_IFS
7527
7528fi
7529fi
7530STRIP=$ac_cv_prog_STRIP
7531if test -n "$STRIP"; then
7532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7533$as_echo "$STRIP" >&6; }
7534else
7535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536$as_echo "no" >&6; }
7537fi
7538
7539
7540fi
7541if test -z "$ac_cv_prog_STRIP"; then
7542  ac_ct_STRIP=$STRIP
7543  # Extract the first word of "strip", so it can be a program name with args.
7544set dummy strip; ac_word=$2
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546$as_echo_n "checking for $ac_word... " >&6; }
7547if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  if test -n "$ac_ct_STRIP"; then
7551  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556  IFS=$as_save_IFS
7557  test -z "$as_dir" && as_dir=.
7558    for ac_exec_ext in '' $ac_executable_extensions; do
7559  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7560    ac_cv_prog_ac_ct_STRIP="strip"
7561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562    break 2
7563  fi
7564done
7565  done
7566IFS=$as_save_IFS
7567
7568fi
7569fi
7570ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7571if test -n "$ac_ct_STRIP"; then
7572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7573$as_echo "$ac_ct_STRIP" >&6; }
7574else
7575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576$as_echo "no" >&6; }
7577fi
7578
7579  if test "x$ac_ct_STRIP" = x; then
7580    STRIP=":"
7581  else
7582    case $cross_compiling:$ac_tool_warned in
7583yes:)
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586ac_tool_warned=yes ;;
7587esac
7588    STRIP=$ac_ct_STRIP
7589  fi
7590else
7591  STRIP="$ac_cv_prog_STRIP"
7592fi
7593
7594test -z "$STRIP" && STRIP=:
7595
7596
7597
7598
7599
7600
7601if test -n "$ac_tool_prefix"; then
7602  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7603set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605$as_echo_n "checking for $ac_word... " >&6; }
7606if ${ac_cv_prog_RANLIB+:} false; then :
7607  $as_echo_n "(cached) " >&6
7608else
7609  if test -n "$RANLIB"; then
7610  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7611else
7612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613for as_dir in $PATH
7614do
7615  IFS=$as_save_IFS
7616  test -z "$as_dir" && as_dir=.
7617    for ac_exec_ext in '' $ac_executable_extensions; do
7618  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621    break 2
7622  fi
7623done
7624  done
7625IFS=$as_save_IFS
7626
7627fi
7628fi
7629RANLIB=$ac_cv_prog_RANLIB
7630if test -n "$RANLIB"; then
7631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7632$as_echo "$RANLIB" >&6; }
7633else
7634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635$as_echo "no" >&6; }
7636fi
7637
7638
7639fi
7640if test -z "$ac_cv_prog_RANLIB"; then
7641  ac_ct_RANLIB=$RANLIB
7642  # Extract the first word of "ranlib", so it can be a program name with args.
7643set dummy ranlib; ac_word=$2
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7645$as_echo_n "checking for $ac_word... " >&6; }
7646if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7647  $as_echo_n "(cached) " >&6
7648else
7649  if test -n "$ac_ct_RANLIB"; then
7650  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7651else
7652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653for as_dir in $PATH
7654do
7655  IFS=$as_save_IFS
7656  test -z "$as_dir" && as_dir=.
7657    for ac_exec_ext in '' $ac_executable_extensions; do
7658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659    ac_cv_prog_ac_ct_RANLIB="ranlib"
7660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661    break 2
7662  fi
7663done
7664  done
7665IFS=$as_save_IFS
7666
7667fi
7668fi
7669ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7670if test -n "$ac_ct_RANLIB"; then
7671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7672$as_echo "$ac_ct_RANLIB" >&6; }
7673else
7674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7675$as_echo "no" >&6; }
7676fi
7677
7678  if test "x$ac_ct_RANLIB" = x; then
7679    RANLIB=":"
7680  else
7681    case $cross_compiling:$ac_tool_warned in
7682yes:)
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7685ac_tool_warned=yes ;;
7686esac
7687    RANLIB=$ac_ct_RANLIB
7688  fi
7689else
7690  RANLIB="$ac_cv_prog_RANLIB"
7691fi
7692
7693test -z "$RANLIB" && RANLIB=:
7694
7695
7696
7697
7698
7699
7700# Determine commands to create old-style static archives.
7701old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7702old_postinstall_cmds='chmod 644 $oldlib'
7703old_postuninstall_cmds=
7704
7705if test -n "$RANLIB"; then
7706  case $host_os in
7707  bitrig* | openbsd*)
7708    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7709    ;;
7710  *)
7711    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7712    ;;
7713  esac
7714  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7715fi
7716
7717case $host_os in
7718  darwin*)
7719    lock_old_archive_extraction=yes ;;
7720  *)
7721    lock_old_archive_extraction=no ;;
7722esac
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762# If no C compiler was specified, use CC.
7763LTCC=${LTCC-"$CC"}
7764
7765# If no C compiler flags were specified, use CFLAGS.
7766LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7767
7768# Allow CC to be a program name with arguments.
7769compiler=$CC
7770
7771
7772# Check for command to grab the raw symbol name followed by C symbol from nm.
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7774$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7775if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7776  $as_echo_n "(cached) " >&6
7777else
7778
7779# These are sane defaults that work on at least a few old systems.
7780# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7781
7782# Character class describing NM global symbol codes.
7783symcode='[BCDEGRST]'
7784
7785# Regexp to match symbols that can be accessed directly from C.
7786sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7787
7788# Define system-specific variables.
7789case $host_os in
7790aix*)
7791  symcode='[BCDT]'
7792  ;;
7793cygwin* | mingw* | pw32* | cegcc*)
7794  symcode='[ABCDGISTW]'
7795  ;;
7796hpux*)
7797  if test ia64 = "$host_cpu"; then
7798    symcode='[ABCDEGRST]'
7799  fi
7800  ;;
7801irix* | nonstopux*)
7802  symcode='[BCDEGRST]'
7803  ;;
7804osf*)
7805  symcode='[BCDEGQRST]'
7806  ;;
7807solaris*)
7808  symcode='[BDRT]'
7809  ;;
7810sco3.2v5*)
7811  symcode='[DT]'
7812  ;;
7813sysv4.2uw2*)
7814  symcode='[DT]'
7815  ;;
7816sysv5* | sco5v6* | unixware* | OpenUNIX*)
7817  symcode='[ABDT]'
7818  ;;
7819sysv4)
7820  symcode='[DFNSTU]'
7821  ;;
7822esac
7823
7824# If we're using GNU nm, then use its standard symbol codes.
7825case `$NM -V 2>&1` in
7826*GNU* | *'with BFD'*)
7827  symcode='[ABCDGIRSTW]' ;;
7828esac
7829
7830if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7831  # Gets list of data symbols to import.
7832  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7833  # Adjust the below global symbol transforms to fixup imported variables.
7834  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7835  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7836  lt_c_name_lib_hook="\
7837  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7838  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7839else
7840  # Disable hooks by default.
7841  lt_cv_sys_global_symbol_to_import=
7842  lt_cdecl_hook=
7843  lt_c_name_hook=
7844  lt_c_name_lib_hook=
7845fi
7846
7847# Transform an extracted symbol line into a proper C declaration.
7848# Some systems (esp. on ia64) link data and code symbols differently,
7849# so use this general approach.
7850lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7851$lt_cdecl_hook\
7852" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7853" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7854
7855# Transform an extracted symbol line into symbol name and symbol address
7856lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7857$lt_c_name_hook\
7858" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7859" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7860
7861# Transform an extracted symbol line into symbol name with lib prefix and
7862# symbol address.
7863lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7864$lt_c_name_lib_hook\
7865" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7866" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7867" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7868
7869# Handle CRLF in mingw tool chain
7870opt_cr=
7871case $build_os in
7872mingw*)
7873  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7874  ;;
7875esac
7876
7877# Try without a prefix underscore, then with it.
7878for ac_symprfx in "" "_"; do
7879
7880  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7881  symxfrm="\\1 $ac_symprfx\\2 \\2"
7882
7883  # Write the raw and C identifiers.
7884  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7885    # Fake it for dumpbin and say T for any non-static function,
7886    # D for any global variable and I for any imported variable.
7887    # Also find C++ and __fastcall symbols from MSVC++,
7888    # which start with @ or ?.
7889    lt_cv_sys_global_symbol_pipe="$AWK '"\
7890"     {last_section=section; section=\$ 3};"\
7891"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7892"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7893"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7894"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7895"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7896"     \$ 0!~/External *\|/{next};"\
7897"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7898"     {if(hide[section]) next};"\
7899"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7900"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7901"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7902"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7903"     ' prfx=^$ac_symprfx"
7904  else
7905    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7906  fi
7907  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7908
7909  # Check to see that the pipe works correctly.
7910  pipe_works=no
7911
7912  rm -f conftest*
7913  cat > conftest.$ac_ext <<_LT_EOF
7914#ifdef __cplusplus
7915extern "C" {
7916#endif
7917char nm_test_var;
7918void nm_test_func(void);
7919void nm_test_func(void){}
7920#ifdef __cplusplus
7921}
7922#endif
7923int main(){nm_test_var='a';nm_test_func();return(0);}
7924_LT_EOF
7925
7926  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7927  (eval $ac_compile) 2>&5
7928  ac_status=$?
7929  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7930  test $ac_status = 0; }; then
7931    # Now try to grab the symbols.
7932    nlist=conftest.nm
7933    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7934    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7935      # Try sorting and uniquifying the output.
7936      if sort "$nlist" | uniq > "$nlist"T; then
7937	mv -f "$nlist"T "$nlist"
7938      else
7939	rm -f "$nlist"T
7940      fi
7941
7942      # Make sure that we snagged all the symbols we need.
7943      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7944	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7945	  cat <<_LT_EOF > conftest.$ac_ext
7946/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7947#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7948/* DATA imports from DLLs on WIN32 can't be const, because runtime
7949   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7950# define LT_DLSYM_CONST
7951#elif defined __osf__
7952/* This system does not cope well with relocations in const data.  */
7953# define LT_DLSYM_CONST
7954#else
7955# define LT_DLSYM_CONST const
7956#endif
7957
7958#ifdef __cplusplus
7959extern "C" {
7960#endif
7961
7962_LT_EOF
7963	  # Now generate the symbol file.
7964	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7965
7966	  cat <<_LT_EOF >> conftest.$ac_ext
7967
7968/* The mapping between symbol names and symbols.  */
7969LT_DLSYM_CONST struct {
7970  const char *name;
7971  void       *address;
7972}
7973lt__PROGRAM__LTX_preloaded_symbols[] =
7974{
7975  { "@PROGRAM@", (void *) 0 },
7976_LT_EOF
7977	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7978	  cat <<\_LT_EOF >> conftest.$ac_ext
7979  {0, (void *) 0}
7980};
7981
7982/* This works around a problem in FreeBSD linker */
7983#ifdef FREEBSD_WORKAROUND
7984static const void *lt_preloaded_setup() {
7985  return lt__PROGRAM__LTX_preloaded_symbols;
7986}
7987#endif
7988
7989#ifdef __cplusplus
7990}
7991#endif
7992_LT_EOF
7993	  # Now try linking the two files.
7994	  mv conftest.$ac_objext conftstm.$ac_objext
7995	  lt_globsym_save_LIBS=$LIBS
7996	  lt_globsym_save_CFLAGS=$CFLAGS
7997	  LIBS=conftstm.$ac_objext
7998	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7999	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8000  (eval $ac_link) 2>&5
8001  ac_status=$?
8002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8003  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8004	    pipe_works=yes
8005	  fi
8006	  LIBS=$lt_globsym_save_LIBS
8007	  CFLAGS=$lt_globsym_save_CFLAGS
8008	else
8009	  echo "cannot find nm_test_func in $nlist" >&5
8010	fi
8011      else
8012	echo "cannot find nm_test_var in $nlist" >&5
8013      fi
8014    else
8015      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8016    fi
8017  else
8018    echo "$progname: failed program was:" >&5
8019    cat conftest.$ac_ext >&5
8020  fi
8021  rm -rf conftest* conftst*
8022
8023  # Do not use the global_symbol_pipe unless it works.
8024  if test yes = "$pipe_works"; then
8025    break
8026  else
8027    lt_cv_sys_global_symbol_pipe=
8028  fi
8029done
8030
8031fi
8032
8033if test -z "$lt_cv_sys_global_symbol_pipe"; then
8034  lt_cv_sys_global_symbol_to_cdecl=
8035fi
8036if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8038$as_echo "failed" >&6; }
8039else
8040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8041$as_echo "ok" >&6; }
8042fi
8043
8044# Response file support.
8045if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8046  nm_file_list_spec='@'
8047elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8048  nm_file_list_spec='@'
8049fi
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8088$as_echo_n "checking for sysroot... " >&6; }
8089
8090# Check whether --with-sysroot was given.
8091if test "${with_sysroot+set}" = set; then :
8092  withval=$with_sysroot;
8093else
8094  with_sysroot=no
8095fi
8096
8097
8098lt_sysroot=
8099case $with_sysroot in #(
8100 yes)
8101   if test yes = "$GCC"; then
8102     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8103   fi
8104   ;; #(
8105 /*)
8106   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8107   ;; #(
8108 no|'')
8109   ;; #(
8110 *)
8111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8112$as_echo "$with_sysroot" >&6; }
8113   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8114   ;;
8115esac
8116
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8118$as_echo "${lt_sysroot:-no}" >&6; }
8119
8120
8121
8122
8123
8124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8125$as_echo_n "checking for a working dd... " >&6; }
8126if ${ac_cv_path_lt_DD+:} false; then :
8127  $as_echo_n "(cached) " >&6
8128else
8129  printf 0123456789abcdef0123456789abcdef >conftest.i
8130cat conftest.i conftest.i >conftest2.i
8131: ${lt_DD:=$DD}
8132if test -z "$lt_DD"; then
8133  ac_path_lt_DD_found=false
8134  # Loop through the user's path and test for each of PROGNAME-LIST
8135  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136for as_dir in $PATH
8137do
8138  IFS=$as_save_IFS
8139  test -z "$as_dir" && as_dir=.
8140    for ac_prog in dd; do
8141    for ac_exec_ext in '' $ac_executable_extensions; do
8142      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8143      as_fn_executable_p "$ac_path_lt_DD" || continue
8144if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8145  cmp -s conftest.i conftest.out \
8146  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8147fi
8148      $ac_path_lt_DD_found && break 3
8149    done
8150  done
8151  done
8152IFS=$as_save_IFS
8153  if test -z "$ac_cv_path_lt_DD"; then
8154    :
8155  fi
8156else
8157  ac_cv_path_lt_DD=$lt_DD
8158fi
8159
8160rm -f conftest.i conftest2.i conftest.out
8161fi
8162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8163$as_echo "$ac_cv_path_lt_DD" >&6; }
8164
8165
8166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8167$as_echo_n "checking how to truncate binary pipes... " >&6; }
8168if ${lt_cv_truncate_bin+:} false; then :
8169  $as_echo_n "(cached) " >&6
8170else
8171  printf 0123456789abcdef0123456789abcdef >conftest.i
8172cat conftest.i conftest.i >conftest2.i
8173lt_cv_truncate_bin=
8174if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8175  cmp -s conftest.i conftest.out \
8176  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8177fi
8178rm -f conftest.i conftest2.i conftest.out
8179test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8180fi
8181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8182$as_echo "$lt_cv_truncate_bin" >&6; }
8183
8184
8185
8186
8187
8188
8189
8190# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8191func_cc_basename ()
8192{
8193    for cc_temp in $*""; do
8194      case $cc_temp in
8195        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8196        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8197        \-*) ;;
8198        *) break;;
8199      esac
8200    done
8201    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8202}
8203
8204# Check whether --enable-libtool-lock was given.
8205if test "${enable_libtool_lock+set}" = set; then :
8206  enableval=$enable_libtool_lock;
8207fi
8208
8209test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8210
8211# Some flags need to be propagated to the compiler or linker for good
8212# libtool support.
8213case $host in
8214ia64-*-hpux*)
8215  # Find out what ABI is being produced by ac_compile, and set mode
8216  # options accordingly.
8217  echo 'int i;' > conftest.$ac_ext
8218  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8219  (eval $ac_compile) 2>&5
8220  ac_status=$?
8221  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8222  test $ac_status = 0; }; then
8223    case `/usr/bin/file conftest.$ac_objext` in
8224      *ELF-32*)
8225	HPUX_IA64_MODE=32
8226	;;
8227      *ELF-64*)
8228	HPUX_IA64_MODE=64
8229	;;
8230    esac
8231  fi
8232  rm -rf conftest*
8233  ;;
8234*-*-irix6*)
8235  # Find out what ABI is being produced by ac_compile, and set linker
8236  # options accordingly.
8237  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8238  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8239  (eval $ac_compile) 2>&5
8240  ac_status=$?
8241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8242  test $ac_status = 0; }; then
8243    if test yes = "$lt_cv_prog_gnu_ld"; then
8244      case `/usr/bin/file conftest.$ac_objext` in
8245	*32-bit*)
8246	  LD="${LD-ld} -melf32bsmip"
8247	  ;;
8248	*N32*)
8249	  LD="${LD-ld} -melf32bmipn32"
8250	  ;;
8251	*64-bit*)
8252	  LD="${LD-ld} -melf64bmip"
8253	;;
8254      esac
8255    else
8256      case `/usr/bin/file conftest.$ac_objext` in
8257	*32-bit*)
8258	  LD="${LD-ld} -32"
8259	  ;;
8260	*N32*)
8261	  LD="${LD-ld} -n32"
8262	  ;;
8263	*64-bit*)
8264	  LD="${LD-ld} -64"
8265	  ;;
8266      esac
8267    fi
8268  fi
8269  rm -rf conftest*
8270  ;;
8271
8272mips64*-*linux*)
8273  # Find out what ABI is being produced by ac_compile, and set linker
8274  # options accordingly.
8275  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8276  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8277  (eval $ac_compile) 2>&5
8278  ac_status=$?
8279  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8280  test $ac_status = 0; }; then
8281    emul=elf
8282    case `/usr/bin/file conftest.$ac_objext` in
8283      *32-bit*)
8284	emul="${emul}32"
8285	;;
8286      *64-bit*)
8287	emul="${emul}64"
8288	;;
8289    esac
8290    case `/usr/bin/file conftest.$ac_objext` in
8291      *MSB*)
8292	emul="${emul}btsmip"
8293	;;
8294      *LSB*)
8295	emul="${emul}ltsmip"
8296	;;
8297    esac
8298    case `/usr/bin/file conftest.$ac_objext` in
8299      *N32*)
8300	emul="${emul}n32"
8301	;;
8302    esac
8303    LD="${LD-ld} -m $emul"
8304  fi
8305  rm -rf conftest*
8306  ;;
8307
8308x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8309s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8310  # Find out what ABI is being produced by ac_compile, and set linker
8311  # options accordingly.  Note that the listed cases only cover the
8312  # situations where additional linker options are needed (such as when
8313  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8314  # vice versa); the common cases where no linker options are needed do
8315  # not appear in the list.
8316  echo 'int i;' > conftest.$ac_ext
8317  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8318  (eval $ac_compile) 2>&5
8319  ac_status=$?
8320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8321  test $ac_status = 0; }; then
8322    case `/usr/bin/file conftest.o` in
8323      *32-bit*)
8324	case $host in
8325	  x86_64-*kfreebsd*-gnu)
8326	    LD="${LD-ld} -m elf_i386_fbsd"
8327	    ;;
8328	  x86_64-*linux*)
8329	    case `/usr/bin/file conftest.o` in
8330	      *x86-64*)
8331		LD="${LD-ld} -m elf32_x86_64"
8332		;;
8333	      *)
8334		LD="${LD-ld} -m elf_i386"
8335		;;
8336	    esac
8337	    ;;
8338	  powerpc64le-*linux*)
8339	    LD="${LD-ld} -m elf32lppclinux"
8340	    ;;
8341	  powerpc64-*linux*)
8342	    LD="${LD-ld} -m elf32ppclinux"
8343	    ;;
8344	  s390x-*linux*)
8345	    LD="${LD-ld} -m elf_s390"
8346	    ;;
8347	  sparc64-*linux*)
8348	    LD="${LD-ld} -m elf32_sparc"
8349	    ;;
8350	esac
8351	;;
8352      *64-bit*)
8353	case $host in
8354	  x86_64-*kfreebsd*-gnu)
8355	    LD="${LD-ld} -m elf_x86_64_fbsd"
8356	    ;;
8357	  x86_64-*linux*)
8358	    LD="${LD-ld} -m elf_x86_64"
8359	    ;;
8360	  powerpcle-*linux*)
8361	    LD="${LD-ld} -m elf64lppc"
8362	    ;;
8363	  powerpc-*linux*)
8364	    LD="${LD-ld} -m elf64ppc"
8365	    ;;
8366	  s390*-*linux*|s390*-*tpf*)
8367	    LD="${LD-ld} -m elf64_s390"
8368	    ;;
8369	  sparc*-*linux*)
8370	    LD="${LD-ld} -m elf64_sparc"
8371	    ;;
8372	esac
8373	;;
8374    esac
8375  fi
8376  rm -rf conftest*
8377  ;;
8378
8379*-*-sco3.2v5*)
8380  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8381  SAVE_CFLAGS=$CFLAGS
8382  CFLAGS="$CFLAGS -belf"
8383  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8384$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8385if ${lt_cv_cc_needs_belf+:} false; then :
8386  $as_echo_n "(cached) " >&6
8387else
8388  ac_ext=c
8389ac_cpp='$CPP $CPPFLAGS'
8390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8392ac_compiler_gnu=$ac_cv_c_compiler_gnu
8393
8394     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395/* end confdefs.h.  */
8396
8397int
8398main ()
8399{
8400
8401  ;
8402  return 0;
8403}
8404_ACEOF
8405if ac_fn_c_try_link "$LINENO"; then :
8406  lt_cv_cc_needs_belf=yes
8407else
8408  lt_cv_cc_needs_belf=no
8409fi
8410rm -f core conftest.err conftest.$ac_objext \
8411    conftest$ac_exeext conftest.$ac_ext
8412     ac_ext=c
8413ac_cpp='$CPP $CPPFLAGS'
8414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8416ac_compiler_gnu=$ac_cv_c_compiler_gnu
8417
8418fi
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8420$as_echo "$lt_cv_cc_needs_belf" >&6; }
8421  if test yes != "$lt_cv_cc_needs_belf"; then
8422    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8423    CFLAGS=$SAVE_CFLAGS
8424  fi
8425  ;;
8426*-*solaris*)
8427  # Find out what ABI is being produced by ac_compile, and set linker
8428  # options accordingly.
8429  echo 'int i;' > conftest.$ac_ext
8430  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8431  (eval $ac_compile) 2>&5
8432  ac_status=$?
8433  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8434  test $ac_status = 0; }; then
8435    case `/usr/bin/file conftest.o` in
8436    *64-bit*)
8437      case $lt_cv_prog_gnu_ld in
8438      yes*)
8439        case $host in
8440        i?86-*-solaris*|x86_64-*-solaris*)
8441          LD="${LD-ld} -m elf_x86_64"
8442          ;;
8443        sparc*-*-solaris*)
8444          LD="${LD-ld} -m elf64_sparc"
8445          ;;
8446        esac
8447        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8448        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8449          LD=${LD-ld}_sol2
8450        fi
8451        ;;
8452      *)
8453	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8454	  LD="${LD-ld} -64"
8455	fi
8456	;;
8457      esac
8458      ;;
8459    esac
8460  fi
8461  rm -rf conftest*
8462  ;;
8463esac
8464
8465need_locks=$enable_libtool_lock
8466
8467if test -n "$ac_tool_prefix"; then
8468  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8469set dummy ${ac_tool_prefix}mt; ac_word=$2
8470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471$as_echo_n "checking for $ac_word... " >&6; }
8472if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  if test -n "$MANIFEST_TOOL"; then
8476  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8477else
8478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479for as_dir in $PATH
8480do
8481  IFS=$as_save_IFS
8482  test -z "$as_dir" && as_dir=.
8483    for ac_exec_ext in '' $ac_executable_extensions; do
8484  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487    break 2
8488  fi
8489done
8490  done
8491IFS=$as_save_IFS
8492
8493fi
8494fi
8495MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8496if test -n "$MANIFEST_TOOL"; then
8497  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8498$as_echo "$MANIFEST_TOOL" >&6; }
8499else
8500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501$as_echo "no" >&6; }
8502fi
8503
8504
8505fi
8506if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8507  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8508  # Extract the first word of "mt", so it can be a program name with args.
8509set dummy mt; ac_word=$2
8510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511$as_echo_n "checking for $ac_word... " >&6; }
8512if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8513  $as_echo_n "(cached) " >&6
8514else
8515  if test -n "$ac_ct_MANIFEST_TOOL"; then
8516  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8517else
8518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8519for as_dir in $PATH
8520do
8521  IFS=$as_save_IFS
8522  test -z "$as_dir" && as_dir=.
8523    for ac_exec_ext in '' $ac_executable_extensions; do
8524  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8525    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8526    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8527    break 2
8528  fi
8529done
8530  done
8531IFS=$as_save_IFS
8532
8533fi
8534fi
8535ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8536if test -n "$ac_ct_MANIFEST_TOOL"; then
8537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8538$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8539else
8540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8541$as_echo "no" >&6; }
8542fi
8543
8544  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8545    MANIFEST_TOOL=":"
8546  else
8547    case $cross_compiling:$ac_tool_warned in
8548yes:)
8549{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8550$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8551ac_tool_warned=yes ;;
8552esac
8553    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8554  fi
8555else
8556  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8557fi
8558
8559test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8561$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8562if ${lt_cv_path_mainfest_tool+:} false; then :
8563  $as_echo_n "(cached) " >&6
8564else
8565  lt_cv_path_mainfest_tool=no
8566  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8567  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8568  cat conftest.err >&5
8569  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8570    lt_cv_path_mainfest_tool=yes
8571  fi
8572  rm -f conftest*
8573fi
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8575$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8576if test yes != "$lt_cv_path_mainfest_tool"; then
8577  MANIFEST_TOOL=:
8578fi
8579
8580
8581
8582
8583
8584
8585  case $host_os in
8586    rhapsody* | darwin*)
8587    if test -n "$ac_tool_prefix"; then
8588  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8589set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591$as_echo_n "checking for $ac_word... " >&6; }
8592if ${ac_cv_prog_DSYMUTIL+:} false; then :
8593  $as_echo_n "(cached) " >&6
8594else
8595  if test -n "$DSYMUTIL"; then
8596  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8597else
8598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599for as_dir in $PATH
8600do
8601  IFS=$as_save_IFS
8602  test -z "$as_dir" && as_dir=.
8603    for ac_exec_ext in '' $ac_executable_extensions; do
8604  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8605    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8606    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607    break 2
8608  fi
8609done
8610  done
8611IFS=$as_save_IFS
8612
8613fi
8614fi
8615DSYMUTIL=$ac_cv_prog_DSYMUTIL
8616if test -n "$DSYMUTIL"; then
8617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8618$as_echo "$DSYMUTIL" >&6; }
8619else
8620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621$as_echo "no" >&6; }
8622fi
8623
8624
8625fi
8626if test -z "$ac_cv_prog_DSYMUTIL"; then
8627  ac_ct_DSYMUTIL=$DSYMUTIL
8628  # Extract the first word of "dsymutil", so it can be a program name with args.
8629set dummy dsymutil; ac_word=$2
8630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631$as_echo_n "checking for $ac_word... " >&6; }
8632if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8633  $as_echo_n "(cached) " >&6
8634else
8635  if test -n "$ac_ct_DSYMUTIL"; then
8636  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8637else
8638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639for as_dir in $PATH
8640do
8641  IFS=$as_save_IFS
8642  test -z "$as_dir" && as_dir=.
8643    for ac_exec_ext in '' $ac_executable_extensions; do
8644  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8645    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8646    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8647    break 2
8648  fi
8649done
8650  done
8651IFS=$as_save_IFS
8652
8653fi
8654fi
8655ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8656if test -n "$ac_ct_DSYMUTIL"; then
8657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8658$as_echo "$ac_ct_DSYMUTIL" >&6; }
8659else
8660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8661$as_echo "no" >&6; }
8662fi
8663
8664  if test "x$ac_ct_DSYMUTIL" = x; then
8665    DSYMUTIL=":"
8666  else
8667    case $cross_compiling:$ac_tool_warned in
8668yes:)
8669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8671ac_tool_warned=yes ;;
8672esac
8673    DSYMUTIL=$ac_ct_DSYMUTIL
8674  fi
8675else
8676  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8677fi
8678
8679    if test -n "$ac_tool_prefix"; then
8680  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8681set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8683$as_echo_n "checking for $ac_word... " >&6; }
8684if ${ac_cv_prog_NMEDIT+:} false; then :
8685  $as_echo_n "(cached) " >&6
8686else
8687  if test -n "$NMEDIT"; then
8688  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8689else
8690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691for as_dir in $PATH
8692do
8693  IFS=$as_save_IFS
8694  test -z "$as_dir" && as_dir=.
8695    for ac_exec_ext in '' $ac_executable_extensions; do
8696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8697    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699    break 2
8700  fi
8701done
8702  done
8703IFS=$as_save_IFS
8704
8705fi
8706fi
8707NMEDIT=$ac_cv_prog_NMEDIT
8708if test -n "$NMEDIT"; then
8709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8710$as_echo "$NMEDIT" >&6; }
8711else
8712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713$as_echo "no" >&6; }
8714fi
8715
8716
8717fi
8718if test -z "$ac_cv_prog_NMEDIT"; then
8719  ac_ct_NMEDIT=$NMEDIT
8720  # Extract the first word of "nmedit", so it can be a program name with args.
8721set dummy nmedit; ac_word=$2
8722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723$as_echo_n "checking for $ac_word... " >&6; }
8724if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8725  $as_echo_n "(cached) " >&6
8726else
8727  if test -n "$ac_ct_NMEDIT"; then
8728  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8729else
8730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731for as_dir in $PATH
8732do
8733  IFS=$as_save_IFS
8734  test -z "$as_dir" && as_dir=.
8735    for ac_exec_ext in '' $ac_executable_extensions; do
8736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8737    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8739    break 2
8740  fi
8741done
8742  done
8743IFS=$as_save_IFS
8744
8745fi
8746fi
8747ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8748if test -n "$ac_ct_NMEDIT"; then
8749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8750$as_echo "$ac_ct_NMEDIT" >&6; }
8751else
8752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753$as_echo "no" >&6; }
8754fi
8755
8756  if test "x$ac_ct_NMEDIT" = x; then
8757    NMEDIT=":"
8758  else
8759    case $cross_compiling:$ac_tool_warned in
8760yes:)
8761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8763ac_tool_warned=yes ;;
8764esac
8765    NMEDIT=$ac_ct_NMEDIT
8766  fi
8767else
8768  NMEDIT="$ac_cv_prog_NMEDIT"
8769fi
8770
8771    if test -n "$ac_tool_prefix"; then
8772  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8773set dummy ${ac_tool_prefix}lipo; ac_word=$2
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8775$as_echo_n "checking for $ac_word... " >&6; }
8776if ${ac_cv_prog_LIPO+:} false; then :
8777  $as_echo_n "(cached) " >&6
8778else
8779  if test -n "$LIPO"; then
8780  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8781else
8782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783for as_dir in $PATH
8784do
8785  IFS=$as_save_IFS
8786  test -z "$as_dir" && as_dir=.
8787    for ac_exec_ext in '' $ac_executable_extensions; do
8788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8789    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791    break 2
8792  fi
8793done
8794  done
8795IFS=$as_save_IFS
8796
8797fi
8798fi
8799LIPO=$ac_cv_prog_LIPO
8800if test -n "$LIPO"; then
8801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8802$as_echo "$LIPO" >&6; }
8803else
8804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8805$as_echo "no" >&6; }
8806fi
8807
8808
8809fi
8810if test -z "$ac_cv_prog_LIPO"; then
8811  ac_ct_LIPO=$LIPO
8812  # Extract the first word of "lipo", so it can be a program name with args.
8813set dummy lipo; ac_word=$2
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8815$as_echo_n "checking for $ac_word... " >&6; }
8816if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8817  $as_echo_n "(cached) " >&6
8818else
8819  if test -n "$ac_ct_LIPO"; then
8820  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8821else
8822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8823for as_dir in $PATH
8824do
8825  IFS=$as_save_IFS
8826  test -z "$as_dir" && as_dir=.
8827    for ac_exec_ext in '' $ac_executable_extensions; do
8828  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8829    ac_cv_prog_ac_ct_LIPO="lipo"
8830    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8831    break 2
8832  fi
8833done
8834  done
8835IFS=$as_save_IFS
8836
8837fi
8838fi
8839ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8840if test -n "$ac_ct_LIPO"; then
8841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8842$as_echo "$ac_ct_LIPO" >&6; }
8843else
8844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845$as_echo "no" >&6; }
8846fi
8847
8848  if test "x$ac_ct_LIPO" = x; then
8849    LIPO=":"
8850  else
8851    case $cross_compiling:$ac_tool_warned in
8852yes:)
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8855ac_tool_warned=yes ;;
8856esac
8857    LIPO=$ac_ct_LIPO
8858  fi
8859else
8860  LIPO="$ac_cv_prog_LIPO"
8861fi
8862
8863    if test -n "$ac_tool_prefix"; then
8864  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8865set dummy ${ac_tool_prefix}otool; ac_word=$2
8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867$as_echo_n "checking for $ac_word... " >&6; }
8868if ${ac_cv_prog_OTOOL+:} false; then :
8869  $as_echo_n "(cached) " >&6
8870else
8871  if test -n "$OTOOL"; then
8872  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8873else
8874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8875for as_dir in $PATH
8876do
8877  IFS=$as_save_IFS
8878  test -z "$as_dir" && as_dir=.
8879    for ac_exec_ext in '' $ac_executable_extensions; do
8880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8881    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8883    break 2
8884  fi
8885done
8886  done
8887IFS=$as_save_IFS
8888
8889fi
8890fi
8891OTOOL=$ac_cv_prog_OTOOL
8892if test -n "$OTOOL"; then
8893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8894$as_echo "$OTOOL" >&6; }
8895else
8896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897$as_echo "no" >&6; }
8898fi
8899
8900
8901fi
8902if test -z "$ac_cv_prog_OTOOL"; then
8903  ac_ct_OTOOL=$OTOOL
8904  # Extract the first word of "otool", so it can be a program name with args.
8905set dummy otool; ac_word=$2
8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907$as_echo_n "checking for $ac_word... " >&6; }
8908if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8909  $as_echo_n "(cached) " >&6
8910else
8911  if test -n "$ac_ct_OTOOL"; then
8912  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8913else
8914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915for as_dir in $PATH
8916do
8917  IFS=$as_save_IFS
8918  test -z "$as_dir" && as_dir=.
8919    for ac_exec_ext in '' $ac_executable_extensions; do
8920  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8921    ac_cv_prog_ac_ct_OTOOL="otool"
8922    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923    break 2
8924  fi
8925done
8926  done
8927IFS=$as_save_IFS
8928
8929fi
8930fi
8931ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8932if test -n "$ac_ct_OTOOL"; then
8933  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8934$as_echo "$ac_ct_OTOOL" >&6; }
8935else
8936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937$as_echo "no" >&6; }
8938fi
8939
8940  if test "x$ac_ct_OTOOL" = x; then
8941    OTOOL=":"
8942  else
8943    case $cross_compiling:$ac_tool_warned in
8944yes:)
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8946$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8947ac_tool_warned=yes ;;
8948esac
8949    OTOOL=$ac_ct_OTOOL
8950  fi
8951else
8952  OTOOL="$ac_cv_prog_OTOOL"
8953fi
8954
8955    if test -n "$ac_tool_prefix"; then
8956  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8957set dummy ${ac_tool_prefix}otool64; ac_word=$2
8958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8959$as_echo_n "checking for $ac_word... " >&6; }
8960if ${ac_cv_prog_OTOOL64+:} false; then :
8961  $as_echo_n "(cached) " >&6
8962else
8963  if test -n "$OTOOL64"; then
8964  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8965else
8966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967for as_dir in $PATH
8968do
8969  IFS=$as_save_IFS
8970  test -z "$as_dir" && as_dir=.
8971    for ac_exec_ext in '' $ac_executable_extensions; do
8972  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8973    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8974    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8975    break 2
8976  fi
8977done
8978  done
8979IFS=$as_save_IFS
8980
8981fi
8982fi
8983OTOOL64=$ac_cv_prog_OTOOL64
8984if test -n "$OTOOL64"; then
8985  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8986$as_echo "$OTOOL64" >&6; }
8987else
8988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8989$as_echo "no" >&6; }
8990fi
8991
8992
8993fi
8994if test -z "$ac_cv_prog_OTOOL64"; then
8995  ac_ct_OTOOL64=$OTOOL64
8996  # Extract the first word of "otool64", so it can be a program name with args.
8997set dummy otool64; ac_word=$2
8998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8999$as_echo_n "checking for $ac_word... " >&6; }
9000if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9001  $as_echo_n "(cached) " >&6
9002else
9003  if test -n "$ac_ct_OTOOL64"; then
9004  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9005else
9006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9007for as_dir in $PATH
9008do
9009  IFS=$as_save_IFS
9010  test -z "$as_dir" && as_dir=.
9011    for ac_exec_ext in '' $ac_executable_extensions; do
9012  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9013    ac_cv_prog_ac_ct_OTOOL64="otool64"
9014    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9015    break 2
9016  fi
9017done
9018  done
9019IFS=$as_save_IFS
9020
9021fi
9022fi
9023ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9024if test -n "$ac_ct_OTOOL64"; then
9025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9026$as_echo "$ac_ct_OTOOL64" >&6; }
9027else
9028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9029$as_echo "no" >&6; }
9030fi
9031
9032  if test "x$ac_ct_OTOOL64" = x; then
9033    OTOOL64=":"
9034  else
9035    case $cross_compiling:$ac_tool_warned in
9036yes:)
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9039ac_tool_warned=yes ;;
9040esac
9041    OTOOL64=$ac_ct_OTOOL64
9042  fi
9043else
9044  OTOOL64="$ac_cv_prog_OTOOL64"
9045fi
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9074$as_echo_n "checking for -single_module linker flag... " >&6; }
9075if ${lt_cv_apple_cc_single_mod+:} false; then :
9076  $as_echo_n "(cached) " >&6
9077else
9078  lt_cv_apple_cc_single_mod=no
9079      if test -z "$LT_MULTI_MODULE"; then
9080	# By default we will add the -single_module flag. You can override
9081	# by either setting the environment variable LT_MULTI_MODULE
9082	# non-empty at configure time, or by adding -multi_module to the
9083	# link flags.
9084	rm -rf libconftest.dylib*
9085	echo "int foo(void){return 1;}" > conftest.c
9086	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9087-dynamiclib -Wl,-single_module conftest.c" >&5
9088	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9089	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9090        _lt_result=$?
9091	# If there is a non-empty error log, and "single_module"
9092	# appears in it, assume the flag caused a linker warning
9093        if test -s conftest.err && $GREP single_module conftest.err; then
9094	  cat conftest.err >&5
9095	# Otherwise, if the output was created with a 0 exit code from
9096	# the compiler, it worked.
9097	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9098	  lt_cv_apple_cc_single_mod=yes
9099	else
9100	  cat conftest.err >&5
9101	fi
9102	rm -rf libconftest.dylib*
9103	rm -f conftest.*
9104      fi
9105fi
9106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9107$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9108
9109    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9110$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9111if ${lt_cv_ld_exported_symbols_list+:} false; then :
9112  $as_echo_n "(cached) " >&6
9113else
9114  lt_cv_ld_exported_symbols_list=no
9115      save_LDFLAGS=$LDFLAGS
9116      echo "_main" > conftest.sym
9117      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9118      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h.  */
9120
9121int
9122main ()
9123{
9124
9125  ;
9126  return 0;
9127}
9128_ACEOF
9129if ac_fn_c_try_link "$LINENO"; then :
9130  lt_cv_ld_exported_symbols_list=yes
9131else
9132  lt_cv_ld_exported_symbols_list=no
9133fi
9134rm -f core conftest.err conftest.$ac_objext \
9135    conftest$ac_exeext conftest.$ac_ext
9136	LDFLAGS=$save_LDFLAGS
9137
9138fi
9139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9140$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9141
9142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9143$as_echo_n "checking for -force_load linker flag... " >&6; }
9144if ${lt_cv_ld_force_load+:} false; then :
9145  $as_echo_n "(cached) " >&6
9146else
9147  lt_cv_ld_force_load=no
9148      cat > conftest.c << _LT_EOF
9149int forced_loaded() { return 2;}
9150_LT_EOF
9151      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9152      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9153      echo "$AR cru libconftest.a conftest.o" >&5
9154      $AR cru libconftest.a conftest.o 2>&5
9155      echo "$RANLIB libconftest.a" >&5
9156      $RANLIB libconftest.a 2>&5
9157      cat > conftest.c << _LT_EOF
9158int main() { return 0;}
9159_LT_EOF
9160      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9161      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9162      _lt_result=$?
9163      if test -s conftest.err && $GREP force_load conftest.err; then
9164	cat conftest.err >&5
9165      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9166	lt_cv_ld_force_load=yes
9167      else
9168	cat conftest.err >&5
9169      fi
9170        rm -f conftest.err libconftest.a conftest conftest.c
9171        rm -rf conftest.dSYM
9172
9173fi
9174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9175$as_echo "$lt_cv_ld_force_load" >&6; }
9176    case $host_os in
9177    rhapsody* | darwin1.[012])
9178      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9179    darwin1.*)
9180      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9181    darwin*) # darwin 5.x on
9182      # if running on 10.5 or later, the deployment target defaults
9183      # to the OS version, if on x86, and 10.4, the deployment
9184      # target defaults to 10.4. Don't you love it?
9185      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9186	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9187	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9188	10.[012][,.]*)
9189	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9190	10.*)
9191	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9192      esac
9193    ;;
9194  esac
9195    if test yes = "$lt_cv_apple_cc_single_mod"; then
9196      _lt_dar_single_mod='$single_module'
9197    fi
9198    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9199      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9200    else
9201      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9202    fi
9203    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9204      _lt_dsymutil='~$DSYMUTIL $lib || :'
9205    else
9206      _lt_dsymutil=
9207    fi
9208    ;;
9209  esac
9210
9211# func_munge_path_list VARIABLE PATH
9212# -----------------------------------
9213# VARIABLE is name of variable containing _space_ separated list of
9214# directories to be munged by the contents of PATH, which is string
9215# having a format:
9216# "DIR[:DIR]:"
9217#       string "DIR[ DIR]" will be prepended to VARIABLE
9218# ":DIR[:DIR]"
9219#       string "DIR[ DIR]" will be appended to VARIABLE
9220# "DIRP[:DIRP]::[DIRA:]DIRA"
9221#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9222#       "DIRA[ DIRA]" will be appended to VARIABLE
9223# "DIR[:DIR]"
9224#       VARIABLE will be replaced by "DIR[ DIR]"
9225func_munge_path_list ()
9226{
9227    case x$2 in
9228    x)
9229        ;;
9230    *:)
9231        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9232        ;;
9233    x:*)
9234        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9235        ;;
9236    *::*)
9237        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9238        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9239        ;;
9240    *)
9241        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9242        ;;
9243    esac
9244}
9245
9246ac_ext=c
9247ac_cpp='$CPP $CPPFLAGS'
9248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9250ac_compiler_gnu=$ac_cv_c_compiler_gnu
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9252$as_echo_n "checking how to run the C preprocessor... " >&6; }
9253# On Suns, sometimes $CPP names a directory.
9254if test -n "$CPP" && test -d "$CPP"; then
9255  CPP=
9256fi
9257if test -z "$CPP"; then
9258  if ${ac_cv_prog_CPP+:} false; then :
9259  $as_echo_n "(cached) " >&6
9260else
9261      # Double quotes because CPP needs to be expanded
9262    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9263    do
9264      ac_preproc_ok=false
9265for ac_c_preproc_warn_flag in '' yes
9266do
9267  # Use a header file that comes with gcc, so configuring glibc
9268  # with a fresh cross-compiler works.
9269  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9270  # <limits.h> exists even on freestanding compilers.
9271  # On the NeXT, cc -E runs the code through the compiler's parser,
9272  # not just through cpp. "Syntax error" is here to catch this case.
9273  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274/* end confdefs.h.  */
9275#ifdef __STDC__
9276# include <limits.h>
9277#else
9278# include <assert.h>
9279#endif
9280		     Syntax error
9281_ACEOF
9282if ac_fn_c_try_cpp "$LINENO"; then :
9283
9284else
9285  # Broken: fails on valid input.
9286continue
9287fi
9288rm -f conftest.err conftest.i conftest.$ac_ext
9289
9290  # OK, works on sane cases.  Now check whether nonexistent headers
9291  # can be detected and how.
9292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293/* end confdefs.h.  */
9294#include <ac_nonexistent.h>
9295_ACEOF
9296if ac_fn_c_try_cpp "$LINENO"; then :
9297  # Broken: success on invalid input.
9298continue
9299else
9300  # Passes both tests.
9301ac_preproc_ok=:
9302break
9303fi
9304rm -f conftest.err conftest.i conftest.$ac_ext
9305
9306done
9307# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9308rm -f conftest.i conftest.err conftest.$ac_ext
9309if $ac_preproc_ok; then :
9310  break
9311fi
9312
9313    done
9314    ac_cv_prog_CPP=$CPP
9315
9316fi
9317  CPP=$ac_cv_prog_CPP
9318else
9319  ac_cv_prog_CPP=$CPP
9320fi
9321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9322$as_echo "$CPP" >&6; }
9323ac_preproc_ok=false
9324for ac_c_preproc_warn_flag in '' yes
9325do
9326  # Use a header file that comes with gcc, so configuring glibc
9327  # with a fresh cross-compiler works.
9328  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9329  # <limits.h> exists even on freestanding compilers.
9330  # On the NeXT, cc -E runs the code through the compiler's parser,
9331  # not just through cpp. "Syntax error" is here to catch this case.
9332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h.  */
9334#ifdef __STDC__
9335# include <limits.h>
9336#else
9337# include <assert.h>
9338#endif
9339		     Syntax error
9340_ACEOF
9341if ac_fn_c_try_cpp "$LINENO"; then :
9342
9343else
9344  # Broken: fails on valid input.
9345continue
9346fi
9347rm -f conftest.err conftest.i conftest.$ac_ext
9348
9349  # OK, works on sane cases.  Now check whether nonexistent headers
9350  # can be detected and how.
9351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9352/* end confdefs.h.  */
9353#include <ac_nonexistent.h>
9354_ACEOF
9355if ac_fn_c_try_cpp "$LINENO"; then :
9356  # Broken: success on invalid input.
9357continue
9358else
9359  # Passes both tests.
9360ac_preproc_ok=:
9361break
9362fi
9363rm -f conftest.err conftest.i conftest.$ac_ext
9364
9365done
9366# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9367rm -f conftest.i conftest.err conftest.$ac_ext
9368if $ac_preproc_ok; then :
9369
9370else
9371  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9372$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9373as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9374See \`config.log' for more details" "$LINENO" 5; }
9375fi
9376
9377ac_ext=c
9378ac_cpp='$CPP $CPPFLAGS'
9379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9381ac_compiler_gnu=$ac_cv_c_compiler_gnu
9382
9383
9384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9385$as_echo_n "checking for ANSI C header files... " >&6; }
9386if ${ac_cv_header_stdc+:} false; then :
9387  $as_echo_n "(cached) " >&6
9388else
9389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9390/* end confdefs.h.  */
9391#include <stdlib.h>
9392#include <stdarg.h>
9393#include <string.h>
9394#include <float.h>
9395
9396int
9397main ()
9398{
9399
9400  ;
9401  return 0;
9402}
9403_ACEOF
9404if ac_fn_c_try_compile "$LINENO"; then :
9405  ac_cv_header_stdc=yes
9406else
9407  ac_cv_header_stdc=no
9408fi
9409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410
9411if test $ac_cv_header_stdc = yes; then
9412  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414/* end confdefs.h.  */
9415#include <string.h>
9416
9417_ACEOF
9418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9419  $EGREP "memchr" >/dev/null 2>&1; then :
9420
9421else
9422  ac_cv_header_stdc=no
9423fi
9424rm -f conftest*
9425
9426fi
9427
9428if test $ac_cv_header_stdc = yes; then
9429  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431/* end confdefs.h.  */
9432#include <stdlib.h>
9433
9434_ACEOF
9435if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9436  $EGREP "free" >/dev/null 2>&1; then :
9437
9438else
9439  ac_cv_header_stdc=no
9440fi
9441rm -f conftest*
9442
9443fi
9444
9445if test $ac_cv_header_stdc = yes; then
9446  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9447  if test "$cross_compiling" = yes; then :
9448  :
9449else
9450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451/* end confdefs.h.  */
9452#include <ctype.h>
9453#include <stdlib.h>
9454#if ((' ' & 0x0FF) == 0x020)
9455# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9456# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9457#else
9458# define ISLOWER(c) \
9459		   (('a' <= (c) && (c) <= 'i') \
9460		     || ('j' <= (c) && (c) <= 'r') \
9461		     || ('s' <= (c) && (c) <= 'z'))
9462# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9463#endif
9464
9465#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9466int
9467main ()
9468{
9469  int i;
9470  for (i = 0; i < 256; i++)
9471    if (XOR (islower (i), ISLOWER (i))
9472	|| toupper (i) != TOUPPER (i))
9473      return 2;
9474  return 0;
9475}
9476_ACEOF
9477if ac_fn_c_try_run "$LINENO"; then :
9478
9479else
9480  ac_cv_header_stdc=no
9481fi
9482rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9483  conftest.$ac_objext conftest.beam conftest.$ac_ext
9484fi
9485
9486fi
9487fi
9488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9489$as_echo "$ac_cv_header_stdc" >&6; }
9490if test $ac_cv_header_stdc = yes; then
9491
9492$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9493
9494fi
9495
9496# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9497for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9498		  inttypes.h stdint.h unistd.h
9499do :
9500  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9501ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9502"
9503if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9504  cat >>confdefs.h <<_ACEOF
9505#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9506_ACEOF
9507
9508fi
9509
9510done
9511
9512
9513for ac_header in dlfcn.h
9514do :
9515  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9516"
9517if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9518  cat >>confdefs.h <<_ACEOF
9519#define HAVE_DLFCN_H 1
9520_ACEOF
9521
9522fi
9523
9524done
9525
9526
9527
9528
9529
9530# Set options
9531
9532
9533
9534        enable_dlopen=no
9535
9536
9537
9538
9539  # Check whether --enable-static was given.
9540if test "${enable_static+set}" = set; then :
9541  enableval=$enable_static; p=${PACKAGE-default}
9542    case $enableval in
9543    yes) enable_static=yes ;;
9544    no) enable_static=no ;;
9545    *)
9546     enable_static=no
9547      # Look at the argument we got.  We use all the common list separators.
9548      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9549      for pkg in $enableval; do
9550	IFS=$lt_save_ifs
9551	if test "X$pkg" = "X$p"; then
9552	  enable_static=yes
9553	fi
9554      done
9555      IFS=$lt_save_ifs
9556      ;;
9557    esac
9558else
9559  enable_static=yes
9560fi
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571# Check whether --with-pic was given.
9572if test "${with_pic+set}" = set; then :
9573  withval=$with_pic; lt_p=${PACKAGE-default}
9574    case $withval in
9575    yes|no) pic_mode=$withval ;;
9576    *)
9577      pic_mode=default
9578      # Look at the argument we got.  We use all the common list separators.
9579      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9580      for lt_pkg in $withval; do
9581	IFS=$lt_save_ifs
9582	if test "X$lt_pkg" = "X$lt_p"; then
9583	  pic_mode=yes
9584	fi
9585      done
9586      IFS=$lt_save_ifs
9587      ;;
9588    esac
9589else
9590  pic_mode=default
9591fi
9592
9593
9594
9595
9596
9597
9598
9599
9600  # Check whether --enable-fast-install was given.
9601if test "${enable_fast_install+set}" = set; then :
9602  enableval=$enable_fast_install; p=${PACKAGE-default}
9603    case $enableval in
9604    yes) enable_fast_install=yes ;;
9605    no) enable_fast_install=no ;;
9606    *)
9607      enable_fast_install=no
9608      # Look at the argument we got.  We use all the common list separators.
9609      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9610      for pkg in $enableval; do
9611	IFS=$lt_save_ifs
9612	if test "X$pkg" = "X$p"; then
9613	  enable_fast_install=yes
9614	fi
9615      done
9616      IFS=$lt_save_ifs
9617      ;;
9618    esac
9619else
9620  enable_fast_install=yes
9621fi
9622
9623
9624
9625
9626
9627
9628
9629
9630  shared_archive_member_spec=
9631case $host,$enable_shared in
9632power*-*-aix[5-9]*,yes)
9633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9634$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9635
9636# Check whether --with-aix-soname was given.
9637if test "${with_aix_soname+set}" = set; then :
9638  withval=$with_aix_soname; case $withval in
9639    aix|svr4|both)
9640      ;;
9641    *)
9642      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9643      ;;
9644    esac
9645    lt_cv_with_aix_soname=$with_aix_soname
9646else
9647  if ${lt_cv_with_aix_soname+:} false; then :
9648  $as_echo_n "(cached) " >&6
9649else
9650  lt_cv_with_aix_soname=aix
9651fi
9652
9653    with_aix_soname=$lt_cv_with_aix_soname
9654fi
9655
9656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9657$as_echo "$with_aix_soname" >&6; }
9658  if test aix != "$with_aix_soname"; then
9659    # For the AIX way of multilib, we name the shared archive member
9660    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9661    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9662    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9663    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9664    if test 64 = "${OBJECT_MODE-32}"; then
9665      shared_archive_member_spec=shr_64
9666    else
9667      shared_archive_member_spec=shr
9668    fi
9669  fi
9670  ;;
9671*)
9672  with_aix_soname=aix
9673  ;;
9674esac
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685# This can be used to rebuild libtool when needed
9686LIBTOOL_DEPS=$ltmain
9687
9688# Always use our own libtool.
9689LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720test -z "$LN_S" && LN_S="ln -s"
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735if test -n "${ZSH_VERSION+set}"; then
9736   setopt NO_GLOB_SUBST
9737fi
9738
9739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9740$as_echo_n "checking for objdir... " >&6; }
9741if ${lt_cv_objdir+:} false; then :
9742  $as_echo_n "(cached) " >&6
9743else
9744  rm -f .libs 2>/dev/null
9745mkdir .libs 2>/dev/null
9746if test -d .libs; then
9747  lt_cv_objdir=.libs
9748else
9749  # MS-DOS does not allow filenames that begin with a dot.
9750  lt_cv_objdir=_libs
9751fi
9752rmdir .libs 2>/dev/null
9753fi
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9755$as_echo "$lt_cv_objdir" >&6; }
9756objdir=$lt_cv_objdir
9757
9758
9759
9760
9761
9762cat >>confdefs.h <<_ACEOF
9763#define LT_OBJDIR "$lt_cv_objdir/"
9764_ACEOF
9765
9766
9767
9768
9769case $host_os in
9770aix3*)
9771  # AIX sometimes has problems with the GCC collect2 program.  For some
9772  # reason, if we set the COLLECT_NAMES environment variable, the problems
9773  # vanish in a puff of smoke.
9774  if test set != "${COLLECT_NAMES+set}"; then
9775    COLLECT_NAMES=
9776    export COLLECT_NAMES
9777  fi
9778  ;;
9779esac
9780
9781# Global variables:
9782ofile=libtool
9783can_build_shared=yes
9784
9785# All known linkers require a '.a' archive for static linking (except MSVC,
9786# which needs '.lib').
9787libext=a
9788
9789with_gnu_ld=$lt_cv_prog_gnu_ld
9790
9791old_CC=$CC
9792old_CFLAGS=$CFLAGS
9793
9794# Set sane defaults for various variables
9795test -z "$CC" && CC=cc
9796test -z "$LTCC" && LTCC=$CC
9797test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9798test -z "$LD" && LD=ld
9799test -z "$ac_objext" && ac_objext=o
9800
9801func_cc_basename $compiler
9802cc_basename=$func_cc_basename_result
9803
9804
9805# Only perform the check for file, if the check method requires it
9806test -z "$MAGIC_CMD" && MAGIC_CMD=file
9807case $deplibs_check_method in
9808file_magic*)
9809  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9810    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9811$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9812if ${lt_cv_path_MAGIC_CMD+:} false; then :
9813  $as_echo_n "(cached) " >&6
9814else
9815  case $MAGIC_CMD in
9816[\\/*] |  ?:[\\/]*)
9817  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9818  ;;
9819*)
9820  lt_save_MAGIC_CMD=$MAGIC_CMD
9821  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9822  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9823  for ac_dir in $ac_dummy; do
9824    IFS=$lt_save_ifs
9825    test -z "$ac_dir" && ac_dir=.
9826    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9827      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9828      if test -n "$file_magic_test_file"; then
9829	case $deplibs_check_method in
9830	"file_magic "*)
9831	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9832	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9833	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9834	    $EGREP "$file_magic_regex" > /dev/null; then
9835	    :
9836	  else
9837	    cat <<_LT_EOF 1>&2
9838
9839*** Warning: the command libtool uses to detect shared libraries,
9840*** $file_magic_cmd, produces output that libtool cannot recognize.
9841*** The result is that libtool may fail to recognize shared libraries
9842*** as such.  This will affect the creation of libtool libraries that
9843*** depend on shared libraries, but programs linked with such libtool
9844*** libraries will work regardless of this problem.  Nevertheless, you
9845*** may want to report the problem to your system manager and/or to
9846*** bug-libtool@gnu.org
9847
9848_LT_EOF
9849	  fi ;;
9850	esac
9851      fi
9852      break
9853    fi
9854  done
9855  IFS=$lt_save_ifs
9856  MAGIC_CMD=$lt_save_MAGIC_CMD
9857  ;;
9858esac
9859fi
9860
9861MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9862if test -n "$MAGIC_CMD"; then
9863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9864$as_echo "$MAGIC_CMD" >&6; }
9865else
9866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9867$as_echo "no" >&6; }
9868fi
9869
9870
9871
9872
9873
9874if test -z "$lt_cv_path_MAGIC_CMD"; then
9875  if test -n "$ac_tool_prefix"; then
9876    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9877$as_echo_n "checking for file... " >&6; }
9878if ${lt_cv_path_MAGIC_CMD+:} false; then :
9879  $as_echo_n "(cached) " >&6
9880else
9881  case $MAGIC_CMD in
9882[\\/*] |  ?:[\\/]*)
9883  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9884  ;;
9885*)
9886  lt_save_MAGIC_CMD=$MAGIC_CMD
9887  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9888  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9889  for ac_dir in $ac_dummy; do
9890    IFS=$lt_save_ifs
9891    test -z "$ac_dir" && ac_dir=.
9892    if test -f "$ac_dir/file"; then
9893      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9894      if test -n "$file_magic_test_file"; then
9895	case $deplibs_check_method in
9896	"file_magic "*)
9897	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9898	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9899	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9900	    $EGREP "$file_magic_regex" > /dev/null; then
9901	    :
9902	  else
9903	    cat <<_LT_EOF 1>&2
9904
9905*** Warning: the command libtool uses to detect shared libraries,
9906*** $file_magic_cmd, produces output that libtool cannot recognize.
9907*** The result is that libtool may fail to recognize shared libraries
9908*** as such.  This will affect the creation of libtool libraries that
9909*** depend on shared libraries, but programs linked with such libtool
9910*** libraries will work regardless of this problem.  Nevertheless, you
9911*** may want to report the problem to your system manager and/or to
9912*** bug-libtool@gnu.org
9913
9914_LT_EOF
9915	  fi ;;
9916	esac
9917      fi
9918      break
9919    fi
9920  done
9921  IFS=$lt_save_ifs
9922  MAGIC_CMD=$lt_save_MAGIC_CMD
9923  ;;
9924esac
9925fi
9926
9927MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9928if test -n "$MAGIC_CMD"; then
9929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9930$as_echo "$MAGIC_CMD" >&6; }
9931else
9932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9933$as_echo "no" >&6; }
9934fi
9935
9936
9937  else
9938    MAGIC_CMD=:
9939  fi
9940fi
9941
9942  fi
9943  ;;
9944esac
9945
9946# Use C for the default configuration in the libtool script
9947
9948lt_save_CC=$CC
9949ac_ext=c
9950ac_cpp='$CPP $CPPFLAGS'
9951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9953ac_compiler_gnu=$ac_cv_c_compiler_gnu
9954
9955
9956# Source file extension for C test sources.
9957ac_ext=c
9958
9959# Object file extension for compiled C test sources.
9960objext=o
9961objext=$objext
9962
9963# Code to be used in simple compile tests
9964lt_simple_compile_test_code="int some_variable = 0;"
9965
9966# Code to be used in simple link tests
9967lt_simple_link_test_code='int main(){return(0);}'
9968
9969
9970
9971
9972
9973
9974
9975# If no C compiler was specified, use CC.
9976LTCC=${LTCC-"$CC"}
9977
9978# If no C compiler flags were specified, use CFLAGS.
9979LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9980
9981# Allow CC to be a program name with arguments.
9982compiler=$CC
9983
9984# Save the default compiler, since it gets overwritten when the other
9985# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9986compiler_DEFAULT=$CC
9987
9988# save warnings/boilerplate of simple test code
9989ac_outfile=conftest.$ac_objext
9990echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9991eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9992_lt_compiler_boilerplate=`cat conftest.err`
9993$RM conftest*
9994
9995ac_outfile=conftest.$ac_objext
9996echo "$lt_simple_link_test_code" >conftest.$ac_ext
9997eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9998_lt_linker_boilerplate=`cat conftest.err`
9999$RM -r conftest*
10000
10001
10002## CAVEAT EMPTOR:
10003## There is no encapsulation within the following macros, do not change
10004## the running order or otherwise move them around unless you know exactly
10005## what you are doing...
10006if test -n "$compiler"; then
10007
10008lt_prog_compiler_no_builtin_flag=
10009
10010if test yes = "$GCC"; then
10011  case $cc_basename in
10012  nvcc*)
10013    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10014  *)
10015    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10016  esac
10017
10018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10019$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10020if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10021  $as_echo_n "(cached) " >&6
10022else
10023  lt_cv_prog_compiler_rtti_exceptions=no
10024   ac_outfile=conftest.$ac_objext
10025   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10026   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10027   # Insert the option either (1) after the last *FLAGS variable, or
10028   # (2) before a word containing "conftest.", or (3) at the end.
10029   # Note that $ac_compile itself does not contain backslashes and begins
10030   # with a dollar sign (not a hyphen), so the echo should work correctly.
10031   # The option is referenced via a variable to avoid confusing sed.
10032   lt_compile=`echo "$ac_compile" | $SED \
10033   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10034   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10035   -e 's:$: $lt_compiler_flag:'`
10036   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10037   (eval "$lt_compile" 2>conftest.err)
10038   ac_status=$?
10039   cat conftest.err >&5
10040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10041   if (exit $ac_status) && test -s "$ac_outfile"; then
10042     # The compiler can only warn and ignore the option if not recognized
10043     # So say no if there are warnings other than the usual output.
10044     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10045     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10046     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10047       lt_cv_prog_compiler_rtti_exceptions=yes
10048     fi
10049   fi
10050   $RM conftest*
10051
10052fi
10053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10054$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10055
10056if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10057    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10058else
10059    :
10060fi
10061
10062fi
10063
10064
10065
10066
10067
10068
10069  lt_prog_compiler_wl=
10070lt_prog_compiler_pic=
10071lt_prog_compiler_static=
10072
10073
10074  if test yes = "$GCC"; then
10075    lt_prog_compiler_wl='-Wl,'
10076    lt_prog_compiler_static='-static'
10077
10078    case $host_os in
10079      aix*)
10080      # All AIX code is PIC.
10081      if test ia64 = "$host_cpu"; then
10082	# AIX 5 now supports IA64 processor
10083	lt_prog_compiler_static='-Bstatic'
10084      fi
10085      lt_prog_compiler_pic='-fPIC'
10086      ;;
10087
10088    amigaos*)
10089      case $host_cpu in
10090      powerpc)
10091            # see comment about AmigaOS4 .so support
10092            lt_prog_compiler_pic='-fPIC'
10093        ;;
10094      m68k)
10095            # FIXME: we need at least 68020 code to build shared libraries, but
10096            # adding the '-m68020' flag to GCC prevents building anything better,
10097            # like '-m68040'.
10098            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10099        ;;
10100      esac
10101      ;;
10102
10103    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10104      # PIC is the default for these OSes.
10105      ;;
10106
10107    mingw* | cygwin* | pw32* | os2* | cegcc*)
10108      # This hack is so that the source file can tell whether it is being
10109      # built for inclusion in a dll (and should export symbols for example).
10110      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10111      # (--disable-auto-import) libraries
10112      lt_prog_compiler_pic='-DDLL_EXPORT'
10113      case $host_os in
10114      os2*)
10115	lt_prog_compiler_static='$wl-static'
10116	;;
10117      esac
10118      ;;
10119
10120    darwin* | rhapsody*)
10121      # PIC is the default on this platform
10122      # Common symbols not allowed in MH_DYLIB files
10123      lt_prog_compiler_pic='-fno-common'
10124      ;;
10125
10126    haiku*)
10127      # PIC is the default for Haiku.
10128      # The "-static" flag exists, but is broken.
10129      lt_prog_compiler_static=
10130      ;;
10131
10132    hpux*)
10133      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10134      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10135      # sets the default TLS model and affects inlining.
10136      case $host_cpu in
10137      hppa*64*)
10138	# +Z the default
10139	;;
10140      *)
10141	lt_prog_compiler_pic='-fPIC'
10142	;;
10143      esac
10144      ;;
10145
10146    interix[3-9]*)
10147      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10148      # Instead, we relocate shared libraries at runtime.
10149      ;;
10150
10151    msdosdjgpp*)
10152      # Just because we use GCC doesn't mean we suddenly get shared libraries
10153      # on systems that don't support them.
10154      lt_prog_compiler_can_build_shared=no
10155      enable_shared=no
10156      ;;
10157
10158    *nto* | *qnx*)
10159      # QNX uses GNU C++, but need to define -shared option too, otherwise
10160      # it will coredump.
10161      lt_prog_compiler_pic='-fPIC -shared'
10162      ;;
10163
10164    sysv4*MP*)
10165      if test -d /usr/nec; then
10166	lt_prog_compiler_pic=-Kconform_pic
10167      fi
10168      ;;
10169
10170    *)
10171      lt_prog_compiler_pic='-fPIC'
10172      ;;
10173    esac
10174
10175    case $cc_basename in
10176    nvcc*) # Cuda Compiler Driver 2.2
10177      lt_prog_compiler_wl='-Xlinker '
10178      if test -n "$lt_prog_compiler_pic"; then
10179        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10180      fi
10181      ;;
10182    esac
10183  else
10184    # PORTME Check for flag to pass linker flags through the system compiler.
10185    case $host_os in
10186    aix*)
10187      lt_prog_compiler_wl='-Wl,'
10188      if test ia64 = "$host_cpu"; then
10189	# AIX 5 now supports IA64 processor
10190	lt_prog_compiler_static='-Bstatic'
10191      else
10192	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10193      fi
10194      ;;
10195
10196    darwin* | rhapsody*)
10197      # PIC is the default on this platform
10198      # Common symbols not allowed in MH_DYLIB files
10199      lt_prog_compiler_pic='-fno-common'
10200      case $cc_basename in
10201      nagfor*)
10202        # NAG Fortran compiler
10203        lt_prog_compiler_wl='-Wl,-Wl,,'
10204        lt_prog_compiler_pic='-PIC'
10205        lt_prog_compiler_static='-Bstatic'
10206        ;;
10207      esac
10208      ;;
10209
10210    mingw* | cygwin* | pw32* | os2* | cegcc*)
10211      # This hack is so that the source file can tell whether it is being
10212      # built for inclusion in a dll (and should export symbols for example).
10213      lt_prog_compiler_pic='-DDLL_EXPORT'
10214      case $host_os in
10215      os2*)
10216	lt_prog_compiler_static='$wl-static'
10217	;;
10218      esac
10219      ;;
10220
10221    hpux9* | hpux10* | hpux11*)
10222      lt_prog_compiler_wl='-Wl,'
10223      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10224      # not for PA HP-UX.
10225      case $host_cpu in
10226      hppa*64*|ia64*)
10227	# +Z the default
10228	;;
10229      *)
10230	lt_prog_compiler_pic='+Z'
10231	;;
10232      esac
10233      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10234      lt_prog_compiler_static='$wl-a ${wl}archive'
10235      ;;
10236
10237    irix5* | irix6* | nonstopux*)
10238      lt_prog_compiler_wl='-Wl,'
10239      # PIC (with -KPIC) is the default.
10240      lt_prog_compiler_static='-non_shared'
10241      ;;
10242
10243    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10244      case $cc_basename in
10245      # old Intel for x86_64, which still supported -KPIC.
10246      ecc*)
10247	lt_prog_compiler_wl='-Wl,'
10248	lt_prog_compiler_pic='-KPIC'
10249	lt_prog_compiler_static='-static'
10250        ;;
10251      # icc used to be incompatible with GCC.
10252      # ICC 10 doesn't accept -KPIC any more.
10253      icc* | ifort*)
10254	lt_prog_compiler_wl='-Wl,'
10255	lt_prog_compiler_pic='-fPIC'
10256	lt_prog_compiler_static='-static'
10257        ;;
10258      # Lahey Fortran 8.1.
10259      lf95*)
10260	lt_prog_compiler_wl='-Wl,'
10261	lt_prog_compiler_pic='--shared'
10262	lt_prog_compiler_static='--static'
10263	;;
10264      nagfor*)
10265	# NAG Fortran compiler
10266	lt_prog_compiler_wl='-Wl,-Wl,,'
10267	lt_prog_compiler_pic='-PIC'
10268	lt_prog_compiler_static='-Bstatic'
10269	;;
10270      tcc*)
10271	# Fabrice Bellard et al's Tiny C Compiler
10272	lt_prog_compiler_wl='-Wl,'
10273	lt_prog_compiler_pic='-fPIC'
10274	lt_prog_compiler_static='-static'
10275	;;
10276      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10277        # Portland Group compilers (*not* the Pentium gcc compiler,
10278	# which looks to be a dead project)
10279	lt_prog_compiler_wl='-Wl,'
10280	lt_prog_compiler_pic='-fpic'
10281	lt_prog_compiler_static='-Bstatic'
10282        ;;
10283      ccc*)
10284        lt_prog_compiler_wl='-Wl,'
10285        # All Alpha code is PIC.
10286        lt_prog_compiler_static='-non_shared'
10287        ;;
10288      xl* | bgxl* | bgf* | mpixl*)
10289	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10290	lt_prog_compiler_wl='-Wl,'
10291	lt_prog_compiler_pic='-qpic'
10292	lt_prog_compiler_static='-qstaticlink'
10293	;;
10294      *)
10295	case `$CC -V 2>&1 | sed 5q` in
10296	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10297	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10298	  lt_prog_compiler_pic='-KPIC'
10299	  lt_prog_compiler_static='-Bstatic'
10300	  lt_prog_compiler_wl=''
10301	  ;;
10302	*Sun\ F* | *Sun*Fortran*)
10303	  lt_prog_compiler_pic='-KPIC'
10304	  lt_prog_compiler_static='-Bstatic'
10305	  lt_prog_compiler_wl='-Qoption ld '
10306	  ;;
10307	*Sun\ C*)
10308	  # Sun C 5.9
10309	  lt_prog_compiler_pic='-KPIC'
10310	  lt_prog_compiler_static='-Bstatic'
10311	  lt_prog_compiler_wl='-Wl,'
10312	  ;;
10313        *Intel*\ [CF]*Compiler*)
10314	  lt_prog_compiler_wl='-Wl,'
10315	  lt_prog_compiler_pic='-fPIC'
10316	  lt_prog_compiler_static='-static'
10317	  ;;
10318	*Portland\ Group*)
10319	  lt_prog_compiler_wl='-Wl,'
10320	  lt_prog_compiler_pic='-fpic'
10321	  lt_prog_compiler_static='-Bstatic'
10322	  ;;
10323	esac
10324	;;
10325      esac
10326      ;;
10327
10328    newsos6)
10329      lt_prog_compiler_pic='-KPIC'
10330      lt_prog_compiler_static='-Bstatic'
10331      ;;
10332
10333    *nto* | *qnx*)
10334      # QNX uses GNU C++, but need to define -shared option too, otherwise
10335      # it will coredump.
10336      lt_prog_compiler_pic='-fPIC -shared'
10337      ;;
10338
10339    osf3* | osf4* | osf5*)
10340      lt_prog_compiler_wl='-Wl,'
10341      # All OSF/1 code is PIC.
10342      lt_prog_compiler_static='-non_shared'
10343      ;;
10344
10345    rdos*)
10346      lt_prog_compiler_static='-non_shared'
10347      ;;
10348
10349    solaris*)
10350      lt_prog_compiler_pic='-KPIC'
10351      lt_prog_compiler_static='-Bstatic'
10352      case $cc_basename in
10353      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10354	lt_prog_compiler_wl='-Qoption ld ';;
10355      *)
10356	lt_prog_compiler_wl='-Wl,';;
10357      esac
10358      ;;
10359
10360    sunos4*)
10361      lt_prog_compiler_wl='-Qoption ld '
10362      lt_prog_compiler_pic='-PIC'
10363      lt_prog_compiler_static='-Bstatic'
10364      ;;
10365
10366    sysv4 | sysv4.2uw2* | sysv4.3*)
10367      lt_prog_compiler_wl='-Wl,'
10368      lt_prog_compiler_pic='-KPIC'
10369      lt_prog_compiler_static='-Bstatic'
10370      ;;
10371
10372    sysv4*MP*)
10373      if test -d /usr/nec; then
10374	lt_prog_compiler_pic='-Kconform_pic'
10375	lt_prog_compiler_static='-Bstatic'
10376      fi
10377      ;;
10378
10379    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10380      lt_prog_compiler_wl='-Wl,'
10381      lt_prog_compiler_pic='-KPIC'
10382      lt_prog_compiler_static='-Bstatic'
10383      ;;
10384
10385    unicos*)
10386      lt_prog_compiler_wl='-Wl,'
10387      lt_prog_compiler_can_build_shared=no
10388      ;;
10389
10390    uts4*)
10391      lt_prog_compiler_pic='-pic'
10392      lt_prog_compiler_static='-Bstatic'
10393      ;;
10394
10395    *)
10396      lt_prog_compiler_can_build_shared=no
10397      ;;
10398    esac
10399  fi
10400
10401case $host_os in
10402  # For platforms that do not support PIC, -DPIC is meaningless:
10403  *djgpp*)
10404    lt_prog_compiler_pic=
10405    ;;
10406  *)
10407    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10408    ;;
10409esac
10410
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10412$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10413if ${lt_cv_prog_compiler_pic+:} false; then :
10414  $as_echo_n "(cached) " >&6
10415else
10416  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10417fi
10418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10419$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10420lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10421
10422#
10423# Check to make sure the PIC flag actually works.
10424#
10425if test -n "$lt_prog_compiler_pic"; then
10426  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10427$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10428if ${lt_cv_prog_compiler_pic_works+:} false; then :
10429  $as_echo_n "(cached) " >&6
10430else
10431  lt_cv_prog_compiler_pic_works=no
10432   ac_outfile=conftest.$ac_objext
10433   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10434   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10435   # Insert the option either (1) after the last *FLAGS variable, or
10436   # (2) before a word containing "conftest.", or (3) at the end.
10437   # Note that $ac_compile itself does not contain backslashes and begins
10438   # with a dollar sign (not a hyphen), so the echo should work correctly.
10439   # The option is referenced via a variable to avoid confusing sed.
10440   lt_compile=`echo "$ac_compile" | $SED \
10441   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10442   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10443   -e 's:$: $lt_compiler_flag:'`
10444   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10445   (eval "$lt_compile" 2>conftest.err)
10446   ac_status=$?
10447   cat conftest.err >&5
10448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449   if (exit $ac_status) && test -s "$ac_outfile"; then
10450     # The compiler can only warn and ignore the option if not recognized
10451     # So say no if there are warnings other than the usual output.
10452     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10453     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10454     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10455       lt_cv_prog_compiler_pic_works=yes
10456     fi
10457   fi
10458   $RM conftest*
10459
10460fi
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10462$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10463
10464if test yes = "$lt_cv_prog_compiler_pic_works"; then
10465    case $lt_prog_compiler_pic in
10466     "" | " "*) ;;
10467     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10468     esac
10469else
10470    lt_prog_compiler_pic=
10471     lt_prog_compiler_can_build_shared=no
10472fi
10473
10474fi
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486#
10487# Check to make sure the static flag actually works.
10488#
10489wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10491$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10492if ${lt_cv_prog_compiler_static_works+:} false; then :
10493  $as_echo_n "(cached) " >&6
10494else
10495  lt_cv_prog_compiler_static_works=no
10496   save_LDFLAGS=$LDFLAGS
10497   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10498   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10499   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10500     # The linker can only warn and ignore the option if not recognized
10501     # So say no if there are warnings
10502     if test -s conftest.err; then
10503       # Append any errors to the config.log.
10504       cat conftest.err 1>&5
10505       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10506       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10507       if diff conftest.exp conftest.er2 >/dev/null; then
10508         lt_cv_prog_compiler_static_works=yes
10509       fi
10510     else
10511       lt_cv_prog_compiler_static_works=yes
10512     fi
10513   fi
10514   $RM -r conftest*
10515   LDFLAGS=$save_LDFLAGS
10516
10517fi
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10519$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10520
10521if test yes = "$lt_cv_prog_compiler_static_works"; then
10522    :
10523else
10524    lt_prog_compiler_static=
10525fi
10526
10527
10528
10529
10530
10531
10532
10533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10534$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10535if ${lt_cv_prog_compiler_c_o+:} false; then :
10536  $as_echo_n "(cached) " >&6
10537else
10538  lt_cv_prog_compiler_c_o=no
10539   $RM -r conftest 2>/dev/null
10540   mkdir conftest
10541   cd conftest
10542   mkdir out
10543   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10544
10545   lt_compiler_flag="-o out/conftest2.$ac_objext"
10546   # Insert the option either (1) after the last *FLAGS variable, or
10547   # (2) before a word containing "conftest.", or (3) at the end.
10548   # Note that $ac_compile itself does not contain backslashes and begins
10549   # with a dollar sign (not a hyphen), so the echo should work correctly.
10550   lt_compile=`echo "$ac_compile" | $SED \
10551   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10552   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10553   -e 's:$: $lt_compiler_flag:'`
10554   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10555   (eval "$lt_compile" 2>out/conftest.err)
10556   ac_status=$?
10557   cat out/conftest.err >&5
10558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10560   then
10561     # The compiler can only warn and ignore the option if not recognized
10562     # So say no if there are warnings
10563     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10564     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10565     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10566       lt_cv_prog_compiler_c_o=yes
10567     fi
10568   fi
10569   chmod u+w . 2>&5
10570   $RM conftest*
10571   # SGI C++ compiler will create directory out/ii_files/ for
10572   # template instantiation
10573   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10574   $RM out/* && rmdir out
10575   cd ..
10576   $RM -r conftest
10577   $RM conftest*
10578
10579fi
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10581$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10582
10583
10584
10585
10586
10587
10588  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10589$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10590if ${lt_cv_prog_compiler_c_o+:} false; then :
10591  $as_echo_n "(cached) " >&6
10592else
10593  lt_cv_prog_compiler_c_o=no
10594   $RM -r conftest 2>/dev/null
10595   mkdir conftest
10596   cd conftest
10597   mkdir out
10598   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10599
10600   lt_compiler_flag="-o out/conftest2.$ac_objext"
10601   # Insert the option either (1) after the last *FLAGS variable, or
10602   # (2) before a word containing "conftest.", or (3) at the end.
10603   # Note that $ac_compile itself does not contain backslashes and begins
10604   # with a dollar sign (not a hyphen), so the echo should work correctly.
10605   lt_compile=`echo "$ac_compile" | $SED \
10606   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10607   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10608   -e 's:$: $lt_compiler_flag:'`
10609   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10610   (eval "$lt_compile" 2>out/conftest.err)
10611   ac_status=$?
10612   cat out/conftest.err >&5
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10615   then
10616     # The compiler can only warn and ignore the option if not recognized
10617     # So say no if there are warnings
10618     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10619     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10620     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10621       lt_cv_prog_compiler_c_o=yes
10622     fi
10623   fi
10624   chmod u+w . 2>&5
10625   $RM conftest*
10626   # SGI C++ compiler will create directory out/ii_files/ for
10627   # template instantiation
10628   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10629   $RM out/* && rmdir out
10630   cd ..
10631   $RM -r conftest
10632   $RM conftest*
10633
10634fi
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10636$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10637
10638
10639
10640
10641hard_links=nottested
10642if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10643  # do not overwrite the value of need_locks provided by the user
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10645$as_echo_n "checking if we can lock with hard links... " >&6; }
10646  hard_links=yes
10647  $RM conftest*
10648  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10649  touch conftest.a
10650  ln conftest.a conftest.b 2>&5 || hard_links=no
10651  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10653$as_echo "$hard_links" >&6; }
10654  if test no = "$hard_links"; then
10655    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10656$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10657    need_locks=warn
10658  fi
10659else
10660  need_locks=no
10661fi
10662
10663
10664
10665
10666
10667
10668  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10669$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10670
10671  runpath_var=
10672  allow_undefined_flag=
10673  always_export_symbols=no
10674  archive_cmds=
10675  archive_expsym_cmds=
10676  compiler_needs_object=no
10677  enable_shared_with_static_runtimes=no
10678  export_dynamic_flag_spec=
10679  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10680  hardcode_automatic=no
10681  hardcode_direct=no
10682  hardcode_direct_absolute=no
10683  hardcode_libdir_flag_spec=
10684  hardcode_libdir_separator=
10685  hardcode_minus_L=no
10686  hardcode_shlibpath_var=unsupported
10687  inherit_rpath=no
10688  link_all_deplibs=unknown
10689  module_cmds=
10690  module_expsym_cmds=
10691  old_archive_from_new_cmds=
10692  old_archive_from_expsyms_cmds=
10693  thread_safe_flag_spec=
10694  whole_archive_flag_spec=
10695  # include_expsyms should be a list of space-separated symbols to be *always*
10696  # included in the symbol list
10697  include_expsyms=
10698  # exclude_expsyms can be an extended regexp of symbols to exclude
10699  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10700  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10701  # as well as any symbol that contains 'd'.
10702  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10703  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10704  # platforms (ab)use it in PIC code, but their linkers get confused if
10705  # the symbol is explicitly referenced.  Since portable code cannot
10706  # rely on this symbol name, it's probably fine to never include it in
10707  # preloaded symbol tables.
10708  # Exclude shared library initialization/finalization symbols.
10709  extract_expsyms_cmds=
10710
10711  case $host_os in
10712  cygwin* | mingw* | pw32* | cegcc*)
10713    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10714    # When not using gcc, we currently assume that we are using
10715    # Microsoft Visual C++.
10716    if test yes != "$GCC"; then
10717      with_gnu_ld=no
10718    fi
10719    ;;
10720  interix*)
10721    # we just hope/assume this is gcc and not c89 (= MSVC++)
10722    with_gnu_ld=yes
10723    ;;
10724  openbsd* | bitrig*)
10725    with_gnu_ld=no
10726    ;;
10727  linux* | k*bsd*-gnu | gnu*)
10728    link_all_deplibs=no
10729    ;;
10730  esac
10731
10732  ld_shlibs=yes
10733
10734  # On some targets, GNU ld is compatible enough with the native linker
10735  # that we're better off using the native interface for both.
10736  lt_use_gnu_ld_interface=no
10737  if test yes = "$with_gnu_ld"; then
10738    case $host_os in
10739      aix*)
10740	# The AIX port of GNU ld has always aspired to compatibility
10741	# with the native linker.  However, as the warning in the GNU ld
10742	# block says, versions before 2.19.5* couldn't really create working
10743	# shared libraries, regardless of the interface used.
10744	case `$LD -v 2>&1` in
10745	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10746	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10747	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10748	  *)
10749	    lt_use_gnu_ld_interface=yes
10750	    ;;
10751	esac
10752	;;
10753      *)
10754	lt_use_gnu_ld_interface=yes
10755	;;
10756    esac
10757  fi
10758
10759  if test yes = "$lt_use_gnu_ld_interface"; then
10760    # If archive_cmds runs LD, not CC, wlarc should be empty
10761    wlarc='$wl'
10762
10763    # Set some defaults for GNU ld with shared library support. These
10764    # are reset later if shared libraries are not supported. Putting them
10765    # here allows them to be overridden if necessary.
10766    runpath_var=LD_RUN_PATH
10767    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10768    export_dynamic_flag_spec='$wl--export-dynamic'
10769    # ancient GNU ld didn't support --whole-archive et. al.
10770    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10771      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10772    else
10773      whole_archive_flag_spec=
10774    fi
10775    supports_anon_versioning=no
10776    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10777      *GNU\ gold*) supports_anon_versioning=yes ;;
10778      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10779      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10780      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10781      *\ 2.11.*) ;; # other 2.11 versions
10782      *) supports_anon_versioning=yes ;;
10783    esac
10784
10785    # See if GNU ld supports shared libraries.
10786    case $host_os in
10787    aix[3-9]*)
10788      # On AIX/PPC, the GNU linker is very broken
10789      if test ia64 != "$host_cpu"; then
10790	ld_shlibs=no
10791	cat <<_LT_EOF 1>&2
10792
10793*** Warning: the GNU linker, at least up to release 2.19, is reported
10794*** to be unable to reliably create shared libraries on AIX.
10795*** Therefore, libtool is disabling shared libraries support.  If you
10796*** really care for shared libraries, you may want to install binutils
10797*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10798*** You will then need to restart the configuration process.
10799
10800_LT_EOF
10801      fi
10802      ;;
10803
10804    amigaos*)
10805      case $host_cpu in
10806      powerpc)
10807            # see comment about AmigaOS4 .so support
10808            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10809            archive_expsym_cmds=''
10810        ;;
10811      m68k)
10812            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)'
10813            hardcode_libdir_flag_spec='-L$libdir'
10814            hardcode_minus_L=yes
10815        ;;
10816      esac
10817      ;;
10818
10819    beos*)
10820      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10821	allow_undefined_flag=unsupported
10822	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10823	# support --undefined.  This deserves some investigation.  FIXME
10824	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10825      else
10826	ld_shlibs=no
10827      fi
10828      ;;
10829
10830    cygwin* | mingw* | pw32* | cegcc*)
10831      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10832      # as there is no search path for DLLs.
10833      hardcode_libdir_flag_spec='-L$libdir'
10834      export_dynamic_flag_spec='$wl--export-all-symbols'
10835      allow_undefined_flag=unsupported
10836      always_export_symbols=no
10837      enable_shared_with_static_runtimes=yes
10838      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'
10839      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10840
10841      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10842        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10843	# If the export-symbols file already is a .def file, use it as
10844	# is; otherwise, prepend EXPORTS...
10845	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10846          cp $export_symbols $output_objdir/$soname.def;
10847        else
10848          echo EXPORTS > $output_objdir/$soname.def;
10849          cat $export_symbols >> $output_objdir/$soname.def;
10850        fi~
10851        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10852      else
10853	ld_shlibs=no
10854      fi
10855      ;;
10856
10857    haiku*)
10858      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10859      link_all_deplibs=yes
10860      ;;
10861
10862    os2*)
10863      hardcode_libdir_flag_spec='-L$libdir'
10864      hardcode_minus_L=yes
10865      allow_undefined_flag=unsupported
10866      shrext_cmds=.dll
10867      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10868	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10869	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10870	$ECHO EXPORTS >> $output_objdir/$libname.def~
10871	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10872	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10873	emximp -o $lib $output_objdir/$libname.def'
10874      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10875	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10876	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10877	$ECHO EXPORTS >> $output_objdir/$libname.def~
10878	prefix_cmds="$SED"~
10879	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10880	  prefix_cmds="$prefix_cmds -e 1d";
10881	fi~
10882	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10883	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10884	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10885	emximp -o $lib $output_objdir/$libname.def'
10886      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10887      enable_shared_with_static_runtimes=yes
10888      ;;
10889
10890    interix[3-9]*)
10891      hardcode_direct=no
10892      hardcode_shlibpath_var=no
10893      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10894      export_dynamic_flag_spec='$wl-E'
10895      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10896      # Instead, shared libraries are loaded at an image base (0x10000000 by
10897      # default) and relocated if they conflict, which is a slow very memory
10898      # consuming and fragmenting process.  To avoid this, we pick a random,
10899      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10900      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10901      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10902      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'
10903      ;;
10904
10905    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10906      tmp_diet=no
10907      if test linux-dietlibc = "$host_os"; then
10908	case $cc_basename in
10909	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10910	esac
10911      fi
10912      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10913	 && test no = "$tmp_diet"
10914      then
10915	tmp_addflag=' $pic_flag'
10916	tmp_sharedflag='-shared'
10917	case $cc_basename,$host_cpu in
10918        pgcc*)				# Portland Group C compiler
10919	  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'
10920	  tmp_addflag=' $pic_flag'
10921	  ;;
10922	pgf77* | pgf90* | pgf95* | pgfortran*)
10923					# Portland Group f77 and f90 compilers
10924	  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'
10925	  tmp_addflag=' $pic_flag -Mnomain' ;;
10926	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10927	  tmp_addflag=' -i_dynamic' ;;
10928	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10929	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10930	ifc* | ifort*)			# Intel Fortran compiler
10931	  tmp_addflag=' -nofor_main' ;;
10932	lf95*)				# Lahey Fortran 8.1
10933	  whole_archive_flag_spec=
10934	  tmp_sharedflag='--shared' ;;
10935        nagfor*)                        # NAGFOR 5.3
10936          tmp_sharedflag='-Wl,-shared' ;;
10937	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10938	  tmp_sharedflag='-qmkshrobj'
10939	  tmp_addflag= ;;
10940	nvcc*)	# Cuda Compiler Driver 2.2
10941	  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'
10942	  compiler_needs_object=yes
10943	  ;;
10944	esac
10945	case `$CC -V 2>&1 | sed 5q` in
10946	*Sun\ C*)			# Sun C 5.9
10947	  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'
10948	  compiler_needs_object=yes
10949	  tmp_sharedflag='-G' ;;
10950	*Sun\ F*)			# Sun Fortran 8.3
10951	  tmp_sharedflag='-G' ;;
10952	esac
10953	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10954
10955        if test yes = "$supports_anon_versioning"; then
10956          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10957            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10958            echo "local: *; };" >> $output_objdir/$libname.ver~
10959            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10960        fi
10961
10962	case $cc_basename in
10963	tcc*)
10964	  export_dynamic_flag_spec='-rdynamic'
10965	  ;;
10966	xlf* | bgf* | bgxlf* | mpixlf*)
10967	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10968	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10969	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10970	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10971	  if test yes = "$supports_anon_versioning"; then
10972	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10973              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10974              echo "local: *; };" >> $output_objdir/$libname.ver~
10975              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10976	  fi
10977	  ;;
10978	esac
10979      else
10980        ld_shlibs=no
10981      fi
10982      ;;
10983
10984    netbsd* | netbsdelf*-gnu)
10985      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10986	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10987	wlarc=
10988      else
10989	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10990	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10991      fi
10992      ;;
10993
10994    solaris*)
10995      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10996	ld_shlibs=no
10997	cat <<_LT_EOF 1>&2
10998
10999*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11000*** create shared libraries on Solaris systems.  Therefore, libtool
11001*** is disabling shared libraries support.  We urge you to upgrade GNU
11002*** binutils to release 2.9.1 or newer.  Another option is to modify
11003*** your PATH or compiler configuration so that the native linker is
11004*** used, and then restart.
11005
11006_LT_EOF
11007      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11008	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11009	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11010      else
11011	ld_shlibs=no
11012      fi
11013      ;;
11014
11015    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11016      case `$LD -v 2>&1` in
11017        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11018	ld_shlibs=no
11019	cat <<_LT_EOF 1>&2
11020
11021*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11022*** reliably create shared libraries on SCO systems.  Therefore, libtool
11023*** is disabling shared libraries support.  We urge you to upgrade GNU
11024*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11025*** your PATH or compiler configuration so that the native linker is
11026*** used, and then restart.
11027
11028_LT_EOF
11029	;;
11030	*)
11031	  # For security reasons, it is highly recommended that you always
11032	  # use absolute paths for naming shared libraries, and exclude the
11033	  # DT_RUNPATH tag from executables and libraries.  But doing so
11034	  # requires that you compile everything twice, which is a pain.
11035	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11036	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11037	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11038	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11039	  else
11040	    ld_shlibs=no
11041	  fi
11042	;;
11043      esac
11044      ;;
11045
11046    sunos4*)
11047      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11048      wlarc=
11049      hardcode_direct=yes
11050      hardcode_shlibpath_var=no
11051      ;;
11052
11053    *)
11054      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11055	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11056	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11057      else
11058	ld_shlibs=no
11059      fi
11060      ;;
11061    esac
11062
11063    if test no = "$ld_shlibs"; then
11064      runpath_var=
11065      hardcode_libdir_flag_spec=
11066      export_dynamic_flag_spec=
11067      whole_archive_flag_spec=
11068    fi
11069  else
11070    # PORTME fill in a description of your system's linker (not GNU ld)
11071    case $host_os in
11072    aix3*)
11073      allow_undefined_flag=unsupported
11074      always_export_symbols=yes
11075      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'
11076      # Note: this linker hardcodes the directories in LIBPATH if there
11077      # are no directories specified by -L.
11078      hardcode_minus_L=yes
11079      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11080	# Neither direct hardcoding nor static linking is supported with a
11081	# broken collect2.
11082	hardcode_direct=unsupported
11083      fi
11084      ;;
11085
11086    aix[4-9]*)
11087      if test ia64 = "$host_cpu"; then
11088	# On IA64, the linker does run time linking by default, so we don't
11089	# have to do anything special.
11090	aix_use_runtimelinking=no
11091	exp_sym_flag='-Bexport'
11092	no_entry_flag=
11093      else
11094	# If we're using GNU nm, then we don't want the "-C" option.
11095	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11096	# Without the "-l" option, or with the "-B" option, AIX nm treats
11097	# weak defined symbols like other global defined symbols, whereas
11098	# GNU nm marks them as "W".
11099	# While the 'weak' keyword is ignored in the Export File, we need
11100	# it in the Import File for the 'aix-soname' feature, so we have
11101	# to replace the "-B" option with "-P" for AIX nm.
11102	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11103	  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'
11104	else
11105	  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'
11106	fi
11107	aix_use_runtimelinking=no
11108
11109	# Test if we are trying to use run time linking or normal
11110	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11111	# have runtime linking enabled, and use it for executables.
11112	# For shared libraries, we enable/disable runtime linking
11113	# depending on the kind of the shared library created -
11114	# when "with_aix_soname,aix_use_runtimelinking" is:
11115	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11116	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11117	#            lib.a           static archive
11118	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11119	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11120	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11121	#            lib.a(lib.so.V) shared, rtl:no
11122	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11123	#            lib.a           static archive
11124	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11125	  for ld_flag in $LDFLAGS; do
11126	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11127	    aix_use_runtimelinking=yes
11128	    break
11129	  fi
11130	  done
11131	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11132	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11133	    # so we don't have lib.a shared libs to link our executables.
11134	    # We have to force runtime linking in this case.
11135	    aix_use_runtimelinking=yes
11136	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11137	  fi
11138	  ;;
11139	esac
11140
11141	exp_sym_flag='-bexport'
11142	no_entry_flag='-bnoentry'
11143      fi
11144
11145      # When large executables or shared objects are built, AIX ld can
11146      # have problems creating the table of contents.  If linking a library
11147      # or program results in "error TOC overflow" add -mminimal-toc to
11148      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11149      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11150
11151      archive_cmds=''
11152      hardcode_direct=yes
11153      hardcode_direct_absolute=yes
11154      hardcode_libdir_separator=':'
11155      link_all_deplibs=yes
11156      file_list_spec='$wl-f,'
11157      case $with_aix_soname,$aix_use_runtimelinking in
11158      aix,*) ;; # traditional, no import file
11159      svr4,* | *,yes) # use import file
11160	# The Import File defines what to hardcode.
11161	hardcode_direct=no
11162	hardcode_direct_absolute=no
11163	;;
11164      esac
11165
11166      if test yes = "$GCC"; then
11167	case $host_os in aix4.[012]|aix4.[012].*)
11168	# We only want to do this on AIX 4.2 and lower, the check
11169	# below for broken collect2 doesn't work under 4.3+
11170	  collect2name=`$CC -print-prog-name=collect2`
11171	  if test -f "$collect2name" &&
11172	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11173	  then
11174	  # We have reworked collect2
11175	  :
11176	  else
11177	  # We have old collect2
11178	  hardcode_direct=unsupported
11179	  # It fails to find uninstalled libraries when the uninstalled
11180	  # path is not listed in the libpath.  Setting hardcode_minus_L
11181	  # to unsupported forces relinking
11182	  hardcode_minus_L=yes
11183	  hardcode_libdir_flag_spec='-L$libdir'
11184	  hardcode_libdir_separator=
11185	  fi
11186	  ;;
11187	esac
11188	shared_flag='-shared'
11189	if test yes = "$aix_use_runtimelinking"; then
11190	  shared_flag="$shared_flag "'$wl-G'
11191	fi
11192	# Need to ensure runtime linking is disabled for the traditional
11193	# shared library, or the linker may eventually find shared libraries
11194	# /with/ Import File - we do not want to mix them.
11195	shared_flag_aix='-shared'
11196	shared_flag_svr4='-shared $wl-G'
11197      else
11198	# not using gcc
11199	if test ia64 = "$host_cpu"; then
11200	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11201	# chokes on -Wl,-G. The following line is correct:
11202	  shared_flag='-G'
11203	else
11204	  if test yes = "$aix_use_runtimelinking"; then
11205	    shared_flag='$wl-G'
11206	  else
11207	    shared_flag='$wl-bM:SRE'
11208	  fi
11209	  shared_flag_aix='$wl-bM:SRE'
11210	  shared_flag_svr4='$wl-G'
11211	fi
11212      fi
11213
11214      export_dynamic_flag_spec='$wl-bexpall'
11215      # It seems that -bexpall does not export symbols beginning with
11216      # underscore (_), so it is better to generate a list of symbols to export.
11217      always_export_symbols=yes
11218      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11219	# Warning - without using the other runtime loading flags (-brtl),
11220	# -berok will link without error, but may produce a broken library.
11221	allow_undefined_flag='-berok'
11222        # Determine the default libpath from the value encoded in an
11223        # empty executable.
11224        if test set = "${lt_cv_aix_libpath+set}"; then
11225  aix_libpath=$lt_cv_aix_libpath
11226else
11227  if ${lt_cv_aix_libpath_+:} false; then :
11228  $as_echo_n "(cached) " >&6
11229else
11230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231/* end confdefs.h.  */
11232
11233int
11234main ()
11235{
11236
11237  ;
11238  return 0;
11239}
11240_ACEOF
11241if ac_fn_c_try_link "$LINENO"; then :
11242
11243  lt_aix_libpath_sed='
11244      /Import File Strings/,/^$/ {
11245	  /^0/ {
11246	      s/^0  *\([^ ]*\) *$/\1/
11247	      p
11248	  }
11249      }'
11250  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11251  # Check for a 64-bit object if we didn't find anything.
11252  if test -z "$lt_cv_aix_libpath_"; then
11253    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11254  fi
11255fi
11256rm -f core conftest.err conftest.$ac_objext \
11257    conftest$ac_exeext conftest.$ac_ext
11258  if test -z "$lt_cv_aix_libpath_"; then
11259    lt_cv_aix_libpath_=/usr/lib:/lib
11260  fi
11261
11262fi
11263
11264  aix_libpath=$lt_cv_aix_libpath_
11265fi
11266
11267        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11268        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
11269      else
11270	if test ia64 = "$host_cpu"; then
11271	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11272	  allow_undefined_flag="-z nodefs"
11273	  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"
11274	else
11275	 # Determine the default libpath from the value encoded in an
11276	 # empty executable.
11277	 if test set = "${lt_cv_aix_libpath+set}"; then
11278  aix_libpath=$lt_cv_aix_libpath
11279else
11280  if ${lt_cv_aix_libpath_+:} false; then :
11281  $as_echo_n "(cached) " >&6
11282else
11283  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284/* end confdefs.h.  */
11285
11286int
11287main ()
11288{
11289
11290  ;
11291  return 0;
11292}
11293_ACEOF
11294if ac_fn_c_try_link "$LINENO"; then :
11295
11296  lt_aix_libpath_sed='
11297      /Import File Strings/,/^$/ {
11298	  /^0/ {
11299	      s/^0  *\([^ ]*\) *$/\1/
11300	      p
11301	  }
11302      }'
11303  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11304  # Check for a 64-bit object if we didn't find anything.
11305  if test -z "$lt_cv_aix_libpath_"; then
11306    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11307  fi
11308fi
11309rm -f core conftest.err conftest.$ac_objext \
11310    conftest$ac_exeext conftest.$ac_ext
11311  if test -z "$lt_cv_aix_libpath_"; then
11312    lt_cv_aix_libpath_=/usr/lib:/lib
11313  fi
11314
11315fi
11316
11317  aix_libpath=$lt_cv_aix_libpath_
11318fi
11319
11320	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11321	  # Warning - without using the other run time loading flags,
11322	  # -berok will link without error, but may produce a broken library.
11323	  no_undefined_flag=' $wl-bernotok'
11324	  allow_undefined_flag=' $wl-berok'
11325	  if test yes = "$with_gnu_ld"; then
11326	    # We only use this code for GNU lds that support --whole-archive.
11327	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11328	  else
11329	    # Exported symbols can be pulled into shared objects from archives
11330	    whole_archive_flag_spec='$convenience'
11331	  fi
11332	  archive_cmds_need_lc=yes
11333	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11334	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11335	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11336	  if test svr4 != "$with_aix_soname"; then
11337	    # This is similar to how AIX traditionally builds its shared libraries.
11338	    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'
11339	  fi
11340	  if test aix != "$with_aix_soname"; then
11341	    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'
11342	  else
11343	    # used by -dlpreopen to get the symbols
11344	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11345	  fi
11346	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11347	fi
11348      fi
11349      ;;
11350
11351    amigaos*)
11352      case $host_cpu in
11353      powerpc)
11354            # see comment about AmigaOS4 .so support
11355            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11356            archive_expsym_cmds=''
11357        ;;
11358      m68k)
11359            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)'
11360            hardcode_libdir_flag_spec='-L$libdir'
11361            hardcode_minus_L=yes
11362        ;;
11363      esac
11364      ;;
11365
11366    bsdi[45]*)
11367      export_dynamic_flag_spec=-rdynamic
11368      ;;
11369
11370    cygwin* | mingw* | pw32* | cegcc*)
11371      # When not using gcc, we currently assume that we are using
11372      # Microsoft Visual C++.
11373      # hardcode_libdir_flag_spec is actually meaningless, as there is
11374      # no search path for DLLs.
11375      case $cc_basename in
11376      cl*)
11377	# Native MSVC
11378	hardcode_libdir_flag_spec=' '
11379	allow_undefined_flag=unsupported
11380	always_export_symbols=yes
11381	file_list_spec='@'
11382	# Tell ltmain to make .lib files, not .a files.
11383	libext=lib
11384	# Tell ltmain to make .dll files, not .so files.
11385	shrext_cmds=.dll
11386	# FIXME: Setting linknames here is a bad hack.
11387	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11388	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11389            cp "$export_symbols" "$output_objdir/$soname.def";
11390            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11391          else
11392            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11393          fi~
11394          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11395          linknames='
11396	# The linker will not automatically build a static lib if we build a DLL.
11397	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11398	enable_shared_with_static_runtimes=yes
11399	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11400	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11401	# Don't use ranlib
11402	old_postinstall_cmds='chmod 644 $oldlib'
11403	postlink_cmds='lt_outputfile="@OUTPUT@"~
11404          lt_tool_outputfile="@TOOL_OUTPUT@"~
11405          case $lt_outputfile in
11406            *.exe|*.EXE) ;;
11407            *)
11408              lt_outputfile=$lt_outputfile.exe
11409              lt_tool_outputfile=$lt_tool_outputfile.exe
11410              ;;
11411          esac~
11412          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11413            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11414            $RM "$lt_outputfile.manifest";
11415          fi'
11416	;;
11417      *)
11418	# Assume MSVC wrapper
11419	hardcode_libdir_flag_spec=' '
11420	allow_undefined_flag=unsupported
11421	# Tell ltmain to make .lib files, not .a files.
11422	libext=lib
11423	# Tell ltmain to make .dll files, not .so files.
11424	shrext_cmds=.dll
11425	# FIXME: Setting linknames here is a bad hack.
11426	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11427	# The linker will automatically build a .lib file if we build a DLL.
11428	old_archive_from_new_cmds='true'
11429	# FIXME: Should let the user specify the lib program.
11430	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11431	enable_shared_with_static_runtimes=yes
11432	;;
11433      esac
11434      ;;
11435
11436    darwin* | rhapsody*)
11437
11438
11439  archive_cmds_need_lc=no
11440  hardcode_direct=no
11441  hardcode_automatic=yes
11442  hardcode_shlibpath_var=unsupported
11443  if test yes = "$lt_cv_ld_force_load"; then
11444    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\"`'
11445
11446  else
11447    whole_archive_flag_spec=''
11448  fi
11449  link_all_deplibs=yes
11450  allow_undefined_flag=$_lt_dar_allow_undefined
11451  case $cc_basename in
11452     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11453     *) _lt_dar_can_shared=$GCC ;;
11454  esac
11455  if test yes = "$_lt_dar_can_shared"; then
11456    output_verbose_link_cmd=func_echo_all
11457    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11458    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11459    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"
11460    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"
11461
11462  else
11463  ld_shlibs=no
11464  fi
11465
11466      ;;
11467
11468    dgux*)
11469      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11470      hardcode_libdir_flag_spec='-L$libdir'
11471      hardcode_shlibpath_var=no
11472      ;;
11473
11474    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11475    # support.  Future versions do this automatically, but an explicit c++rt0.o
11476    # does not break anything, and helps significantly (at the cost of a little
11477    # extra space).
11478    freebsd2.2*)
11479      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11480      hardcode_libdir_flag_spec='-R$libdir'
11481      hardcode_direct=yes
11482      hardcode_shlibpath_var=no
11483      ;;
11484
11485    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11486    freebsd2.*)
11487      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11488      hardcode_direct=yes
11489      hardcode_minus_L=yes
11490      hardcode_shlibpath_var=no
11491      ;;
11492
11493    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11494    freebsd* | dragonfly*)
11495      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11496      hardcode_libdir_flag_spec='-R$libdir'
11497      hardcode_direct=yes
11498      hardcode_shlibpath_var=no
11499      ;;
11500
11501    hpux9*)
11502      if test yes = "$GCC"; then
11503	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'
11504      else
11505	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'
11506      fi
11507      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11508      hardcode_libdir_separator=:
11509      hardcode_direct=yes
11510
11511      # hardcode_minus_L: Not really in the search PATH,
11512      # but as the default location of the library.
11513      hardcode_minus_L=yes
11514      export_dynamic_flag_spec='$wl-E'
11515      ;;
11516
11517    hpux10*)
11518      if test yes,no = "$GCC,$with_gnu_ld"; then
11519	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11520      else
11521	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11522      fi
11523      if test no = "$with_gnu_ld"; then
11524	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11525	hardcode_libdir_separator=:
11526	hardcode_direct=yes
11527	hardcode_direct_absolute=yes
11528	export_dynamic_flag_spec='$wl-E'
11529	# hardcode_minus_L: Not really in the search PATH,
11530	# but as the default location of the library.
11531	hardcode_minus_L=yes
11532      fi
11533      ;;
11534
11535    hpux11*)
11536      if test yes,no = "$GCC,$with_gnu_ld"; then
11537	case $host_cpu in
11538	hppa*64*)
11539	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11540	  ;;
11541	ia64*)
11542	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11543	  ;;
11544	*)
11545	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11546	  ;;
11547	esac
11548      else
11549	case $host_cpu in
11550	hppa*64*)
11551	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11552	  ;;
11553	ia64*)
11554	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11555	  ;;
11556	*)
11557
11558	  # Older versions of the 11.00 compiler do not understand -b yet
11559	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11560	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11561$as_echo_n "checking if $CC understands -b... " >&6; }
11562if ${lt_cv_prog_compiler__b+:} false; then :
11563  $as_echo_n "(cached) " >&6
11564else
11565  lt_cv_prog_compiler__b=no
11566   save_LDFLAGS=$LDFLAGS
11567   LDFLAGS="$LDFLAGS -b"
11568   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11569   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11570     # The linker can only warn and ignore the option if not recognized
11571     # So say no if there are warnings
11572     if test -s conftest.err; then
11573       # Append any errors to the config.log.
11574       cat conftest.err 1>&5
11575       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11576       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11577       if diff conftest.exp conftest.er2 >/dev/null; then
11578         lt_cv_prog_compiler__b=yes
11579       fi
11580     else
11581       lt_cv_prog_compiler__b=yes
11582     fi
11583   fi
11584   $RM -r conftest*
11585   LDFLAGS=$save_LDFLAGS
11586
11587fi
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11589$as_echo "$lt_cv_prog_compiler__b" >&6; }
11590
11591if test yes = "$lt_cv_prog_compiler__b"; then
11592    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11593else
11594    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11595fi
11596
11597	  ;;
11598	esac
11599      fi
11600      if test no = "$with_gnu_ld"; then
11601	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11602	hardcode_libdir_separator=:
11603
11604	case $host_cpu in
11605	hppa*64*|ia64*)
11606	  hardcode_direct=no
11607	  hardcode_shlibpath_var=no
11608	  ;;
11609	*)
11610	  hardcode_direct=yes
11611	  hardcode_direct_absolute=yes
11612	  export_dynamic_flag_spec='$wl-E'
11613
11614	  # hardcode_minus_L: Not really in the search PATH,
11615	  # but as the default location of the library.
11616	  hardcode_minus_L=yes
11617	  ;;
11618	esac
11619      fi
11620      ;;
11621
11622    irix5* | irix6* | nonstopux*)
11623      if test yes = "$GCC"; then
11624	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'
11625	# Try to use the -exported_symbol ld option, if it does not
11626	# work, assume that -exports_file does not work either and
11627	# implicitly export all symbols.
11628	# This should be the same for all languages, so no per-tag cache variable.
11629	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11630$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11631if ${lt_cv_irix_exported_symbol+:} false; then :
11632  $as_echo_n "(cached) " >&6
11633else
11634  save_LDFLAGS=$LDFLAGS
11635	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11636	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11637/* end confdefs.h.  */
11638int foo (void) { return 0; }
11639_ACEOF
11640if ac_fn_c_try_link "$LINENO"; then :
11641  lt_cv_irix_exported_symbol=yes
11642else
11643  lt_cv_irix_exported_symbol=no
11644fi
11645rm -f core conftest.err conftest.$ac_objext \
11646    conftest$ac_exeext conftest.$ac_ext
11647           LDFLAGS=$save_LDFLAGS
11648fi
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11650$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11651	if test yes = "$lt_cv_irix_exported_symbol"; then
11652          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'
11653	fi
11654	link_all_deplibs=no
11655      else
11656	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'
11657	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'
11658      fi
11659      archive_cmds_need_lc='no'
11660      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11661      hardcode_libdir_separator=:
11662      inherit_rpath=yes
11663      link_all_deplibs=yes
11664      ;;
11665
11666    linux*)
11667      case $cc_basename in
11668      tcc*)
11669	# Fabrice Bellard et al's Tiny C Compiler
11670	ld_shlibs=yes
11671	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11672	;;
11673      esac
11674      ;;
11675
11676    netbsd* | netbsdelf*-gnu)
11677      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11678	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11679      else
11680	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11681      fi
11682      hardcode_libdir_flag_spec='-R$libdir'
11683      hardcode_direct=yes
11684      hardcode_shlibpath_var=no
11685      ;;
11686
11687    newsos6)
11688      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11689      hardcode_direct=yes
11690      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11691      hardcode_libdir_separator=:
11692      hardcode_shlibpath_var=no
11693      ;;
11694
11695    *nto* | *qnx*)
11696      ;;
11697
11698    openbsd* | bitrig*)
11699      if test -f /usr/libexec/ld.so; then
11700	hardcode_direct=yes
11701	hardcode_shlibpath_var=no
11702	hardcode_direct_absolute=yes
11703	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11704	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11705	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11706	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11707	  export_dynamic_flag_spec='$wl-E'
11708	else
11709	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11710	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11711	fi
11712      else
11713	ld_shlibs=no
11714      fi
11715      ;;
11716
11717    os2*)
11718      hardcode_libdir_flag_spec='-L$libdir'
11719      hardcode_minus_L=yes
11720      allow_undefined_flag=unsupported
11721      shrext_cmds=.dll
11722      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11723	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11724	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11725	$ECHO EXPORTS >> $output_objdir/$libname.def~
11726	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11727	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11728	emximp -o $lib $output_objdir/$libname.def'
11729      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11730	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11731	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11732	$ECHO EXPORTS >> $output_objdir/$libname.def~
11733	prefix_cmds="$SED"~
11734	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11735	  prefix_cmds="$prefix_cmds -e 1d";
11736	fi~
11737	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11738	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11739	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11740	emximp -o $lib $output_objdir/$libname.def'
11741      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11742      enable_shared_with_static_runtimes=yes
11743      ;;
11744
11745    osf3*)
11746      if test yes = "$GCC"; then
11747	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11748	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'
11749      else
11750	allow_undefined_flag=' -expect_unresolved \*'
11751	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'
11752      fi
11753      archive_cmds_need_lc='no'
11754      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11755      hardcode_libdir_separator=:
11756      ;;
11757
11758    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11759      if test yes = "$GCC"; then
11760	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11761	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'
11762	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11763      else
11764	allow_undefined_flag=' -expect_unresolved \*'
11765	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'
11766	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~
11767          $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'
11768
11769	# Both c and cxx compiler support -rpath directly
11770	hardcode_libdir_flag_spec='-rpath $libdir'
11771      fi
11772      archive_cmds_need_lc='no'
11773      hardcode_libdir_separator=:
11774      ;;
11775
11776    solaris*)
11777      no_undefined_flag=' -z defs'
11778      if test yes = "$GCC"; then
11779	wlarc='$wl'
11780	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11781	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11782          $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'
11783      else
11784	case `$CC -V 2>&1` in
11785	*"Compilers 5.0"*)
11786	  wlarc=''
11787	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11788	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11789            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11790	  ;;
11791	*)
11792	  wlarc='$wl'
11793	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11794	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11795            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11796	  ;;
11797	esac
11798      fi
11799      hardcode_libdir_flag_spec='-R$libdir'
11800      hardcode_shlibpath_var=no
11801      case $host_os in
11802      solaris2.[0-5] | solaris2.[0-5].*) ;;
11803      *)
11804	# The compiler driver will combine and reorder linker options,
11805	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11806	# but is careful enough not to reorder.
11807	# Supported since Solaris 2.6 (maybe 2.5.1?)
11808	if test yes = "$GCC"; then
11809	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11810	else
11811	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11812	fi
11813	;;
11814      esac
11815      link_all_deplibs=yes
11816      ;;
11817
11818    sunos4*)
11819      if test sequent = "$host_vendor"; then
11820	# Use $CC to link under sequent, because it throws in some extra .o
11821	# files that make .init and .fini sections work.
11822	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11823      else
11824	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11825      fi
11826      hardcode_libdir_flag_spec='-L$libdir'
11827      hardcode_direct=yes
11828      hardcode_minus_L=yes
11829      hardcode_shlibpath_var=no
11830      ;;
11831
11832    sysv4)
11833      case $host_vendor in
11834	sni)
11835	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11836	  hardcode_direct=yes # is this really true???
11837	;;
11838	siemens)
11839	  ## LD is ld it makes a PLAMLIB
11840	  ## CC just makes a GrossModule.
11841	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11842	  reload_cmds='$CC -r -o $output$reload_objs'
11843	  hardcode_direct=no
11844        ;;
11845	motorola)
11846	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11847	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11848	;;
11849      esac
11850      runpath_var='LD_RUN_PATH'
11851      hardcode_shlibpath_var=no
11852      ;;
11853
11854    sysv4.3*)
11855      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11856      hardcode_shlibpath_var=no
11857      export_dynamic_flag_spec='-Bexport'
11858      ;;
11859
11860    sysv4*MP*)
11861      if test -d /usr/nec; then
11862	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11863	hardcode_shlibpath_var=no
11864	runpath_var=LD_RUN_PATH
11865	hardcode_runpath_var=yes
11866	ld_shlibs=yes
11867      fi
11868      ;;
11869
11870    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11871      no_undefined_flag='$wl-z,text'
11872      archive_cmds_need_lc=no
11873      hardcode_shlibpath_var=no
11874      runpath_var='LD_RUN_PATH'
11875
11876      if test yes = "$GCC"; then
11877	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11878	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11879      else
11880	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11881	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11882      fi
11883      ;;
11884
11885    sysv5* | sco3.2v5* | sco5v6*)
11886      # Note: We CANNOT use -z defs as we might desire, because we do not
11887      # link with -lc, and that would cause any symbols used from libc to
11888      # always be unresolved, which means just about no library would
11889      # ever link correctly.  If we're not using GNU ld we use -z text
11890      # though, which does catch some bad symbols but isn't as heavy-handed
11891      # as -z defs.
11892      no_undefined_flag='$wl-z,text'
11893      allow_undefined_flag='$wl-z,nodefs'
11894      archive_cmds_need_lc=no
11895      hardcode_shlibpath_var=no
11896      hardcode_libdir_flag_spec='$wl-R,$libdir'
11897      hardcode_libdir_separator=':'
11898      link_all_deplibs=yes
11899      export_dynamic_flag_spec='$wl-Bexport'
11900      runpath_var='LD_RUN_PATH'
11901
11902      if test yes = "$GCC"; then
11903	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11904	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11905      else
11906	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11907	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11908      fi
11909      ;;
11910
11911    uts4*)
11912      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11913      hardcode_libdir_flag_spec='-L$libdir'
11914      hardcode_shlibpath_var=no
11915      ;;
11916
11917    *)
11918      ld_shlibs=no
11919      ;;
11920    esac
11921
11922    if test sni = "$host_vendor"; then
11923      case $host in
11924      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11925	export_dynamic_flag_spec='$wl-Blargedynsym'
11926	;;
11927      esac
11928    fi
11929  fi
11930
11931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11932$as_echo "$ld_shlibs" >&6; }
11933test no = "$ld_shlibs" && can_build_shared=no
11934
11935with_gnu_ld=$with_gnu_ld
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951#
11952# Do we need to explicitly link libc?
11953#
11954case "x$archive_cmds_need_lc" in
11955x|xyes)
11956  # Assume -lc should be added
11957  archive_cmds_need_lc=yes
11958
11959  if test yes,yes = "$GCC,$enable_shared"; then
11960    case $archive_cmds in
11961    *'~'*)
11962      # FIXME: we may have to deal with multi-command sequences.
11963      ;;
11964    '$CC '*)
11965      # Test whether the compiler implicitly links with -lc since on some
11966      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11967      # to ld, don't add -lc before -lgcc.
11968      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11969$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11970if ${lt_cv_archive_cmds_need_lc+:} false; then :
11971  $as_echo_n "(cached) " >&6
11972else
11973  $RM conftest*
11974	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11975
11976	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11977  (eval $ac_compile) 2>&5
11978  ac_status=$?
11979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980  test $ac_status = 0; } 2>conftest.err; then
11981	  soname=conftest
11982	  lib=conftest
11983	  libobjs=conftest.$ac_objext
11984	  deplibs=
11985	  wl=$lt_prog_compiler_wl
11986	  pic_flag=$lt_prog_compiler_pic
11987	  compiler_flags=-v
11988	  linker_flags=-v
11989	  verstring=
11990	  output_objdir=.
11991	  libname=conftest
11992	  lt_save_allow_undefined_flag=$allow_undefined_flag
11993	  allow_undefined_flag=
11994	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11995  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11996  ac_status=$?
11997  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11998  test $ac_status = 0; }
11999	  then
12000	    lt_cv_archive_cmds_need_lc=no
12001	  else
12002	    lt_cv_archive_cmds_need_lc=yes
12003	  fi
12004	  allow_undefined_flag=$lt_save_allow_undefined_flag
12005	else
12006	  cat conftest.err 1>&5
12007	fi
12008	$RM conftest*
12009
12010fi
12011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12012$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12013      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12014      ;;
12015    esac
12016  fi
12017  ;;
12018esac
12019
12020
12021
12022
12023
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
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12172$as_echo_n "checking dynamic linker characteristics... " >&6; }
12173
12174if test yes = "$GCC"; then
12175  case $host_os in
12176    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12177    *) lt_awk_arg='/^libraries:/' ;;
12178  esac
12179  case $host_os in
12180    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12181    *) lt_sed_strip_eq='s|=/|/|g' ;;
12182  esac
12183  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12184  case $lt_search_path_spec in
12185  *\;*)
12186    # if the path contains ";" then we assume it to be the separator
12187    # otherwise default to the standard path separator (i.e. ":") - it is
12188    # assumed that no part of a normal pathname contains ";" but that should
12189    # okay in the real world where ";" in dirpaths is itself problematic.
12190    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12191    ;;
12192  *)
12193    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12194    ;;
12195  esac
12196  # Ok, now we have the path, separated by spaces, we can step through it
12197  # and add multilib dir if necessary...
12198  lt_tmp_lt_search_path_spec=
12199  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12200  # ...but if some path component already ends with the multilib dir we assume
12201  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12202  case "$lt_multi_os_dir; $lt_search_path_spec " in
12203  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12204    lt_multi_os_dir=
12205    ;;
12206  esac
12207  for lt_sys_path in $lt_search_path_spec; do
12208    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12209      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12210    elif test -n "$lt_multi_os_dir"; then
12211      test -d "$lt_sys_path" && \
12212	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12213    fi
12214  done
12215  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12216BEGIN {RS = " "; FS = "/|\n";} {
12217  lt_foo = "";
12218  lt_count = 0;
12219  for (lt_i = NF; lt_i > 0; lt_i--) {
12220    if ($lt_i != "" && $lt_i != ".") {
12221      if ($lt_i == "..") {
12222        lt_count++;
12223      } else {
12224        if (lt_count == 0) {
12225          lt_foo = "/" $lt_i lt_foo;
12226        } else {
12227          lt_count--;
12228        }
12229      }
12230    }
12231  }
12232  if (lt_foo != "") { lt_freq[lt_foo]++; }
12233  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12234}'`
12235  # AWK program above erroneously prepends '/' to C:/dos/paths
12236  # for these hosts.
12237  case $host_os in
12238    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12239      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12240  esac
12241  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12242else
12243  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12244fi
12245library_names_spec=
12246libname_spec='lib$name'
12247soname_spec=
12248shrext_cmds=.so
12249postinstall_cmds=
12250postuninstall_cmds=
12251finish_cmds=
12252finish_eval=
12253shlibpath_var=
12254shlibpath_overrides_runpath=unknown
12255version_type=none
12256dynamic_linker="$host_os ld.so"
12257sys_lib_dlsearch_path_spec="/lib /usr/lib"
12258need_lib_prefix=unknown
12259hardcode_into_libs=no
12260
12261# when you set need_version to no, make sure it does not cause -set_version
12262# flags to be left without arguments
12263need_version=unknown
12264
12265
12266
12267case $host_os in
12268aix3*)
12269  version_type=linux # correct to gnu/linux during the next big refactor
12270  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12271  shlibpath_var=LIBPATH
12272
12273  # AIX 3 has no versioning support, so we append a major version to the name.
12274  soname_spec='$libname$release$shared_ext$major'
12275  ;;
12276
12277aix[4-9]*)
12278  version_type=linux # correct to gnu/linux during the next big refactor
12279  need_lib_prefix=no
12280  need_version=no
12281  hardcode_into_libs=yes
12282  if test ia64 = "$host_cpu"; then
12283    # AIX 5 supports IA64
12284    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12285    shlibpath_var=LD_LIBRARY_PATH
12286  else
12287    # With GCC up to 2.95.x, collect2 would create an import file
12288    # for dependence libraries.  The import file would start with
12289    # the line '#! .'.  This would cause the generated library to
12290    # depend on '.', always an invalid library.  This was fixed in
12291    # development snapshots of GCC prior to 3.0.
12292    case $host_os in
12293      aix4 | aix4.[01] | aix4.[01].*)
12294      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12295	   echo ' yes '
12296	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12297	:
12298      else
12299	can_build_shared=no
12300      fi
12301      ;;
12302    esac
12303    # Using Import Files as archive members, it is possible to support
12304    # filename-based versioning of shared library archives on AIX. While
12305    # this would work for both with and without runtime linking, it will
12306    # prevent static linking of such archives. So we do filename-based
12307    # shared library versioning with .so extension only, which is used
12308    # when both runtime linking and shared linking is enabled.
12309    # Unfortunately, runtime linking may impact performance, so we do
12310    # not want this to be the default eventually. Also, we use the
12311    # versioned .so libs for executables only if there is the -brtl
12312    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12313    # To allow for filename-based versioning support, we need to create
12314    # libNAME.so.V as an archive file, containing:
12315    # *) an Import File, referring to the versioned filename of the
12316    #    archive as well as the shared archive member, telling the
12317    #    bitwidth (32 or 64) of that shared object, and providing the
12318    #    list of exported symbols of that shared object, eventually
12319    #    decorated with the 'weak' keyword
12320    # *) the shared object with the F_LOADONLY flag set, to really avoid
12321    #    it being seen by the linker.
12322    # At run time we better use the real file rather than another symlink,
12323    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12324
12325    case $with_aix_soname,$aix_use_runtimelinking in
12326    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12327    # soname into executable. Probably we can add versioning support to
12328    # collect2, so additional links can be useful in future.
12329    aix,yes) # traditional libtool
12330      dynamic_linker='AIX unversionable lib.so'
12331      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12332      # instead of lib<name>.a to let people know that these are not
12333      # typical AIX shared libraries.
12334      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12335      ;;
12336    aix,no) # traditional AIX only
12337      dynamic_linker='AIX lib.a(lib.so.V)'
12338      # We preserve .a as extension for shared libraries through AIX4.2
12339      # and later when we are not doing run time linking.
12340      library_names_spec='$libname$release.a $libname.a'
12341      soname_spec='$libname$release$shared_ext$major'
12342      ;;
12343    svr4,*) # full svr4 only
12344      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12345      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12346      # We do not specify a path in Import Files, so LIBPATH fires.
12347      shlibpath_overrides_runpath=yes
12348      ;;
12349    *,yes) # both, prefer svr4
12350      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12351      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12352      # unpreferred sharedlib libNAME.a needs extra handling
12353      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"'
12354      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"'
12355      # We do not specify a path in Import Files, so LIBPATH fires.
12356      shlibpath_overrides_runpath=yes
12357      ;;
12358    *,no) # both, prefer aix
12359      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12360      library_names_spec='$libname$release.a $libname.a'
12361      soname_spec='$libname$release$shared_ext$major'
12362      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12363      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)'
12364      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"'
12365      ;;
12366    esac
12367    shlibpath_var=LIBPATH
12368  fi
12369  ;;
12370
12371amigaos*)
12372  case $host_cpu in
12373  powerpc)
12374    # Since July 2007 AmigaOS4 officially supports .so libraries.
12375    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12376    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12377    ;;
12378  m68k)
12379    library_names_spec='$libname.ixlibrary $libname.a'
12380    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12381    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'
12382    ;;
12383  esac
12384  ;;
12385
12386beos*)
12387  library_names_spec='$libname$shared_ext'
12388  dynamic_linker="$host_os ld.so"
12389  shlibpath_var=LIBRARY_PATH
12390  ;;
12391
12392bsdi[45]*)
12393  version_type=linux # correct to gnu/linux during the next big refactor
12394  need_version=no
12395  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12396  soname_spec='$libname$release$shared_ext$major'
12397  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12398  shlibpath_var=LD_LIBRARY_PATH
12399  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12400  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12401  # the default ld.so.conf also contains /usr/contrib/lib and
12402  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12403  # libtool to hard-code these into programs
12404  ;;
12405
12406cygwin* | mingw* | pw32* | cegcc*)
12407  version_type=windows
12408  shrext_cmds=.dll
12409  need_version=no
12410  need_lib_prefix=no
12411
12412  case $GCC,$cc_basename in
12413  yes,*)
12414    # gcc
12415    library_names_spec='$libname.dll.a'
12416    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12417    postinstall_cmds='base_file=`basename \$file`~
12418      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12419      dldir=$destdir/`dirname \$dlpath`~
12420      test -d \$dldir || mkdir -p \$dldir~
12421      $install_prog $dir/$dlname \$dldir/$dlname~
12422      chmod a+x \$dldir/$dlname~
12423      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12424        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12425      fi'
12426    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12427      dlpath=$dir/\$dldll~
12428       $RM \$dlpath'
12429    shlibpath_overrides_runpath=yes
12430
12431    case $host_os in
12432    cygwin*)
12433      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12434      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12435
12436      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12437      ;;
12438    mingw* | cegcc*)
12439      # MinGW DLLs use traditional 'lib' prefix
12440      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12441      ;;
12442    pw32*)
12443      # pw32 DLLs use 'pw' prefix rather than 'lib'
12444      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12445      ;;
12446    esac
12447    dynamic_linker='Win32 ld.exe'
12448    ;;
12449
12450  *,cl*)
12451    # Native MSVC
12452    libname_spec='$name'
12453    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12454    library_names_spec='$libname.dll.lib'
12455
12456    case $build_os in
12457    mingw*)
12458      sys_lib_search_path_spec=
12459      lt_save_ifs=$IFS
12460      IFS=';'
12461      for lt_path in $LIB
12462      do
12463        IFS=$lt_save_ifs
12464        # Let DOS variable expansion print the short 8.3 style file name.
12465        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12466        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12467      done
12468      IFS=$lt_save_ifs
12469      # Convert to MSYS style.
12470      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12471      ;;
12472    cygwin*)
12473      # Convert to unix form, then to dos form, then back to unix form
12474      # but this time dos style (no spaces!) so that the unix form looks
12475      # like /cygdrive/c/PROGRA~1:/cygdr...
12476      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12477      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12478      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12479      ;;
12480    *)
12481      sys_lib_search_path_spec=$LIB
12482      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12483        # It is most probably a Windows format PATH.
12484        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12485      else
12486        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12487      fi
12488      # FIXME: find the short name or the path components, as spaces are
12489      # common. (e.g. "Program Files" -> "PROGRA~1")
12490      ;;
12491    esac
12492
12493    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12494    postinstall_cmds='base_file=`basename \$file`~
12495      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12496      dldir=$destdir/`dirname \$dlpath`~
12497      test -d \$dldir || mkdir -p \$dldir~
12498      $install_prog $dir/$dlname \$dldir/$dlname'
12499    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12500      dlpath=$dir/\$dldll~
12501       $RM \$dlpath'
12502    shlibpath_overrides_runpath=yes
12503    dynamic_linker='Win32 link.exe'
12504    ;;
12505
12506  *)
12507    # Assume MSVC wrapper
12508    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12509    dynamic_linker='Win32 ld.exe'
12510    ;;
12511  esac
12512  # FIXME: first we should search . and the directory the executable is in
12513  shlibpath_var=PATH
12514  ;;
12515
12516darwin* | rhapsody*)
12517  dynamic_linker="$host_os dyld"
12518  version_type=darwin
12519  need_lib_prefix=no
12520  need_version=no
12521  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12522  soname_spec='$libname$release$major$shared_ext'
12523  shlibpath_overrides_runpath=yes
12524  shlibpath_var=DYLD_LIBRARY_PATH
12525  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12526
12527  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12528  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12529  ;;
12530
12531dgux*)
12532  version_type=linux # correct to gnu/linux during the next big refactor
12533  need_lib_prefix=no
12534  need_version=no
12535  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12536  soname_spec='$libname$release$shared_ext$major'
12537  shlibpath_var=LD_LIBRARY_PATH
12538  ;;
12539
12540freebsd* | dragonfly*)
12541  # DragonFly does not have aout.  When/if they implement a new
12542  # versioning mechanism, adjust this.
12543  if test -x /usr/bin/objformat; then
12544    objformat=`/usr/bin/objformat`
12545  else
12546    case $host_os in
12547    freebsd[23].*) objformat=aout ;;
12548    *) objformat=elf ;;
12549    esac
12550  fi
12551  version_type=freebsd-$objformat
12552  case $version_type in
12553    freebsd-elf*)
12554      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12555      soname_spec='$libname$release$shared_ext$major'
12556      need_version=no
12557      need_lib_prefix=no
12558      ;;
12559    freebsd-*)
12560      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12561      need_version=yes
12562      ;;
12563  esac
12564  shlibpath_var=LD_LIBRARY_PATH
12565  case $host_os in
12566  freebsd2.*)
12567    shlibpath_overrides_runpath=yes
12568    ;;
12569  freebsd3.[01]* | freebsdelf3.[01]*)
12570    shlibpath_overrides_runpath=yes
12571    hardcode_into_libs=yes
12572    ;;
12573  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12574  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12575    shlibpath_overrides_runpath=no
12576    hardcode_into_libs=yes
12577    ;;
12578  *) # from 4.6 on, and DragonFly
12579    shlibpath_overrides_runpath=yes
12580    hardcode_into_libs=yes
12581    ;;
12582  esac
12583  ;;
12584
12585haiku*)
12586  version_type=linux # correct to gnu/linux during the next big refactor
12587  need_lib_prefix=no
12588  need_version=no
12589  dynamic_linker="$host_os runtime_loader"
12590  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12591  soname_spec='$libname$release$shared_ext$major'
12592  shlibpath_var=LIBRARY_PATH
12593  shlibpath_overrides_runpath=no
12594  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12595  hardcode_into_libs=yes
12596  ;;
12597
12598hpux9* | hpux10* | hpux11*)
12599  # Give a soname corresponding to the major version so that dld.sl refuses to
12600  # link against other versions.
12601  version_type=sunos
12602  need_lib_prefix=no
12603  need_version=no
12604  case $host_cpu in
12605  ia64*)
12606    shrext_cmds='.so'
12607    hardcode_into_libs=yes
12608    dynamic_linker="$host_os dld.so"
12609    shlibpath_var=LD_LIBRARY_PATH
12610    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12611    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12612    soname_spec='$libname$release$shared_ext$major'
12613    if test 32 = "$HPUX_IA64_MODE"; then
12614      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12615      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12616    else
12617      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12618      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12619    fi
12620    ;;
12621  hppa*64*)
12622    shrext_cmds='.sl'
12623    hardcode_into_libs=yes
12624    dynamic_linker="$host_os dld.sl"
12625    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12626    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12627    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12628    soname_spec='$libname$release$shared_ext$major'
12629    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12630    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12631    ;;
12632  *)
12633    shrext_cmds='.sl'
12634    dynamic_linker="$host_os dld.sl"
12635    shlibpath_var=SHLIB_PATH
12636    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12637    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12638    soname_spec='$libname$release$shared_ext$major'
12639    ;;
12640  esac
12641  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12642  postinstall_cmds='chmod 555 $lib'
12643  # or fails outright, so override atomically:
12644  install_override_mode=555
12645  ;;
12646
12647interix[3-9]*)
12648  version_type=linux # correct to gnu/linux during the next big refactor
12649  need_lib_prefix=no
12650  need_version=no
12651  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12652  soname_spec='$libname$release$shared_ext$major'
12653  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12654  shlibpath_var=LD_LIBRARY_PATH
12655  shlibpath_overrides_runpath=no
12656  hardcode_into_libs=yes
12657  ;;
12658
12659irix5* | irix6* | nonstopux*)
12660  case $host_os in
12661    nonstopux*) version_type=nonstopux ;;
12662    *)
12663	if test yes = "$lt_cv_prog_gnu_ld"; then
12664		version_type=linux # correct to gnu/linux during the next big refactor
12665	else
12666		version_type=irix
12667	fi ;;
12668  esac
12669  need_lib_prefix=no
12670  need_version=no
12671  soname_spec='$libname$release$shared_ext$major'
12672  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12673  case $host_os in
12674  irix5* | nonstopux*)
12675    libsuff= shlibsuff=
12676    ;;
12677  *)
12678    case $LD in # libtool.m4 will add one of these switches to LD
12679    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12680      libsuff= shlibsuff= libmagic=32-bit;;
12681    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12682      libsuff=32 shlibsuff=N32 libmagic=N32;;
12683    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12684      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12685    *) libsuff= shlibsuff= libmagic=never-match;;
12686    esac
12687    ;;
12688  esac
12689  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12690  shlibpath_overrides_runpath=no
12691  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12692  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12693  hardcode_into_libs=yes
12694  ;;
12695
12696# No shared lib support for Linux oldld, aout, or coff.
12697linux*oldld* | linux*aout* | linux*coff*)
12698  dynamic_linker=no
12699  ;;
12700
12701linux*android*)
12702  version_type=none # Android doesn't support versioned libraries.
12703  need_lib_prefix=no
12704  need_version=no
12705  library_names_spec='$libname$release$shared_ext'
12706  soname_spec='$libname$release$shared_ext'
12707  finish_cmds=
12708  shlibpath_var=LD_LIBRARY_PATH
12709  shlibpath_overrides_runpath=yes
12710
12711  # This implies no fast_install, which is unacceptable.
12712  # Some rework will be needed to allow for fast_install
12713  # before this can be enabled.
12714  hardcode_into_libs=yes
12715
12716  dynamic_linker='Android linker'
12717  # Don't embed -rpath directories since the linker doesn't support them.
12718  hardcode_libdir_flag_spec='-L$libdir'
12719  ;;
12720
12721# This must be glibc/ELF.
12722linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12723  version_type=linux # correct to gnu/linux during the next big refactor
12724  need_lib_prefix=no
12725  need_version=no
12726  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12727  soname_spec='$libname$release$shared_ext$major'
12728  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12729  shlibpath_var=LD_LIBRARY_PATH
12730  shlibpath_overrides_runpath=no
12731
12732  # Some binutils ld are patched to set DT_RUNPATH
12733  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12734  $as_echo_n "(cached) " >&6
12735else
12736  lt_cv_shlibpath_overrides_runpath=no
12737    save_LDFLAGS=$LDFLAGS
12738    save_libdir=$libdir
12739    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12740	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12741    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12742/* end confdefs.h.  */
12743
12744int
12745main ()
12746{
12747
12748  ;
12749  return 0;
12750}
12751_ACEOF
12752if ac_fn_c_try_link "$LINENO"; then :
12753  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12754  lt_cv_shlibpath_overrides_runpath=yes
12755fi
12756fi
12757rm -f core conftest.err conftest.$ac_objext \
12758    conftest$ac_exeext conftest.$ac_ext
12759    LDFLAGS=$save_LDFLAGS
12760    libdir=$save_libdir
12761
12762fi
12763
12764  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12765
12766  # This implies no fast_install, which is unacceptable.
12767  # Some rework will be needed to allow for fast_install
12768  # before this can be enabled.
12769  hardcode_into_libs=yes
12770
12771  # Ideally, we could use ldconfig to report *all* directores which are
12772  # searched for libraries, however this is still not possible.  Aside from not
12773  # being certain /sbin/ldconfig is available, command
12774  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12775  # even though it is searched at run-time.  Try to do the best guess by
12776  # appending ld.so.conf contents (and includes) to the search path.
12777  if test -f /etc/ld.so.conf; then
12778    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' ' '`
12779    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12780  fi
12781
12782  # We used to test for /lib/ld.so.1 and disable shared libraries on
12783  # powerpc, because MkLinux only supported shared libraries with the
12784  # GNU dynamic linker.  Since this was broken with cross compilers,
12785  # most powerpc-linux boxes support dynamic linking these days and
12786  # people can always --disable-shared, the test was removed, and we
12787  # assume the GNU/Linux dynamic linker is in use.
12788  dynamic_linker='GNU/Linux ld.so'
12789  ;;
12790
12791netbsdelf*-gnu)
12792  version_type=linux
12793  need_lib_prefix=no
12794  need_version=no
12795  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12796  soname_spec='${libname}${release}${shared_ext}$major'
12797  shlibpath_var=LD_LIBRARY_PATH
12798  shlibpath_overrides_runpath=no
12799  hardcode_into_libs=yes
12800  dynamic_linker='NetBSD ld.elf_so'
12801  ;;
12802
12803netbsd*)
12804  version_type=sunos
12805  need_lib_prefix=no
12806  need_version=no
12807  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12808    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12809    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12810    dynamic_linker='NetBSD (a.out) ld.so'
12811  else
12812    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12813    soname_spec='$libname$release$shared_ext$major'
12814    dynamic_linker='NetBSD ld.elf_so'
12815  fi
12816  shlibpath_var=LD_LIBRARY_PATH
12817  shlibpath_overrides_runpath=yes
12818  hardcode_into_libs=yes
12819  ;;
12820
12821newsos6)
12822  version_type=linux # correct to gnu/linux during the next big refactor
12823  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12824  shlibpath_var=LD_LIBRARY_PATH
12825  shlibpath_overrides_runpath=yes
12826  ;;
12827
12828*nto* | *qnx*)
12829  version_type=qnx
12830  need_lib_prefix=no
12831  need_version=no
12832  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12833  soname_spec='$libname$release$shared_ext$major'
12834  shlibpath_var=LD_LIBRARY_PATH
12835  shlibpath_overrides_runpath=no
12836  hardcode_into_libs=yes
12837  dynamic_linker='ldqnx.so'
12838  ;;
12839
12840openbsd* | bitrig*)
12841  version_type=sunos
12842  sys_lib_dlsearch_path_spec=/usr/lib
12843  need_lib_prefix=no
12844  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12845    need_version=no
12846  else
12847    need_version=yes
12848  fi
12849  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12850  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12851  shlibpath_var=LD_LIBRARY_PATH
12852  shlibpath_overrides_runpath=yes
12853  ;;
12854
12855os2*)
12856  libname_spec='$name'
12857  version_type=windows
12858  shrext_cmds=.dll
12859  need_version=no
12860  need_lib_prefix=no
12861  # OS/2 can only load a DLL with a base name of 8 characters or less.
12862  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12863    v=$($ECHO $release$versuffix | tr -d .-);
12864    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12865    $ECHO $n$v`$shared_ext'
12866  library_names_spec='${libname}_dll.$libext'
12867  dynamic_linker='OS/2 ld.exe'
12868  shlibpath_var=BEGINLIBPATH
12869  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12870  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12871  postinstall_cmds='base_file=`basename \$file`~
12872    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12873    dldir=$destdir/`dirname \$dlpath`~
12874    test -d \$dldir || mkdir -p \$dldir~
12875    $install_prog $dir/$dlname \$dldir/$dlname~
12876    chmod a+x \$dldir/$dlname~
12877    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12878      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12879    fi'
12880  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12881    dlpath=$dir/\$dldll~
12882    $RM \$dlpath'
12883  ;;
12884
12885osf3* | osf4* | osf5*)
12886  version_type=osf
12887  need_lib_prefix=no
12888  need_version=no
12889  soname_spec='$libname$release$shared_ext$major'
12890  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12891  shlibpath_var=LD_LIBRARY_PATH
12892  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12893  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12894  ;;
12895
12896rdos*)
12897  dynamic_linker=no
12898  ;;
12899
12900solaris*)
12901  version_type=linux # correct to gnu/linux during the next big refactor
12902  need_lib_prefix=no
12903  need_version=no
12904  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12905  soname_spec='$libname$release$shared_ext$major'
12906  shlibpath_var=LD_LIBRARY_PATH
12907  shlibpath_overrides_runpath=yes
12908  hardcode_into_libs=yes
12909  # ldd complains unless libraries are executable
12910  postinstall_cmds='chmod +x $lib'
12911  ;;
12912
12913sunos4*)
12914  version_type=sunos
12915  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12916  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12917  shlibpath_var=LD_LIBRARY_PATH
12918  shlibpath_overrides_runpath=yes
12919  if test yes = "$with_gnu_ld"; then
12920    need_lib_prefix=no
12921  fi
12922  need_version=yes
12923  ;;
12924
12925sysv4 | sysv4.3*)
12926  version_type=linux # correct to gnu/linux during the next big refactor
12927  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12928  soname_spec='$libname$release$shared_ext$major'
12929  shlibpath_var=LD_LIBRARY_PATH
12930  case $host_vendor in
12931    sni)
12932      shlibpath_overrides_runpath=no
12933      need_lib_prefix=no
12934      runpath_var=LD_RUN_PATH
12935      ;;
12936    siemens)
12937      need_lib_prefix=no
12938      ;;
12939    motorola)
12940      need_lib_prefix=no
12941      need_version=no
12942      shlibpath_overrides_runpath=no
12943      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12944      ;;
12945  esac
12946  ;;
12947
12948sysv4*MP*)
12949  if test -d /usr/nec; then
12950    version_type=linux # correct to gnu/linux during the next big refactor
12951    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12952    soname_spec='$libname$shared_ext.$major'
12953    shlibpath_var=LD_LIBRARY_PATH
12954  fi
12955  ;;
12956
12957sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12958  version_type=sco
12959  need_lib_prefix=no
12960  need_version=no
12961  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12962  soname_spec='$libname$release$shared_ext$major'
12963  shlibpath_var=LD_LIBRARY_PATH
12964  shlibpath_overrides_runpath=yes
12965  hardcode_into_libs=yes
12966  if test yes = "$with_gnu_ld"; then
12967    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12968  else
12969    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12970    case $host_os in
12971      sco3.2v5*)
12972        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12973	;;
12974    esac
12975  fi
12976  sys_lib_dlsearch_path_spec='/usr/lib'
12977  ;;
12978
12979tpf*)
12980  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12981  version_type=linux # correct to gnu/linux during the next big refactor
12982  need_lib_prefix=no
12983  need_version=no
12984  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12985  shlibpath_var=LD_LIBRARY_PATH
12986  shlibpath_overrides_runpath=no
12987  hardcode_into_libs=yes
12988  ;;
12989
12990uts4*)
12991  version_type=linux # correct to gnu/linux during the next big refactor
12992  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12993  soname_spec='$libname$release$shared_ext$major'
12994  shlibpath_var=LD_LIBRARY_PATH
12995  ;;
12996
12997*)
12998  dynamic_linker=no
12999  ;;
13000esac
13001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13002$as_echo "$dynamic_linker" >&6; }
13003test no = "$dynamic_linker" && can_build_shared=no
13004
13005variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13006if test yes = "$GCC"; then
13007  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13008fi
13009
13010if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13011  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13012fi
13013
13014if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13015  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13016fi
13017
13018# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13019configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13020
13021# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13022func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13023
13024# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13025configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13026
13027
13028
13029
13030
13031
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13124$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13125hardcode_action=
13126if test -n "$hardcode_libdir_flag_spec" ||
13127   test -n "$runpath_var" ||
13128   test yes = "$hardcode_automatic"; then
13129
13130  # We can hardcode non-existent directories.
13131  if test no != "$hardcode_direct" &&
13132     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13133     # have to relink, otherwise we might link with an installed library
13134     # when we should be linking with a yet-to-be-installed one
13135     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13136     test no != "$hardcode_minus_L"; then
13137    # Linking always hardcodes the temporary library directory.
13138    hardcode_action=relink
13139  else
13140    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13141    hardcode_action=immediate
13142  fi
13143else
13144  # We cannot hardcode anything, or else we can only hardcode existing
13145  # directories.
13146  hardcode_action=unsupported
13147fi
13148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13149$as_echo "$hardcode_action" >&6; }
13150
13151if test relink = "$hardcode_action" ||
13152   test yes = "$inherit_rpath"; then
13153  # Fast installation is not supported
13154  enable_fast_install=no
13155elif test yes = "$shlibpath_overrides_runpath" ||
13156     test no = "$enable_shared"; then
13157  # Fast installation is not necessary
13158  enable_fast_install=needless
13159fi
13160
13161
13162
13163
13164
13165
13166  if test yes != "$enable_dlopen"; then
13167  enable_dlopen=unknown
13168  enable_dlopen_self=unknown
13169  enable_dlopen_self_static=unknown
13170else
13171  lt_cv_dlopen=no
13172  lt_cv_dlopen_libs=
13173
13174  case $host_os in
13175  beos*)
13176    lt_cv_dlopen=load_add_on
13177    lt_cv_dlopen_libs=
13178    lt_cv_dlopen_self=yes
13179    ;;
13180
13181  mingw* | pw32* | cegcc*)
13182    lt_cv_dlopen=LoadLibrary
13183    lt_cv_dlopen_libs=
13184    ;;
13185
13186  cygwin*)
13187    lt_cv_dlopen=dlopen
13188    lt_cv_dlopen_libs=
13189    ;;
13190
13191  darwin*)
13192    # if libdl is installed we need to link against it
13193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13194$as_echo_n "checking for dlopen in -ldl... " >&6; }
13195if ${ac_cv_lib_dl_dlopen+:} false; then :
13196  $as_echo_n "(cached) " >&6
13197else
13198  ac_check_lib_save_LIBS=$LIBS
13199LIBS="-ldl  $LIBS"
13200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13201/* end confdefs.h.  */
13202
13203/* Override any GCC internal prototype to avoid an error.
13204   Use char because int might match the return type of a GCC
13205   builtin and then its argument prototype would still apply.  */
13206#ifdef __cplusplus
13207extern "C"
13208#endif
13209char dlopen ();
13210int
13211main ()
13212{
13213return dlopen ();
13214  ;
13215  return 0;
13216}
13217_ACEOF
13218if ac_fn_c_try_link "$LINENO"; then :
13219  ac_cv_lib_dl_dlopen=yes
13220else
13221  ac_cv_lib_dl_dlopen=no
13222fi
13223rm -f core conftest.err conftest.$ac_objext \
13224    conftest$ac_exeext conftest.$ac_ext
13225LIBS=$ac_check_lib_save_LIBS
13226fi
13227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13228$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13229if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13230  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13231else
13232
13233    lt_cv_dlopen=dyld
13234    lt_cv_dlopen_libs=
13235    lt_cv_dlopen_self=yes
13236
13237fi
13238
13239    ;;
13240
13241  tpf*)
13242    # Don't try to run any link tests for TPF.  We know it's impossible
13243    # because TPF is a cross-compiler, and we know how we open DSOs.
13244    lt_cv_dlopen=dlopen
13245    lt_cv_dlopen_libs=
13246    lt_cv_dlopen_self=no
13247    ;;
13248
13249  *)
13250    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13251if test "x$ac_cv_func_shl_load" = xyes; then :
13252  lt_cv_dlopen=shl_load
13253else
13254  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13255$as_echo_n "checking for shl_load in -ldld... " >&6; }
13256if ${ac_cv_lib_dld_shl_load+:} false; then :
13257  $as_echo_n "(cached) " >&6
13258else
13259  ac_check_lib_save_LIBS=$LIBS
13260LIBS="-ldld  $LIBS"
13261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262/* end confdefs.h.  */
13263
13264/* Override any GCC internal prototype to avoid an error.
13265   Use char because int might match the return type of a GCC
13266   builtin and then its argument prototype would still apply.  */
13267#ifdef __cplusplus
13268extern "C"
13269#endif
13270char shl_load ();
13271int
13272main ()
13273{
13274return shl_load ();
13275  ;
13276  return 0;
13277}
13278_ACEOF
13279if ac_fn_c_try_link "$LINENO"; then :
13280  ac_cv_lib_dld_shl_load=yes
13281else
13282  ac_cv_lib_dld_shl_load=no
13283fi
13284rm -f core conftest.err conftest.$ac_objext \
13285    conftest$ac_exeext conftest.$ac_ext
13286LIBS=$ac_check_lib_save_LIBS
13287fi
13288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13289$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13290if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13291  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13292else
13293  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13294if test "x$ac_cv_func_dlopen" = xyes; then :
13295  lt_cv_dlopen=dlopen
13296else
13297  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13298$as_echo_n "checking for dlopen in -ldl... " >&6; }
13299if ${ac_cv_lib_dl_dlopen+:} false; then :
13300  $as_echo_n "(cached) " >&6
13301else
13302  ac_check_lib_save_LIBS=$LIBS
13303LIBS="-ldl  $LIBS"
13304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13305/* end confdefs.h.  */
13306
13307/* Override any GCC internal prototype to avoid an error.
13308   Use char because int might match the return type of a GCC
13309   builtin and then its argument prototype would still apply.  */
13310#ifdef __cplusplus
13311extern "C"
13312#endif
13313char dlopen ();
13314int
13315main ()
13316{
13317return dlopen ();
13318  ;
13319  return 0;
13320}
13321_ACEOF
13322if ac_fn_c_try_link "$LINENO"; then :
13323  ac_cv_lib_dl_dlopen=yes
13324else
13325  ac_cv_lib_dl_dlopen=no
13326fi
13327rm -f core conftest.err conftest.$ac_objext \
13328    conftest$ac_exeext conftest.$ac_ext
13329LIBS=$ac_check_lib_save_LIBS
13330fi
13331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13332$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13333if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13334  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13335else
13336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13337$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13338if ${ac_cv_lib_svld_dlopen+:} false; then :
13339  $as_echo_n "(cached) " >&6
13340else
13341  ac_check_lib_save_LIBS=$LIBS
13342LIBS="-lsvld  $LIBS"
13343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344/* end confdefs.h.  */
13345
13346/* Override any GCC internal prototype to avoid an error.
13347   Use char because int might match the return type of a GCC
13348   builtin and then its argument prototype would still apply.  */
13349#ifdef __cplusplus
13350extern "C"
13351#endif
13352char dlopen ();
13353int
13354main ()
13355{
13356return dlopen ();
13357  ;
13358  return 0;
13359}
13360_ACEOF
13361if ac_fn_c_try_link "$LINENO"; then :
13362  ac_cv_lib_svld_dlopen=yes
13363else
13364  ac_cv_lib_svld_dlopen=no
13365fi
13366rm -f core conftest.err conftest.$ac_objext \
13367    conftest$ac_exeext conftest.$ac_ext
13368LIBS=$ac_check_lib_save_LIBS
13369fi
13370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13371$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13372if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13373  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13374else
13375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13376$as_echo_n "checking for dld_link in -ldld... " >&6; }
13377if ${ac_cv_lib_dld_dld_link+:} false; then :
13378  $as_echo_n "(cached) " >&6
13379else
13380  ac_check_lib_save_LIBS=$LIBS
13381LIBS="-ldld  $LIBS"
13382cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383/* end confdefs.h.  */
13384
13385/* Override any GCC internal prototype to avoid an error.
13386   Use char because int might match the return type of a GCC
13387   builtin and then its argument prototype would still apply.  */
13388#ifdef __cplusplus
13389extern "C"
13390#endif
13391char dld_link ();
13392int
13393main ()
13394{
13395return dld_link ();
13396  ;
13397  return 0;
13398}
13399_ACEOF
13400if ac_fn_c_try_link "$LINENO"; then :
13401  ac_cv_lib_dld_dld_link=yes
13402else
13403  ac_cv_lib_dld_dld_link=no
13404fi
13405rm -f core conftest.err conftest.$ac_objext \
13406    conftest$ac_exeext conftest.$ac_ext
13407LIBS=$ac_check_lib_save_LIBS
13408fi
13409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13410$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13411if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13412  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13413fi
13414
13415
13416fi
13417
13418
13419fi
13420
13421
13422fi
13423
13424
13425fi
13426
13427
13428fi
13429
13430    ;;
13431  esac
13432
13433  if test no = "$lt_cv_dlopen"; then
13434    enable_dlopen=no
13435  else
13436    enable_dlopen=yes
13437  fi
13438
13439  case $lt_cv_dlopen in
13440  dlopen)
13441    save_CPPFLAGS=$CPPFLAGS
13442    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13443
13444    save_LDFLAGS=$LDFLAGS
13445    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13446
13447    save_LIBS=$LIBS
13448    LIBS="$lt_cv_dlopen_libs $LIBS"
13449
13450    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13451$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13452if ${lt_cv_dlopen_self+:} false; then :
13453  $as_echo_n "(cached) " >&6
13454else
13455  	  if test yes = "$cross_compiling"; then :
13456  lt_cv_dlopen_self=cross
13457else
13458  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13459  lt_status=$lt_dlunknown
13460  cat > conftest.$ac_ext <<_LT_EOF
13461#line $LINENO "configure"
13462#include "confdefs.h"
13463
13464#if HAVE_DLFCN_H
13465#include <dlfcn.h>
13466#endif
13467
13468#include <stdio.h>
13469
13470#ifdef RTLD_GLOBAL
13471#  define LT_DLGLOBAL		RTLD_GLOBAL
13472#else
13473#  ifdef DL_GLOBAL
13474#    define LT_DLGLOBAL		DL_GLOBAL
13475#  else
13476#    define LT_DLGLOBAL		0
13477#  endif
13478#endif
13479
13480/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13481   find out it does not work in some platform. */
13482#ifndef LT_DLLAZY_OR_NOW
13483#  ifdef RTLD_LAZY
13484#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13485#  else
13486#    ifdef DL_LAZY
13487#      define LT_DLLAZY_OR_NOW		DL_LAZY
13488#    else
13489#      ifdef RTLD_NOW
13490#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13491#      else
13492#        ifdef DL_NOW
13493#          define LT_DLLAZY_OR_NOW	DL_NOW
13494#        else
13495#          define LT_DLLAZY_OR_NOW	0
13496#        endif
13497#      endif
13498#    endif
13499#  endif
13500#endif
13501
13502/* When -fvisibility=hidden is used, assume the code has been annotated
13503   correspondingly for the symbols needed.  */
13504#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13505int fnord () __attribute__((visibility("default")));
13506#endif
13507
13508int fnord () { return 42; }
13509int main ()
13510{
13511  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13512  int status = $lt_dlunknown;
13513
13514  if (self)
13515    {
13516      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13517      else
13518        {
13519	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13520          else puts (dlerror ());
13521	}
13522      /* dlclose (self); */
13523    }
13524  else
13525    puts (dlerror ());
13526
13527  return status;
13528}
13529_LT_EOF
13530  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13531  (eval $ac_link) 2>&5
13532  ac_status=$?
13533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13534  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13535    (./conftest; exit; ) >&5 2>/dev/null
13536    lt_status=$?
13537    case x$lt_status in
13538      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13539      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13540      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13541    esac
13542  else :
13543    # compilation failed
13544    lt_cv_dlopen_self=no
13545  fi
13546fi
13547rm -fr conftest*
13548
13549
13550fi
13551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13552$as_echo "$lt_cv_dlopen_self" >&6; }
13553
13554    if test yes = "$lt_cv_dlopen_self"; then
13555      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13556      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13557$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13558if ${lt_cv_dlopen_self_static+:} false; then :
13559  $as_echo_n "(cached) " >&6
13560else
13561  	  if test yes = "$cross_compiling"; then :
13562  lt_cv_dlopen_self_static=cross
13563else
13564  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13565  lt_status=$lt_dlunknown
13566  cat > conftest.$ac_ext <<_LT_EOF
13567#line $LINENO "configure"
13568#include "confdefs.h"
13569
13570#if HAVE_DLFCN_H
13571#include <dlfcn.h>
13572#endif
13573
13574#include <stdio.h>
13575
13576#ifdef RTLD_GLOBAL
13577#  define LT_DLGLOBAL		RTLD_GLOBAL
13578#else
13579#  ifdef DL_GLOBAL
13580#    define LT_DLGLOBAL		DL_GLOBAL
13581#  else
13582#    define LT_DLGLOBAL		0
13583#  endif
13584#endif
13585
13586/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13587   find out it does not work in some platform. */
13588#ifndef LT_DLLAZY_OR_NOW
13589#  ifdef RTLD_LAZY
13590#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13591#  else
13592#    ifdef DL_LAZY
13593#      define LT_DLLAZY_OR_NOW		DL_LAZY
13594#    else
13595#      ifdef RTLD_NOW
13596#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13597#      else
13598#        ifdef DL_NOW
13599#          define LT_DLLAZY_OR_NOW	DL_NOW
13600#        else
13601#          define LT_DLLAZY_OR_NOW	0
13602#        endif
13603#      endif
13604#    endif
13605#  endif
13606#endif
13607
13608/* When -fvisibility=hidden is used, assume the code has been annotated
13609   correspondingly for the symbols needed.  */
13610#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13611int fnord () __attribute__((visibility("default")));
13612#endif
13613
13614int fnord () { return 42; }
13615int main ()
13616{
13617  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13618  int status = $lt_dlunknown;
13619
13620  if (self)
13621    {
13622      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13623      else
13624        {
13625	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13626          else puts (dlerror ());
13627	}
13628      /* dlclose (self); */
13629    }
13630  else
13631    puts (dlerror ());
13632
13633  return status;
13634}
13635_LT_EOF
13636  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13637  (eval $ac_link) 2>&5
13638  ac_status=$?
13639  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13640  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13641    (./conftest; exit; ) >&5 2>/dev/null
13642    lt_status=$?
13643    case x$lt_status in
13644      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13645      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13646      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13647    esac
13648  else :
13649    # compilation failed
13650    lt_cv_dlopen_self_static=no
13651  fi
13652fi
13653rm -fr conftest*
13654
13655
13656fi
13657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13658$as_echo "$lt_cv_dlopen_self_static" >&6; }
13659    fi
13660
13661    CPPFLAGS=$save_CPPFLAGS
13662    LDFLAGS=$save_LDFLAGS
13663    LIBS=$save_LIBS
13664    ;;
13665  esac
13666
13667  case $lt_cv_dlopen_self in
13668  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13669  *) enable_dlopen_self=unknown ;;
13670  esac
13671
13672  case $lt_cv_dlopen_self_static in
13673  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13674  *) enable_dlopen_self_static=unknown ;;
13675  esac
13676fi
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694striplib=
13695old_striplib=
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13697$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13698if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13699  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13700  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13701  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13702$as_echo "yes" >&6; }
13703else
13704# FIXME - insert some real tests, host_os isn't really good enough
13705  case $host_os in
13706  darwin*)
13707    if test -n "$STRIP"; then
13708      striplib="$STRIP -x"
13709      old_striplib="$STRIP -S"
13710      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13711$as_echo "yes" >&6; }
13712    else
13713      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714$as_echo "no" >&6; }
13715    fi
13716    ;;
13717  *)
13718    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13719$as_echo "no" >&6; }
13720    ;;
13721  esac
13722fi
13723
13724
13725
13726
13727
13728
13729
13730
13731
13732
13733
13734
13735  # Report what library types will actually be built
13736  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13737$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13738  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13739$as_echo "$can_build_shared" >&6; }
13740
13741  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13742$as_echo_n "checking whether to build shared libraries... " >&6; }
13743  test no = "$can_build_shared" && enable_shared=no
13744
13745  # On AIX, shared libraries and static libraries use the same namespace, and
13746  # are all built from PIC.
13747  case $host_os in
13748  aix3*)
13749    test yes = "$enable_shared" && enable_static=no
13750    if test -n "$RANLIB"; then
13751      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13752      postinstall_cmds='$RANLIB $lib'
13753    fi
13754    ;;
13755
13756  aix[4-9]*)
13757    if test ia64 != "$host_cpu"; then
13758      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13759      yes,aix,yes) ;;			# shared object as lib.so file only
13760      yes,svr4,*) ;;			# shared object as lib.so archive member only
13761      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13762      esac
13763    fi
13764    ;;
13765  esac
13766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13767$as_echo "$enable_shared" >&6; }
13768
13769  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13770$as_echo_n "checking whether to build static libraries... " >&6; }
13771  # Make sure either enable_shared or enable_static is yes.
13772  test yes = "$enable_shared" || enable_static=yes
13773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13774$as_echo "$enable_static" >&6; }
13775
13776
13777
13778
13779fi
13780ac_ext=c
13781ac_cpp='$CPP $CPPFLAGS'
13782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13784ac_compiler_gnu=$ac_cv_c_compiler_gnu
13785
13786CC=$lt_save_CC
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802        ac_config_commands="$ac_config_commands libtool"
13803
13804
13805
13806
13807# Only expand once:
13808
13809
13810if test -n "$ac_tool_prefix"; then
13811  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13812set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13814$as_echo_n "checking for $ac_word... " >&6; }
13815if ${ac_cv_prog_RANLIB+:} false; then :
13816  $as_echo_n "(cached) " >&6
13817else
13818  if test -n "$RANLIB"; then
13819  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13820else
13821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13822for as_dir in $PATH
13823do
13824  IFS=$as_save_IFS
13825  test -z "$as_dir" && as_dir=.
13826    for ac_exec_ext in '' $ac_executable_extensions; do
13827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13828    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13830    break 2
13831  fi
13832done
13833  done
13834IFS=$as_save_IFS
13835
13836fi
13837fi
13838RANLIB=$ac_cv_prog_RANLIB
13839if test -n "$RANLIB"; then
13840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13841$as_echo "$RANLIB" >&6; }
13842else
13843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13844$as_echo "no" >&6; }
13845fi
13846
13847
13848fi
13849if test -z "$ac_cv_prog_RANLIB"; then
13850  ac_ct_RANLIB=$RANLIB
13851  # Extract the first word of "ranlib", so it can be a program name with args.
13852set dummy ranlib; ac_word=$2
13853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13854$as_echo_n "checking for $ac_word... " >&6; }
13855if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13856  $as_echo_n "(cached) " >&6
13857else
13858  if test -n "$ac_ct_RANLIB"; then
13859  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13860else
13861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13862for as_dir in $PATH
13863do
13864  IFS=$as_save_IFS
13865  test -z "$as_dir" && as_dir=.
13866    for ac_exec_ext in '' $ac_executable_extensions; do
13867  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13868    ac_cv_prog_ac_ct_RANLIB="ranlib"
13869    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13870    break 2
13871  fi
13872done
13873  done
13874IFS=$as_save_IFS
13875
13876fi
13877fi
13878ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13879if test -n "$ac_ct_RANLIB"; then
13880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13881$as_echo "$ac_ct_RANLIB" >&6; }
13882else
13883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13884$as_echo "no" >&6; }
13885fi
13886
13887  if test "x$ac_ct_RANLIB" = x; then
13888    RANLIB=":"
13889  else
13890    case $cross_compiling:$ac_tool_warned in
13891yes:)
13892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13894ac_tool_warned=yes ;;
13895esac
13896    RANLIB=$ac_ct_RANLIB
13897  fi
13898else
13899  RANLIB="$ac_cv_prog_RANLIB"
13900fi
13901
13902
13903# Extract the first word of "ocamlbuild", so it can be a program name with args.
13904set dummy ocamlbuild; ac_word=$2
13905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13906$as_echo_n "checking for $ac_word... " >&6; }
13907if ${ac_cv_prog_OCAMLBUILD+:} false; then :
13908  $as_echo_n "(cached) " >&6
13909else
13910  if test -n "$OCAMLBUILD"; then
13911  ac_cv_prog_OCAMLBUILD="$OCAMLBUILD" # Let the user override the test.
13912else
13913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13914for as_dir in $PATH
13915do
13916  IFS=$as_save_IFS
13917  test -z "$as_dir" && as_dir=.
13918    for ac_exec_ext in '' $ac_executable_extensions; do
13919  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13920    ac_cv_prog_OCAMLBUILD="ocamlbuild"
13921    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13922    break 2
13923  fi
13924done
13925  done
13926IFS=$as_save_IFS
13927
13928fi
13929fi
13930OCAMLBUILD=$ac_cv_prog_OCAMLBUILD
13931if test -n "$OCAMLBUILD"; then
13932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLBUILD" >&5
13933$as_echo "$OCAMLBUILD" >&6; }
13934else
13935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13936$as_echo "no" >&6; }
13937fi
13938
13939
13940
13941
13942# Check whether --enable-mpi was given.
13943if test "${enable_mpi+set}" = set; then :
13944  enableval=$enable_mpi; enable_mpi=$enableval
13945else
13946  enable_mpi=no
13947fi
13948
13949
13950if test "$enable_mpi" = "yes"; then
13951   if test $PRECISION = q; then
13952      as_fn_error $? "quad precision is not supported in MPI" "$LINENO" 5
13953   fi
13954
13955
13956
13957
13958
13959	for ac_prog in mpicc hcc mpcc mpcc_r mpxlc cmpicc
13960do
13961  # Extract the first word of "$ac_prog", so it can be a program name with args.
13962set dummy $ac_prog; ac_word=$2
13963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13964$as_echo_n "checking for $ac_word... " >&6; }
13965if ${ac_cv_prog_MPICC+:} false; then :
13966  $as_echo_n "(cached) " >&6
13967else
13968  if test -n "$MPICC"; then
13969  ac_cv_prog_MPICC="$MPICC" # Let the user override the test.
13970else
13971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972for as_dir in $PATH
13973do
13974  IFS=$as_save_IFS
13975  test -z "$as_dir" && as_dir=.
13976    for ac_exec_ext in '' $ac_executable_extensions; do
13977  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13978    ac_cv_prog_MPICC="$ac_prog"
13979    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13980    break 2
13981  fi
13982done
13983  done
13984IFS=$as_save_IFS
13985
13986fi
13987fi
13988MPICC=$ac_cv_prog_MPICC
13989if test -n "$MPICC"; then
13990  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPICC" >&5
13991$as_echo "$MPICC" >&6; }
13992else
13993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13994$as_echo "no" >&6; }
13995fi
13996
13997
13998  test -n "$MPICC" && break
13999done
14000test -n "$MPICC" || MPICC="$CC"
14001
14002	acx_mpi_save_CC="$CC"
14003	CC="$MPICC"
14004
14005
14006
14007if test x = x"$MPILIBS"; then
14008	ac_fn_c_check_func "$LINENO" "MPI_Init" "ac_cv_func_MPI_Init"
14009if test "x$ac_cv_func_MPI_Init" = xyes; then :
14010  MPILIBS=" "
14011fi
14012
14013fi
14014if test x = x"$MPILIBS"; then
14015	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpi" >&5
14016$as_echo_n "checking for MPI_Init in -lmpi... " >&6; }
14017if ${ac_cv_lib_mpi_MPI_Init+:} false; then :
14018  $as_echo_n "(cached) " >&6
14019else
14020  ac_check_lib_save_LIBS=$LIBS
14021LIBS="-lmpi  $LIBS"
14022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023/* end confdefs.h.  */
14024
14025/* Override any GCC internal prototype to avoid an error.
14026   Use char because int might match the return type of a GCC
14027   builtin and then its argument prototype would still apply.  */
14028#ifdef __cplusplus
14029extern "C"
14030#endif
14031char MPI_Init ();
14032int
14033main ()
14034{
14035return MPI_Init ();
14036  ;
14037  return 0;
14038}
14039_ACEOF
14040if ac_fn_c_try_link "$LINENO"; then :
14041  ac_cv_lib_mpi_MPI_Init=yes
14042else
14043  ac_cv_lib_mpi_MPI_Init=no
14044fi
14045rm -f core conftest.err conftest.$ac_objext \
14046    conftest$ac_exeext conftest.$ac_ext
14047LIBS=$ac_check_lib_save_LIBS
14048fi
14049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpi_MPI_Init" >&5
14050$as_echo "$ac_cv_lib_mpi_MPI_Init" >&6; }
14051if test "x$ac_cv_lib_mpi_MPI_Init" = xyes; then :
14052  MPILIBS="-lmpi"
14053fi
14054
14055fi
14056if test x = x"$MPILIBS"; then
14057	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MPI_Init in -lmpich" >&5
14058$as_echo_n "checking for MPI_Init in -lmpich... " >&6; }
14059if ${ac_cv_lib_mpich_MPI_Init+:} false; then :
14060  $as_echo_n "(cached) " >&6
14061else
14062  ac_check_lib_save_LIBS=$LIBS
14063LIBS="-lmpich  $LIBS"
14064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14065/* end confdefs.h.  */
14066
14067/* Override any GCC internal prototype to avoid an error.
14068   Use char because int might match the return type of a GCC
14069   builtin and then its argument prototype would still apply.  */
14070#ifdef __cplusplus
14071extern "C"
14072#endif
14073char MPI_Init ();
14074int
14075main ()
14076{
14077return MPI_Init ();
14078  ;
14079  return 0;
14080}
14081_ACEOF
14082if ac_fn_c_try_link "$LINENO"; then :
14083  ac_cv_lib_mpich_MPI_Init=yes
14084else
14085  ac_cv_lib_mpich_MPI_Init=no
14086fi
14087rm -f core conftest.err conftest.$ac_objext \
14088    conftest$ac_exeext conftest.$ac_ext
14089LIBS=$ac_check_lib_save_LIBS
14090fi
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpich_MPI_Init" >&5
14092$as_echo "$ac_cv_lib_mpich_MPI_Init" >&6; }
14093if test "x$ac_cv_lib_mpich_MPI_Init" = xyes; then :
14094  MPILIBS="-lmpich"
14095fi
14096
14097fi
14098
14099if test x != x"$MPILIBS"; then
14100	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpi.h" >&5
14101$as_echo_n "checking for mpi.h... " >&6; }
14102	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103/* end confdefs.h.  */
14104#include <mpi.h>
14105int
14106main ()
14107{
14108
14109  ;
14110  return 0;
14111}
14112_ACEOF
14113if ac_fn_c_try_compile "$LINENO"; then :
14114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14115$as_echo "yes" >&6; }
14116else
14117  MPILIBS=""
14118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14119$as_echo "no" >&6; }
14120fi
14121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14122fi
14123
14124CC="$acx_mpi_save_CC"
14125
14126
14127
14128# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
14129if test x = x"$MPILIBS"; then
14130        as_fn_error $? "could not find mpi library for --enable-mpi" "$LINENO" 5
14131        :
14132else
14133
14134$as_echo "#define HAVE_MPI 1" >>confdefs.h
14135
14136        :
14137fi
14138
14139   # Extract the first word of "mpirun", so it can be a program name with args.
14140set dummy mpirun; ac_word=$2
14141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14142$as_echo_n "checking for $ac_word... " >&6; }
14143if ${ac_cv_prog_MPIRUN+:} false; then :
14144  $as_echo_n "(cached) " >&6
14145else
14146  if test -n "$MPIRUN"; then
14147  ac_cv_prog_MPIRUN="$MPIRUN" # Let the user override the test.
14148else
14149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14150for as_dir in $PATH
14151do
14152  IFS=$as_save_IFS
14153  test -z "$as_dir" && as_dir=.
14154    for ac_exec_ext in '' $ac_executable_extensions; do
14155  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14156    ac_cv_prog_MPIRUN="mpirun"
14157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14158    break 2
14159  fi
14160done
14161  done
14162IFS=$as_save_IFS
14163
14164fi
14165fi
14166MPIRUN=$ac_cv_prog_MPIRUN
14167if test -n "$MPIRUN"; then
14168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPIRUN" >&5
14169$as_echo "$MPIRUN" >&6; }
14170else
14171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14172$as_echo "no" >&6; }
14173fi
14174
14175
14176
14177
14178   save_CC=$CC
14179   CC=$MPICC
14180   # The cast to long int works around a bug in the HP C Compiler
14181# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14182# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14183# This bug is HP SR number 8606223364.
14184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of MPI_Fint" >&5
14185$as_echo_n "checking size of MPI_Fint... " >&6; }
14186if ${ac_cv_sizeof_MPI_Fint+:} false; then :
14187  $as_echo_n "(cached) " >&6
14188else
14189  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (MPI_Fint))" "ac_cv_sizeof_MPI_Fint"        "#include <mpi.h>
14190"; then :
14191
14192else
14193  if test "$ac_cv_type_MPI_Fint" = yes; then
14194     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14195$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14196as_fn_error 77 "cannot compute sizeof (MPI_Fint)
14197See \`config.log' for more details" "$LINENO" 5; }
14198   else
14199     ac_cv_sizeof_MPI_Fint=0
14200   fi
14201fi
14202
14203fi
14204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_MPI_Fint" >&5
14205$as_echo "$ac_cv_sizeof_MPI_Fint" >&6; }
14206
14207
14208
14209cat >>confdefs.h <<_ACEOF
14210#define SIZEOF_MPI_FINT $ac_cv_sizeof_MPI_Fint
14211_ACEOF
14212
14213
14214   CC=$save_CC
14215   if test 0 = $ac_cv_sizeof_MPI_Fint; then
14216      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sizeof(MPI_Fint) test failed" >&5
14217$as_echo "$as_me: WARNING: sizeof(MPI_Fint) test failed" >&2;};
14218            # The cast to long int works around a bug in the HP C Compiler
14219# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14220# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14221# This bug is HP SR number 8606223364.
14222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14223$as_echo_n "checking size of int... " >&6; }
14224if ${ac_cv_sizeof_int+:} false; then :
14225  $as_echo_n "(cached) " >&6
14226else
14227  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14228
14229else
14230  if test "$ac_cv_type_int" = yes; then
14231     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14233as_fn_error 77 "cannot compute sizeof (int)
14234See \`config.log' for more details" "$LINENO" 5; }
14235   else
14236     ac_cv_sizeof_int=0
14237   fi
14238fi
14239
14240fi
14241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14242$as_echo "$ac_cv_sizeof_int" >&6; }
14243
14244
14245
14246cat >>confdefs.h <<_ACEOF
14247#define SIZEOF_INT $ac_cv_sizeof_int
14248_ACEOF
14249
14250
14251      if test 0 = $ac_cv_sizeof_int; then as_fn_error $? "sizeof(int) test failed" "$LINENO" 5; fi
14252      ac_cv_sizeof_MPI_Fint=$ac_cv_sizeof_int
14253   fi
14254   C_MPI_FINT=C_INT`expr $ac_cv_sizeof_MPI_Fint \* 8`_T
14255
14256fi
14257 if test "$enable_mpi" = "yes"; then
14258  MPI_TRUE=
14259  MPI_FALSE='#'
14260else
14261  MPI_TRUE='#'
14262  MPI_FALSE=
14263fi
14264
14265
14266
14267
14268
14269
14270
14271
14272# Try to determine "good" native compiler flags if none specified via CFLAGS
14273if test "$ac_test_CFLAGS" != "set"; then
14274  CFLAGS=""
14275  case $ax_cv_c_compiler_vendor in
14276    dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
14277    	 ;;
14278
14279    sun) CFLAGS="-native -fast -xO5 -dalign"
14280    	 ;;
14281
14282    hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
14283    	 ;;
14284
14285    ibm) xlc_opt="-qarch=auto -qtune=auto"
14286          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
14287$as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
14288ax_save_FLAGS=$CFLAGS
14289   CFLAGS="$xlc_opt"
14290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14291/* end confdefs.h.  */
14292
14293int
14294main ()
14295{
14296
14297  ;
14298  return 0;
14299}
14300_ACEOF
14301if ac_fn_c_try_compile "$LINENO"; then :
14302  eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes
14303else
14304  eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no
14305fi
14306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14307   CFLAGS=$ax_save_FLAGS
14308eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`
14309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14310$as_echo "$ax_check_compiler_flags" >&6; }
14311if test "x$ax_check_compiler_flags" = xyes; then
14312	CFLAGS="-O3 -qalias=ansi -w $xlc_opt"
14313else
14314	CFLAGS="-O3 -qalias=ansi -w"
14315fi
14316
14317         ;;
14318
14319    intel) CFLAGS="-O3"
14320        # Intel seems to have changed the spelling of this flag recently
14321        icc_ansi_alias="unknown"
14322	for flag in -ansi-alias -ansi_alias; do
14323	   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14324$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14325ax_save_FLAGS=$CFLAGS
14326   CFLAGS="$flag"
14327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328/* end confdefs.h.  */
14329
14330int
14331main ()
14332{
14333
14334  ;
14335  return 0;
14336}
14337_ACEOF
14338if ac_fn_c_try_compile "$LINENO"; then :
14339  eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
14340else
14341  eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
14342fi
14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344   CFLAGS=$ax_save_FLAGS
14345eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
14346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14347$as_echo "$ax_check_compiler_flags" >&6; }
14348if test "x$ax_check_compiler_flags" = xyes; then
14349	icc_ansi_alias=$flag; break
14350else
14351	:
14352fi
14353
14354	done
14355 	if test "x$icc_ansi_alias" != xunknown; then
14356            CFLAGS="$CFLAGS $icc_ansi_alias"
14357        fi
14358	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
14359$as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
14360if ${ax_cv_c_flags__malign_double+:} false; then :
14361  $as_echo_n "(cached) " >&6
14362else
14363
14364      ax_save_FLAGS=$CFLAGS
14365      CFLAGS="-malign-double"
14366      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14367/* end confdefs.h.  */
14368
14369int
14370main ()
14371{
14372
14373  ;
14374  return 0;
14375}
14376_ACEOF
14377if ac_fn_c_try_compile "$LINENO"; then :
14378  ax_cv_c_flags__malign_double=yes
14379else
14380  ax_cv_c_flags__malign_double=no
14381fi
14382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14383      CFLAGS=$ax_save_FLAGS
14384fi
14385
14386eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14388$as_echo "$ax_check_compiler_flags" >&6; }
14389if test "x$ax_check_compiler_flags" = xyes; then
14390	CFLAGS="$CFLAGS -malign-double"
14391else
14392	:
14393fi
14394
14395	# We used to check for architecture flags here, e.g. -xHost etc.,
14396	# but these flags are problematic.  On icc-12.0.0, "-mavx -xHost"
14397	# overrides -mavx with -xHost, generating SSE2 code instead of AVX
14398	# code.  ICC does not seem to support -mtune=host or equivalent
14399	# non-ABI changing flag.
14400	;;
14401
14402    clang)
14403        CFLAGS="-O3 -fomit-frame-pointer"
14404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
14405$as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
14406if ${ax_cv_c_flags__mtune_native+:} false; then :
14407  $as_echo_n "(cached) " >&6
14408else
14409
14410      ax_save_FLAGS=$CFLAGS
14411      CFLAGS="-mtune=native"
14412      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14413/* end confdefs.h.  */
14414
14415int
14416main ()
14417{
14418
14419  ;
14420  return 0;
14421}
14422_ACEOF
14423if ac_fn_c_try_compile "$LINENO"; then :
14424  ax_cv_c_flags__mtune_native=yes
14425else
14426  ax_cv_c_flags__mtune_native=no
14427fi
14428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429      CFLAGS=$ax_save_FLAGS
14430fi
14431
14432eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
14433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14434$as_echo "$ax_check_compiler_flags" >&6; }
14435if test "x$ax_check_compiler_flags" = xyes; then
14436	CFLAGS="$CFLAGS -mtune=native"
14437else
14438	:
14439fi
14440
14441         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
14442$as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
14443if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
14444  $as_echo_n "(cached) " >&6
14445else
14446
14447      ax_save_FLAGS=$CFLAGS
14448      CFLAGS="-fstrict-aliasing"
14449      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14450/* end confdefs.h.  */
14451
14452int
14453main ()
14454{
14455
14456  ;
14457  return 0;
14458}
14459_ACEOF
14460if ac_fn_c_try_compile "$LINENO"; then :
14461  ax_cv_c_flags__fstrict_aliasing=yes
14462else
14463  ax_cv_c_flags__fstrict_aliasing=no
14464fi
14465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466      CFLAGS=$ax_save_FLAGS
14467fi
14468
14469eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
14470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14471$as_echo "$ax_check_compiler_flags" >&6; }
14472if test "x$ax_check_compiler_flags" = xyes; then
14473	CFLAGS="$CFLAGS -fstrict-aliasing"
14474else
14475	:
14476fi
14477
14478        ;;
14479
14480    gnu)
14481     # Default optimization flags for gcc on all systems.
14482     # Somehow -O3 does not imply -fomit-frame-pointer on ia32
14483     CFLAGS="-O3 -fomit-frame-pointer"
14484
14485     # tune for the host by default
14486      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mtune=native" >&5
14487$as_echo_n "checking whether C compiler accepts -mtune=native... " >&6; }
14488if ${ax_cv_c_flags__mtune_native+:} false; then :
14489  $as_echo_n "(cached) " >&6
14490else
14491
14492      ax_save_FLAGS=$CFLAGS
14493      CFLAGS="-mtune=native"
14494      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495/* end confdefs.h.  */
14496
14497int
14498main ()
14499{
14500
14501  ;
14502  return 0;
14503}
14504_ACEOF
14505if ac_fn_c_try_compile "$LINENO"; then :
14506  ax_cv_c_flags__mtune_native=yes
14507else
14508  ax_cv_c_flags__mtune_native=no
14509fi
14510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511      CFLAGS=$ax_save_FLAGS
14512fi
14513
14514eval ax_check_compiler_flags=$ax_cv_c_flags__mtune_native
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14516$as_echo "$ax_check_compiler_flags" >&6; }
14517if test "x$ax_check_compiler_flags" = xyes; then
14518	CFLAGS="$CFLAGS -mtune=native"
14519else
14520	:
14521fi
14522
14523
14524     # -malign-double for x86 systems
14525      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
14526$as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
14527if ${ax_cv_c_flags__malign_double+:} false; then :
14528  $as_echo_n "(cached) " >&6
14529else
14530
14531      ax_save_FLAGS=$CFLAGS
14532      CFLAGS="-malign-double"
14533      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14534/* end confdefs.h.  */
14535
14536int
14537main ()
14538{
14539
14540  ;
14541  return 0;
14542}
14543_ACEOF
14544if ac_fn_c_try_compile "$LINENO"; then :
14545  ax_cv_c_flags__malign_double=yes
14546else
14547  ax_cv_c_flags__malign_double=no
14548fi
14549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550      CFLAGS=$ax_save_FLAGS
14551fi
14552
14553eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14555$as_echo "$ax_check_compiler_flags" >&6; }
14556if test "x$ax_check_compiler_flags" = xyes; then
14557	CFLAGS="$CFLAGS -malign-double"
14558else
14559	:
14560fi
14561
14562
14563     #  -fstrict-aliasing for gcc-2.95+
14564      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
14565$as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
14566if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
14567  $as_echo_n "(cached) " >&6
14568else
14569
14570      ax_save_FLAGS=$CFLAGS
14571      CFLAGS="-fstrict-aliasing"
14572      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14573/* end confdefs.h.  */
14574
14575int
14576main ()
14577{
14578
14579  ;
14580  return 0;
14581}
14582_ACEOF
14583if ac_fn_c_try_compile "$LINENO"; then :
14584  ax_cv_c_flags__fstrict_aliasing=yes
14585else
14586  ax_cv_c_flags__fstrict_aliasing=no
14587fi
14588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14589      CFLAGS=$ax_save_FLAGS
14590fi
14591
14592eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
14593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14594$as_echo "$ax_check_compiler_flags" >&6; }
14595if test "x$ax_check_compiler_flags" = xyes; then
14596	CFLAGS="$CFLAGS -fstrict-aliasing"
14597else
14598	:
14599fi
14600
14601
14602     # -fno-schedule-insns is pretty much required on all risc
14603     # processors.
14604     #
14605     # gcc performs one pass of instruction scheduling, then a pass of
14606     # register allocation, then another pass of instruction
14607     # scheduling.  The first pass reorders instructions in a way that
14608     # is pretty much the worst possible for the purposes of register
14609     # allocation.  We disable the first pass.
14610      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-schedule-insns" >&5
14611$as_echo_n "checking whether C compiler accepts -fno-schedule-insns... " >&6; }
14612if ${ax_cv_c_flags__fno_schedule_insns+:} false; then :
14613  $as_echo_n "(cached) " >&6
14614else
14615
14616      ax_save_FLAGS=$CFLAGS
14617      CFLAGS="-fno-schedule-insns"
14618      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619/* end confdefs.h.  */
14620
14621int
14622main ()
14623{
14624
14625  ;
14626  return 0;
14627}
14628_ACEOF
14629if ac_fn_c_try_compile "$LINENO"; then :
14630  ax_cv_c_flags__fno_schedule_insns=yes
14631else
14632  ax_cv_c_flags__fno_schedule_insns=no
14633fi
14634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14635      CFLAGS=$ax_save_FLAGS
14636fi
14637
14638eval ax_check_compiler_flags=$ax_cv_c_flags__fno_schedule_insns
14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14640$as_echo "$ax_check_compiler_flags" >&6; }
14641if test "x$ax_check_compiler_flags" = xyes; then
14642	CFLAGS="$CFLAGS -fno-schedule-insns"
14643else
14644	:
14645fi
14646
14647
14648     # flags to enable power ISA 2.07 instructions with gcc (always true with vsx)
14649     if test "$have_vsx" = "yes"; then
14650          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mcpu=power8" >&5
14651$as_echo_n "checking whether C compiler accepts -mcpu=power8... " >&6; }
14652if ${ax_cv_c_flags__mcpu_power8+:} false; then :
14653  $as_echo_n "(cached) " >&6
14654else
14655
14656      ax_save_FLAGS=$CFLAGS
14657      CFLAGS="-mcpu=power8"
14658      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659/* end confdefs.h.  */
14660
14661int
14662main ()
14663{
14664
14665  ;
14666  return 0;
14667}
14668_ACEOF
14669if ac_fn_c_try_compile "$LINENO"; then :
14670  ax_cv_c_flags__mcpu_power8=yes
14671else
14672  ax_cv_c_flags__mcpu_power8=no
14673fi
14674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14675      CFLAGS=$ax_save_FLAGS
14676fi
14677
14678eval ax_check_compiler_flags=$ax_cv_c_flags__mcpu_power8
14679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14680$as_echo "$ax_check_compiler_flags" >&6; }
14681if test "x$ax_check_compiler_flags" = xyes; then
14682	CFLAGS="$CFLAGS -mcpu=power8"
14683else
14684	:
14685fi
14686
14687          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-fusion" >&5
14688$as_echo_n "checking whether C compiler accepts -mpower8-fusion... " >&6; }
14689if ${ax_cv_c_flags__mpower8_fusion+:} false; then :
14690  $as_echo_n "(cached) " >&6
14691else
14692
14693      ax_save_FLAGS=$CFLAGS
14694      CFLAGS="-mpower8-fusion"
14695      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14696/* end confdefs.h.  */
14697
14698int
14699main ()
14700{
14701
14702  ;
14703  return 0;
14704}
14705_ACEOF
14706if ac_fn_c_try_compile "$LINENO"; then :
14707  ax_cv_c_flags__mpower8_fusion=yes
14708else
14709  ax_cv_c_flags__mpower8_fusion=no
14710fi
14711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14712      CFLAGS=$ax_save_FLAGS
14713fi
14714
14715eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_fusion
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14717$as_echo "$ax_check_compiler_flags" >&6; }
14718if test "x$ax_check_compiler_flags" = xyes; then
14719	CFLAGS="$CFLAGS -mpower8-fusion"
14720else
14721	:
14722fi
14723
14724          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpower8-vector" >&5
14725$as_echo_n "checking whether C compiler accepts -mpower8-vector... " >&6; }
14726if ${ax_cv_c_flags__mpower8_vector+:} false; then :
14727  $as_echo_n "(cached) " >&6
14728else
14729
14730      ax_save_FLAGS=$CFLAGS
14731      CFLAGS="-mpower8-vector"
14732      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733/* end confdefs.h.  */
14734
14735int
14736main ()
14737{
14738
14739  ;
14740  return 0;
14741}
14742_ACEOF
14743if ac_fn_c_try_compile "$LINENO"; then :
14744  ax_cv_c_flags__mpower8_vector=yes
14745else
14746  ax_cv_c_flags__mpower8_vector=no
14747fi
14748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749      CFLAGS=$ax_save_FLAGS
14750fi
14751
14752eval ax_check_compiler_flags=$ax_cv_c_flags__mpower8_vector
14753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14754$as_echo "$ax_check_compiler_flags" >&6; }
14755if test "x$ax_check_compiler_flags" = xyes; then
14756	CFLAGS="$CFLAGS -mpower8-vector"
14757else
14758	:
14759fi
14760
14761          { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mdirect-move" >&5
14762$as_echo_n "checking whether C compiler accepts -mdirect-move... " >&6; }
14763if ${ax_cv_c_flags__mdirect_move+:} false; then :
14764  $as_echo_n "(cached) " >&6
14765else
14766
14767      ax_save_FLAGS=$CFLAGS
14768      CFLAGS="-mdirect-move"
14769      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770/* end confdefs.h.  */
14771
14772int
14773main ()
14774{
14775
14776  ;
14777  return 0;
14778}
14779_ACEOF
14780if ac_fn_c_try_compile "$LINENO"; then :
14781  ax_cv_c_flags__mdirect_move=yes
14782else
14783  ax_cv_c_flags__mdirect_move=no
14784fi
14785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786      CFLAGS=$ax_save_FLAGS
14787fi
14788
14789eval ax_check_compiler_flags=$ax_cv_c_flags__mdirect_move
14790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14791$as_echo "$ax_check_compiler_flags" >&6; }
14792if test "x$ax_check_compiler_flags" = xyes; then
14793	CFLAGS="$CFLAGS -mdirect-move"
14794else
14795	:
14796fi
14797
14798     fi
14799     ;;
14800  esac
14801
14802  if test -z "$CFLAGS"; then
14803	echo ""
14804	echo "********************************************************"
14805        echo "* WARNING: Don't know the best CFLAGS for this system  *"
14806        echo "* Use ./configure CFLAGS=... to specify your own flags *"
14807	echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
14808	echo "********************************************************"
14809	echo ""
14810        CFLAGS="-O3"
14811  fi
14812
14813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
14814$as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
14815ax_save_FLAGS=$CFLAGS
14816   CFLAGS="$CFLAGS"
14817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14818/* end confdefs.h.  */
14819
14820int
14821main ()
14822{
14823
14824  ;
14825  return 0;
14826}
14827_ACEOF
14828if ac_fn_c_try_compile "$LINENO"; then :
14829  eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes
14830else
14831  eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no
14832fi
14833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14834   CFLAGS=$ax_save_FLAGS
14835eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`
14836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14837$as_echo "$ax_check_compiler_flags" >&6; }
14838if test "x$ax_check_compiler_flags" = xyes; then
14839	:
14840else
14841
14842	echo ""
14843        echo "********************************************************"
14844        echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
14845        echo "* your compiler.                                       *"
14846        echo "* Use ./configure CFLAGS=... to specify your own flags *"
14847        echo "********************************************************"
14848        echo ""
14849        CFLAGS=""
14850
14851fi
14852
14853
14854fi
14855
14856
14857case "${ax_cv_c_compiler_vendor}" in
14858   hp) # must (sometimes) manually increase cpp limits to handle fftw3.h
14859         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wp,-H128000" >&5
14860$as_echo_n "checking whether C compiler accepts -Wp,-H128000... " >&6; }
14861if ${ax_cv_c_flags__Wp+:} false; then :
14862  $as_echo_n "(cached) " >&6
14863else
14864
14865      ax_save_FLAGS=$CFLAGS
14866      CFLAGS="-Wp,-H128000"
14867      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14868/* end confdefs.h.  */
14869
14870int
14871main ()
14872{
14873
14874  ;
14875  return 0;
14876}
14877_ACEOF
14878if ac_fn_c_try_compile "$LINENO"; then :
14879  ax_cv_c_flags__Wp=yes
14880else
14881  ax_cv_c_flags__Wp=no
14882fi
14883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884      CFLAGS=$ax_save_FLAGS
14885fi
14886
14887eval ax_check_compiler_flags=$ax_cv_c_flags__Wp
14888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14889$as_echo "$ax_check_compiler_flags" >&6; }
14890if test "x$ax_check_compiler_flags" = xyes; then
14891	CC="$CC -Wp,-H128000"
14892else
14893	:
14894fi
14895
14896        ;;
14897
14898   portland) # -Masmkeyword required for asm("") cycle counters
14899         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Masmkeyword" >&5
14900$as_echo_n "checking whether C compiler accepts -Masmkeyword... " >&6; }
14901if ${ax_cv_c_flags__Masmkeyword+:} false; then :
14902  $as_echo_n "(cached) " >&6
14903else
14904
14905      ax_save_FLAGS=$CFLAGS
14906      CFLAGS="-Masmkeyword"
14907      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908/* end confdefs.h.  */
14909
14910int
14911main ()
14912{
14913
14914  ;
14915  return 0;
14916}
14917_ACEOF
14918if ac_fn_c_try_compile "$LINENO"; then :
14919  ax_cv_c_flags__Masmkeyword=yes
14920else
14921  ax_cv_c_flags__Masmkeyword=no
14922fi
14923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14924      CFLAGS=$ax_save_FLAGS
14925fi
14926
14927eval ax_check_compiler_flags=$ax_cv_c_flags__Masmkeyword
14928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14929$as_echo "$ax_check_compiler_flags" >&6; }
14930if test "x$ax_check_compiler_flags" = xyes; then
14931	CC="$CC -Masmkeyword"
14932else
14933	:
14934fi
14935
14936        ;;
14937esac
14938
14939case "${ax_cv_c_compiler_vendor}" in
14940    gnu|intel|clang)
14941        # SSE/SSE2
14942        if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
14943            if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi
14944             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -$flag" >&5
14945$as_echo_n "checking whether C compiler accepts -$flag... " >&6; }
14946ax_save_FLAGS=$CFLAGS
14947   CFLAGS="-$flag"
14948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14949/* end confdefs.h.  */
14950
14951int
14952main ()
14953{
14954
14955  ;
14956  return 0;
14957}
14958_ACEOF
14959if ac_fn_c_try_compile "$LINENO"; then :
14960  eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=yes
14961else
14962  eval `$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`=no
14963fi
14964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14965   CFLAGS=$ax_save_FLAGS
14966eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_-$flag" | $as_tr_sh`
14967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
14968$as_echo "$ax_check_compiler_flags" >&6; }
14969if test "x$ax_check_compiler_flags" = xyes; then
14970	SSE2_CFLAGS="-$flag"
14971else
14972	as_fn_error $? "Need a version of gcc with -$flag" "$LINENO" 5
14973fi
14974
14975        fi
14976
14977        # AVX
14978        if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
14979             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
14980$as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
14981if ${ax_cv_c_flags__mavx+:} false; then :
14982  $as_echo_n "(cached) " >&6
14983else
14984
14985      ax_save_FLAGS=$CFLAGS
14986      CFLAGS="-mavx"
14987      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14988/* end confdefs.h.  */
14989
14990int
14991main ()
14992{
14993
14994  ;
14995  return 0;
14996}
14997_ACEOF
14998if ac_fn_c_try_compile "$LINENO"; then :
14999  ax_cv_c_flags__mavx=yes
15000else
15001  ax_cv_c_flags__mavx=no
15002fi
15003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004      CFLAGS=$ax_save_FLAGS
15005fi
15006
15007eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
15008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15009$as_echo "$ax_check_compiler_flags" >&6; }
15010if test "x$ax_check_compiler_flags" = xyes; then
15011	AVX_CFLAGS="-mavx"
15012else
15013	as_fn_error $? "Need a version of gcc with -mavx" "$LINENO" 5
15014fi
15015
15016        fi
15017
15018        # AVX2
15019        # gcc-4.8 works with -march=core-avx2, but -mavx2 is not enough.
15020        # Later versions seem to happy with -mavx2, so try the arch one first.
15021        if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then
15022             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -march=core-avx2" >&5
15023$as_echo_n "checking whether C compiler accepts -march=core-avx2... " >&6; }
15024if ${ax_cv_c_flags__march_core_avx2+:} false; then :
15025  $as_echo_n "(cached) " >&6
15026else
15027
15028      ax_save_FLAGS=$CFLAGS
15029      CFLAGS="-march=core-avx2"
15030      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031/* end confdefs.h.  */
15032
15033int
15034main ()
15035{
15036
15037  ;
15038  return 0;
15039}
15040_ACEOF
15041if ac_fn_c_try_compile "$LINENO"; then :
15042  ax_cv_c_flags__march_core_avx2=yes
15043else
15044  ax_cv_c_flags__march_core_avx2=no
15045fi
15046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047      CFLAGS=$ax_save_FLAGS
15048fi
15049
15050eval ax_check_compiler_flags=$ax_cv_c_flags__march_core_avx2
15051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15052$as_echo "$ax_check_compiler_flags" >&6; }
15053if test "x$ax_check_compiler_flags" = xyes; then
15054	AVX2_CFLAGS="-march=core-avx2"
15055else
15056	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
15057$as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
15058if ${ax_cv_c_flags__mavx2+:} false; then :
15059  $as_echo_n "(cached) " >&6
15060else
15061
15062      ax_save_FLAGS=$CFLAGS
15063      CFLAGS="-mavx2"
15064      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15065/* end confdefs.h.  */
15066
15067int
15068main ()
15069{
15070
15071  ;
15072  return 0;
15073}
15074_ACEOF
15075if ac_fn_c_try_compile "$LINENO"; then :
15076  ax_cv_c_flags__mavx2=yes
15077else
15078  ax_cv_c_flags__mavx2=no
15079fi
15080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15081      CFLAGS=$ax_save_FLAGS
15082fi
15083
15084eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2
15085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15086$as_echo "$ax_check_compiler_flags" >&6; }
15087if test "x$ax_check_compiler_flags" = xyes; then
15088	AVX2_CFLAGS="-mavx2"
15089else
15090	as_fn_error $? "Need a version of gcc with either -march=core-avx2 or -mavx2" "$LINENO" 5
15091fi
15092
15093fi
15094
15095             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5
15096$as_echo_n "checking whether C compiler accepts -mfma... " >&6; }
15097if ${ax_cv_c_flags__mfma+:} false; then :
15098  $as_echo_n "(cached) " >&6
15099else
15100
15101      ax_save_FLAGS=$CFLAGS
15102      CFLAGS="-mfma"
15103      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104/* end confdefs.h.  */
15105
15106int
15107main ()
15108{
15109
15110  ;
15111  return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_compile "$LINENO"; then :
15115  ax_cv_c_flags__mfma=yes
15116else
15117  ax_cv_c_flags__mfma=no
15118fi
15119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15120      CFLAGS=$ax_save_FLAGS
15121fi
15122
15123eval ax_check_compiler_flags=$ax_cv_c_flags__mfma
15124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15125$as_echo "$ax_check_compiler_flags" >&6; }
15126if test "x$ax_check_compiler_flags" = xyes; then
15127	AVX2_CFLAGS="$AVX2_CFLAGS -mfma"
15128else
15129	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&5
15130$as_echo "$as_me: WARNING: Need a version of gcc with -mfma (harmless for icc)" >&2;}
15131fi
15132
15133        fi
15134
15135        # AVX512
15136        if test "$have_avx512" = "yes" -a "x$AVX512_CFLAGS" = x; then
15137             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
15138$as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
15139if ${ax_cv_c_flags__mavx512f+:} false; then :
15140  $as_echo_n "(cached) " >&6
15141else
15142
15143      ax_save_FLAGS=$CFLAGS
15144      CFLAGS="-mavx512f"
15145      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146/* end confdefs.h.  */
15147
15148int
15149main ()
15150{
15151
15152  ;
15153  return 0;
15154}
15155_ACEOF
15156if ac_fn_c_try_compile "$LINENO"; then :
15157  ax_cv_c_flags__mavx512f=yes
15158else
15159  ax_cv_c_flags__mavx512f=no
15160fi
15161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15162      CFLAGS=$ax_save_FLAGS
15163fi
15164
15165eval ax_check_compiler_flags=$ax_cv_c_flags__mavx512f
15166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15167$as_echo "$ax_check_compiler_flags" >&6; }
15168if test "x$ax_check_compiler_flags" = xyes; then
15169	AVX512_CFLAGS="-mavx512f"
15170else
15171	as_fn_error $? "Need a version of gcc with -mavx512f" "$LINENO" 5
15172fi
15173
15174        fi
15175
15176        if test "$host_vendor" = "apple"; then
15177            # We need to tell gcc to use an external assembler to get AVX/AVX2 with gcc on OS X
15178             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wa,-q" >&5
15179$as_echo_n "checking whether C compiler accepts -Wa,-q... " >&6; }
15180if ${ax_cv_c_flags__Wa+:} false; then :
15181  $as_echo_n "(cached) " >&6
15182else
15183
15184      ax_save_FLAGS=$CFLAGS
15185      CFLAGS="-Wa,-q"
15186      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15187/* end confdefs.h.  */
15188
15189int
15190main ()
15191{
15192
15193  ;
15194  return 0;
15195}
15196_ACEOF
15197if ac_fn_c_try_compile "$LINENO"; then :
15198  ax_cv_c_flags__Wa=yes
15199else
15200  ax_cv_c_flags__Wa=no
15201fi
15202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15203      CFLAGS=$ax_save_FLAGS
15204fi
15205
15206eval ax_check_compiler_flags=$ax_cv_c_flags__Wa
15207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15208$as_echo "$ax_check_compiler_flags" >&6; }
15209if test "x$ax_check_compiler_flags" = xyes; then
15210	CFLAGS="$CFLAGS -Wa,-q"
15211else
15212	:
15213fi
15214
15215            # Disable the new compact unwinding format so we avoid warnings/potential errors.
15216             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wl,-no_compact_unwind" >&5
15217$as_echo_n "checking whether C compiler accepts -Wl,-no_compact_unwind... " >&6; }
15218if ${ax_cv_c_flags__Wl+:} false; then :
15219  $as_echo_n "(cached) " >&6
15220else
15221
15222      ax_save_FLAGS=$CFLAGS
15223      CFLAGS="-Wl,-no_compact_unwind"
15224      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15225/* end confdefs.h.  */
15226
15227int
15228main ()
15229{
15230
15231  ;
15232  return 0;
15233}
15234_ACEOF
15235if ac_fn_c_try_compile "$LINENO"; then :
15236  ax_cv_c_flags__Wl=yes
15237else
15238  ax_cv_c_flags__Wl=no
15239fi
15240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241      CFLAGS=$ax_save_FLAGS
15242fi
15243
15244eval ax_check_compiler_flags=$ax_cv_c_flags__Wl
15245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15246$as_echo "$ax_check_compiler_flags" >&6; }
15247if test "x$ax_check_compiler_flags" = xyes; then
15248	CFLAGS="$CFLAGS -Wl,-no_compact_unwind"
15249else
15250	:
15251fi
15252
15253        fi
15254
15255        # KCVI
15256        if test "$have_kcvi" = "yes" -a "x$KCVI_CFLAGS" = x; then
15257             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mmic" >&5
15258$as_echo_n "checking whether C compiler accepts -mmic... " >&6; }
15259if ${ax_cv_c_flags__mmic+:} false; then :
15260  $as_echo_n "(cached) " >&6
15261else
15262
15263      ax_save_FLAGS=$CFLAGS
15264      CFLAGS="-mmic"
15265      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266/* end confdefs.h.  */
15267
15268int
15269main ()
15270{
15271
15272  ;
15273  return 0;
15274}
15275_ACEOF
15276if ac_fn_c_try_compile "$LINENO"; then :
15277  ax_cv_c_flags__mmic=yes
15278else
15279  ax_cv_c_flags__mmic=no
15280fi
15281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15282      CFLAGS=$ax_save_FLAGS
15283fi
15284
15285eval ax_check_compiler_flags=$ax_cv_c_flags__mmic
15286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15287$as_echo "$ax_check_compiler_flags" >&6; }
15288if test "x$ax_check_compiler_flags" = xyes; then
15289	KCVI_CFLAGS="-mmic"
15290else
15291	as_fn_error $? "Need a version of icc with -mmic" "$LINENO" 5
15292fi
15293
15294        fi
15295
15296        if test "$have_altivec" = "yes" -a "x$ALTIVEC_CFLAGS" = x; then
15297            # -DFAKE__VEC__ is a workaround because gcc-3.3 does not
15298            # #define __VEC__ with -maltivec.
15299             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -faltivec" >&5
15300$as_echo_n "checking whether C compiler accepts -faltivec... " >&6; }
15301if ${ax_cv_c_flags__faltivec+:} false; then :
15302  $as_echo_n "(cached) " >&6
15303else
15304
15305      ax_save_FLAGS=$CFLAGS
15306      CFLAGS="-faltivec"
15307      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15308/* end confdefs.h.  */
15309
15310int
15311main ()
15312{
15313
15314  ;
15315  return 0;
15316}
15317_ACEOF
15318if ac_fn_c_try_compile "$LINENO"; then :
15319  ax_cv_c_flags__faltivec=yes
15320else
15321  ax_cv_c_flags__faltivec=no
15322fi
15323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15324      CFLAGS=$ax_save_FLAGS
15325fi
15326
15327eval ax_check_compiler_flags=$ax_cv_c_flags__faltivec
15328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15329$as_echo "$ax_check_compiler_flags" >&6; }
15330if test "x$ax_check_compiler_flags" = xyes; then
15331	ALTIVEC_CFLAGS="-faltivec"
15332else
15333	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec -mabi=altivec" >&5
15334$as_echo_n "checking whether C compiler accepts -maltivec -mabi=altivec... " >&6; }
15335if ${ax_cv_c_flags__maltivec__mabi_altivec+:} false; then :
15336  $as_echo_n "(cached) " >&6
15337else
15338
15339      ax_save_FLAGS=$CFLAGS
15340      CFLAGS="-maltivec -mabi=altivec"
15341      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342/* end confdefs.h.  */
15343
15344int
15345main ()
15346{
15347
15348  ;
15349  return 0;
15350}
15351_ACEOF
15352if ac_fn_c_try_compile "$LINENO"; then :
15353  ax_cv_c_flags__maltivec__mabi_altivec=yes
15354else
15355  ax_cv_c_flags__maltivec__mabi_altivec=no
15356fi
15357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358      CFLAGS=$ax_save_FLAGS
15359fi
15360
15361eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec__mabi_altivec
15362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15363$as_echo "$ax_check_compiler_flags" >&6; }
15364if test "x$ax_check_compiler_flags" = xyes; then
15365	ALTIVEC_CFLAGS="-maltivec -mabi=altivec -DFAKE__VEC__"
15366else
15367	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvec" >&5
15368$as_echo_n "checking whether C compiler accepts -fvec... " >&6; }
15369if ${ax_cv_c_flags__fvec+:} false; then :
15370  $as_echo_n "(cached) " >&6
15371else
15372
15373      ax_save_FLAGS=$CFLAGS
15374      CFLAGS="-fvec"
15375      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376/* end confdefs.h.  */
15377
15378int
15379main ()
15380{
15381
15382  ;
15383  return 0;
15384}
15385_ACEOF
15386if ac_fn_c_try_compile "$LINENO"; then :
15387  ax_cv_c_flags__fvec=yes
15388else
15389  ax_cv_c_flags__fvec=no
15390fi
15391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15392      CFLAGS=$ax_save_FLAGS
15393fi
15394
15395eval ax_check_compiler_flags=$ax_cv_c_flags__fvec
15396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15397$as_echo "$ax_check_compiler_flags" >&6; }
15398if test "x$ax_check_compiler_flags" = xyes; then
15399	ALTIVEC_CFLAGS="-fvec"
15400else
15401	as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
15402fi
15403
15404fi
15405
15406fi
15407
15408        fi
15409
15410        case "${host_cpu}" in
15411            aarch64)
15412                ;;
15413            *)
15414                if test "$have_neon" = "yes" -a "x$NEON_CFLAGS" = x; then
15415                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5
15416$as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; }
15417if ${ax_cv_c_flags__mfpu_neon+:} false; then :
15418  $as_echo_n "(cached) " >&6
15419else
15420
15421      ax_save_FLAGS=$CFLAGS
15422      CFLAGS="-mfpu=neon"
15423      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15424/* end confdefs.h.  */
15425
15426int
15427main ()
15428{
15429
15430  ;
15431  return 0;
15432}
15433_ACEOF
15434if ac_fn_c_try_compile "$LINENO"; then :
15435  ax_cv_c_flags__mfpu_neon=yes
15436else
15437  ax_cv_c_flags__mfpu_neon=no
15438fi
15439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440      CFLAGS=$ax_save_FLAGS
15441fi
15442
15443eval ax_check_compiler_flags=$ax_cv_c_flags__mfpu_neon
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15445$as_echo "$ax_check_compiler_flags" >&6; }
15446if test "x$ax_check_compiler_flags" = xyes; then
15447	NEON_CFLAGS="-mfpu=neon"
15448else
15449	as_fn_error $? "Need a version of gcc with -mfpu=neon" "$LINENO" 5
15450fi
15451
15452                fi
15453                ;;
15454        esac
15455
15456        if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
15457             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5
15458$as_echo_n "checking whether C compiler accepts -mvsx... " >&6; }
15459if ${ax_cv_c_flags__mvsx+:} false; then :
15460  $as_echo_n "(cached) " >&6
15461else
15462
15463      ax_save_FLAGS=$CFLAGS
15464      CFLAGS="-mvsx"
15465      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466/* end confdefs.h.  */
15467
15468int
15469main ()
15470{
15471
15472  ;
15473  return 0;
15474}
15475_ACEOF
15476if ac_fn_c_try_compile "$LINENO"; then :
15477  ax_cv_c_flags__mvsx=yes
15478else
15479  ax_cv_c_flags__mvsx=no
15480fi
15481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482      CFLAGS=$ax_save_FLAGS
15483fi
15484
15485eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx
15486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15487$as_echo "$ax_check_compiler_flags" >&6; }
15488if test "x$ax_check_compiler_flags" = xyes; then
15489	VSX_CFLAGS="-mvsx"
15490else
15491	as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5
15492fi
15493
15494        fi
15495
15496                                                        ;;
15497
15498    clang)
15499
15500        if test "$have_avx" = "yes" -a "x$AVX_CFLAGS" = x; then
15501             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx" >&5
15502$as_echo_n "checking whether C compiler accepts -mavx... " >&6; }
15503if ${ax_cv_c_flags__mavx+:} false; then :
15504  $as_echo_n "(cached) " >&6
15505else
15506
15507      ax_save_FLAGS=$CFLAGS
15508      CFLAGS="-mavx"
15509      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15510/* end confdefs.h.  */
15511
15512int
15513main ()
15514{
15515
15516  ;
15517  return 0;
15518}
15519_ACEOF
15520if ac_fn_c_try_compile "$LINENO"; then :
15521  ax_cv_c_flags__mavx=yes
15522else
15523  ax_cv_c_flags__mavx=no
15524fi
15525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526      CFLAGS=$ax_save_FLAGS
15527fi
15528
15529eval ax_check_compiler_flags=$ax_cv_c_flags__mavx
15530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15531$as_echo "$ax_check_compiler_flags" >&6; }
15532if test "x$ax_check_compiler_flags" = xyes; then
15533	AVX_CFLAGS="-mavx"
15534else
15535	as_fn_error $? "Need a version of clang with -mavx" "$LINENO" 5
15536fi
15537
15538        fi
15539
15540        if test "$have_avx2" = "yes" -a "x$AVX2_CFLAGS" = x; then
15541                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx2" >&5
15542$as_echo_n "checking whether C compiler accepts -mavx2... " >&6; }
15543if ${ax_cv_c_flags__mavx2+:} false; then :
15544  $as_echo_n "(cached) " >&6
15545else
15546
15547      ax_save_FLAGS=$CFLAGS
15548      CFLAGS="-mavx2"
15549      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15550/* end confdefs.h.  */
15551
15552int
15553main ()
15554{
15555
15556  ;
15557  return 0;
15558}
15559_ACEOF
15560if ac_fn_c_try_compile "$LINENO"; then :
15561  ax_cv_c_flags__mavx2=yes
15562else
15563  ax_cv_c_flags__mavx2=no
15564fi
15565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15566      CFLAGS=$ax_save_FLAGS
15567fi
15568
15569eval ax_check_compiler_flags=$ax_cv_c_flags__mavx2
15570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15571$as_echo "$ax_check_compiler_flags" >&6; }
15572if test "x$ax_check_compiler_flags" = xyes; then
15573	AVX2_CFLAGS="-mavx2"
15574else
15575	as_fn_error $? "Need a version of clang with -mavx2" "$LINENO" 5
15576fi
15577
15578                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfma" >&5
15579$as_echo_n "checking whether C compiler accepts -mfma... " >&6; }
15580if ${ax_cv_c_flags__mfma+:} false; then :
15581  $as_echo_n "(cached) " >&6
15582else
15583
15584      ax_save_FLAGS=$CFLAGS
15585      CFLAGS="-mfma"
15586      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587/* end confdefs.h.  */
15588
15589int
15590main ()
15591{
15592
15593  ;
15594  return 0;
15595}
15596_ACEOF
15597if ac_fn_c_try_compile "$LINENO"; then :
15598  ax_cv_c_flags__mfma=yes
15599else
15600  ax_cv_c_flags__mfma=no
15601fi
15602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15603      CFLAGS=$ax_save_FLAGS
15604fi
15605
15606eval ax_check_compiler_flags=$ax_cv_c_flags__mfma
15607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15608$as_echo "$ax_check_compiler_flags" >&6; }
15609if test "x$ax_check_compiler_flags" = xyes; then
15610	AVX2_CFLAGS="$AVX2_CFLAGS -mfma"
15611else
15612	:
15613fi
15614
15615        fi
15616
15617        # AVX512
15618        if test "$have_avx512" = "yes" -a "x$AVX512_CFLAGS" = x; then
15619             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mavx512f" >&5
15620$as_echo_n "checking whether C compiler accepts -mavx512f... " >&6; }
15621if ${ax_cv_c_flags__mavx512f+:} false; then :
15622  $as_echo_n "(cached) " >&6
15623else
15624
15625      ax_save_FLAGS=$CFLAGS
15626      CFLAGS="-mavx512f"
15627      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628/* end confdefs.h.  */
15629
15630int
15631main ()
15632{
15633
15634  ;
15635  return 0;
15636}
15637_ACEOF
15638if ac_fn_c_try_compile "$LINENO"; then :
15639  ax_cv_c_flags__mavx512f=yes
15640else
15641  ax_cv_c_flags__mavx512f=no
15642fi
15643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15644      CFLAGS=$ax_save_FLAGS
15645fi
15646
15647eval ax_check_compiler_flags=$ax_cv_c_flags__mavx512f
15648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15649$as_echo "$ax_check_compiler_flags" >&6; }
15650if test "x$ax_check_compiler_flags" = xyes; then
15651	AVX512_CFLAGS="-mavx512f"
15652else
15653	as_fn_error $? "Need a version of clang with -mavx512f" "$LINENO" 5
15654fi
15655
15656        fi
15657
15658        if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
15659            # clang appears to need both -mvsx and -maltivec for VSX
15660             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -maltivec" >&5
15661$as_echo_n "checking whether C compiler accepts -maltivec... " >&6; }
15662if ${ax_cv_c_flags__maltivec+:} false; then :
15663  $as_echo_n "(cached) " >&6
15664else
15665
15666      ax_save_FLAGS=$CFLAGS
15667      CFLAGS="-maltivec"
15668      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669/* end confdefs.h.  */
15670
15671int
15672main ()
15673{
15674
15675  ;
15676  return 0;
15677}
15678_ACEOF
15679if ac_fn_c_try_compile "$LINENO"; then :
15680  ax_cv_c_flags__maltivec=yes
15681else
15682  ax_cv_c_flags__maltivec=no
15683fi
15684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685      CFLAGS=$ax_save_FLAGS
15686fi
15687
15688eval ax_check_compiler_flags=$ax_cv_c_flags__maltivec
15689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15690$as_echo "$ax_check_compiler_flags" >&6; }
15691if test "x$ax_check_compiler_flags" = xyes; then
15692	VSX_CFLAGS="-maltivec"
15693else
15694	as_fn_error $? "Need a version of gcc with -maltivec" "$LINENO" 5
15695fi
15696
15697             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mvsx" >&5
15698$as_echo_n "checking whether C compiler accepts -mvsx... " >&6; }
15699if ${ax_cv_c_flags__mvsx+:} false; then :
15700  $as_echo_n "(cached) " >&6
15701else
15702
15703      ax_save_FLAGS=$CFLAGS
15704      CFLAGS="-mvsx"
15705      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706/* end confdefs.h.  */
15707
15708int
15709main ()
15710{
15711
15712  ;
15713  return 0;
15714}
15715_ACEOF
15716if ac_fn_c_try_compile "$LINENO"; then :
15717  ax_cv_c_flags__mvsx=yes
15718else
15719  ax_cv_c_flags__mvsx=no
15720fi
15721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15722      CFLAGS=$ax_save_FLAGS
15723fi
15724
15725eval ax_check_compiler_flags=$ax_cv_c_flags__mvsx
15726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15727$as_echo "$ax_check_compiler_flags" >&6; }
15728if test "x$ax_check_compiler_flags" = xyes; then
15729	VSX_CFLAGS="-mvsx $VSX_CFLAGS"
15730else
15731	as_fn_error $? "Need a version of gcc with -mvsx" "$LINENO" 5
15732fi
15733
15734        fi
15735        ;;
15736
15737    ibm)
15738        if test "$have_vsx" = "yes" -a "x$VSX_CFLAGS" = x; then
15739            # Note that IBM xlC uses -qaltivec for VSX too.
15740             { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -qaltivec" >&5
15741$as_echo_n "checking whether C compiler accepts -qaltivec... " >&6; }
15742if ${ax_cv_c_flags__qaltivec+:} false; then :
15743  $as_echo_n "(cached) " >&6
15744else
15745
15746      ax_save_FLAGS=$CFLAGS
15747      CFLAGS="-qaltivec"
15748      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749/* end confdefs.h.  */
15750
15751int
15752main ()
15753{
15754
15755  ;
15756  return 0;
15757}
15758_ACEOF
15759if ac_fn_c_try_compile "$LINENO"; then :
15760  ax_cv_c_flags__qaltivec=yes
15761else
15762  ax_cv_c_flags__qaltivec=no
15763fi
15764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15765      CFLAGS=$ax_save_FLAGS
15766fi
15767
15768eval ax_check_compiler_flags=$ax_cv_c_flags__qaltivec
15769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15770$as_echo "$ax_check_compiler_flags" >&6; }
15771if test "x$ax_check_compiler_flags" = xyes; then
15772	VSX_CFLAGS="-qaltivec"
15773else
15774	as_fn_error $? "Need a version of gcc with -qaltivec" "$LINENO" 5
15775fi
15776
15777        fi
15778        ;;
15779esac
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790if test "$with_incoming_stack_boundary"x != "no"x; then
15791   case "${ax_cv_c_compiler_vendor}" in
15792      gnu)
15793        tentative_flags="-mincoming-stack-boundary=$with_incoming_stack_boundary";
15794         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $tentative_flags" >&5
15795$as_echo_n "checking whether C compiler accepts $tentative_flags... " >&6; }
15796ax_save_FLAGS=$CFLAGS
15797   CFLAGS="$tentative_flags"
15798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799/* end confdefs.h.  */
15800
15801int
15802main ()
15803{
15804
15805  ;
15806  return 0;
15807}
15808_ACEOF
15809if ac_fn_c_try_compile "$LINENO"; then :
15810  eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=yes
15811else
15812  eval `$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`=no
15813fi
15814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815   CFLAGS=$ax_save_FLAGS
15816eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$tentative_flags" | $as_tr_sh`
15817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
15818$as_echo "$ax_check_compiler_flags" >&6; }
15819if test "x$ax_check_compiler_flags" = xyes; then
15820	STACK_ALIGN_CFLAGS=$tentative_flags
15821else
15822	:
15823fi
15824
15825      ;;
15826   esac
15827fi
15828
15829
15830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15831$as_echo_n "checking for ANSI C header files... " >&6; }
15832if ${ac_cv_header_stdc+:} false; then :
15833  $as_echo_n "(cached) " >&6
15834else
15835  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836/* end confdefs.h.  */
15837#include <stdlib.h>
15838#include <stdarg.h>
15839#include <string.h>
15840#include <float.h>
15841
15842int
15843main ()
15844{
15845
15846  ;
15847  return 0;
15848}
15849_ACEOF
15850if ac_fn_c_try_compile "$LINENO"; then :
15851  ac_cv_header_stdc=yes
15852else
15853  ac_cv_header_stdc=no
15854fi
15855rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856
15857if test $ac_cv_header_stdc = yes; then
15858  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860/* end confdefs.h.  */
15861#include <string.h>
15862
15863_ACEOF
15864if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15865  $EGREP "memchr" >/dev/null 2>&1; then :
15866
15867else
15868  ac_cv_header_stdc=no
15869fi
15870rm -f conftest*
15871
15872fi
15873
15874if test $ac_cv_header_stdc = yes; then
15875  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15876  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877/* end confdefs.h.  */
15878#include <stdlib.h>
15879
15880_ACEOF
15881if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15882  $EGREP "free" >/dev/null 2>&1; then :
15883
15884else
15885  ac_cv_header_stdc=no
15886fi
15887rm -f conftest*
15888
15889fi
15890
15891if test $ac_cv_header_stdc = yes; then
15892  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15893  if test "$cross_compiling" = yes; then :
15894  :
15895else
15896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897/* end confdefs.h.  */
15898#include <ctype.h>
15899#include <stdlib.h>
15900#if ((' ' & 0x0FF) == 0x020)
15901# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15902# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15903#else
15904# define ISLOWER(c) \
15905		   (('a' <= (c) && (c) <= 'i') \
15906		     || ('j' <= (c) && (c) <= 'r') \
15907		     || ('s' <= (c) && (c) <= 'z'))
15908# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15909#endif
15910
15911#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15912int
15913main ()
15914{
15915  int i;
15916  for (i = 0; i < 256; i++)
15917    if (XOR (islower (i), ISLOWER (i))
15918	|| toupper (i) != TOUPPER (i))
15919      return 2;
15920  return 0;
15921}
15922_ACEOF
15923if ac_fn_c_try_run "$LINENO"; then :
15924
15925else
15926  ac_cv_header_stdc=no
15927fi
15928rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15929  conftest.$ac_objext conftest.beam conftest.$ac_ext
15930fi
15931
15932fi
15933fi
15934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15935$as_echo "$ac_cv_header_stdc" >&6; }
15936if test $ac_cv_header_stdc = yes; then
15937
15938$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15939
15940fi
15941
15942for ac_header in fcntl.h fenv.h limits.h malloc.h stddef.h sys/time.h
15943do :
15944  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15945ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15946if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15947  cat >>confdefs.h <<_ACEOF
15948#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15949_ACEOF
15950
15951fi
15952
15953done
15954
15955
15956save_CFLAGS="$CFLAGS"
15957save_CPPFLAGS="$CPPFLAGS"
15958CFLAGS="$CFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS"
15959CPPFLAGS="$CPPFLAGS $ALTIVEC_CFLAGS $VSX_CFLAGS"
15960for ac_header in altivec.h
15961do :
15962  ac_fn_c_check_header_mongrel "$LINENO" "altivec.h" "ac_cv_header_altivec_h" "$ac_includes_default"
15963if test "x$ac_cv_header_altivec_h" = xyes; then :
15964  cat >>confdefs.h <<_ACEOF
15965#define HAVE_ALTIVEC_H 1
15966_ACEOF
15967
15968fi
15969
15970done
15971
15972CFLAGS="$save_CFLAGS"
15973CPPFLAGS="$save_CPPFLAGS"
15974
15975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15976$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15977if ${ac_cv_c_const+:} false; then :
15978  $as_echo_n "(cached) " >&6
15979else
15980  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981/* end confdefs.h.  */
15982
15983int
15984main ()
15985{
15986
15987#ifndef __cplusplus
15988  /* Ultrix mips cc rejects this sort of thing.  */
15989  typedef int charset[2];
15990  const charset cs = { 0, 0 };
15991  /* SunOS 4.1.1 cc rejects this.  */
15992  char const *const *pcpcc;
15993  char **ppc;
15994  /* NEC SVR4.0.2 mips cc rejects this.  */
15995  struct point {int x, y;};
15996  static struct point const zero = {0,0};
15997  /* AIX XL C 1.02.0.0 rejects this.
15998     It does not let you subtract one const X* pointer from another in
15999     an arm of an if-expression whose if-part is not a constant
16000     expression */
16001  const char *g = "string";
16002  pcpcc = &g + (g ? g-g : 0);
16003  /* HPUX 7.0 cc rejects these. */
16004  ++pcpcc;
16005  ppc = (char**) pcpcc;
16006  pcpcc = (char const *const *) ppc;
16007  { /* SCO 3.2v4 cc rejects this sort of thing.  */
16008    char tx;
16009    char *t = &tx;
16010    char const *s = 0 ? (char *) 0 : (char const *) 0;
16011
16012    *t++ = 0;
16013    if (s) return 0;
16014  }
16015  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
16016    int x[] = {25, 17};
16017    const int *foo = &x[0];
16018    ++foo;
16019  }
16020  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16021    typedef const int *iptr;
16022    iptr p = 0;
16023    ++p;
16024  }
16025  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16026       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16027    struct s { int j; const int *ap[3]; } bx;
16028    struct s *b = &bx; b->j = 5;
16029  }
16030  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16031    const int foo = 10;
16032    if (!foo) return 0;
16033  }
16034  return !cs[0] && !zero.x;
16035#endif
16036
16037  ;
16038  return 0;
16039}
16040_ACEOF
16041if ac_fn_c_try_compile "$LINENO"; then :
16042  ac_cv_c_const=yes
16043else
16044  ac_cv_c_const=no
16045fi
16046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16047fi
16048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16049$as_echo "$ac_cv_c_const" >&6; }
16050if test $ac_cv_c_const = no; then
16051
16052$as_echo "#define const /**/" >>confdefs.h
16053
16054fi
16055
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16057$as_echo_n "checking for inline... " >&6; }
16058if ${ac_cv_c_inline+:} false; then :
16059  $as_echo_n "(cached) " >&6
16060else
16061  ac_cv_c_inline=no
16062for ac_kw in inline __inline__ __inline; do
16063  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16064/* end confdefs.h.  */
16065#ifndef __cplusplus
16066typedef int foo_t;
16067static $ac_kw foo_t static_foo () {return 0; }
16068$ac_kw foo_t foo () {return 0; }
16069#endif
16070
16071_ACEOF
16072if ac_fn_c_try_compile "$LINENO"; then :
16073  ac_cv_c_inline=$ac_kw
16074fi
16075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16076  test "$ac_cv_c_inline" != no && break
16077done
16078
16079fi
16080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16081$as_echo "$ac_cv_c_inline" >&6; }
16082
16083case $ac_cv_c_inline in
16084  inline | yes) ;;
16085  *)
16086    case $ac_cv_c_inline in
16087      no) ac_val=;;
16088      *) ac_val=$ac_cv_c_inline;;
16089    esac
16090    cat >>confdefs.h <<_ACEOF
16091#ifndef __cplusplus
16092#define inline $ac_val
16093#endif
16094_ACEOF
16095    ;;
16096esac
16097
16098ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16099if test "x$ac_cv_type_size_t" = xyes; then :
16100
16101else
16102
16103cat >>confdefs.h <<_ACEOF
16104#define size_t unsigned int
16105_ACEOF
16106
16107fi
16108
16109ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
16110case $ac_cv_c_uint32_t in #(
16111  no|yes) ;; #(
16112  *)
16113
16114$as_echo "#define _UINT32_T 1" >>confdefs.h
16115
16116
16117cat >>confdefs.h <<_ACEOF
16118#define uint32_t $ac_cv_c_uint32_t
16119_ACEOF
16120;;
16121  esac
16122
16123ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
16124case $ac_cv_c_uint64_t in #(
16125  no|yes) ;; #(
16126  *)
16127
16128$as_echo "#define _UINT64_T 1" >>confdefs.h
16129
16130
16131cat >>confdefs.h <<_ACEOF
16132#define uint64_t $ac_cv_c_uint64_t
16133_ACEOF
16134;;
16135  esac
16136
16137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16138$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16139if ${ac_cv_header_time+:} false; then :
16140  $as_echo_n "(cached) " >&6
16141else
16142  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143/* end confdefs.h.  */
16144#include <sys/types.h>
16145#include <sys/time.h>
16146#include <time.h>
16147
16148int
16149main ()
16150{
16151if ((struct tm *) 0)
16152return 0;
16153  ;
16154  return 0;
16155}
16156_ACEOF
16157if ac_fn_c_try_compile "$LINENO"; then :
16158  ac_cv_header_time=yes
16159else
16160  ac_cv_header_time=no
16161fi
16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163fi
16164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16165$as_echo "$ac_cv_header_time" >&6; }
16166if test $ac_cv_header_time = yes; then
16167
16168$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16169
16170fi
16171
16172ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
16173if test "x$ac_cv_type_long_double" = xyes; then :
16174
16175$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
16176
16177else
16178
16179if test $PRECISION = l; then
16180    as_fn_error $? "long double is not a supported type with your compiler." "$LINENO" 5
16181fi
16182
16183fi
16184
16185ac_fn_c_check_type "$LINENO" "hrtime_t" "ac_cv_type_hrtime_t" "
16186#if HAVE_SYS_TIME_H
16187#include <sys/time.h>
16188#endif
16189
16190"
16191if test "x$ac_cv_type_hrtime_t" = xyes; then :
16192
16193$as_echo "#define HAVE_HRTIME_T 1" >>confdefs.h
16194
16195fi
16196
16197
16198# The cast to long int works around a bug in the HP C Compiler
16199# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16200# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16201# This bug is HP SR number 8606223364.
16202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16203$as_echo_n "checking size of int... " >&6; }
16204if ${ac_cv_sizeof_int+:} false; then :
16205  $as_echo_n "(cached) " >&6
16206else
16207  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
16208
16209else
16210  if test "$ac_cv_type_int" = yes; then
16211     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16213as_fn_error 77 "cannot compute sizeof (int)
16214See \`config.log' for more details" "$LINENO" 5; }
16215   else
16216     ac_cv_sizeof_int=0
16217   fi
16218fi
16219
16220fi
16221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16222$as_echo "$ac_cv_sizeof_int" >&6; }
16223
16224
16225
16226cat >>confdefs.h <<_ACEOF
16227#define SIZEOF_INT $ac_cv_sizeof_int
16228_ACEOF
16229
16230
16231# The cast to long int works around a bug in the HP C Compiler
16232# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16233# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16234# This bug is HP SR number 8606223364.
16235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16236$as_echo_n "checking size of unsigned int... " >&6; }
16237if ${ac_cv_sizeof_unsigned_int+:} false; then :
16238  $as_echo_n "(cached) " >&6
16239else
16240  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
16241
16242else
16243  if test "$ac_cv_type_unsigned_int" = yes; then
16244     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16246as_fn_error 77 "cannot compute sizeof (unsigned int)
16247See \`config.log' for more details" "$LINENO" 5; }
16248   else
16249     ac_cv_sizeof_unsigned_int=0
16250   fi
16251fi
16252
16253fi
16254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16255$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
16256
16257
16258
16259cat >>confdefs.h <<_ACEOF
16260#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16261_ACEOF
16262
16263
16264# The cast to long int works around a bug in the HP C Compiler
16265# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16266# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16267# This bug is HP SR number 8606223364.
16268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16269$as_echo_n "checking size of long... " >&6; }
16270if ${ac_cv_sizeof_long+:} false; then :
16271  $as_echo_n "(cached) " >&6
16272else
16273  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
16274
16275else
16276  if test "$ac_cv_type_long" = yes; then
16277     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16279as_fn_error 77 "cannot compute sizeof (long)
16280See \`config.log' for more details" "$LINENO" 5; }
16281   else
16282     ac_cv_sizeof_long=0
16283   fi
16284fi
16285
16286fi
16287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16288$as_echo "$ac_cv_sizeof_long" >&6; }
16289
16290
16291
16292cat >>confdefs.h <<_ACEOF
16293#define SIZEOF_LONG $ac_cv_sizeof_long
16294_ACEOF
16295
16296
16297# The cast to long int works around a bug in the HP C Compiler
16298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16300# This bug is HP SR number 8606223364.
16301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16302$as_echo_n "checking size of unsigned long... " >&6; }
16303if ${ac_cv_sizeof_unsigned_long+:} false; then :
16304  $as_echo_n "(cached) " >&6
16305else
16306  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
16307
16308else
16309  if test "$ac_cv_type_unsigned_long" = yes; then
16310     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16311$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16312as_fn_error 77 "cannot compute sizeof (unsigned long)
16313See \`config.log' for more details" "$LINENO" 5; }
16314   else
16315     ac_cv_sizeof_unsigned_long=0
16316   fi
16317fi
16318
16319fi
16320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16321$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16322
16323
16324
16325cat >>confdefs.h <<_ACEOF
16326#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16327_ACEOF
16328
16329
16330# The cast to long int works around a bug in the HP C Compiler
16331# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16332# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16333# This bug is HP SR number 8606223364.
16334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
16335$as_echo_n "checking size of long long... " >&6; }
16336if ${ac_cv_sizeof_long_long+:} false; then :
16337  $as_echo_n "(cached) " >&6
16338else
16339  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
16340
16341else
16342  if test "$ac_cv_type_long_long" = yes; then
16343     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16345as_fn_error 77 "cannot compute sizeof (long long)
16346See \`config.log' for more details" "$LINENO" 5; }
16347   else
16348     ac_cv_sizeof_long_long=0
16349   fi
16350fi
16351
16352fi
16353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
16354$as_echo "$ac_cv_sizeof_long_long" >&6; }
16355
16356
16357
16358cat >>confdefs.h <<_ACEOF
16359#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16360_ACEOF
16361
16362
16363# The cast to long int works around a bug in the HP C Compiler
16364# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16365# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16366# This bug is HP SR number 8606223364.
16367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
16368$as_echo_n "checking size of unsigned long long... " >&6; }
16369if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
16370  $as_echo_n "(cached) " >&6
16371else
16372  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
16373
16374else
16375  if test "$ac_cv_type_unsigned_long_long" = yes; then
16376     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16378as_fn_error 77 "cannot compute sizeof (unsigned long long)
16379See \`config.log' for more details" "$LINENO" 5; }
16380   else
16381     ac_cv_sizeof_unsigned_long_long=0
16382   fi
16383fi
16384
16385fi
16386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
16387$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
16388
16389
16390
16391cat >>confdefs.h <<_ACEOF
16392#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
16393_ACEOF
16394
16395
16396# The cast to long int works around a bug in the HP C Compiler
16397# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16398# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16399# This bug is HP SR number 8606223364.
16400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16401$as_echo_n "checking size of size_t... " >&6; }
16402if ${ac_cv_sizeof_size_t+:} false; then :
16403  $as_echo_n "(cached) " >&6
16404else
16405  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
16406
16407else
16408  if test "$ac_cv_type_size_t" = yes; then
16409     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16411as_fn_error 77 "cannot compute sizeof (size_t)
16412See \`config.log' for more details" "$LINENO" 5; }
16413   else
16414     ac_cv_sizeof_size_t=0
16415   fi
16416fi
16417
16418fi
16419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16420$as_echo "$ac_cv_sizeof_size_t" >&6; }
16421
16422
16423
16424cat >>confdefs.h <<_ACEOF
16425#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16426_ACEOF
16427
16428
16429# The cast to long int works around a bug in the HP C Compiler
16430# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16431# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16432# This bug is HP SR number 8606223364.
16433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ptrdiff_t" >&5
16434$as_echo_n "checking size of ptrdiff_t... " >&6; }
16435if ${ac_cv_sizeof_ptrdiff_t+:} false; then :
16436  $as_echo_n "(cached) " >&6
16437else
16438  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ptrdiff_t))" "ac_cv_sizeof_ptrdiff_t"        "$ac_includes_default"; then :
16439
16440else
16441  if test "$ac_cv_type_ptrdiff_t" = yes; then
16442     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16444as_fn_error 77 "cannot compute sizeof (ptrdiff_t)
16445See \`config.log' for more details" "$LINENO" 5; }
16446   else
16447     ac_cv_sizeof_ptrdiff_t=0
16448   fi
16449fi
16450
16451fi
16452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ptrdiff_t" >&5
16453$as_echo "$ac_cv_sizeof_ptrdiff_t" >&6; }
16454
16455
16456
16457cat >>confdefs.h <<_ACEOF
16458#define SIZEOF_PTRDIFF_T $ac_cv_sizeof_ptrdiff_t
16459_ACEOF
16460
16461
16462
16463ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16464if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
16465
16466cat >>confdefs.h <<_ACEOF
16467#define HAVE_PTRDIFF_T 1
16468_ACEOF
16469
16470
16471fi
16472
16473ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default
16474#ifdef HAVE_STDINT_H
16475#  include <stdint.h>
16476#endif
16477"
16478if test "x$ac_cv_type_uintptr_t" = xyes; then :
16479
16480cat >>confdefs.h <<_ACEOF
16481#define HAVE_UINTPTR_T 1
16482_ACEOF
16483
16484
16485else
16486  # The cast to long int works around a bug in the HP C Compiler
16487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16489# This bug is HP SR number 8606223364.
16490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16491$as_echo_n "checking size of void *... " >&6; }
16492if ${ac_cv_sizeof_void_p+:} false; then :
16493  $as_echo_n "(cached) " >&6
16494else
16495  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
16496
16497else
16498  if test "$ac_cv_type_void_p" = yes; then
16499     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16501as_fn_error 77 "cannot compute sizeof (void *)
16502See \`config.log' for more details" "$LINENO" 5; }
16503   else
16504     ac_cv_sizeof_void_p=0
16505   fi
16506fi
16507
16508fi
16509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16510$as_echo "$ac_cv_sizeof_void_p" >&6; }
16511
16512
16513
16514cat >>confdefs.h <<_ACEOF
16515#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16516_ACEOF
16517
16518
16519fi
16520
16521
16522# The cast to long int works around a bug in the HP C Compiler
16523# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16524# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16525# This bug is HP SR number 8606223364.
16526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
16527$as_echo_n "checking size of float... " >&6; }
16528if ${ac_cv_sizeof_float+:} false; then :
16529  $as_echo_n "(cached) " >&6
16530else
16531  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
16532
16533else
16534  if test "$ac_cv_type_float" = yes; then
16535     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16537as_fn_error 77 "cannot compute sizeof (float)
16538See \`config.log' for more details" "$LINENO" 5; }
16539   else
16540     ac_cv_sizeof_float=0
16541   fi
16542fi
16543
16544fi
16545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
16546$as_echo "$ac_cv_sizeof_float" >&6; }
16547
16548
16549
16550cat >>confdefs.h <<_ACEOF
16551#define SIZEOF_FLOAT $ac_cv_sizeof_float
16552_ACEOF
16553
16554
16555# The cast to long int works around a bug in the HP C Compiler
16556# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16557# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16558# This bug is HP SR number 8606223364.
16559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
16560$as_echo_n "checking size of double... " >&6; }
16561if ${ac_cv_sizeof_double+:} false; then :
16562  $as_echo_n "(cached) " >&6
16563else
16564  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
16565
16566else
16567  if test "$ac_cv_type_double" = yes; then
16568     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16570as_fn_error 77 "cannot compute sizeof (double)
16571See \`config.log' for more details" "$LINENO" 5; }
16572   else
16573     ac_cv_sizeof_double=0
16574   fi
16575fi
16576
16577fi
16578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
16579$as_echo "$ac_cv_sizeof_double" >&6; }
16580
16581
16582
16583cat >>confdefs.h <<_ACEOF
16584#define SIZEOF_DOUBLE $ac_cv_sizeof_double
16585_ACEOF
16586
16587
16588
16589# The cast to long int works around a bug in the HP C Compiler
16590# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16591# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16592# This bug is HP SR number 8606223364.
16593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fftw_r2r_kind" >&5
16594$as_echo_n "checking size of fftw_r2r_kind... " >&6; }
16595if ${ac_cv_sizeof_fftw_r2r_kind+:} false; then :
16596  $as_echo_n "(cached) " >&6
16597else
16598  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fftw_r2r_kind))" "ac_cv_sizeof_fftw_r2r_kind"        "typedef enum {
16599     FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
16600     FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
16601     FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
16602} fftw_r2r_kind;
16603"; then :
16604
16605else
16606  if test "$ac_cv_type_fftw_r2r_kind" = yes; then
16607     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16609as_fn_error 77 "cannot compute sizeof (fftw_r2r_kind)
16610See \`config.log' for more details" "$LINENO" 5; }
16611   else
16612     ac_cv_sizeof_fftw_r2r_kind=0
16613   fi
16614fi
16615
16616fi
16617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fftw_r2r_kind" >&5
16618$as_echo "$ac_cv_sizeof_fftw_r2r_kind" >&6; }
16619
16620
16621
16622cat >>confdefs.h <<_ACEOF
16623#define SIZEOF_FFTW_R2R_KIND $ac_cv_sizeof_fftw_r2r_kind
16624_ACEOF
16625
16626
16627if test 0 = $ac_cv_sizeof_fftw_r2r_kind; then as_fn_error $? "sizeof(fftw_r2r_kind) test failed" "$LINENO" 5; fi
16628C_FFTW_R2R_KIND=C_INT`expr $ac_cv_sizeof_fftw_r2r_kind \* 8`_T
16629
16630
16631# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16632# for constant arguments.  Useless!
16633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16634$as_echo_n "checking for working alloca.h... " >&6; }
16635if ${ac_cv_working_alloca_h+:} false; then :
16636  $as_echo_n "(cached) " >&6
16637else
16638  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639/* end confdefs.h.  */
16640#include <alloca.h>
16641int
16642main ()
16643{
16644char *p = (char *) alloca (2 * sizeof (int));
16645			  if (p) return 0;
16646  ;
16647  return 0;
16648}
16649_ACEOF
16650if ac_fn_c_try_link "$LINENO"; then :
16651  ac_cv_working_alloca_h=yes
16652else
16653  ac_cv_working_alloca_h=no
16654fi
16655rm -f core conftest.err conftest.$ac_objext \
16656    conftest$ac_exeext conftest.$ac_ext
16657fi
16658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16659$as_echo "$ac_cv_working_alloca_h" >&6; }
16660if test $ac_cv_working_alloca_h = yes; then
16661
16662$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16663
16664fi
16665
16666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16667$as_echo_n "checking for alloca... " >&6; }
16668if ${ac_cv_func_alloca_works+:} false; then :
16669  $as_echo_n "(cached) " >&6
16670else
16671  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16672/* end confdefs.h.  */
16673#ifdef __GNUC__
16674# define alloca __builtin_alloca
16675#else
16676# ifdef _MSC_VER
16677#  include <malloc.h>
16678#  define alloca _alloca
16679# else
16680#  ifdef HAVE_ALLOCA_H
16681#   include <alloca.h>
16682#  else
16683#   ifdef _AIX
16684 #pragma alloca
16685#   else
16686#    ifndef alloca /* predefined by HP cc +Olibcalls */
16687void *alloca (size_t);
16688#    endif
16689#   endif
16690#  endif
16691# endif
16692#endif
16693
16694int
16695main ()
16696{
16697char *p = (char *) alloca (1);
16698				    if (p) return 0;
16699  ;
16700  return 0;
16701}
16702_ACEOF
16703if ac_fn_c_try_link "$LINENO"; then :
16704  ac_cv_func_alloca_works=yes
16705else
16706  ac_cv_func_alloca_works=no
16707fi
16708rm -f core conftest.err conftest.$ac_objext \
16709    conftest$ac_exeext conftest.$ac_ext
16710fi
16711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16712$as_echo "$ac_cv_func_alloca_works" >&6; }
16713
16714if test $ac_cv_func_alloca_works = yes; then
16715
16716$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16717
16718else
16719  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16720# that cause trouble.  Some versions do not even contain alloca or
16721# contain a buggy version.  If you still want to use their alloca,
16722# use ar to extract alloca.o from them instead of compiling alloca.c.
16723
16724ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16725
16726$as_echo "#define C_ALLOCA 1" >>confdefs.h
16727
16728
16729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16730$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16731if ${ac_cv_os_cray+:} false; then :
16732  $as_echo_n "(cached) " >&6
16733else
16734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735/* end confdefs.h.  */
16736#if defined CRAY && ! defined CRAY2
16737webecray
16738#else
16739wenotbecray
16740#endif
16741
16742_ACEOF
16743if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16744  $EGREP "webecray" >/dev/null 2>&1; then :
16745  ac_cv_os_cray=yes
16746else
16747  ac_cv_os_cray=no
16748fi
16749rm -f conftest*
16750
16751fi
16752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16753$as_echo "$ac_cv_os_cray" >&6; }
16754if test $ac_cv_os_cray = yes; then
16755  for ac_func in _getb67 GETB67 getb67; do
16756    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16757ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16758if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16759
16760cat >>confdefs.h <<_ACEOF
16761#define CRAY_STACKSEG_END $ac_func
16762_ACEOF
16763
16764    break
16765fi
16766
16767  done
16768fi
16769
16770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16771$as_echo_n "checking stack direction for C alloca... " >&6; }
16772if ${ac_cv_c_stack_direction+:} false; then :
16773  $as_echo_n "(cached) " >&6
16774else
16775  if test "$cross_compiling" = yes; then :
16776  ac_cv_c_stack_direction=0
16777else
16778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16779/* end confdefs.h.  */
16780$ac_includes_default
16781int
16782find_stack_direction (int *addr, int depth)
16783{
16784  int dir, dummy = 0;
16785  if (! addr)
16786    addr = &dummy;
16787  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16788  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16789  return dir + dummy;
16790}
16791
16792int
16793main (int argc, char **argv)
16794{
16795  return find_stack_direction (0, argc + !argv + 20) < 0;
16796}
16797_ACEOF
16798if ac_fn_c_try_run "$LINENO"; then :
16799  ac_cv_c_stack_direction=1
16800else
16801  ac_cv_c_stack_direction=-1
16802fi
16803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16804  conftest.$ac_objext conftest.beam conftest.$ac_ext
16805fi
16806
16807fi
16808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16809$as_echo "$ac_cv_c_stack_direction" >&6; }
16810cat >>confdefs.h <<_ACEOF
16811#define STACK_DIRECTION $ac_cv_c_stack_direction
16812_ACEOF
16813
16814
16815fi
16816
16817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
16818$as_echo_n "checking for working strtod... " >&6; }
16819if ${ac_cv_func_strtod+:} false; then :
16820  $as_echo_n "(cached) " >&6
16821else
16822  if test "$cross_compiling" = yes; then :
16823  ac_cv_func_strtod=no
16824else
16825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826/* end confdefs.h.  */
16827
16828$ac_includes_default
16829#ifndef strtod
16830double strtod ();
16831#endif
16832int
16833main()
16834{
16835  {
16836    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
16837    char *string = " +69";
16838    char *term;
16839    double value;
16840    value = strtod (string, &term);
16841    if (value != 69 || term != (string + 4))
16842      return 1;
16843  }
16844
16845  {
16846    /* Under Solaris 2.4, strtod returns the wrong value for the
16847       terminating character under some conditions.  */
16848    char *string = "NaN";
16849    char *term;
16850    strtod (string, &term);
16851    if (term != string && *(term - 1) == 0)
16852      return 1;
16853  }
16854  return 0;
16855}
16856
16857_ACEOF
16858if ac_fn_c_try_run "$LINENO"; then :
16859  ac_cv_func_strtod=yes
16860else
16861  ac_cv_func_strtod=no
16862fi
16863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16864  conftest.$ac_objext conftest.beam conftest.$ac_ext
16865fi
16866
16867fi
16868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
16869$as_echo "$ac_cv_func_strtod" >&6; }
16870if test $ac_cv_func_strtod = no; then
16871  case " $LIBOBJS " in
16872  *" strtod.$ac_objext "* ) ;;
16873  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
16874 ;;
16875esac
16876
16877ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
16878if test "x$ac_cv_func_pow" = xyes; then :
16879
16880fi
16881
16882if test $ac_cv_func_pow = no; then
16883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
16884$as_echo_n "checking for pow in -lm... " >&6; }
16885if ${ac_cv_lib_m_pow+:} false; then :
16886  $as_echo_n "(cached) " >&6
16887else
16888  ac_check_lib_save_LIBS=$LIBS
16889LIBS="-lm  $LIBS"
16890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891/* end confdefs.h.  */
16892
16893/* Override any GCC internal prototype to avoid an error.
16894   Use char because int might match the return type of a GCC
16895   builtin and then its argument prototype would still apply.  */
16896#ifdef __cplusplus
16897extern "C"
16898#endif
16899char pow ();
16900int
16901main ()
16902{
16903return pow ();
16904  ;
16905  return 0;
16906}
16907_ACEOF
16908if ac_fn_c_try_link "$LINENO"; then :
16909  ac_cv_lib_m_pow=yes
16910else
16911  ac_cv_lib_m_pow=no
16912fi
16913rm -f core conftest.err conftest.$ac_objext \
16914    conftest$ac_exeext conftest.$ac_ext
16915LIBS=$ac_check_lib_save_LIBS
16916fi
16917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
16918$as_echo "$ac_cv_lib_m_pow" >&6; }
16919if test "x$ac_cv_lib_m_pow" = xyes; then :
16920  POW_LIB=-lm
16921else
16922  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
16923$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
16924fi
16925
16926fi
16927
16928fi
16929
16930for ac_func in vprintf
16931do :
16932  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
16933if test "x$ac_cv_func_vprintf" = xyes; then :
16934  cat >>confdefs.h <<_ACEOF
16935#define HAVE_VPRINTF 1
16936_ACEOF
16937
16938ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
16939if test "x$ac_cv_func__doprnt" = xyes; then :
16940
16941$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
16942
16943fi
16944
16945fi
16946done
16947
16948
16949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16950$as_echo_n "checking for sin in -lm... " >&6; }
16951if ${ac_cv_lib_m_sin+:} false; then :
16952  $as_echo_n "(cached) " >&6
16953else
16954  ac_check_lib_save_LIBS=$LIBS
16955LIBS="-lm  $LIBS"
16956cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957/* end confdefs.h.  */
16958
16959/* Override any GCC internal prototype to avoid an error.
16960   Use char because int might match the return type of a GCC
16961   builtin and then its argument prototype would still apply.  */
16962#ifdef __cplusplus
16963extern "C"
16964#endif
16965char sin ();
16966int
16967main ()
16968{
16969return sin ();
16970  ;
16971  return 0;
16972}
16973_ACEOF
16974if ac_fn_c_try_link "$LINENO"; then :
16975  ac_cv_lib_m_sin=yes
16976else
16977  ac_cv_lib_m_sin=no
16978fi
16979rm -f core conftest.err conftest.$ac_objext \
16980    conftest$ac_exeext conftest.$ac_ext
16981LIBS=$ac_check_lib_save_LIBS
16982fi
16983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16984$as_echo "$ac_cv_lib_m_sin" >&6; }
16985if test "x$ac_cv_lib_m_sin" = xyes; then :
16986  cat >>confdefs.h <<_ACEOF
16987#define HAVE_LIBM 1
16988_ACEOF
16989
16990  LIBS="-lm $LIBS"
16991
16992fi
16993
16994
16995if test $PRECISION = q; then
16996
16997
16998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 4.6.0 or later" >&5
16999$as_echo_n "checking whether we are using gcc 4.6.0 or later... " >&6; }
17000if ${ax_cv_gcc_4_6_0+:} false; then :
17001  $as_echo_n "(cached) " >&6
17002else
17003
17004ax_cv_gcc_4_6_0=no
17005if test "$GCC" = "yes"; then
17006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007/* end confdefs.h.  */
17008
17009#ifdef __GNUC__
17010#  if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ > 6) \
17011   || (__GNUC__ == 4 && __GNUC_MINOR__ == 6 && __GNUC_PATCHLEVEL__ >= 0)
17012     yes;
17013#  endif
17014#endif
17015
17016_ACEOF
17017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17018  $EGREP "yes" >/dev/null 2>&1; then :
17019  ax_cv_gcc_4_6_0=yes
17020fi
17021rm -f conftest*
17022
17023fi
17024
17025fi
17026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_4_6_0" >&5
17027$as_echo "$ax_cv_gcc_4_6_0" >&6; }
17028if test "$ax_cv_gcc_4_6_0" = yes; then
17029	:
17030else
17031	as_fn_error $? "gcc 4.6 or later required for quad precision support" "$LINENO" 5
17032fi
17033
17034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinq in -lquadmath" >&5
17035$as_echo_n "checking for sinq in -lquadmath... " >&6; }
17036if ${ac_cv_lib_quadmath_sinq+:} false; then :
17037  $as_echo_n "(cached) " >&6
17038else
17039  ac_check_lib_save_LIBS=$LIBS
17040LIBS="-lquadmath  $LIBS"
17041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042/* end confdefs.h.  */
17043
17044/* Override any GCC internal prototype to avoid an error.
17045   Use char because int might match the return type of a GCC
17046   builtin and then its argument prototype would still apply.  */
17047#ifdef __cplusplus
17048extern "C"
17049#endif
17050char sinq ();
17051int
17052main ()
17053{
17054return sinq ();
17055  ;
17056  return 0;
17057}
17058_ACEOF
17059if ac_fn_c_try_link "$LINENO"; then :
17060  ac_cv_lib_quadmath_sinq=yes
17061else
17062  ac_cv_lib_quadmath_sinq=no
17063fi
17064rm -f core conftest.err conftest.$ac_objext \
17065    conftest$ac_exeext conftest.$ac_ext
17066LIBS=$ac_check_lib_save_LIBS
17067fi
17068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quadmath_sinq" >&5
17069$as_echo "$ac_cv_lib_quadmath_sinq" >&6; }
17070if test "x$ac_cv_lib_quadmath_sinq" = xyes; then :
17071  cat >>confdefs.h <<_ACEOF
17072#define HAVE_LIBQUADMATH 1
17073_ACEOF
17074
17075  LIBS="-lquadmath $LIBS"
17076
17077else
17078  as_fn_error $? "quad precision requires libquadmath for quad-precision trigonometric routines" "$LINENO" 5
17079fi
17080
17081   LIBQUADMATH=-lquadmath
17082fi
17083
17084
17085for ac_func in BSDgettimeofday gettimeofday gethrtime read_real_time time_base_to_time drand48 sqrt memset posix_memalign memalign _mm_malloc _mm_free clock_gettime mach_absolute_time sysctl abort sinl cosl snprintf memmove strchr getpagesize
17086do :
17087  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17088ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17089if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17090  cat >>confdefs.h <<_ACEOF
17091#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17092_ACEOF
17093
17094fi
17095done
17096
17097ac_fn_c_check_decl "$LINENO" "sinl" "ac_cv_have_decl_sinl" "#include <math.h>
17098"
17099if test "x$ac_cv_have_decl_sinl" = xyes; then :
17100  ac_have_decl=1
17101else
17102  ac_have_decl=0
17103fi
17104
17105cat >>confdefs.h <<_ACEOF
17106#define HAVE_DECL_SINL $ac_have_decl
17107_ACEOF
17108ac_fn_c_check_decl "$LINENO" "cosl" "ac_cv_have_decl_cosl" "#include <math.h>
17109"
17110if test "x$ac_cv_have_decl_cosl" = xyes; then :
17111  ac_have_decl=1
17112else
17113  ac_have_decl=0
17114fi
17115
17116cat >>confdefs.h <<_ACEOF
17117#define HAVE_DECL_COSL $ac_have_decl
17118_ACEOF
17119ac_fn_c_check_decl "$LINENO" "sinq" "ac_cv_have_decl_sinq" "#include <math.h>
17120"
17121if test "x$ac_cv_have_decl_sinq" = xyes; then :
17122  ac_have_decl=1
17123else
17124  ac_have_decl=0
17125fi
17126
17127cat >>confdefs.h <<_ACEOF
17128#define HAVE_DECL_SINQ $ac_have_decl
17129_ACEOF
17130ac_fn_c_check_decl "$LINENO" "cosq" "ac_cv_have_decl_cosq" "#include <math.h>
17131"
17132if test "x$ac_cv_have_decl_cosq" = xyes; then :
17133  ac_have_decl=1
17134else
17135  ac_have_decl=0
17136fi
17137
17138cat >>confdefs.h <<_ACEOF
17139#define HAVE_DECL_COSQ $ac_have_decl
17140_ACEOF
17141
17142ac_fn_c_check_decl "$LINENO" "memalign" "ac_cv_have_decl_memalign" "
17143#ifdef HAVE_MALLOC_H
17144#include <malloc.h>
17145#endif
17146"
17147if test "x$ac_cv_have_decl_memalign" = xyes; then :
17148  ac_have_decl=1
17149else
17150  ac_have_decl=0
17151fi
17152
17153cat >>confdefs.h <<_ACEOF
17154#define HAVE_DECL_MEMALIGN $ac_have_decl
17155_ACEOF
17156
17157ac_fn_c_check_decl "$LINENO" "drand48" "ac_cv_have_decl_drand48" "$ac_includes_default"
17158if test "x$ac_cv_have_decl_drand48" = xyes; then :
17159  ac_have_decl=1
17160else
17161  ac_have_decl=0
17162fi
17163
17164cat >>confdefs.h <<_ACEOF
17165#define HAVE_DECL_DRAND48 $ac_have_decl
17166_ACEOF
17167ac_fn_c_check_decl "$LINENO" "srand48" "ac_cv_have_decl_srand48" "$ac_includes_default"
17168if test "x$ac_cv_have_decl_srand48" = xyes; then :
17169  ac_have_decl=1
17170else
17171  ac_have_decl=0
17172fi
17173
17174cat >>confdefs.h <<_ACEOF
17175#define HAVE_DECL_SRAND48 $ac_have_decl
17176_ACEOF
17177ac_fn_c_check_decl "$LINENO" "posix_memalign" "ac_cv_have_decl_posix_memalign" "$ac_includes_default"
17178if test "x$ac_cv_have_decl_posix_memalign" = xyes; then :
17179  ac_have_decl=1
17180else
17181  ac_have_decl=0
17182fi
17183
17184cat >>confdefs.h <<_ACEOF
17185#define HAVE_DECL_POSIX_MEMALIGN $ac_have_decl
17186_ACEOF
17187
17188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _rtc intrinsic" >&5
17189$as_echo_n "checking for _rtc intrinsic... " >&6; }
17190rtc_ok=yes
17191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192/* end confdefs.h.  */
17193#ifdef HAVE_INTRINSICS_H
17194#include <intrinsics.h>
17195#endif
17196int
17197main ()
17198{
17199_rtc()
17200  ;
17201  return 0;
17202}
17203_ACEOF
17204if ac_fn_c_try_link "$LINENO"; then :
17205
17206$as_echo "#define HAVE__RTC 1" >>confdefs.h
17207
17208else
17209  rtc_ok=no
17210fi
17211rm -f core conftest.err conftest.$ac_objext \
17212    conftest$ac_exeext conftest.$ac_ext
17213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rtc_ok" >&5
17214$as_echo "$rtc_ok" >&6; }
17215
17216if test "$PRECISION" = "l"; then
17217    for ac_func in cosl sinl tanl
17218do :
17219  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17220ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17221if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17222  cat >>confdefs.h <<_ACEOF
17223#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17224_ACEOF
17225
17226else
17227  as_fn_error $? "long-double precision requires long-double trigonometric routines" "$LINENO" 5
17228fi
17229done
17230
17231fi
17232
17233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
17234$as_echo_n "checking for isnan... " >&6; }
17235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236/* end confdefs.h.  */
17237#include <math.h>
17238
17239int
17240main ()
17241{
17242if (!isnan(3.14159)) isnan(2.7183);
17243  ;
17244  return 0;
17245}
17246_ACEOF
17247if ac_fn_c_try_link "$LINENO"; then :
17248  ok=yes
17249else
17250  ok=no
17251fi
17252rm -f core conftest.err conftest.$ac_objext \
17253    conftest$ac_exeext conftest.$ac_ext
17254if test "$ok" = "yes"; then
17255
17256$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
17257
17258fi
17259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ok}" >&5
17260$as_echo "${ok}" >&6; }
17261
17262
17263
17264ax_gcc_aligns_stack=no
17265if test "$GCC" = "yes"; then
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mpreferred-stack-boundary=4" >&5
17267$as_echo_n "checking whether C compiler accepts -mpreferred-stack-boundary=4... " >&6; }
17268if ${ax_cv_c_flags__mpreferred_stack_boundary_4+:} false; then :
17269  $as_echo_n "(cached) " >&6
17270else
17271
17272      ax_save_FLAGS=$CFLAGS
17273      CFLAGS="-mpreferred-stack-boundary=4"
17274      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275/* end confdefs.h.  */
17276
17277int
17278main ()
17279{
17280
17281  ;
17282  return 0;
17283}
17284_ACEOF
17285if ac_fn_c_try_compile "$LINENO"; then :
17286  ax_cv_c_flags__mpreferred_stack_boundary_4=yes
17287else
17288  ax_cv_c_flags__mpreferred_stack_boundary_4=no
17289fi
17290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291      CFLAGS=$ax_save_FLAGS
17292fi
17293
17294eval ax_check_compiler_flags=$ax_cv_c_flags__mpreferred_stack_boundary_4
17295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
17296$as_echo "$ax_check_compiler_flags" >&6; }
17297if test "x$ax_check_compiler_flags" = xyes; then
17298
17299	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the stack is at least 8-byte aligned by gcc" >&5
17300$as_echo_n "checking whether the stack is at least 8-byte aligned by gcc... " >&6; }
17301	save_CFLAGS="$CFLAGS"
17302	CFLAGS="-O"
17303	 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
17304$as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
17305if ${ax_cv_c_flags__malign_double+:} false; then :
17306  $as_echo_n "(cached) " >&6
17307else
17308
17309      ax_save_FLAGS=$CFLAGS
17310      CFLAGS="-malign-double"
17311      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17312/* end confdefs.h.  */
17313
17314int
17315main ()
17316{
17317
17318  ;
17319  return 0;
17320}
17321_ACEOF
17322if ac_fn_c_try_compile "$LINENO"; then :
17323  ax_cv_c_flags__malign_double=yes
17324else
17325  ax_cv_c_flags__malign_double=no
17326fi
17327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17328      CFLAGS=$ax_save_FLAGS
17329fi
17330
17331eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
17332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
17333$as_echo "$ax_check_compiler_flags" >&6; }
17334if test "x$ax_check_compiler_flags" = xyes; then
17335	CFLAGS="$CFLAGS -malign-double"
17336else
17337	:
17338fi
17339
17340	if test "$cross_compiling" = yes; then :
17341
17342
17343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc 3.0.0 or later" >&5
17344$as_echo_n "checking whether we are using gcc 3.0.0 or later... " >&6; }
17345if ${ax_cv_gcc_3_0_0+:} false; then :
17346  $as_echo_n "(cached) " >&6
17347else
17348
17349ax_cv_gcc_3_0_0=no
17350if test "$GCC" = "yes"; then
17351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352/* end confdefs.h.  */
17353
17354#ifdef __GNUC__
17355#  if (__GNUC__ > 3) || (__GNUC__ == 3 && __GNUC_MINOR__ > 0) \
17356   || (__GNUC__ == 3 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ >= 0)
17357     yes;
17358#  endif
17359#endif
17360
17361_ACEOF
17362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17363  $EGREP "yes" >/dev/null 2>&1; then :
17364  ax_cv_gcc_3_0_0=yes
17365fi
17366rm -f conftest*
17367
17368fi
17369
17370fi
17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_3_0_0" >&5
17372$as_echo "$ax_cv_gcc_3_0_0" >&6; }
17373if test "$ax_cv_gcc_3_0_0" = yes; then
17374	ax_gcc_stack_align_bug=no
17375else
17376	ax_gcc_stack_align_bug=yes
17377fi
17378
17379else
17380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17381/* end confdefs.h.  */
17382#include <stdlib.h>
17383#       include <stdio.h>
17384	struct yuck { int blechh; };
17385	int one(void) { return 1; }
17386	struct yuck ick(void) { struct yuck y; y.blechh = 3; return y; }
17387#       define CHK_ALIGN(x) if ((((long) &(x)) & 0x7)) { fprintf(stderr, "bad alignment of " #x "\n"); exit(1); }
17388	void blah(int foo) { double foobar; CHK_ALIGN(foobar); }
17389	int main2(void) {double ok1; struct yuck y; double ok2; CHK_ALIGN(ok1);
17390                         CHK_ALIGN(ok2); y = ick(); blah(one()); return 0;}
17391	int main(void) { if ((((long) (__builtin_alloca(0))) & 0x7)) __builtin_alloca(4); return main2(); }
17392
17393_ACEOF
17394if ac_fn_c_try_run "$LINENO"; then :
17395  ax_gcc_aligns_stack=yes; ax_gcc_stack_align_bug=no
17396else
17397  ax_gcc_stack_align_bug=yes
17398fi
17399rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17400  conftest.$ac_objext conftest.beam conftest.$ac_ext
17401fi
17402
17403	CFLAGS="$save_CFLAGS"
17404	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_gcc_aligns_stack" >&5
17405$as_echo "$ax_gcc_aligns_stack" >&6; }
17406
17407else
17408	:
17409fi
17410
17411fi
17412if test "$ax_gcc_aligns_stack" = yes; then
17413	:
17414else
17415	:
17416fi
17417
17418
17419if test "${enable_debug}" = "yes"; then
17420    CFLAGS="-g"
17421fi
17422
17423if test "$enable_debug" = yes || test "$USE_MAINTAINER_MODE" = yes; then
17424if test "$ac_test_CFLAGS" != "set"; then
17425    if test $ac_cv_c_compiler_gnu = yes; then
17426        CFLAGS="$CFLAGS -Wall -W -Wcast-qual -Wpointer-arith -Wcast-align -pedantic -Wno-long-long -Wshadow -Wbad-function-cast -Wwrite-strings -Wstrict-prototypes -Wredundant-decls -Wnested-externs" # -Wundef -Wconversion -Wmissing-prototypes -Wmissing-declarations
17427    fi
17428fi
17429fi
17430
17431if test "$USE_MAINTAINER_MODE" = yes; then
17432    # Extract the first word of "indent", so it can be a program name with args.
17433set dummy indent; ac_word=$2
17434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17435$as_echo_n "checking for $ac_word... " >&6; }
17436if ${ac_cv_path_INDENT+:} false; then :
17437  $as_echo_n "(cached) " >&6
17438else
17439  case $INDENT in
17440  [\\/]* | ?:[\\/]*)
17441  ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path.
17442  ;;
17443  *)
17444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17445for as_dir in $PATH
17446do
17447  IFS=$as_save_IFS
17448  test -z "$as_dir" && as_dir=.
17449    for ac_exec_ext in '' $ac_executable_extensions; do
17450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17451    ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext"
17452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17453    break 2
17454  fi
17455done
17456  done
17457IFS=$as_save_IFS
17458
17459  test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent"
17460  ;;
17461esac
17462fi
17463INDENT=$ac_cv_path_INDENT
17464if test -n "$INDENT"; then
17465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
17466$as_echo "$INDENT" >&6; }
17467else
17468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17469$as_echo "no" >&6; }
17470fi
17471
17472
17473    # if INDENT is set to 'indent' then we didn't find indent
17474    if test "$INDENT" != indent ; then
17475        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5
17476$as_echo_n "checking if $INDENT is GNU indent... " >&6; }
17477        if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then
17478                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17479$as_echo "yes" >&6; }
17480                INDENT="$INDENT -kr -cs -i5 -l800 -fca -nfc1 -sc -sob -cli4 -TR -Tplanner -TV"
17481        else
17482                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17483$as_echo "no" >&6; }
17484                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5
17485$as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;}
17486        fi
17487    else
17488        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: codelets will be ugly" >&5
17489$as_echo "$as_me: WARNING: no indent program found: codelets will be ugly" >&2;}
17490        INDENT=cat
17491    fi
17492fi
17493
17494
17495# Check whether --enable-fortran was given.
17496if test "${enable_fortran+set}" = set; then :
17497  enableval=$enable_fortran; enable_fortran=$enableval
17498else
17499  enable_fortran=yes
17500fi
17501
17502
17503if test "$enable_fortran" = "yes"; then
17504    ac_ext=f
17505ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17506ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17507ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17508if test -n "$ac_tool_prefix"; then
17509  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
17510  do
17511    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
17512set dummy $ac_tool_prefix$ac_prog; ac_word=$2
17513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17514$as_echo_n "checking for $ac_word... " >&6; }
17515if ${ac_cv_prog_F77+:} false; then :
17516  $as_echo_n "(cached) " >&6
17517else
17518  if test -n "$F77"; then
17519  ac_cv_prog_F77="$F77" # Let the user override the test.
17520else
17521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17522for as_dir in $PATH
17523do
17524  IFS=$as_save_IFS
17525  test -z "$as_dir" && as_dir=.
17526    for ac_exec_ext in '' $ac_executable_extensions; do
17527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17528    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
17529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17530    break 2
17531  fi
17532done
17533  done
17534IFS=$as_save_IFS
17535
17536fi
17537fi
17538F77=$ac_cv_prog_F77
17539if test -n "$F77"; then
17540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
17541$as_echo "$F77" >&6; }
17542else
17543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17544$as_echo "no" >&6; }
17545fi
17546
17547
17548    test -n "$F77" && break
17549  done
17550fi
17551if test -z "$F77"; then
17552  ac_ct_F77=$F77
17553  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
17554do
17555  # Extract the first word of "$ac_prog", so it can be a program name with args.
17556set dummy $ac_prog; ac_word=$2
17557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17558$as_echo_n "checking for $ac_word... " >&6; }
17559if ${ac_cv_prog_ac_ct_F77+:} false; then :
17560  $as_echo_n "(cached) " >&6
17561else
17562  if test -n "$ac_ct_F77"; then
17563  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
17564else
17565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17566for as_dir in $PATH
17567do
17568  IFS=$as_save_IFS
17569  test -z "$as_dir" && as_dir=.
17570    for ac_exec_ext in '' $ac_executable_extensions; do
17571  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17572    ac_cv_prog_ac_ct_F77="$ac_prog"
17573    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17574    break 2
17575  fi
17576done
17577  done
17578IFS=$as_save_IFS
17579
17580fi
17581fi
17582ac_ct_F77=$ac_cv_prog_ac_ct_F77
17583if test -n "$ac_ct_F77"; then
17584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
17585$as_echo "$ac_ct_F77" >&6; }
17586else
17587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17588$as_echo "no" >&6; }
17589fi
17590
17591
17592  test -n "$ac_ct_F77" && break
17593done
17594
17595  if test "x$ac_ct_F77" = x; then
17596    F77=""
17597  else
17598    case $cross_compiling:$ac_tool_warned in
17599yes:)
17600{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17601$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17602ac_tool_warned=yes ;;
17603esac
17604    F77=$ac_ct_F77
17605  fi
17606fi
17607
17608
17609# Provide some information about the compiler.
17610$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
17611set X $ac_compile
17612ac_compiler=$2
17613for ac_option in --version -v -V -qversion; do
17614  { { ac_try="$ac_compiler $ac_option >&5"
17615case "(($ac_try" in
17616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17617  *) ac_try_echo=$ac_try;;
17618esac
17619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
17620$as_echo "$ac_try_echo"; } >&5
17621  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
17622  ac_status=$?
17623  if test -s conftest.err; then
17624    sed '10a\
17625... rest of stderr output deleted ...
17626         10q' conftest.err >conftest.er1
17627    cat conftest.er1 >&5
17628  fi
17629  rm -f conftest.er1 conftest.err
17630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17631  test $ac_status = 0; }
17632done
17633rm -f a.out
17634
17635# If we don't use `.F' as extension, the preprocessor is not run on the
17636# input file.  (Note that this only needs to work for GNU compilers.)
17637ac_save_ext=$ac_ext
17638ac_ext=F
17639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
17640$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
17641if ${ac_cv_f77_compiler_gnu+:} false; then :
17642  $as_echo_n "(cached) " >&6
17643else
17644  cat > conftest.$ac_ext <<_ACEOF
17645      program main
17646#ifndef __GNUC__
17647       choke me
17648#endif
17649
17650      end
17651_ACEOF
17652if ac_fn_f77_try_compile "$LINENO"; then :
17653  ac_compiler_gnu=yes
17654else
17655  ac_compiler_gnu=no
17656fi
17657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17658ac_cv_f77_compiler_gnu=$ac_compiler_gnu
17659
17660fi
17661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
17662$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
17663ac_ext=$ac_save_ext
17664ac_test_FFLAGS=${FFLAGS+set}
17665ac_save_FFLAGS=$FFLAGS
17666FFLAGS=
17667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
17668$as_echo_n "checking whether $F77 accepts -g... " >&6; }
17669if ${ac_cv_prog_f77_g+:} false; then :
17670  $as_echo_n "(cached) " >&6
17671else
17672  FFLAGS=-g
17673cat > conftest.$ac_ext <<_ACEOF
17674      program main
17675
17676      end
17677_ACEOF
17678if ac_fn_f77_try_compile "$LINENO"; then :
17679  ac_cv_prog_f77_g=yes
17680else
17681  ac_cv_prog_f77_g=no
17682fi
17683rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17684
17685fi
17686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
17687$as_echo "$ac_cv_prog_f77_g" >&6; }
17688if test "$ac_test_FFLAGS" = set; then
17689  FFLAGS=$ac_save_FFLAGS
17690elif test $ac_cv_prog_f77_g = yes; then
17691  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17692    FFLAGS="-g -O2"
17693  else
17694    FFLAGS="-g"
17695  fi
17696else
17697  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
17698    FFLAGS="-O2"
17699  else
17700    FFLAGS=
17701  fi
17702fi
17703
17704if test $ac_compiler_gnu = yes; then
17705  G77=yes
17706else
17707  G77=
17708fi
17709ac_ext=c
17710ac_cpp='$CPP $CPPFLAGS'
17711ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17712ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17713ac_compiler_gnu=$ac_cv_c_compiler_gnu
17714
17715      ac_ext=f
17716ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17717ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17718ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17719
17720if test -z "$F77" || test no = "$F77"; then
17721  _lt_disable_F77=yes
17722fi
17723
17724archive_cmds_need_lc_F77=no
17725allow_undefined_flag_F77=
17726always_export_symbols_F77=no
17727archive_expsym_cmds_F77=
17728export_dynamic_flag_spec_F77=
17729hardcode_direct_F77=no
17730hardcode_direct_absolute_F77=no
17731hardcode_libdir_flag_spec_F77=
17732hardcode_libdir_separator_F77=
17733hardcode_minus_L_F77=no
17734hardcode_automatic_F77=no
17735inherit_rpath_F77=no
17736module_cmds_F77=
17737module_expsym_cmds_F77=
17738link_all_deplibs_F77=unknown
17739old_archive_cmds_F77=$old_archive_cmds
17740reload_flag_F77=$reload_flag
17741reload_cmds_F77=$reload_cmds
17742no_undefined_flag_F77=
17743whole_archive_flag_spec_F77=
17744enable_shared_with_static_runtimes_F77=no
17745
17746# Source file extension for f77 test sources.
17747ac_ext=f
17748
17749# Object file extension for compiled f77 test sources.
17750objext=o
17751objext_F77=$objext
17752
17753# No sense in running all these tests if we already determined that
17754# the F77 compiler isn't working.  Some variables (like enable_shared)
17755# are currently assumed to apply to all compilers on this platform,
17756# and will be corrupted by setting them based on a non-working compiler.
17757if test yes != "$_lt_disable_F77"; then
17758  # Code to be used in simple compile tests
17759  lt_simple_compile_test_code="\
17760      subroutine t
17761      return
17762      end
17763"
17764
17765  # Code to be used in simple link tests
17766  lt_simple_link_test_code="\
17767      program t
17768      end
17769"
17770
17771  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17772
17773
17774
17775
17776
17777
17778# If no C compiler was specified, use CC.
17779LTCC=${LTCC-"$CC"}
17780
17781# If no C compiler flags were specified, use CFLAGS.
17782LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17783
17784# Allow CC to be a program name with arguments.
17785compiler=$CC
17786
17787
17788  # save warnings/boilerplate of simple test code
17789  ac_outfile=conftest.$ac_objext
17790echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17791eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17792_lt_compiler_boilerplate=`cat conftest.err`
17793$RM conftest*
17794
17795  ac_outfile=conftest.$ac_objext
17796echo "$lt_simple_link_test_code" >conftest.$ac_ext
17797eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17798_lt_linker_boilerplate=`cat conftest.err`
17799$RM -r conftest*
17800
17801
17802  # Allow CC to be a program name with arguments.
17803  lt_save_CC=$CC
17804  lt_save_GCC=$GCC
17805  lt_save_CFLAGS=$CFLAGS
17806  CC=${F77-"f77"}
17807  CFLAGS=$FFLAGS
17808  compiler=$CC
17809  compiler_F77=$CC
17810  func_cc_basename $compiler
17811cc_basename=$func_cc_basename_result
17812
17813  GCC=$G77
17814  if test -n "$compiler"; then
17815    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17816$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17818$as_echo "$can_build_shared" >&6; }
17819
17820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17821$as_echo_n "checking whether to build shared libraries... " >&6; }
17822    test no = "$can_build_shared" && enable_shared=no
17823
17824    # On AIX, shared libraries and static libraries use the same namespace, and
17825    # are all built from PIC.
17826    case $host_os in
17827      aix3*)
17828        test yes = "$enable_shared" && enable_static=no
17829        if test -n "$RANLIB"; then
17830          archive_cmds="$archive_cmds~\$RANLIB \$lib"
17831          postinstall_cmds='$RANLIB $lib'
17832        fi
17833        ;;
17834      aix[4-9]*)
17835	if test ia64 != "$host_cpu"; then
17836	  case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
17837	  yes,aix,yes) ;;		# shared object as lib.so file only
17838	  yes,svr4,*) ;;		# shared object as lib.so archive member only
17839	  yes,*) enable_static=no ;;	# shared object in lib.a archive as well
17840	  esac
17841	fi
17842        ;;
17843    esac
17844    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17845$as_echo "$enable_shared" >&6; }
17846
17847    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17848$as_echo_n "checking whether to build static libraries... " >&6; }
17849    # Make sure either enable_shared or enable_static is yes.
17850    test yes = "$enable_shared" || enable_static=yes
17851    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17852$as_echo "$enable_static" >&6; }
17853
17854    GCC_F77=$G77
17855    LD_F77=$LD
17856
17857    ## CAVEAT EMPTOR:
17858    ## There is no encapsulation within the following macros, do not change
17859    ## the running order or otherwise move them around unless you know exactly
17860    ## what you are doing...
17861    lt_prog_compiler_wl_F77=
17862lt_prog_compiler_pic_F77=
17863lt_prog_compiler_static_F77=
17864
17865
17866  if test yes = "$GCC"; then
17867    lt_prog_compiler_wl_F77='-Wl,'
17868    lt_prog_compiler_static_F77='-static'
17869
17870    case $host_os in
17871      aix*)
17872      # All AIX code is PIC.
17873      if test ia64 = "$host_cpu"; then
17874	# AIX 5 now supports IA64 processor
17875	lt_prog_compiler_static_F77='-Bstatic'
17876      fi
17877      lt_prog_compiler_pic_F77='-fPIC'
17878      ;;
17879
17880    amigaos*)
17881      case $host_cpu in
17882      powerpc)
17883            # see comment about AmigaOS4 .so support
17884            lt_prog_compiler_pic_F77='-fPIC'
17885        ;;
17886      m68k)
17887            # FIXME: we need at least 68020 code to build shared libraries, but
17888            # adding the '-m68020' flag to GCC prevents building anything better,
17889            # like '-m68040'.
17890            lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17891        ;;
17892      esac
17893      ;;
17894
17895    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17896      # PIC is the default for these OSes.
17897      ;;
17898
17899    mingw* | cygwin* | pw32* | os2* | cegcc*)
17900      # This hack is so that the source file can tell whether it is being
17901      # built for inclusion in a dll (and should export symbols for example).
17902      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17903      # (--disable-auto-import) libraries
17904      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17905      case $host_os in
17906      os2*)
17907	lt_prog_compiler_static_F77='$wl-static'
17908	;;
17909      esac
17910      ;;
17911
17912    darwin* | rhapsody*)
17913      # PIC is the default on this platform
17914      # Common symbols not allowed in MH_DYLIB files
17915      lt_prog_compiler_pic_F77='-fno-common'
17916      ;;
17917
17918    haiku*)
17919      # PIC is the default for Haiku.
17920      # The "-static" flag exists, but is broken.
17921      lt_prog_compiler_static_F77=
17922      ;;
17923
17924    hpux*)
17925      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17926      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17927      # sets the default TLS model and affects inlining.
17928      case $host_cpu in
17929      hppa*64*)
17930	# +Z the default
17931	;;
17932      *)
17933	lt_prog_compiler_pic_F77='-fPIC'
17934	;;
17935      esac
17936      ;;
17937
17938    interix[3-9]*)
17939      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17940      # Instead, we relocate shared libraries at runtime.
17941      ;;
17942
17943    msdosdjgpp*)
17944      # Just because we use GCC doesn't mean we suddenly get shared libraries
17945      # on systems that don't support them.
17946      lt_prog_compiler_can_build_shared_F77=no
17947      enable_shared=no
17948      ;;
17949
17950    *nto* | *qnx*)
17951      # QNX uses GNU C++, but need to define -shared option too, otherwise
17952      # it will coredump.
17953      lt_prog_compiler_pic_F77='-fPIC -shared'
17954      ;;
17955
17956    sysv4*MP*)
17957      if test -d /usr/nec; then
17958	lt_prog_compiler_pic_F77=-Kconform_pic
17959      fi
17960      ;;
17961
17962    *)
17963      lt_prog_compiler_pic_F77='-fPIC'
17964      ;;
17965    esac
17966
17967    case $cc_basename in
17968    nvcc*) # Cuda Compiler Driver 2.2
17969      lt_prog_compiler_wl_F77='-Xlinker '
17970      if test -n "$lt_prog_compiler_pic_F77"; then
17971        lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
17972      fi
17973      ;;
17974    esac
17975  else
17976    # PORTME Check for flag to pass linker flags through the system compiler.
17977    case $host_os in
17978    aix*)
17979      lt_prog_compiler_wl_F77='-Wl,'
17980      if test ia64 = "$host_cpu"; then
17981	# AIX 5 now supports IA64 processor
17982	lt_prog_compiler_static_F77='-Bstatic'
17983      else
17984	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17985      fi
17986      ;;
17987
17988    darwin* | rhapsody*)
17989      # PIC is the default on this platform
17990      # Common symbols not allowed in MH_DYLIB files
17991      lt_prog_compiler_pic_F77='-fno-common'
17992      case $cc_basename in
17993      nagfor*)
17994        # NAG Fortran compiler
17995        lt_prog_compiler_wl_F77='-Wl,-Wl,,'
17996        lt_prog_compiler_pic_F77='-PIC'
17997        lt_prog_compiler_static_F77='-Bstatic'
17998        ;;
17999      esac
18000      ;;
18001
18002    mingw* | cygwin* | pw32* | os2* | cegcc*)
18003      # This hack is so that the source file can tell whether it is being
18004      # built for inclusion in a dll (and should export symbols for example).
18005      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18006      case $host_os in
18007      os2*)
18008	lt_prog_compiler_static_F77='$wl-static'
18009	;;
18010      esac
18011      ;;
18012
18013    hpux9* | hpux10* | hpux11*)
18014      lt_prog_compiler_wl_F77='-Wl,'
18015      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18016      # not for PA HP-UX.
18017      case $host_cpu in
18018      hppa*64*|ia64*)
18019	# +Z the default
18020	;;
18021      *)
18022	lt_prog_compiler_pic_F77='+Z'
18023	;;
18024      esac
18025      # Is there a better lt_prog_compiler_static that works with the bundled CC?
18026      lt_prog_compiler_static_F77='$wl-a ${wl}archive'
18027      ;;
18028
18029    irix5* | irix6* | nonstopux*)
18030      lt_prog_compiler_wl_F77='-Wl,'
18031      # PIC (with -KPIC) is the default.
18032      lt_prog_compiler_static_F77='-non_shared'
18033      ;;
18034
18035    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18036      case $cc_basename in
18037      # old Intel for x86_64, which still supported -KPIC.
18038      ecc*)
18039	lt_prog_compiler_wl_F77='-Wl,'
18040	lt_prog_compiler_pic_F77='-KPIC'
18041	lt_prog_compiler_static_F77='-static'
18042        ;;
18043      # icc used to be incompatible with GCC.
18044      # ICC 10 doesn't accept -KPIC any more.
18045      icc* | ifort*)
18046	lt_prog_compiler_wl_F77='-Wl,'
18047	lt_prog_compiler_pic_F77='-fPIC'
18048	lt_prog_compiler_static_F77='-static'
18049        ;;
18050      # Lahey Fortran 8.1.
18051      lf95*)
18052	lt_prog_compiler_wl_F77='-Wl,'
18053	lt_prog_compiler_pic_F77='--shared'
18054	lt_prog_compiler_static_F77='--static'
18055	;;
18056      nagfor*)
18057	# NAG Fortran compiler
18058	lt_prog_compiler_wl_F77='-Wl,-Wl,,'
18059	lt_prog_compiler_pic_F77='-PIC'
18060	lt_prog_compiler_static_F77='-Bstatic'
18061	;;
18062      tcc*)
18063	# Fabrice Bellard et al's Tiny C Compiler
18064	lt_prog_compiler_wl_F77='-Wl,'
18065	lt_prog_compiler_pic_F77='-fPIC'
18066	lt_prog_compiler_static_F77='-static'
18067	;;
18068      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
18069        # Portland Group compilers (*not* the Pentium gcc compiler,
18070	# which looks to be a dead project)
18071	lt_prog_compiler_wl_F77='-Wl,'
18072	lt_prog_compiler_pic_F77='-fpic'
18073	lt_prog_compiler_static_F77='-Bstatic'
18074        ;;
18075      ccc*)
18076        lt_prog_compiler_wl_F77='-Wl,'
18077        # All Alpha code is PIC.
18078        lt_prog_compiler_static_F77='-non_shared'
18079        ;;
18080      xl* | bgxl* | bgf* | mpixl*)
18081	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
18082	lt_prog_compiler_wl_F77='-Wl,'
18083	lt_prog_compiler_pic_F77='-qpic'
18084	lt_prog_compiler_static_F77='-qstaticlink'
18085	;;
18086      *)
18087	case `$CC -V 2>&1 | sed 5q` in
18088	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
18089	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
18090	  lt_prog_compiler_pic_F77='-KPIC'
18091	  lt_prog_compiler_static_F77='-Bstatic'
18092	  lt_prog_compiler_wl_F77=''
18093	  ;;
18094	*Sun\ F* | *Sun*Fortran*)
18095	  lt_prog_compiler_pic_F77='-KPIC'
18096	  lt_prog_compiler_static_F77='-Bstatic'
18097	  lt_prog_compiler_wl_F77='-Qoption ld '
18098	  ;;
18099	*Sun\ C*)
18100	  # Sun C 5.9
18101	  lt_prog_compiler_pic_F77='-KPIC'
18102	  lt_prog_compiler_static_F77='-Bstatic'
18103	  lt_prog_compiler_wl_F77='-Wl,'
18104	  ;;
18105        *Intel*\ [CF]*Compiler*)
18106	  lt_prog_compiler_wl_F77='-Wl,'
18107	  lt_prog_compiler_pic_F77='-fPIC'
18108	  lt_prog_compiler_static_F77='-static'
18109	  ;;
18110	*Portland\ Group*)
18111	  lt_prog_compiler_wl_F77='-Wl,'
18112	  lt_prog_compiler_pic_F77='-fpic'
18113	  lt_prog_compiler_static_F77='-Bstatic'
18114	  ;;
18115	esac
18116	;;
18117      esac
18118      ;;
18119
18120    newsos6)
18121      lt_prog_compiler_pic_F77='-KPIC'
18122      lt_prog_compiler_static_F77='-Bstatic'
18123      ;;
18124
18125    *nto* | *qnx*)
18126      # QNX uses GNU C++, but need to define -shared option too, otherwise
18127      # it will coredump.
18128      lt_prog_compiler_pic_F77='-fPIC -shared'
18129      ;;
18130
18131    osf3* | osf4* | osf5*)
18132      lt_prog_compiler_wl_F77='-Wl,'
18133      # All OSF/1 code is PIC.
18134      lt_prog_compiler_static_F77='-non_shared'
18135      ;;
18136
18137    rdos*)
18138      lt_prog_compiler_static_F77='-non_shared'
18139      ;;
18140
18141    solaris*)
18142      lt_prog_compiler_pic_F77='-KPIC'
18143      lt_prog_compiler_static_F77='-Bstatic'
18144      case $cc_basename in
18145      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
18146	lt_prog_compiler_wl_F77='-Qoption ld ';;
18147      *)
18148	lt_prog_compiler_wl_F77='-Wl,';;
18149      esac
18150      ;;
18151
18152    sunos4*)
18153      lt_prog_compiler_wl_F77='-Qoption ld '
18154      lt_prog_compiler_pic_F77='-PIC'
18155      lt_prog_compiler_static_F77='-Bstatic'
18156      ;;
18157
18158    sysv4 | sysv4.2uw2* | sysv4.3*)
18159      lt_prog_compiler_wl_F77='-Wl,'
18160      lt_prog_compiler_pic_F77='-KPIC'
18161      lt_prog_compiler_static_F77='-Bstatic'
18162      ;;
18163
18164    sysv4*MP*)
18165      if test -d /usr/nec; then
18166	lt_prog_compiler_pic_F77='-Kconform_pic'
18167	lt_prog_compiler_static_F77='-Bstatic'
18168      fi
18169      ;;
18170
18171    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18172      lt_prog_compiler_wl_F77='-Wl,'
18173      lt_prog_compiler_pic_F77='-KPIC'
18174      lt_prog_compiler_static_F77='-Bstatic'
18175      ;;
18176
18177    unicos*)
18178      lt_prog_compiler_wl_F77='-Wl,'
18179      lt_prog_compiler_can_build_shared_F77=no
18180      ;;
18181
18182    uts4*)
18183      lt_prog_compiler_pic_F77='-pic'
18184      lt_prog_compiler_static_F77='-Bstatic'
18185      ;;
18186
18187    *)
18188      lt_prog_compiler_can_build_shared_F77=no
18189      ;;
18190    esac
18191  fi
18192
18193case $host_os in
18194  # For platforms that do not support PIC, -DPIC is meaningless:
18195  *djgpp*)
18196    lt_prog_compiler_pic_F77=
18197    ;;
18198  *)
18199    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18200    ;;
18201esac
18202
18203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18204$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18205if ${lt_cv_prog_compiler_pic_F77+:} false; then :
18206  $as_echo_n "(cached) " >&6
18207else
18208  lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
18209fi
18210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
18211$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
18212lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
18213
18214#
18215# Check to make sure the PIC flag actually works.
18216#
18217if test -n "$lt_prog_compiler_pic_F77"; then
18218  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18219$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
18220if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
18221  $as_echo_n "(cached) " >&6
18222else
18223  lt_cv_prog_compiler_pic_works_F77=no
18224   ac_outfile=conftest.$ac_objext
18225   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18226   lt_compiler_flag="$lt_prog_compiler_pic_F77"  ## exclude from sc_useless_quotes_in_assignment
18227   # Insert the option either (1) after the last *FLAGS variable, or
18228   # (2) before a word containing "conftest.", or (3) at the end.
18229   # Note that $ac_compile itself does not contain backslashes and begins
18230   # with a dollar sign (not a hyphen), so the echo should work correctly.
18231   # The option is referenced via a variable to avoid confusing sed.
18232   lt_compile=`echo "$ac_compile" | $SED \
18233   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18234   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18235   -e 's:$: $lt_compiler_flag:'`
18236   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18237   (eval "$lt_compile" 2>conftest.err)
18238   ac_status=$?
18239   cat conftest.err >&5
18240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241   if (exit $ac_status) && test -s "$ac_outfile"; then
18242     # The compiler can only warn and ignore the option if not recognized
18243     # So say no if there are warnings other than the usual output.
18244     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18245     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18246     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18247       lt_cv_prog_compiler_pic_works_F77=yes
18248     fi
18249   fi
18250   $RM conftest*
18251
18252fi
18253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
18254$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
18255
18256if test yes = "$lt_cv_prog_compiler_pic_works_F77"; then
18257    case $lt_prog_compiler_pic_F77 in
18258     "" | " "*) ;;
18259     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18260     esac
18261else
18262    lt_prog_compiler_pic_F77=
18263     lt_prog_compiler_can_build_shared_F77=no
18264fi
18265
18266fi
18267
18268
18269
18270
18271
18272#
18273# Check to make sure the static flag actually works.
18274#
18275wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
18276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18277$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18278if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
18279  $as_echo_n "(cached) " >&6
18280else
18281  lt_cv_prog_compiler_static_works_F77=no
18282   save_LDFLAGS=$LDFLAGS
18283   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18284   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18285   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18286     # The linker can only warn and ignore the option if not recognized
18287     # So say no if there are warnings
18288     if test -s conftest.err; then
18289       # Append any errors to the config.log.
18290       cat conftest.err 1>&5
18291       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18292       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18293       if diff conftest.exp conftest.er2 >/dev/null; then
18294         lt_cv_prog_compiler_static_works_F77=yes
18295       fi
18296     else
18297       lt_cv_prog_compiler_static_works_F77=yes
18298     fi
18299   fi
18300   $RM -r conftest*
18301   LDFLAGS=$save_LDFLAGS
18302
18303fi
18304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
18305$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
18306
18307if test yes = "$lt_cv_prog_compiler_static_works_F77"; then
18308    :
18309else
18310    lt_prog_compiler_static_F77=
18311fi
18312
18313
18314
18315
18316    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18317$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18318if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
18319  $as_echo_n "(cached) " >&6
18320else
18321  lt_cv_prog_compiler_c_o_F77=no
18322   $RM -r conftest 2>/dev/null
18323   mkdir conftest
18324   cd conftest
18325   mkdir out
18326   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18327
18328   lt_compiler_flag="-o out/conftest2.$ac_objext"
18329   # Insert the option either (1) after the last *FLAGS variable, or
18330   # (2) before a word containing "conftest.", or (3) at the end.
18331   # Note that $ac_compile itself does not contain backslashes and begins
18332   # with a dollar sign (not a hyphen), so the echo should work correctly.
18333   lt_compile=`echo "$ac_compile" | $SED \
18334   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18335   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18336   -e 's:$: $lt_compiler_flag:'`
18337   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18338   (eval "$lt_compile" 2>out/conftest.err)
18339   ac_status=$?
18340   cat out/conftest.err >&5
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18343   then
18344     # The compiler can only warn and ignore the option if not recognized
18345     # So say no if there are warnings
18346     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18347     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18348     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18349       lt_cv_prog_compiler_c_o_F77=yes
18350     fi
18351   fi
18352   chmod u+w . 2>&5
18353   $RM conftest*
18354   # SGI C++ compiler will create directory out/ii_files/ for
18355   # template instantiation
18356   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18357   $RM out/* && rmdir out
18358   cd ..
18359   $RM -r conftest
18360   $RM conftest*
18361
18362fi
18363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
18364$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18365
18366
18367
18368    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18369$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18370if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
18371  $as_echo_n "(cached) " >&6
18372else
18373  lt_cv_prog_compiler_c_o_F77=no
18374   $RM -r conftest 2>/dev/null
18375   mkdir conftest
18376   cd conftest
18377   mkdir out
18378   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18379
18380   lt_compiler_flag="-o out/conftest2.$ac_objext"
18381   # Insert the option either (1) after the last *FLAGS variable, or
18382   # (2) before a word containing "conftest.", or (3) at the end.
18383   # Note that $ac_compile itself does not contain backslashes and begins
18384   # with a dollar sign (not a hyphen), so the echo should work correctly.
18385   lt_compile=`echo "$ac_compile" | $SED \
18386   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18387   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18388   -e 's:$: $lt_compiler_flag:'`
18389   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18390   (eval "$lt_compile" 2>out/conftest.err)
18391   ac_status=$?
18392   cat out/conftest.err >&5
18393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18394   if (exit $ac_status) && test -s out/conftest2.$ac_objext
18395   then
18396     # The compiler can only warn and ignore the option if not recognized
18397     # So say no if there are warnings
18398     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18399     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18400     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18401       lt_cv_prog_compiler_c_o_F77=yes
18402     fi
18403   fi
18404   chmod u+w . 2>&5
18405   $RM conftest*
18406   # SGI C++ compiler will create directory out/ii_files/ for
18407   # template instantiation
18408   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18409   $RM out/* && rmdir out
18410   cd ..
18411   $RM -r conftest
18412   $RM conftest*
18413
18414fi
18415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
18416$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18417
18418
18419
18420
18421hard_links=nottested
18422if test no = "$lt_cv_prog_compiler_c_o_F77" && test no != "$need_locks"; then
18423  # do not overwrite the value of need_locks provided by the user
18424  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18425$as_echo_n "checking if we can lock with hard links... " >&6; }
18426  hard_links=yes
18427  $RM conftest*
18428  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18429  touch conftest.a
18430  ln conftest.a conftest.b 2>&5 || hard_links=no
18431  ln conftest.a conftest.b 2>/dev/null && hard_links=no
18432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18433$as_echo "$hard_links" >&6; }
18434  if test no = "$hard_links"; then
18435    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
18436$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
18437    need_locks=warn
18438  fi
18439else
18440  need_locks=no
18441fi
18442
18443
18444
18445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18446$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18447
18448  runpath_var=
18449  allow_undefined_flag_F77=
18450  always_export_symbols_F77=no
18451  archive_cmds_F77=
18452  archive_expsym_cmds_F77=
18453  compiler_needs_object_F77=no
18454  enable_shared_with_static_runtimes_F77=no
18455  export_dynamic_flag_spec_F77=
18456  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18457  hardcode_automatic_F77=no
18458  hardcode_direct_F77=no
18459  hardcode_direct_absolute_F77=no
18460  hardcode_libdir_flag_spec_F77=
18461  hardcode_libdir_separator_F77=
18462  hardcode_minus_L_F77=no
18463  hardcode_shlibpath_var_F77=unsupported
18464  inherit_rpath_F77=no
18465  link_all_deplibs_F77=unknown
18466  module_cmds_F77=
18467  module_expsym_cmds_F77=
18468  old_archive_from_new_cmds_F77=
18469  old_archive_from_expsyms_cmds_F77=
18470  thread_safe_flag_spec_F77=
18471  whole_archive_flag_spec_F77=
18472  # include_expsyms should be a list of space-separated symbols to be *always*
18473  # included in the symbol list
18474  include_expsyms_F77=
18475  # exclude_expsyms can be an extended regexp of symbols to exclude
18476  # it will be wrapped by ' (' and ')$', so one must not match beginning or
18477  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
18478  # as well as any symbol that contains 'd'.
18479  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18480  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18481  # platforms (ab)use it in PIC code, but their linkers get confused if
18482  # the symbol is explicitly referenced.  Since portable code cannot
18483  # rely on this symbol name, it's probably fine to never include it in
18484  # preloaded symbol tables.
18485  # Exclude shared library initialization/finalization symbols.
18486  extract_expsyms_cmds=
18487
18488  case $host_os in
18489  cygwin* | mingw* | pw32* | cegcc*)
18490    # FIXME: the MSVC++ port hasn't been tested in a loooong time
18491    # When not using gcc, we currently assume that we are using
18492    # Microsoft Visual C++.
18493    if test yes != "$GCC"; then
18494      with_gnu_ld=no
18495    fi
18496    ;;
18497  interix*)
18498    # we just hope/assume this is gcc and not c89 (= MSVC++)
18499    with_gnu_ld=yes
18500    ;;
18501  openbsd* | bitrig*)
18502    with_gnu_ld=no
18503    ;;
18504  linux* | k*bsd*-gnu | gnu*)
18505    link_all_deplibs_F77=no
18506    ;;
18507  esac
18508
18509  ld_shlibs_F77=yes
18510
18511  # On some targets, GNU ld is compatible enough with the native linker
18512  # that we're better off using the native interface for both.
18513  lt_use_gnu_ld_interface=no
18514  if test yes = "$with_gnu_ld"; then
18515    case $host_os in
18516      aix*)
18517	# The AIX port of GNU ld has always aspired to compatibility
18518	# with the native linker.  However, as the warning in the GNU ld
18519	# block says, versions before 2.19.5* couldn't really create working
18520	# shared libraries, regardless of the interface used.
18521	case `$LD -v 2>&1` in
18522	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
18523	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
18524	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
18525	  *)
18526	    lt_use_gnu_ld_interface=yes
18527	    ;;
18528	esac
18529	;;
18530      *)
18531	lt_use_gnu_ld_interface=yes
18532	;;
18533    esac
18534  fi
18535
18536  if test yes = "$lt_use_gnu_ld_interface"; then
18537    # If archive_cmds runs LD, not CC, wlarc should be empty
18538    wlarc='$wl'
18539
18540    # Set some defaults for GNU ld with shared library support. These
18541    # are reset later if shared libraries are not supported. Putting them
18542    # here allows them to be overridden if necessary.
18543    runpath_var=LD_RUN_PATH
18544    hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
18545    export_dynamic_flag_spec_F77='$wl--export-dynamic'
18546    # ancient GNU ld didn't support --whole-archive et. al.
18547    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18548      whole_archive_flag_spec_F77=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
18549    else
18550      whole_archive_flag_spec_F77=
18551    fi
18552    supports_anon_versioning=no
18553    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
18554      *GNU\ gold*) supports_anon_versioning=yes ;;
18555      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18556      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18557      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18558      *\ 2.11.*) ;; # other 2.11 versions
18559      *) supports_anon_versioning=yes ;;
18560    esac
18561
18562    # See if GNU ld supports shared libraries.
18563    case $host_os in
18564    aix[3-9]*)
18565      # On AIX/PPC, the GNU linker is very broken
18566      if test ia64 != "$host_cpu"; then
18567	ld_shlibs_F77=no
18568	cat <<_LT_EOF 1>&2
18569
18570*** Warning: the GNU linker, at least up to release 2.19, is reported
18571*** to be unable to reliably create shared libraries on AIX.
18572*** Therefore, libtool is disabling shared libraries support.  If you
18573*** really care for shared libraries, you may want to install binutils
18574*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
18575*** You will then need to restart the configuration process.
18576
18577_LT_EOF
18578      fi
18579      ;;
18580
18581    amigaos*)
18582      case $host_cpu in
18583      powerpc)
18584            # see comment about AmigaOS4 .so support
18585            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18586            archive_expsym_cmds_F77=''
18587        ;;
18588      m68k)
18589            archive_cmds_F77='$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)'
18590            hardcode_libdir_flag_spec_F77='-L$libdir'
18591            hardcode_minus_L_F77=yes
18592        ;;
18593      esac
18594      ;;
18595
18596    beos*)
18597      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18598	allow_undefined_flag_F77=unsupported
18599	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18600	# support --undefined.  This deserves some investigation.  FIXME
18601	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18602      else
18603	ld_shlibs_F77=no
18604      fi
18605      ;;
18606
18607    cygwin* | mingw* | pw32* | cegcc*)
18608      # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18609      # as there is no search path for DLLs.
18610      hardcode_libdir_flag_spec_F77='-L$libdir'
18611      export_dynamic_flag_spec_F77='$wl--export-all-symbols'
18612      allow_undefined_flag_F77=unsupported
18613      always_export_symbols_F77=no
18614      enable_shared_with_static_runtimes_F77=yes
18615      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18616      exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18617
18618      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18619        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18620	# If the export-symbols file already is a .def file, use it as
18621	# is; otherwise, prepend EXPORTS...
18622	archive_expsym_cmds_F77='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
18623          cp $export_symbols $output_objdir/$soname.def;
18624        else
18625          echo EXPORTS > $output_objdir/$soname.def;
18626          cat $export_symbols >> $output_objdir/$soname.def;
18627        fi~
18628        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18629      else
18630	ld_shlibs_F77=no
18631      fi
18632      ;;
18633
18634    haiku*)
18635      archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18636      link_all_deplibs_F77=yes
18637      ;;
18638
18639    os2*)
18640      hardcode_libdir_flag_spec_F77='-L$libdir'
18641      hardcode_minus_L_F77=yes
18642      allow_undefined_flag_F77=unsupported
18643      shrext_cmds=.dll
18644      archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18645	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18646	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18647	$ECHO EXPORTS >> $output_objdir/$libname.def~
18648	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18649	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18650	emximp -o $lib $output_objdir/$libname.def'
18651      archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18652	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18653	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18654	$ECHO EXPORTS >> $output_objdir/$libname.def~
18655	prefix_cmds="$SED"~
18656	if test EXPORTS = "`$SED 1q $export_symbols`"; then
18657	  prefix_cmds="$prefix_cmds -e 1d";
18658	fi~
18659	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18660	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18661	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18662	emximp -o $lib $output_objdir/$libname.def'
18663      old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18664      enable_shared_with_static_runtimes_F77=yes
18665      ;;
18666
18667    interix[3-9]*)
18668      hardcode_direct_F77=no
18669      hardcode_shlibpath_var_F77=no
18670      hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
18671      export_dynamic_flag_spec_F77='$wl-E'
18672      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18673      # Instead, shared libraries are loaded at an image base (0x10000000 by
18674      # default) and relocated if they conflict, which is a slow very memory
18675      # consuming and fragmenting process.  To avoid this, we pick a random,
18676      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18677      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18678      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18679      archive_expsym_cmds_F77='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'
18680      ;;
18681
18682    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18683      tmp_diet=no
18684      if test linux-dietlibc = "$host_os"; then
18685	case $cc_basename in
18686	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
18687	esac
18688      fi
18689      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18690	 && test no = "$tmp_diet"
18691      then
18692	tmp_addflag=' $pic_flag'
18693	tmp_sharedflag='-shared'
18694	case $cc_basename,$host_cpu in
18695        pgcc*)				# Portland Group C compiler
18696	  whole_archive_flag_spec_F77='$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'
18697	  tmp_addflag=' $pic_flag'
18698	  ;;
18699	pgf77* | pgf90* | pgf95* | pgfortran*)
18700					# Portland Group f77 and f90 compilers
18701	  whole_archive_flag_spec_F77='$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'
18702	  tmp_addflag=' $pic_flag -Mnomain' ;;
18703	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
18704	  tmp_addflag=' -i_dynamic' ;;
18705	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
18706	  tmp_addflag=' -i_dynamic -nofor_main' ;;
18707	ifc* | ifort*)			# Intel Fortran compiler
18708	  tmp_addflag=' -nofor_main' ;;
18709	lf95*)				# Lahey Fortran 8.1
18710	  whole_archive_flag_spec_F77=
18711	  tmp_sharedflag='--shared' ;;
18712        nagfor*)                        # NAGFOR 5.3
18713          tmp_sharedflag='-Wl,-shared' ;;
18714	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18715	  tmp_sharedflag='-qmkshrobj'
18716	  tmp_addflag= ;;
18717	nvcc*)	# Cuda Compiler Driver 2.2
18718	  whole_archive_flag_spec_F77='$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'
18719	  compiler_needs_object_F77=yes
18720	  ;;
18721	esac
18722	case `$CC -V 2>&1 | sed 5q` in
18723	*Sun\ C*)			# Sun C 5.9
18724	  whole_archive_flag_spec_F77='$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'
18725	  compiler_needs_object_F77=yes
18726	  tmp_sharedflag='-G' ;;
18727	*Sun\ F*)			# Sun Fortran 8.3
18728	  tmp_sharedflag='-G' ;;
18729	esac
18730	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18731
18732        if test yes = "$supports_anon_versioning"; then
18733          archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
18734            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18735            echo "local: *; };" >> $output_objdir/$libname.ver~
18736            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
18737        fi
18738
18739	case $cc_basename in
18740	tcc*)
18741	  export_dynamic_flag_spec_F77='-rdynamic'
18742	  ;;
18743	xlf* | bgf* | bgxlf* | mpixlf*)
18744	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18745	  whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
18746	  hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
18747	  archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
18748	  if test yes = "$supports_anon_versioning"; then
18749	    archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
18750              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18751              echo "local: *; };" >> $output_objdir/$libname.ver~
18752              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18753	  fi
18754	  ;;
18755	esac
18756      else
18757        ld_shlibs_F77=no
18758      fi
18759      ;;
18760
18761    netbsd* | netbsdelf*-gnu)
18762      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18763	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18764	wlarc=
18765      else
18766	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18767	archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18768      fi
18769      ;;
18770
18771    solaris*)
18772      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18773	ld_shlibs_F77=no
18774	cat <<_LT_EOF 1>&2
18775
18776*** Warning: The releases 2.8.* of the GNU linker cannot reliably
18777*** create shared libraries on Solaris systems.  Therefore, libtool
18778*** is disabling shared libraries support.  We urge you to upgrade GNU
18779*** binutils to release 2.9.1 or newer.  Another option is to modify
18780*** your PATH or compiler configuration so that the native linker is
18781*** used, and then restart.
18782
18783_LT_EOF
18784      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18785	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18786	archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18787      else
18788	ld_shlibs_F77=no
18789      fi
18790      ;;
18791
18792    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18793      case `$LD -v 2>&1` in
18794        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18795	ld_shlibs_F77=no
18796	cat <<_LT_EOF 1>&2
18797
18798*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
18799*** reliably create shared libraries on SCO systems.  Therefore, libtool
18800*** is disabling shared libraries support.  We urge you to upgrade GNU
18801*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18802*** your PATH or compiler configuration so that the native linker is
18803*** used, and then restart.
18804
18805_LT_EOF
18806	;;
18807	*)
18808	  # For security reasons, it is highly recommended that you always
18809	  # use absolute paths for naming shared libraries, and exclude the
18810	  # DT_RUNPATH tag from executables and libraries.  But doing so
18811	  # requires that you compile everything twice, which is a pain.
18812	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18813	    hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
18814	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18815	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18816	  else
18817	    ld_shlibs_F77=no
18818	  fi
18819	;;
18820      esac
18821      ;;
18822
18823    sunos4*)
18824      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18825      wlarc=
18826      hardcode_direct_F77=yes
18827      hardcode_shlibpath_var_F77=no
18828      ;;
18829
18830    *)
18831      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18832	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
18833	archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
18834      else
18835	ld_shlibs_F77=no
18836      fi
18837      ;;
18838    esac
18839
18840    if test no = "$ld_shlibs_F77"; then
18841      runpath_var=
18842      hardcode_libdir_flag_spec_F77=
18843      export_dynamic_flag_spec_F77=
18844      whole_archive_flag_spec_F77=
18845    fi
18846  else
18847    # PORTME fill in a description of your system's linker (not GNU ld)
18848    case $host_os in
18849    aix3*)
18850      allow_undefined_flag_F77=unsupported
18851      always_export_symbols_F77=yes
18852      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18853      # Note: this linker hardcodes the directories in LIBPATH if there
18854      # are no directories specified by -L.
18855      hardcode_minus_L_F77=yes
18856      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
18857	# Neither direct hardcoding nor static linking is supported with a
18858	# broken collect2.
18859	hardcode_direct_F77=unsupported
18860      fi
18861      ;;
18862
18863    aix[4-9]*)
18864      if test ia64 = "$host_cpu"; then
18865	# On IA64, the linker does run time linking by default, so we don't
18866	# have to do anything special.
18867	aix_use_runtimelinking=no
18868	exp_sym_flag='-Bexport'
18869	no_entry_flag=
18870      else
18871	# If we're using GNU nm, then we don't want the "-C" option.
18872	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
18873	# Without the "-l" option, or with the "-B" option, AIX nm treats
18874	# weak defined symbols like other global defined symbols, whereas
18875	# GNU nm marks them as "W".
18876	# While the 'weak' keyword is ignored in the Export File, we need
18877	# it in the Import File for the 'aix-soname' feature, so we have
18878	# to replace the "-B" option with "-P" for AIX nm.
18879	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18880	  export_symbols_cmds_F77='$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'
18881	else
18882	  export_symbols_cmds_F77='`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'
18883	fi
18884	aix_use_runtimelinking=no
18885
18886	# Test if we are trying to use run time linking or normal
18887	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
18888	# have runtime linking enabled, and use it for executables.
18889	# For shared libraries, we enable/disable runtime linking
18890	# depending on the kind of the shared library created -
18891	# when "with_aix_soname,aix_use_runtimelinking" is:
18892	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
18893	# "aix,yes"  lib.so          shared, rtl:yes, for executables
18894	#            lib.a           static archive
18895	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
18896	#            lib.a(lib.so.V) shared, rtl:no,  for executables
18897	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
18898	#            lib.a(lib.so.V) shared, rtl:no
18899	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
18900	#            lib.a           static archive
18901	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18902	  for ld_flag in $LDFLAGS; do
18903	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
18904	    aix_use_runtimelinking=yes
18905	    break
18906	  fi
18907	  done
18908	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
18909	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
18910	    # so we don't have lib.a shared libs to link our executables.
18911	    # We have to force runtime linking in this case.
18912	    aix_use_runtimelinking=yes
18913	    LDFLAGS="$LDFLAGS -Wl,-brtl"
18914	  fi
18915	  ;;
18916	esac
18917
18918	exp_sym_flag='-bexport'
18919	no_entry_flag='-bnoentry'
18920      fi
18921
18922      # When large executables or shared objects are built, AIX ld can
18923      # have problems creating the table of contents.  If linking a library
18924      # or program results in "error TOC overflow" add -mminimal-toc to
18925      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18926      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18927
18928      archive_cmds_F77=''
18929      hardcode_direct_F77=yes
18930      hardcode_direct_absolute_F77=yes
18931      hardcode_libdir_separator_F77=':'
18932      link_all_deplibs_F77=yes
18933      file_list_spec_F77='$wl-f,'
18934      case $with_aix_soname,$aix_use_runtimelinking in
18935      aix,*) ;; # traditional, no import file
18936      svr4,* | *,yes) # use import file
18937	# The Import File defines what to hardcode.
18938	hardcode_direct_F77=no
18939	hardcode_direct_absolute_F77=no
18940	;;
18941      esac
18942
18943      if test yes = "$GCC"; then
18944	case $host_os in aix4.[012]|aix4.[012].*)
18945	# We only want to do this on AIX 4.2 and lower, the check
18946	# below for broken collect2 doesn't work under 4.3+
18947	  collect2name=`$CC -print-prog-name=collect2`
18948	  if test -f "$collect2name" &&
18949	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18950	  then
18951	  # We have reworked collect2
18952	  :
18953	  else
18954	  # We have old collect2
18955	  hardcode_direct_F77=unsupported
18956	  # It fails to find uninstalled libraries when the uninstalled
18957	  # path is not listed in the libpath.  Setting hardcode_minus_L
18958	  # to unsupported forces relinking
18959	  hardcode_minus_L_F77=yes
18960	  hardcode_libdir_flag_spec_F77='-L$libdir'
18961	  hardcode_libdir_separator_F77=
18962	  fi
18963	  ;;
18964	esac
18965	shared_flag='-shared'
18966	if test yes = "$aix_use_runtimelinking"; then
18967	  shared_flag="$shared_flag "'$wl-G'
18968	fi
18969	# Need to ensure runtime linking is disabled for the traditional
18970	# shared library, or the linker may eventually find shared libraries
18971	# /with/ Import File - we do not want to mix them.
18972	shared_flag_aix='-shared'
18973	shared_flag_svr4='-shared $wl-G'
18974      else
18975	# not using gcc
18976	if test ia64 = "$host_cpu"; then
18977	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18978	# chokes on -Wl,-G. The following line is correct:
18979	  shared_flag='-G'
18980	else
18981	  if test yes = "$aix_use_runtimelinking"; then
18982	    shared_flag='$wl-G'
18983	  else
18984	    shared_flag='$wl-bM:SRE'
18985	  fi
18986	  shared_flag_aix='$wl-bM:SRE'
18987	  shared_flag_svr4='$wl-G'
18988	fi
18989      fi
18990
18991      export_dynamic_flag_spec_F77='$wl-bexpall'
18992      # It seems that -bexpall does not export symbols beginning with
18993      # underscore (_), so it is better to generate a list of symbols to export.
18994      always_export_symbols_F77=yes
18995      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
18996	# Warning - without using the other runtime loading flags (-brtl),
18997	# -berok will link without error, but may produce a broken library.
18998	allow_undefined_flag_F77='-berok'
18999        # Determine the default libpath from the value encoded in an
19000        # empty executable.
19001        if test set = "${lt_cv_aix_libpath+set}"; then
19002  aix_libpath=$lt_cv_aix_libpath
19003else
19004  if ${lt_cv_aix_libpath__F77+:} false; then :
19005  $as_echo_n "(cached) " >&6
19006else
19007  cat > conftest.$ac_ext <<_ACEOF
19008      program main
19009
19010      end
19011_ACEOF
19012if ac_fn_f77_try_link "$LINENO"; then :
19013
19014  lt_aix_libpath_sed='
19015      /Import File Strings/,/^$/ {
19016	  /^0/ {
19017	      s/^0  *\([^ ]*\) *$/\1/
19018	      p
19019	  }
19020      }'
19021  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19022  # Check for a 64-bit object if we didn't find anything.
19023  if test -z "$lt_cv_aix_libpath__F77"; then
19024    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19025  fi
19026fi
19027rm -f core conftest.err conftest.$ac_objext \
19028    conftest$ac_exeext conftest.$ac_ext
19029  if test -z "$lt_cv_aix_libpath__F77"; then
19030    lt_cv_aix_libpath__F77=/usr/lib:/lib
19031  fi
19032
19033fi
19034
19035  aix_libpath=$lt_cv_aix_libpath__F77
19036fi
19037
19038        hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
19039        archive_expsym_cmds_F77='$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
19040      else
19041	if test ia64 = "$host_cpu"; then
19042	  hardcode_libdir_flag_spec_F77='$wl-R $libdir:/usr/lib:/lib'
19043	  allow_undefined_flag_F77="-z nodefs"
19044	  archive_expsym_cmds_F77="\$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"
19045	else
19046	 # Determine the default libpath from the value encoded in an
19047	 # empty executable.
19048	 if test set = "${lt_cv_aix_libpath+set}"; then
19049  aix_libpath=$lt_cv_aix_libpath
19050else
19051  if ${lt_cv_aix_libpath__F77+:} false; then :
19052  $as_echo_n "(cached) " >&6
19053else
19054  cat > conftest.$ac_ext <<_ACEOF
19055      program main
19056
19057      end
19058_ACEOF
19059if ac_fn_f77_try_link "$LINENO"; then :
19060
19061  lt_aix_libpath_sed='
19062      /Import File Strings/,/^$/ {
19063	  /^0/ {
19064	      s/^0  *\([^ ]*\) *$/\1/
19065	      p
19066	  }
19067      }'
19068  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19069  # Check for a 64-bit object if we didn't find anything.
19070  if test -z "$lt_cv_aix_libpath__F77"; then
19071    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19072  fi
19073fi
19074rm -f core conftest.err conftest.$ac_objext \
19075    conftest$ac_exeext conftest.$ac_ext
19076  if test -z "$lt_cv_aix_libpath__F77"; then
19077    lt_cv_aix_libpath__F77=/usr/lib:/lib
19078  fi
19079
19080fi
19081
19082  aix_libpath=$lt_cv_aix_libpath__F77
19083fi
19084
19085	 hardcode_libdir_flag_spec_F77='$wl-blibpath:$libdir:'"$aix_libpath"
19086	  # Warning - without using the other run time loading flags,
19087	  # -berok will link without error, but may produce a broken library.
19088	  no_undefined_flag_F77=' $wl-bernotok'
19089	  allow_undefined_flag_F77=' $wl-berok'
19090	  if test yes = "$with_gnu_ld"; then
19091	    # We only use this code for GNU lds that support --whole-archive.
19092	    whole_archive_flag_spec_F77='$wl--whole-archive$convenience $wl--no-whole-archive'
19093	  else
19094	    # Exported symbols can be pulled into shared objects from archives
19095	    whole_archive_flag_spec_F77='$convenience'
19096	  fi
19097	  archive_cmds_need_lc_F77=yes
19098	  archive_expsym_cmds_F77='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19099	  # -brtl affects multiple linker settings, -berok does not and is overridden later
19100	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19101	  if test svr4 != "$with_aix_soname"; then
19102	    # This is similar to how AIX traditionally builds its shared libraries.
19103	    archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$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'
19104	  fi
19105	  if test aix != "$with_aix_soname"; then
19106	    archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$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'
19107	  else
19108	    # used by -dlpreopen to get the symbols
19109	    archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
19110	  fi
19111	  archive_expsym_cmds_F77="$archive_expsym_cmds_F77"'~$RM -r $output_objdir/$realname.d'
19112	fi
19113      fi
19114      ;;
19115
19116    amigaos*)
19117      case $host_cpu in
19118      powerpc)
19119            # see comment about AmigaOS4 .so support
19120            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19121            archive_expsym_cmds_F77=''
19122        ;;
19123      m68k)
19124            archive_cmds_F77='$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)'
19125            hardcode_libdir_flag_spec_F77='-L$libdir'
19126            hardcode_minus_L_F77=yes
19127        ;;
19128      esac
19129      ;;
19130
19131    bsdi[45]*)
19132      export_dynamic_flag_spec_F77=-rdynamic
19133      ;;
19134
19135    cygwin* | mingw* | pw32* | cegcc*)
19136      # When not using gcc, we currently assume that we are using
19137      # Microsoft Visual C++.
19138      # hardcode_libdir_flag_spec is actually meaningless, as there is
19139      # no search path for DLLs.
19140      case $cc_basename in
19141      cl*)
19142	# Native MSVC
19143	hardcode_libdir_flag_spec_F77=' '
19144	allow_undefined_flag_F77=unsupported
19145	always_export_symbols_F77=yes
19146	file_list_spec_F77='@'
19147	# Tell ltmain to make .lib files, not .a files.
19148	libext=lib
19149	# Tell ltmain to make .dll files, not .so files.
19150	shrext_cmds=.dll
19151	# FIXME: Setting linknames here is a bad hack.
19152	archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19153	archive_expsym_cmds_F77='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
19154            cp "$export_symbols" "$output_objdir/$soname.def";
19155            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19156          else
19157            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19158          fi~
19159          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19160          linknames='
19161	# The linker will not automatically build a static lib if we build a DLL.
19162	# _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
19163	enable_shared_with_static_runtimes_F77=yes
19164	exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19165	export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19166	# Don't use ranlib
19167	old_postinstall_cmds_F77='chmod 644 $oldlib'
19168	postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
19169          lt_tool_outputfile="@TOOL_OUTPUT@"~
19170          case $lt_outputfile in
19171            *.exe|*.EXE) ;;
19172            *)
19173              lt_outputfile=$lt_outputfile.exe
19174              lt_tool_outputfile=$lt_tool_outputfile.exe
19175              ;;
19176          esac~
19177          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19178            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19179            $RM "$lt_outputfile.manifest";
19180          fi'
19181	;;
19182      *)
19183	# Assume MSVC wrapper
19184	hardcode_libdir_flag_spec_F77=' '
19185	allow_undefined_flag_F77=unsupported
19186	# Tell ltmain to make .lib files, not .a files.
19187	libext=lib
19188	# Tell ltmain to make .dll files, not .so files.
19189	shrext_cmds=.dll
19190	# FIXME: Setting linknames here is a bad hack.
19191	archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
19192	# The linker will automatically build a .lib file if we build a DLL.
19193	old_archive_from_new_cmds_F77='true'
19194	# FIXME: Should let the user specify the lib program.
19195	old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
19196	enable_shared_with_static_runtimes_F77=yes
19197	;;
19198      esac
19199      ;;
19200
19201    darwin* | rhapsody*)
19202
19203
19204  archive_cmds_need_lc_F77=no
19205  hardcode_direct_F77=no
19206  hardcode_automatic_F77=yes
19207  hardcode_shlibpath_var_F77=unsupported
19208  if test yes = "$lt_cv_ld_force_load"; then
19209    whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
19210    compiler_needs_object_F77=yes
19211  else
19212    whole_archive_flag_spec_F77=''
19213  fi
19214  link_all_deplibs_F77=yes
19215  allow_undefined_flag_F77=$_lt_dar_allow_undefined
19216  case $cc_basename in
19217     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
19218     *) _lt_dar_can_shared=$GCC ;;
19219  esac
19220  if test yes = "$_lt_dar_can_shared"; then
19221    output_verbose_link_cmd=func_echo_all
19222    archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
19223    module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19224    archive_expsym_cmds_F77="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"
19225    module_expsym_cmds_F77="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"
19226
19227  else
19228  ld_shlibs_F77=no
19229  fi
19230
19231      ;;
19232
19233    dgux*)
19234      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19235      hardcode_libdir_flag_spec_F77='-L$libdir'
19236      hardcode_shlibpath_var_F77=no
19237      ;;
19238
19239    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19240    # support.  Future versions do this automatically, but an explicit c++rt0.o
19241    # does not break anything, and helps significantly (at the cost of a little
19242    # extra space).
19243    freebsd2.2*)
19244      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19245      hardcode_libdir_flag_spec_F77='-R$libdir'
19246      hardcode_direct_F77=yes
19247      hardcode_shlibpath_var_F77=no
19248      ;;
19249
19250    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19251    freebsd2.*)
19252      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19253      hardcode_direct_F77=yes
19254      hardcode_minus_L_F77=yes
19255      hardcode_shlibpath_var_F77=no
19256      ;;
19257
19258    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19259    freebsd* | dragonfly*)
19260      archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19261      hardcode_libdir_flag_spec_F77='-R$libdir'
19262      hardcode_direct_F77=yes
19263      hardcode_shlibpath_var_F77=no
19264      ;;
19265
19266    hpux9*)
19267      if test yes = "$GCC"; then
19268	archive_cmds_F77='$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'
19269      else
19270	archive_cmds_F77='$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'
19271      fi
19272      hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
19273      hardcode_libdir_separator_F77=:
19274      hardcode_direct_F77=yes
19275
19276      # hardcode_minus_L: Not really in the search PATH,
19277      # but as the default location of the library.
19278      hardcode_minus_L_F77=yes
19279      export_dynamic_flag_spec_F77='$wl-E'
19280      ;;
19281
19282    hpux10*)
19283      if test yes,no = "$GCC,$with_gnu_ld"; then
19284	archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19285      else
19286	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19287      fi
19288      if test no = "$with_gnu_ld"; then
19289	hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
19290	hardcode_libdir_separator_F77=:
19291	hardcode_direct_F77=yes
19292	hardcode_direct_absolute_F77=yes
19293	export_dynamic_flag_spec_F77='$wl-E'
19294	# hardcode_minus_L: Not really in the search PATH,
19295	# but as the default location of the library.
19296	hardcode_minus_L_F77=yes
19297      fi
19298      ;;
19299
19300    hpux11*)
19301      if test yes,no = "$GCC,$with_gnu_ld"; then
19302	case $host_cpu in
19303	hppa*64*)
19304	  archive_cmds_F77='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19305	  ;;
19306	ia64*)
19307	  archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19308	  ;;
19309	*)
19310	  archive_cmds_F77='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19311	  ;;
19312	esac
19313      else
19314	case $host_cpu in
19315	hppa*64*)
19316	  archive_cmds_F77='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19317	  ;;
19318	ia64*)
19319	  archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
19320	  ;;
19321	*)
19322	archive_cmds_F77='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19323	  ;;
19324	esac
19325      fi
19326      if test no = "$with_gnu_ld"; then
19327	hardcode_libdir_flag_spec_F77='$wl+b $wl$libdir'
19328	hardcode_libdir_separator_F77=:
19329
19330	case $host_cpu in
19331	hppa*64*|ia64*)
19332	  hardcode_direct_F77=no
19333	  hardcode_shlibpath_var_F77=no
19334	  ;;
19335	*)
19336	  hardcode_direct_F77=yes
19337	  hardcode_direct_absolute_F77=yes
19338	  export_dynamic_flag_spec_F77='$wl-E'
19339
19340	  # hardcode_minus_L: Not really in the search PATH,
19341	  # but as the default location of the library.
19342	  hardcode_minus_L_F77=yes
19343	  ;;
19344	esac
19345      fi
19346      ;;
19347
19348    irix5* | irix6* | nonstopux*)
19349      if test yes = "$GCC"; then
19350	archive_cmds_F77='$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'
19351	# Try to use the -exported_symbol ld option, if it does not
19352	# work, assume that -exports_file does not work either and
19353	# implicitly export all symbols.
19354	# This should be the same for all languages, so no per-tag cache variable.
19355	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
19356$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
19357if ${lt_cv_irix_exported_symbol+:} false; then :
19358  $as_echo_n "(cached) " >&6
19359else
19360  save_LDFLAGS=$LDFLAGS
19361	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
19362	   cat > conftest.$ac_ext <<_ACEOF
19363
19364      subroutine foo
19365      end
19366_ACEOF
19367if ac_fn_f77_try_link "$LINENO"; then :
19368  lt_cv_irix_exported_symbol=yes
19369else
19370  lt_cv_irix_exported_symbol=no
19371fi
19372rm -f core conftest.err conftest.$ac_objext \
19373    conftest$ac_exeext conftest.$ac_ext
19374           LDFLAGS=$save_LDFLAGS
19375fi
19376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
19377$as_echo "$lt_cv_irix_exported_symbol" >&6; }
19378	if test yes = "$lt_cv_irix_exported_symbol"; then
19379          archive_expsym_cmds_F77='$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'
19380	fi
19381	link_all_deplibs_F77=no
19382      else
19383	archive_cmds_F77='$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'
19384	archive_expsym_cmds_F77='$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'
19385      fi
19386      archive_cmds_need_lc_F77='no'
19387      hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19388      hardcode_libdir_separator_F77=:
19389      inherit_rpath_F77=yes
19390      link_all_deplibs_F77=yes
19391      ;;
19392
19393    linux*)
19394      case $cc_basename in
19395      tcc*)
19396	# Fabrice Bellard et al's Tiny C Compiler
19397	ld_shlibs_F77=yes
19398	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19399	;;
19400      esac
19401      ;;
19402
19403    netbsd* | netbsdelf*-gnu)
19404      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19405	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
19406      else
19407	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
19408      fi
19409      hardcode_libdir_flag_spec_F77='-R$libdir'
19410      hardcode_direct_F77=yes
19411      hardcode_shlibpath_var_F77=no
19412      ;;
19413
19414    newsos6)
19415      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19416      hardcode_direct_F77=yes
19417      hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19418      hardcode_libdir_separator_F77=:
19419      hardcode_shlibpath_var_F77=no
19420      ;;
19421
19422    *nto* | *qnx*)
19423      ;;
19424
19425    openbsd* | bitrig*)
19426      if test -f /usr/libexec/ld.so; then
19427	hardcode_direct_F77=yes
19428	hardcode_shlibpath_var_F77=no
19429	hardcode_direct_absolute_F77=yes
19430	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19431	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19432	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
19433	  hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
19434	  export_dynamic_flag_spec_F77='$wl-E'
19435	else
19436	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19437	  hardcode_libdir_flag_spec_F77='$wl-rpath,$libdir'
19438	fi
19439      else
19440	ld_shlibs_F77=no
19441      fi
19442      ;;
19443
19444    os2*)
19445      hardcode_libdir_flag_spec_F77='-L$libdir'
19446      hardcode_minus_L_F77=yes
19447      allow_undefined_flag_F77=unsupported
19448      shrext_cmds=.dll
19449      archive_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19450	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19451	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19452	$ECHO EXPORTS >> $output_objdir/$libname.def~
19453	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19454	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19455	emximp -o $lib $output_objdir/$libname.def'
19456      archive_expsym_cmds_F77='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19457	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19458	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19459	$ECHO EXPORTS >> $output_objdir/$libname.def~
19460	prefix_cmds="$SED"~
19461	if test EXPORTS = "`$SED 1q $export_symbols`"; then
19462	  prefix_cmds="$prefix_cmds -e 1d";
19463	fi~
19464	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19465	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19466	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19467	emximp -o $lib $output_objdir/$libname.def'
19468      old_archive_From_new_cmds_F77='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19469      enable_shared_with_static_runtimes_F77=yes
19470      ;;
19471
19472    osf3*)
19473      if test yes = "$GCC"; then
19474	allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
19475	archive_cmds_F77='$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'
19476      else
19477	allow_undefined_flag_F77=' -expect_unresolved \*'
19478	archive_cmds_F77='$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'
19479      fi
19480      archive_cmds_need_lc_F77='no'
19481      hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19482      hardcode_libdir_separator_F77=:
19483      ;;
19484
19485    osf4* | osf5*)	# as osf3* with the addition of -msym flag
19486      if test yes = "$GCC"; then
19487	allow_undefined_flag_F77=' $wl-expect_unresolved $wl\*'
19488	archive_cmds_F77='$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'
19489	hardcode_libdir_flag_spec_F77='$wl-rpath $wl$libdir'
19490      else
19491	allow_undefined_flag_F77=' -expect_unresolved \*'
19492	archive_cmds_F77='$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'
19493	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
19494          $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'
19495
19496	# Both c and cxx compiler support -rpath directly
19497	hardcode_libdir_flag_spec_F77='-rpath $libdir'
19498      fi
19499      archive_cmds_need_lc_F77='no'
19500      hardcode_libdir_separator_F77=:
19501      ;;
19502
19503    solaris*)
19504      no_undefined_flag_F77=' -z defs'
19505      if test yes = "$GCC"; then
19506	wlarc='$wl'
19507	archive_cmds_F77='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
19508	archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19509          $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'
19510      else
19511	case `$CC -V 2>&1` in
19512	*"Compilers 5.0"*)
19513	  wlarc=''
19514	  archive_cmds_F77='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
19515	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19516            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19517	  ;;
19518	*)
19519	  wlarc='$wl'
19520	  archive_cmds_F77='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19521	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19522            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19523	  ;;
19524	esac
19525      fi
19526      hardcode_libdir_flag_spec_F77='-R$libdir'
19527      hardcode_shlibpath_var_F77=no
19528      case $host_os in
19529      solaris2.[0-5] | solaris2.[0-5].*) ;;
19530      *)
19531	# The compiler driver will combine and reorder linker options,
19532	# but understands '-z linker_flag'.  GCC discards it without '$wl',
19533	# but is careful enough not to reorder.
19534	# Supported since Solaris 2.6 (maybe 2.5.1?)
19535	if test yes = "$GCC"; then
19536	  whole_archive_flag_spec_F77='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
19537	else
19538	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
19539	fi
19540	;;
19541      esac
19542      link_all_deplibs_F77=yes
19543      ;;
19544
19545    sunos4*)
19546      if test sequent = "$host_vendor"; then
19547	# Use $CC to link under sequent, because it throws in some extra .o
19548	# files that make .init and .fini sections work.
19549	archive_cmds_F77='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19550      else
19551	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19552      fi
19553      hardcode_libdir_flag_spec_F77='-L$libdir'
19554      hardcode_direct_F77=yes
19555      hardcode_minus_L_F77=yes
19556      hardcode_shlibpath_var_F77=no
19557      ;;
19558
19559    sysv4)
19560      case $host_vendor in
19561	sni)
19562	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19563	  hardcode_direct_F77=yes # is this really true???
19564	;;
19565	siemens)
19566	  ## LD is ld it makes a PLAMLIB
19567	  ## CC just makes a GrossModule.
19568	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19569	  reload_cmds_F77='$CC -r -o $output$reload_objs'
19570	  hardcode_direct_F77=no
19571        ;;
19572	motorola)
19573	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19574	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19575	;;
19576      esac
19577      runpath_var='LD_RUN_PATH'
19578      hardcode_shlibpath_var_F77=no
19579      ;;
19580
19581    sysv4.3*)
19582      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19583      hardcode_shlibpath_var_F77=no
19584      export_dynamic_flag_spec_F77='-Bexport'
19585      ;;
19586
19587    sysv4*MP*)
19588      if test -d /usr/nec; then
19589	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19590	hardcode_shlibpath_var_F77=no
19591	runpath_var=LD_RUN_PATH
19592	hardcode_runpath_var=yes
19593	ld_shlibs_F77=yes
19594      fi
19595      ;;
19596
19597    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19598      no_undefined_flag_F77='$wl-z,text'
19599      archive_cmds_need_lc_F77=no
19600      hardcode_shlibpath_var_F77=no
19601      runpath_var='LD_RUN_PATH'
19602
19603      if test yes = "$GCC"; then
19604	archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19605	archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19606      else
19607	archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19608	archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19609      fi
19610      ;;
19611
19612    sysv5* | sco3.2v5* | sco5v6*)
19613      # Note: We CANNOT use -z defs as we might desire, because we do not
19614      # link with -lc, and that would cause any symbols used from libc to
19615      # always be unresolved, which means just about no library would
19616      # ever link correctly.  If we're not using GNU ld we use -z text
19617      # though, which does catch some bad symbols but isn't as heavy-handed
19618      # as -z defs.
19619      no_undefined_flag_F77='$wl-z,text'
19620      allow_undefined_flag_F77='$wl-z,nodefs'
19621      archive_cmds_need_lc_F77=no
19622      hardcode_shlibpath_var_F77=no
19623      hardcode_libdir_flag_spec_F77='$wl-R,$libdir'
19624      hardcode_libdir_separator_F77=':'
19625      link_all_deplibs_F77=yes
19626      export_dynamic_flag_spec_F77='$wl-Bexport'
19627      runpath_var='LD_RUN_PATH'
19628
19629      if test yes = "$GCC"; then
19630	archive_cmds_F77='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19631	archive_expsym_cmds_F77='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19632      else
19633	archive_cmds_F77='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19634	archive_expsym_cmds_F77='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19635      fi
19636      ;;
19637
19638    uts4*)
19639      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19640      hardcode_libdir_flag_spec_F77='-L$libdir'
19641      hardcode_shlibpath_var_F77=no
19642      ;;
19643
19644    *)
19645      ld_shlibs_F77=no
19646      ;;
19647    esac
19648
19649    if test sni = "$host_vendor"; then
19650      case $host in
19651      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19652	export_dynamic_flag_spec_F77='$wl-Blargedynsym'
19653	;;
19654      esac
19655    fi
19656  fi
19657
19658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
19659$as_echo "$ld_shlibs_F77" >&6; }
19660test no = "$ld_shlibs_F77" && can_build_shared=no
19661
19662with_gnu_ld_F77=$with_gnu_ld
19663
19664
19665
19666
19667
19668
19669#
19670# Do we need to explicitly link libc?
19671#
19672case "x$archive_cmds_need_lc_F77" in
19673x|xyes)
19674  # Assume -lc should be added
19675  archive_cmds_need_lc_F77=yes
19676
19677  if test yes,yes = "$GCC,$enable_shared"; then
19678    case $archive_cmds_F77 in
19679    *'~'*)
19680      # FIXME: we may have to deal with multi-command sequences.
19681      ;;
19682    '$CC '*)
19683      # Test whether the compiler implicitly links with -lc since on some
19684      # systems, -lgcc has to come before -lc. If gcc already passes -lc
19685      # to ld, don't add -lc before -lgcc.
19686      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19687$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19688if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
19689  $as_echo_n "(cached) " >&6
19690else
19691  $RM conftest*
19692	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19693
19694	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19695  (eval $ac_compile) 2>&5
19696  ac_status=$?
19697  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19698  test $ac_status = 0; } 2>conftest.err; then
19699	  soname=conftest
19700	  lib=conftest
19701	  libobjs=conftest.$ac_objext
19702	  deplibs=
19703	  wl=$lt_prog_compiler_wl_F77
19704	  pic_flag=$lt_prog_compiler_pic_F77
19705	  compiler_flags=-v
19706	  linker_flags=-v
19707	  verstring=
19708	  output_objdir=.
19709	  libname=conftest
19710	  lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19711	  allow_undefined_flag_F77=
19712	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19713  (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19714  ac_status=$?
19715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19716  test $ac_status = 0; }
19717	  then
19718	    lt_cv_archive_cmds_need_lc_F77=no
19719	  else
19720	    lt_cv_archive_cmds_need_lc_F77=yes
19721	  fi
19722	  allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19723	else
19724	  cat conftest.err 1>&5
19725	fi
19726	$RM conftest*
19727
19728fi
19729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
19730$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
19731      archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
19732      ;;
19733    esac
19734  fi
19735  ;;
19736esac
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754
19755
19756
19757
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767
19768
19769
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19800$as_echo_n "checking dynamic linker characteristics... " >&6; }
19801
19802library_names_spec=
19803libname_spec='lib$name'
19804soname_spec=
19805shrext_cmds=.so
19806postinstall_cmds=
19807postuninstall_cmds=
19808finish_cmds=
19809finish_eval=
19810shlibpath_var=
19811shlibpath_overrides_runpath=unknown
19812version_type=none
19813dynamic_linker="$host_os ld.so"
19814sys_lib_dlsearch_path_spec="/lib /usr/lib"
19815need_lib_prefix=unknown
19816hardcode_into_libs=no
19817
19818# when you set need_version to no, make sure it does not cause -set_version
19819# flags to be left without arguments
19820need_version=unknown
19821
19822
19823
19824case $host_os in
19825aix3*)
19826  version_type=linux # correct to gnu/linux during the next big refactor
19827  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
19828  shlibpath_var=LIBPATH
19829
19830  # AIX 3 has no versioning support, so we append a major version to the name.
19831  soname_spec='$libname$release$shared_ext$major'
19832  ;;
19833
19834aix[4-9]*)
19835  version_type=linux # correct to gnu/linux during the next big refactor
19836  need_lib_prefix=no
19837  need_version=no
19838  hardcode_into_libs=yes
19839  if test ia64 = "$host_cpu"; then
19840    # AIX 5 supports IA64
19841    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
19842    shlibpath_var=LD_LIBRARY_PATH
19843  else
19844    # With GCC up to 2.95.x, collect2 would create an import file
19845    # for dependence libraries.  The import file would start with
19846    # the line '#! .'.  This would cause the generated library to
19847    # depend on '.', always an invalid library.  This was fixed in
19848    # development snapshots of GCC prior to 3.0.
19849    case $host_os in
19850      aix4 | aix4.[01] | aix4.[01].*)
19851      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19852	   echo ' yes '
19853	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
19854	:
19855      else
19856	can_build_shared=no
19857      fi
19858      ;;
19859    esac
19860    # Using Import Files as archive members, it is possible to support
19861    # filename-based versioning of shared library archives on AIX. While
19862    # this would work for both with and without runtime linking, it will
19863    # prevent static linking of such archives. So we do filename-based
19864    # shared library versioning with .so extension only, which is used
19865    # when both runtime linking and shared linking is enabled.
19866    # Unfortunately, runtime linking may impact performance, so we do
19867    # not want this to be the default eventually. Also, we use the
19868    # versioned .so libs for executables only if there is the -brtl
19869    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
19870    # To allow for filename-based versioning support, we need to create
19871    # libNAME.so.V as an archive file, containing:
19872    # *) an Import File, referring to the versioned filename of the
19873    #    archive as well as the shared archive member, telling the
19874    #    bitwidth (32 or 64) of that shared object, and providing the
19875    #    list of exported symbols of that shared object, eventually
19876    #    decorated with the 'weak' keyword
19877    # *) the shared object with the F_LOADONLY flag set, to really avoid
19878    #    it being seen by the linker.
19879    # At run time we better use the real file rather than another symlink,
19880    # but for link time we create the symlink libNAME.so -> libNAME.so.V
19881
19882    case $with_aix_soname,$aix_use_runtimelinking in
19883    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
19884    # soname into executable. Probably we can add versioning support to
19885    # collect2, so additional links can be useful in future.
19886    aix,yes) # traditional libtool
19887      dynamic_linker='AIX unversionable lib.so'
19888      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19889      # instead of lib<name>.a to let people know that these are not
19890      # typical AIX shared libraries.
19891      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19892      ;;
19893    aix,no) # traditional AIX only
19894      dynamic_linker='AIX lib.a(lib.so.V)'
19895      # We preserve .a as extension for shared libraries through AIX4.2
19896      # and later when we are not doing run time linking.
19897      library_names_spec='$libname$release.a $libname.a'
19898      soname_spec='$libname$release$shared_ext$major'
19899      ;;
19900    svr4,*) # full svr4 only
19901      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
19902      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19903      # We do not specify a path in Import Files, so LIBPATH fires.
19904      shlibpath_overrides_runpath=yes
19905      ;;
19906    *,yes) # both, prefer svr4
19907      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
19908      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
19909      # unpreferred sharedlib libNAME.a needs extra handling
19910      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"'
19911      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"'
19912      # We do not specify a path in Import Files, so LIBPATH fires.
19913      shlibpath_overrides_runpath=yes
19914      ;;
19915    *,no) # both, prefer aix
19916      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
19917      library_names_spec='$libname$release.a $libname.a'
19918      soname_spec='$libname$release$shared_ext$major'
19919      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
19920      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)'
19921      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"'
19922      ;;
19923    esac
19924    shlibpath_var=LIBPATH
19925  fi
19926  ;;
19927
19928amigaos*)
19929  case $host_cpu in
19930  powerpc)
19931    # Since July 2007 AmigaOS4 officially supports .so libraries.
19932    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19933    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19934    ;;
19935  m68k)
19936    library_names_spec='$libname.ixlibrary $libname.a'
19937    # Create ${libname}_ixlibrary.a entries in /sys/libs.
19938    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'
19939    ;;
19940  esac
19941  ;;
19942
19943beos*)
19944  library_names_spec='$libname$shared_ext'
19945  dynamic_linker="$host_os ld.so"
19946  shlibpath_var=LIBRARY_PATH
19947  ;;
19948
19949bsdi[45]*)
19950  version_type=linux # correct to gnu/linux during the next big refactor
19951  need_version=no
19952  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19953  soname_spec='$libname$release$shared_ext$major'
19954  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19955  shlibpath_var=LD_LIBRARY_PATH
19956  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19957  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19958  # the default ld.so.conf also contains /usr/contrib/lib and
19959  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19960  # libtool to hard-code these into programs
19961  ;;
19962
19963cygwin* | mingw* | pw32* | cegcc*)
19964  version_type=windows
19965  shrext_cmds=.dll
19966  need_version=no
19967  need_lib_prefix=no
19968
19969  case $GCC,$cc_basename in
19970  yes,*)
19971    # gcc
19972    library_names_spec='$libname.dll.a'
19973    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19974    postinstall_cmds='base_file=`basename \$file`~
19975      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19976      dldir=$destdir/`dirname \$dlpath`~
19977      test -d \$dldir || mkdir -p \$dldir~
19978      $install_prog $dir/$dlname \$dldir/$dlname~
19979      chmod a+x \$dldir/$dlname~
19980      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19981        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19982      fi'
19983    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19984      dlpath=$dir/\$dldll~
19985       $RM \$dlpath'
19986    shlibpath_overrides_runpath=yes
19987
19988    case $host_os in
19989    cygwin*)
19990      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19991      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19992
19993      ;;
19994    mingw* | cegcc*)
19995      # MinGW DLLs use traditional 'lib' prefix
19996      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19997      ;;
19998    pw32*)
19999      # pw32 DLLs use 'pw' prefix rather than 'lib'
20000      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20001      ;;
20002    esac
20003    dynamic_linker='Win32 ld.exe'
20004    ;;
20005
20006  *,cl*)
20007    # Native MSVC
20008    libname_spec='$name'
20009    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
20010    library_names_spec='$libname.dll.lib'
20011
20012    case $build_os in
20013    mingw*)
20014      sys_lib_search_path_spec=
20015      lt_save_ifs=$IFS
20016      IFS=';'
20017      for lt_path in $LIB
20018      do
20019        IFS=$lt_save_ifs
20020        # Let DOS variable expansion print the short 8.3 style file name.
20021        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20022        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20023      done
20024      IFS=$lt_save_ifs
20025      # Convert to MSYS style.
20026      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20027      ;;
20028    cygwin*)
20029      # Convert to unix form, then to dos form, then back to unix form
20030      # but this time dos style (no spaces!) so that the unix form looks
20031      # like /cygdrive/c/PROGRA~1:/cygdr...
20032      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20033      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20034      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20035      ;;
20036    *)
20037      sys_lib_search_path_spec=$LIB
20038      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20039        # It is most probably a Windows format PATH.
20040        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20041      else
20042        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20043      fi
20044      # FIXME: find the short name or the path components, as spaces are
20045      # common. (e.g. "Program Files" -> "PROGRA~1")
20046      ;;
20047    esac
20048
20049    # DLL is installed to $(libdir)/../bin by postinstall_cmds
20050    postinstall_cmds='base_file=`basename \$file`~
20051      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
20052      dldir=$destdir/`dirname \$dlpath`~
20053      test -d \$dldir || mkdir -p \$dldir~
20054      $install_prog $dir/$dlname \$dldir/$dlname'
20055    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20056      dlpath=$dir/\$dldll~
20057       $RM \$dlpath'
20058    shlibpath_overrides_runpath=yes
20059    dynamic_linker='Win32 link.exe'
20060    ;;
20061
20062  *)
20063    # Assume MSVC wrapper
20064    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
20065    dynamic_linker='Win32 ld.exe'
20066    ;;
20067  esac
20068  # FIXME: first we should search . and the directory the executable is in
20069  shlibpath_var=PATH
20070  ;;
20071
20072darwin* | rhapsody*)
20073  dynamic_linker="$host_os dyld"
20074  version_type=darwin
20075  need_lib_prefix=no
20076  need_version=no
20077  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
20078  soname_spec='$libname$release$major$shared_ext'
20079  shlibpath_overrides_runpath=yes
20080  shlibpath_var=DYLD_LIBRARY_PATH
20081  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20082
20083  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20084  ;;
20085
20086dgux*)
20087  version_type=linux # correct to gnu/linux during the next big refactor
20088  need_lib_prefix=no
20089  need_version=no
20090  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20091  soname_spec='$libname$release$shared_ext$major'
20092  shlibpath_var=LD_LIBRARY_PATH
20093  ;;
20094
20095freebsd* | dragonfly*)
20096  # DragonFly does not have aout.  When/if they implement a new
20097  # versioning mechanism, adjust this.
20098  if test -x /usr/bin/objformat; then
20099    objformat=`/usr/bin/objformat`
20100  else
20101    case $host_os in
20102    freebsd[23].*) objformat=aout ;;
20103    *) objformat=elf ;;
20104    esac
20105  fi
20106  version_type=freebsd-$objformat
20107  case $version_type in
20108    freebsd-elf*)
20109      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20110      soname_spec='$libname$release$shared_ext$major'
20111      need_version=no
20112      need_lib_prefix=no
20113      ;;
20114    freebsd-*)
20115      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20116      need_version=yes
20117      ;;
20118  esac
20119  shlibpath_var=LD_LIBRARY_PATH
20120  case $host_os in
20121  freebsd2.*)
20122    shlibpath_overrides_runpath=yes
20123    ;;
20124  freebsd3.[01]* | freebsdelf3.[01]*)
20125    shlibpath_overrides_runpath=yes
20126    hardcode_into_libs=yes
20127    ;;
20128  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20129  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20130    shlibpath_overrides_runpath=no
20131    hardcode_into_libs=yes
20132    ;;
20133  *) # from 4.6 on, and DragonFly
20134    shlibpath_overrides_runpath=yes
20135    hardcode_into_libs=yes
20136    ;;
20137  esac
20138  ;;
20139
20140haiku*)
20141  version_type=linux # correct to gnu/linux during the next big refactor
20142  need_lib_prefix=no
20143  need_version=no
20144  dynamic_linker="$host_os runtime_loader"
20145  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20146  soname_spec='$libname$release$shared_ext$major'
20147  shlibpath_var=LIBRARY_PATH
20148  shlibpath_overrides_runpath=no
20149  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20150  hardcode_into_libs=yes
20151  ;;
20152
20153hpux9* | hpux10* | hpux11*)
20154  # Give a soname corresponding to the major version so that dld.sl refuses to
20155  # link against other versions.
20156  version_type=sunos
20157  need_lib_prefix=no
20158  need_version=no
20159  case $host_cpu in
20160  ia64*)
20161    shrext_cmds='.so'
20162    hardcode_into_libs=yes
20163    dynamic_linker="$host_os dld.so"
20164    shlibpath_var=LD_LIBRARY_PATH
20165    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20166    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20167    soname_spec='$libname$release$shared_ext$major'
20168    if test 32 = "$HPUX_IA64_MODE"; then
20169      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20170      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
20171    else
20172      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20173      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
20174    fi
20175    ;;
20176  hppa*64*)
20177    shrext_cmds='.sl'
20178    hardcode_into_libs=yes
20179    dynamic_linker="$host_os dld.sl"
20180    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20181    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20182    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20183    soname_spec='$libname$release$shared_ext$major'
20184    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20185    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20186    ;;
20187  *)
20188    shrext_cmds='.sl'
20189    dynamic_linker="$host_os dld.sl"
20190    shlibpath_var=SHLIB_PATH
20191    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20192    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20193    soname_spec='$libname$release$shared_ext$major'
20194    ;;
20195  esac
20196  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
20197  postinstall_cmds='chmod 555 $lib'
20198  # or fails outright, so override atomically:
20199  install_override_mode=555
20200  ;;
20201
20202interix[3-9]*)
20203  version_type=linux # correct to gnu/linux during the next big refactor
20204  need_lib_prefix=no
20205  need_version=no
20206  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20207  soname_spec='$libname$release$shared_ext$major'
20208  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20209  shlibpath_var=LD_LIBRARY_PATH
20210  shlibpath_overrides_runpath=no
20211  hardcode_into_libs=yes
20212  ;;
20213
20214irix5* | irix6* | nonstopux*)
20215  case $host_os in
20216    nonstopux*) version_type=nonstopux ;;
20217    *)
20218	if test yes = "$lt_cv_prog_gnu_ld"; then
20219		version_type=linux # correct to gnu/linux during the next big refactor
20220	else
20221		version_type=irix
20222	fi ;;
20223  esac
20224  need_lib_prefix=no
20225  need_version=no
20226  soname_spec='$libname$release$shared_ext$major'
20227  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
20228  case $host_os in
20229  irix5* | nonstopux*)
20230    libsuff= shlibsuff=
20231    ;;
20232  *)
20233    case $LD in # libtool.m4 will add one of these switches to LD
20234    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20235      libsuff= shlibsuff= libmagic=32-bit;;
20236    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20237      libsuff=32 shlibsuff=N32 libmagic=N32;;
20238    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20239      libsuff=64 shlibsuff=64 libmagic=64-bit;;
20240    *) libsuff= shlibsuff= libmagic=never-match;;
20241    esac
20242    ;;
20243  esac
20244  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20245  shlibpath_overrides_runpath=no
20246  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
20247  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
20248  hardcode_into_libs=yes
20249  ;;
20250
20251# No shared lib support for Linux oldld, aout, or coff.
20252linux*oldld* | linux*aout* | linux*coff*)
20253  dynamic_linker=no
20254  ;;
20255
20256linux*android*)
20257  version_type=none # Android doesn't support versioned libraries.
20258  need_lib_prefix=no
20259  need_version=no
20260  library_names_spec='$libname$release$shared_ext'
20261  soname_spec='$libname$release$shared_ext'
20262  finish_cmds=
20263  shlibpath_var=LD_LIBRARY_PATH
20264  shlibpath_overrides_runpath=yes
20265
20266  # This implies no fast_install, which is unacceptable.
20267  # Some rework will be needed to allow for fast_install
20268  # before this can be enabled.
20269  hardcode_into_libs=yes
20270
20271  dynamic_linker='Android linker'
20272  # Don't embed -rpath directories since the linker doesn't support them.
20273  hardcode_libdir_flag_spec_F77='-L$libdir'
20274  ;;
20275
20276# This must be glibc/ELF.
20277linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20278  version_type=linux # correct to gnu/linux during the next big refactor
20279  need_lib_prefix=no
20280  need_version=no
20281  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20282  soname_spec='$libname$release$shared_ext$major'
20283  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20284  shlibpath_var=LD_LIBRARY_PATH
20285  shlibpath_overrides_runpath=no
20286
20287  # Some binutils ld are patched to set DT_RUNPATH
20288  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
20289  $as_echo_n "(cached) " >&6
20290else
20291  lt_cv_shlibpath_overrides_runpath=no
20292    save_LDFLAGS=$LDFLAGS
20293    save_libdir=$libdir
20294    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
20295	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
20296    cat > conftest.$ac_ext <<_ACEOF
20297      program main
20298
20299      end
20300_ACEOF
20301if ac_fn_f77_try_link "$LINENO"; then :
20302  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20303  lt_cv_shlibpath_overrides_runpath=yes
20304fi
20305fi
20306rm -f core conftest.err conftest.$ac_objext \
20307    conftest$ac_exeext conftest.$ac_ext
20308    LDFLAGS=$save_LDFLAGS
20309    libdir=$save_libdir
20310
20311fi
20312
20313  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
20314
20315  # This implies no fast_install, which is unacceptable.
20316  # Some rework will be needed to allow for fast_install
20317  # before this can be enabled.
20318  hardcode_into_libs=yes
20319
20320  # Ideally, we could use ldconfig to report *all* directores which are
20321  # searched for libraries, however this is still not possible.  Aside from not
20322  # being certain /sbin/ldconfig is available, command
20323  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
20324  # even though it is searched at run-time.  Try to do the best guess by
20325  # appending ld.so.conf contents (and includes) to the search path.
20326  if test -f /etc/ld.so.conf; then
20327    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' ' '`
20328    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20329  fi
20330
20331  # We used to test for /lib/ld.so.1 and disable shared libraries on
20332  # powerpc, because MkLinux only supported shared libraries with the
20333  # GNU dynamic linker.  Since this was broken with cross compilers,
20334  # most powerpc-linux boxes support dynamic linking these days and
20335  # people can always --disable-shared, the test was removed, and we
20336  # assume the GNU/Linux dynamic linker is in use.
20337  dynamic_linker='GNU/Linux ld.so'
20338  ;;
20339
20340netbsdelf*-gnu)
20341  version_type=linux
20342  need_lib_prefix=no
20343  need_version=no
20344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20345  soname_spec='${libname}${release}${shared_ext}$major'
20346  shlibpath_var=LD_LIBRARY_PATH
20347  shlibpath_overrides_runpath=no
20348  hardcode_into_libs=yes
20349  dynamic_linker='NetBSD ld.elf_so'
20350  ;;
20351
20352netbsd*)
20353  version_type=sunos
20354  need_lib_prefix=no
20355  need_version=no
20356  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20357    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20358    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20359    dynamic_linker='NetBSD (a.out) ld.so'
20360  else
20361    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20362    soname_spec='$libname$release$shared_ext$major'
20363    dynamic_linker='NetBSD ld.elf_so'
20364  fi
20365  shlibpath_var=LD_LIBRARY_PATH
20366  shlibpath_overrides_runpath=yes
20367  hardcode_into_libs=yes
20368  ;;
20369
20370newsos6)
20371  version_type=linux # correct to gnu/linux during the next big refactor
20372  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20373  shlibpath_var=LD_LIBRARY_PATH
20374  shlibpath_overrides_runpath=yes
20375  ;;
20376
20377*nto* | *qnx*)
20378  version_type=qnx
20379  need_lib_prefix=no
20380  need_version=no
20381  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20382  soname_spec='$libname$release$shared_ext$major'
20383  shlibpath_var=LD_LIBRARY_PATH
20384  shlibpath_overrides_runpath=no
20385  hardcode_into_libs=yes
20386  dynamic_linker='ldqnx.so'
20387  ;;
20388
20389openbsd* | bitrig*)
20390  version_type=sunos
20391  sys_lib_dlsearch_path_spec=/usr/lib
20392  need_lib_prefix=no
20393  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
20394    need_version=no
20395  else
20396    need_version=yes
20397  fi
20398  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20399  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20400  shlibpath_var=LD_LIBRARY_PATH
20401  shlibpath_overrides_runpath=yes
20402  ;;
20403
20404os2*)
20405  libname_spec='$name'
20406  version_type=windows
20407  shrext_cmds=.dll
20408  need_version=no
20409  need_lib_prefix=no
20410  # OS/2 can only load a DLL with a base name of 8 characters or less.
20411  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
20412    v=$($ECHO $release$versuffix | tr -d .-);
20413    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
20414    $ECHO $n$v`$shared_ext'
20415  library_names_spec='${libname}_dll.$libext'
20416  dynamic_linker='OS/2 ld.exe'
20417  shlibpath_var=BEGINLIBPATH
20418  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20419  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20420  postinstall_cmds='base_file=`basename \$file`~
20421    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
20422    dldir=$destdir/`dirname \$dlpath`~
20423    test -d \$dldir || mkdir -p \$dldir~
20424    $install_prog $dir/$dlname \$dldir/$dlname~
20425    chmod a+x \$dldir/$dlname~
20426    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20427      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20428    fi'
20429  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
20430    dlpath=$dir/\$dldll~
20431    $RM \$dlpath'
20432  ;;
20433
20434osf3* | osf4* | osf5*)
20435  version_type=osf
20436  need_lib_prefix=no
20437  need_version=no
20438  soname_spec='$libname$release$shared_ext$major'
20439  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20440  shlibpath_var=LD_LIBRARY_PATH
20441  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20442  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20443  ;;
20444
20445rdos*)
20446  dynamic_linker=no
20447  ;;
20448
20449solaris*)
20450  version_type=linux # correct to gnu/linux during the next big refactor
20451  need_lib_prefix=no
20452  need_version=no
20453  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20454  soname_spec='$libname$release$shared_ext$major'
20455  shlibpath_var=LD_LIBRARY_PATH
20456  shlibpath_overrides_runpath=yes
20457  hardcode_into_libs=yes
20458  # ldd complains unless libraries are executable
20459  postinstall_cmds='chmod +x $lib'
20460  ;;
20461
20462sunos4*)
20463  version_type=sunos
20464  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
20465  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20466  shlibpath_var=LD_LIBRARY_PATH
20467  shlibpath_overrides_runpath=yes
20468  if test yes = "$with_gnu_ld"; then
20469    need_lib_prefix=no
20470  fi
20471  need_version=yes
20472  ;;
20473
20474sysv4 | sysv4.3*)
20475  version_type=linux # correct to gnu/linux during the next big refactor
20476  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20477  soname_spec='$libname$release$shared_ext$major'
20478  shlibpath_var=LD_LIBRARY_PATH
20479  case $host_vendor in
20480    sni)
20481      shlibpath_overrides_runpath=no
20482      need_lib_prefix=no
20483      runpath_var=LD_RUN_PATH
20484      ;;
20485    siemens)
20486      need_lib_prefix=no
20487      ;;
20488    motorola)
20489      need_lib_prefix=no
20490      need_version=no
20491      shlibpath_overrides_runpath=no
20492      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20493      ;;
20494  esac
20495  ;;
20496
20497sysv4*MP*)
20498  if test -d /usr/nec; then
20499    version_type=linux # correct to gnu/linux during the next big refactor
20500    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
20501    soname_spec='$libname$shared_ext.$major'
20502    shlibpath_var=LD_LIBRARY_PATH
20503  fi
20504  ;;
20505
20506sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20507  version_type=sco
20508  need_lib_prefix=no
20509  need_version=no
20510  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
20511  soname_spec='$libname$release$shared_ext$major'
20512  shlibpath_var=LD_LIBRARY_PATH
20513  shlibpath_overrides_runpath=yes
20514  hardcode_into_libs=yes
20515  if test yes = "$with_gnu_ld"; then
20516    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20517  else
20518    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20519    case $host_os in
20520      sco3.2v5*)
20521        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20522	;;
20523    esac
20524  fi
20525  sys_lib_dlsearch_path_spec='/usr/lib'
20526  ;;
20527
20528tpf*)
20529  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
20530  version_type=linux # correct to gnu/linux during the next big refactor
20531  need_lib_prefix=no
20532  need_version=no
20533  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20534  shlibpath_var=LD_LIBRARY_PATH
20535  shlibpath_overrides_runpath=no
20536  hardcode_into_libs=yes
20537  ;;
20538
20539uts4*)
20540  version_type=linux # correct to gnu/linux during the next big refactor
20541  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
20542  soname_spec='$libname$release$shared_ext$major'
20543  shlibpath_var=LD_LIBRARY_PATH
20544  ;;
20545
20546*)
20547  dynamic_linker=no
20548  ;;
20549esac
20550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20551$as_echo "$dynamic_linker" >&6; }
20552test no = "$dynamic_linker" && can_build_shared=no
20553
20554variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20555if test yes = "$GCC"; then
20556  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20557fi
20558
20559if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
20560  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
20561fi
20562
20563if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
20564  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
20565fi
20566
20567# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
20568configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
20569
20570# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
20571func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
20572
20573# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
20574configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20616$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20617hardcode_action_F77=
20618if test -n "$hardcode_libdir_flag_spec_F77" ||
20619   test -n "$runpath_var_F77" ||
20620   test yes = "$hardcode_automatic_F77"; then
20621
20622  # We can hardcode non-existent directories.
20623  if test no != "$hardcode_direct_F77" &&
20624     # If the only mechanism to avoid hardcoding is shlibpath_var, we
20625     # have to relink, otherwise we might link with an installed library
20626     # when we should be linking with a yet-to-be-installed one
20627     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" &&
20628     test no != "$hardcode_minus_L_F77"; then
20629    # Linking always hardcodes the temporary library directory.
20630    hardcode_action_F77=relink
20631  else
20632    # We can link without hardcoding, and we can hardcode nonexisting dirs.
20633    hardcode_action_F77=immediate
20634  fi
20635else
20636  # We cannot hardcode anything, or else we can only hardcode existing
20637  # directories.
20638  hardcode_action_F77=unsupported
20639fi
20640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
20641$as_echo "$hardcode_action_F77" >&6; }
20642
20643if test relink = "$hardcode_action_F77" ||
20644   test yes = "$inherit_rpath_F77"; then
20645  # Fast installation is not supported
20646  enable_fast_install=no
20647elif test yes = "$shlibpath_overrides_runpath" ||
20648     test no = "$enable_shared"; then
20649  # Fast installation is not necessary
20650  enable_fast_install=needless
20651fi
20652
20653
20654
20655
20656
20657
20658
20659  fi # test -n "$compiler"
20660
20661  GCC=$lt_save_GCC
20662  CC=$lt_save_CC
20663  CFLAGS=$lt_save_CFLAGS
20664fi # test yes != "$_lt_disable_F77"
20665
20666ac_ext=c
20667ac_cpp='$CPP $CPPFLAGS'
20668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20670ac_compiler_gnu=$ac_cv_c_compiler_gnu
20671
20672
20673    if test -z "$F77"; then
20674        enable_fortran=no
20675        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&5
20676$as_echo "$as_me: WARNING: *** Couldn't find f77 compiler; using default Fortran wrappers." >&2;}
20677    else
20678        ac_ext=f
20679ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20680ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20681ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
20683$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
20684if ${ac_cv_prog_f77_v+:} false; then :
20685  $as_echo_n "(cached) " >&6
20686else
20687  cat > conftest.$ac_ext <<_ACEOF
20688      program main
20689
20690      end
20691_ACEOF
20692if ac_fn_f77_try_compile "$LINENO"; then :
20693  ac_cv_prog_f77_v=
20694# Try some options frequently used verbose output
20695for ac_verb in -v -verbose --verbose -V -\#\#\#; do
20696  cat > conftest.$ac_ext <<_ACEOF
20697      program main
20698
20699      end
20700_ACEOF
20701
20702# Compile and link our simple test program by passing a flag (argument
20703# 1 to this macro) to the Fortran compiler in order to get
20704# "verbose" output that we can then parse for the Fortran linker
20705# flags.
20706ac_save_FFLAGS=$FFLAGS
20707FFLAGS="$FFLAGS $ac_verb"
20708eval "set x $ac_link"
20709shift
20710$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
20711# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
20712# LIBRARY_PATH; skip all such settings.
20713ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
20714  sed '/^Driving:/d; /^Configured with:/d;
20715      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
20716$as_echo "$ac_f77_v_output" >&5
20717FFLAGS=$ac_save_FFLAGS
20718
20719rm -rf conftest*
20720
20721# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20722# /foo, /bar, and /baz are search directories for the Fortran linker.
20723# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20724ac_f77_v_output="`echo $ac_f77_v_output |
20725	grep 'LPATH is:' |
20726	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
20727
20728# FIXME: we keep getting bitten by quoted arguments; a more general fix
20729#        that detects unbalanced quotes in FLIBS should be implemented
20730#        and (ugh) tested at some point.
20731case $ac_f77_v_output in
20732  # With xlf replace commas with spaces,
20733  # and remove "-link" and closing parenthesis.
20734  *xlfentry*)
20735    ac_f77_v_output=`echo $ac_f77_v_output |
20736      sed '
20737        s/,/ /g
20738        s/ -link / /g
20739        s/) *$//
20740      '
20741    ` ;;
20742
20743  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20744  # $LIBS confuse us, and the libraries appear later in the output anyway).
20745  *mGLOB_options_string*)
20746    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
20747
20748  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
20749  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
20750  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
20751  *-cmdline\ * | *-ignore\ * | *-def\ *)
20752    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
20753	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
20754	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
20755	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
20756
20757  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
20758  *fort77*f2c*gcc*)
20759    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
20760        /:[	 ]\+Running[	 ]\{1,\}"gcc"/{
20761          /"-c"/d
20762          /[.]c"*/d
20763          s/^.*"gcc"/"gcc"/
20764          s/"//gp
20765        }'` ;;
20766
20767  # If we are using Cray Fortran then delete quotes.
20768  *cft90*)
20769    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
20770esac
20771
20772
20773  # look for -l* and *.a constructs in the output
20774  for ac_arg in $ac_f77_v_output; do
20775     case $ac_arg in
20776	[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
20777	  ac_cv_prog_f77_v=$ac_verb
20778	  break 2 ;;
20779     esac
20780  done
20781done
20782if test -z "$ac_cv_prog_f77_v"; then
20783   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
20784$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
20785fi
20786else
20787  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
20788$as_echo "$as_me: WARNING: compilation failed" >&2;}
20789fi
20790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20791
20792fi
20793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
20794$as_echo "$ac_cv_prog_f77_v" >&6; }
20795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
20796$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
20797if ${ac_cv_f77_libs+:} false; then :
20798  $as_echo_n "(cached) " >&6
20799else
20800  if test "x$FLIBS" != "x"; then
20801  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
20802else
20803
20804cat > conftest.$ac_ext <<_ACEOF
20805      program main
20806
20807      end
20808_ACEOF
20809
20810# Compile and link our simple test program by passing a flag (argument
20811# 1 to this macro) to the Fortran compiler in order to get
20812# "verbose" output that we can then parse for the Fortran linker
20813# flags.
20814ac_save_FFLAGS=$FFLAGS
20815FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
20816eval "set x $ac_link"
20817shift
20818$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
20819# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
20820# LIBRARY_PATH; skip all such settings.
20821ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
20822  sed '/^Driving:/d; /^Configured with:/d;
20823      '"/^[_$as_cr_Letters][_$as_cr_alnum]*=/d"`
20824$as_echo "$ac_f77_v_output" >&5
20825FFLAGS=$ac_save_FFLAGS
20826
20827rm -rf conftest*
20828
20829# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20830# /foo, /bar, and /baz are search directories for the Fortran linker.
20831# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20832ac_f77_v_output="`echo $ac_f77_v_output |
20833	grep 'LPATH is:' |
20834	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
20835
20836# FIXME: we keep getting bitten by quoted arguments; a more general fix
20837#        that detects unbalanced quotes in FLIBS should be implemented
20838#        and (ugh) tested at some point.
20839case $ac_f77_v_output in
20840  # With xlf replace commas with spaces,
20841  # and remove "-link" and closing parenthesis.
20842  *xlfentry*)
20843    ac_f77_v_output=`echo $ac_f77_v_output |
20844      sed '
20845        s/,/ /g
20846        s/ -link / /g
20847        s/) *$//
20848      '
20849    ` ;;
20850
20851  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20852  # $LIBS confuse us, and the libraries appear later in the output anyway).
20853  *mGLOB_options_string*)
20854    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
20855
20856  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
20857  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
20858  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
20859  *-cmdline\ * | *-ignore\ * | *-def\ *)
20860    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
20861	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
20862	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
20863	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
20864
20865  # If we are using fort77 (the f2c wrapper) then filter output and delete quotes.
20866  *fort77*f2c*gcc*)
20867    ac_f77_v_output=`echo "$ac_f77_v_output" | sed -n '
20868        /:[	 ]\+Running[	 ]\{1,\}"gcc"/{
20869          /"-c"/d
20870          /[.]c"*/d
20871          s/^.*"gcc"/"gcc"/
20872          s/"//gp
20873        }'` ;;
20874
20875  # If we are using Cray Fortran then delete quotes.
20876  *cft90*)
20877    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
20878esac
20879
20880
20881
20882ac_cv_f77_libs=
20883
20884# Save positional arguments (if any)
20885ac_save_positional="$@"
20886
20887set X $ac_f77_v_output
20888while test $# != 1; do
20889  shift
20890  ac_arg=$1
20891  case $ac_arg in
20892	[\\/]*.a | ?:[\\/]*.a)
20893	    ac_exists=false
20894  for ac_i in $ac_cv_f77_libs; do
20895    if test x"$ac_arg" = x"$ac_i"; then
20896      ac_exists=true
20897      break
20898    fi
20899  done
20900
20901  if test x"$ac_exists" = xtrue; then :
20902
20903else
20904  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20905fi
20906	  ;;
20907	-bI:*)
20908	    ac_exists=false
20909  for ac_i in $ac_cv_f77_libs; do
20910    if test x"$ac_arg" = x"$ac_i"; then
20911      ac_exists=true
20912      break
20913    fi
20914  done
20915
20916  if test x"$ac_exists" = xtrue; then :
20917
20918else
20919  if test "$ac_compiler_gnu" = yes; then
20920  for ac_link_opt in $ac_arg; do
20921    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20922  done
20923else
20924  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20925fi
20926fi
20927	  ;;
20928	  # Ignore these flags.
20929	-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
20930	  |-LANG:=* | -LIST:* | -LNO:* | -link)
20931	  ;;
20932	-lkernel32)
20933	  case $host_os in
20934	  *cygwin*) ;;
20935	  *) ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20936	    ;;
20937	  esac
20938	  ;;
20939	-[LRuYz])
20940	  # These flags, when seen by themselves, take an argument.
20941	  # We remove the space between option and argument and re-iterate
20942	  # unless we find an empty arg or a new option (starting with -)
20943	  case $2 in
20944	     "" | -*);;
20945	     *)
20946		ac_arg="$ac_arg$2"
20947		shift; shift
20948		set X $ac_arg "$@"
20949		;;
20950	  esac
20951	  ;;
20952	-YP,*)
20953	  for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
20954	      ac_exists=false
20955  for ac_i in $ac_cv_f77_libs; do
20956    if test x"$ac_j" = x"$ac_i"; then
20957      ac_exists=true
20958      break
20959    fi
20960  done
20961
20962  if test x"$ac_exists" = xtrue; then :
20963
20964else
20965  ac_arg="$ac_arg $ac_j"
20966			       ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
20967fi
20968	  done
20969	  ;;
20970	-[lLR]*)
20971	    ac_exists=false
20972  for ac_i in $ac_cv_f77_libs; do
20973    if test x"$ac_arg" = x"$ac_i"; then
20974      ac_exists=true
20975      break
20976    fi
20977  done
20978
20979  if test x"$ac_exists" = xtrue; then :
20980
20981else
20982  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20983fi
20984	  ;;
20985	-zallextract*| -zdefaultextract)
20986	  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20987	  ;;
20988	  # Ignore everything else.
20989  esac
20990done
20991# restore positional arguments
20992set X $ac_save_positional; shift
20993
20994# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
20995# then we insist that the "run path" must be an absolute path (i.e. it
20996# must begin with a "/").
20997case `(uname -sr) 2>/dev/null` in
20998   "SunOS 5"*)
20999      ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
21000			sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
21001      test "x$ac_ld_run_path" != x &&
21002	if test "$ac_compiler_gnu" = yes; then
21003  for ac_link_opt in $ac_ld_run_path; do
21004    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
21005  done
21006else
21007  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
21008fi
21009      ;;
21010esac
21011fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
21012
21013fi
21014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
21015$as_echo "$ac_cv_f77_libs" >&6; }
21016FLIBS="$ac_cv_f77_libs"
21017
21018
21019ac_ext=c
21020ac_cpp='$CPP $CPPFLAGS'
21021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21023ac_compiler_gnu=$ac_cv_c_compiler_gnu
21024
21025ac_ext=f
21026ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21027ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21028ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21029
21030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
21031$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
21032if ${ac_cv_f77_dummy_main+:} false; then :
21033  $as_echo_n "(cached) " >&6
21034else
21035  ac_f77_dm_save_LIBS=$LIBS
21036 LIBS="$LIBS $FLIBS"
21037 ac_fortran_dm_var=F77_DUMMY_MAIN
21038 ac_ext=c
21039ac_cpp='$CPP $CPPFLAGS'
21040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21042ac_compiler_gnu=$ac_cv_c_compiler_gnu
21043
21044 # First, try linking without a dummy main:
21045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21046/* end confdefs.h.  */
21047
21048#ifdef F77_DUMMY_MAIN
21049
21050#  ifdef __cplusplus
21051     extern "C"
21052#  endif
21053   int F77_DUMMY_MAIN() { return 1; }
21054
21055#endif
21056int
21057main ()
21058{
21059
21060  ;
21061  return 0;
21062}
21063_ACEOF
21064if ac_fn_c_try_link "$LINENO"; then :
21065  ac_cv_fortran_dummy_main=none
21066else
21067  ac_cv_fortran_dummy_main=unknown
21068fi
21069rm -f core conftest.err conftest.$ac_objext \
21070    conftest$ac_exeext conftest.$ac_ext
21071
21072 if test $ac_cv_fortran_dummy_main = unknown; then
21073   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
21074     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21075/* end confdefs.h.  */
21076#define $ac_fortran_dm_var $ac_func
21077#ifdef F77_DUMMY_MAIN
21078
21079#  ifdef __cplusplus
21080     extern "C"
21081#  endif
21082   int F77_DUMMY_MAIN() { return 1; }
21083
21084#endif
21085int
21086main ()
21087{
21088
21089  ;
21090  return 0;
21091}
21092_ACEOF
21093if ac_fn_c_try_link "$LINENO"; then :
21094  ac_cv_fortran_dummy_main=$ac_func; break
21095fi
21096rm -f core conftest.err conftest.$ac_objext \
21097    conftest$ac_exeext conftest.$ac_ext
21098   done
21099 fi
21100 ac_ext=f
21101ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21102ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21103ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21104 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
21105 rm -rf conftest*
21106 LIBS=$ac_f77_dm_save_LIBS
21107
21108fi
21109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
21110$as_echo "$ac_cv_f77_dummy_main" >&6; }
21111F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
21112if test "$F77_DUMMY_MAIN" != unknown; then :
21113  if test $F77_DUMMY_MAIN != none; then
21114
21115cat >>confdefs.h <<_ACEOF
21116#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
21117_ACEOF
21118
21119  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
21120
21121$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
21122
21123  fi
21124fi
21125else
21126  enable_fortran=no
21127        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&5
21128$as_echo "$as_me: WARNING: *** Couldn't figure out how to link C and Fortran; using default Fortran wrappers." >&2;}
21129fi
21130
21131ac_ext=c
21132ac_cpp='$CPP $CPPFLAGS'
21133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21135ac_compiler_gnu=$ac_cv_c_compiler_gnu
21136
21137    fi
21138else
21139
21140$as_echo "#define DISABLE_FORTRAN 1" >>confdefs.h
21141
21142fi
21143
21144if test "x$enable_fortran" = xyes; then
21145    ac_ext=f
21146ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21147ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21148ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
21150$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
21151if ${ac_cv_f77_mangling+:} false; then :
21152  $as_echo_n "(cached) " >&6
21153else
21154  cat > conftest.$ac_ext <<_ACEOF
21155      subroutine foobar()
21156      return
21157      end
21158      subroutine foo_bar()
21159      return
21160      end
21161_ACEOF
21162if ac_fn_f77_try_compile "$LINENO"; then :
21163  mv conftest.$ac_objext cfortran_test.$ac_objext
21164
21165  ac_save_LIBS=$LIBS
21166  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
21167
21168  ac_ext=c
21169ac_cpp='$CPP $CPPFLAGS'
21170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21172ac_compiler_gnu=$ac_cv_c_compiler_gnu
21173  ac_success=no
21174  for ac_foobar in foobar FOOBAR; do
21175    for ac_underscore in "" "_"; do
21176      ac_func="$ac_foobar$ac_underscore"
21177      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21178/* end confdefs.h.  */
21179
21180/* Override any GCC internal prototype to avoid an error.
21181   Use char because int might match the return type of a GCC
21182   builtin and then its argument prototype would still apply.  */
21183#ifdef __cplusplus
21184extern "C"
21185#endif
21186char $ac_func ();
21187#ifdef F77_DUMMY_MAIN
21188
21189#  ifdef __cplusplus
21190     extern "C"
21191#  endif
21192   int F77_DUMMY_MAIN() { return 1; }
21193
21194#endif
21195int
21196main ()
21197{
21198return $ac_func ();
21199  ;
21200  return 0;
21201}
21202_ACEOF
21203if ac_fn_c_try_link "$LINENO"; then :
21204  ac_success=yes; break 2
21205fi
21206rm -f core conftest.err conftest.$ac_objext \
21207    conftest$ac_exeext conftest.$ac_ext
21208    done
21209  done
21210  ac_ext=f
21211ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21212ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21213ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21214
21215  if test "$ac_success" = "yes"; then
21216     case $ac_foobar in
21217	foobar)
21218	   ac_case=lower
21219	   ac_foo_bar=foo_bar
21220	   ;;
21221	FOOBAR)
21222	   ac_case=upper
21223	   ac_foo_bar=FOO_BAR
21224	   ;;
21225     esac
21226
21227     ac_ext=c
21228ac_cpp='$CPP $CPPFLAGS'
21229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21231ac_compiler_gnu=$ac_cv_c_compiler_gnu
21232     ac_success_extra=no
21233     for ac_extra in "" "_"; do
21234	ac_func="$ac_foo_bar$ac_underscore$ac_extra"
21235	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21236/* end confdefs.h.  */
21237
21238/* Override any GCC internal prototype to avoid an error.
21239   Use char because int might match the return type of a GCC
21240   builtin and then its argument prototype would still apply.  */
21241#ifdef __cplusplus
21242extern "C"
21243#endif
21244char $ac_func ();
21245#ifdef F77_DUMMY_MAIN
21246
21247#  ifdef __cplusplus
21248     extern "C"
21249#  endif
21250   int F77_DUMMY_MAIN() { return 1; }
21251
21252#endif
21253int
21254main ()
21255{
21256return $ac_func ();
21257  ;
21258  return 0;
21259}
21260_ACEOF
21261if ac_fn_c_try_link "$LINENO"; then :
21262  ac_success_extra=yes; break
21263fi
21264rm -f core conftest.err conftest.$ac_objext \
21265    conftest$ac_exeext conftest.$ac_ext
21266     done
21267     ac_ext=f
21268ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21269ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21270ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21271
21272     if test "$ac_success_extra" = "yes"; then
21273	ac_cv_f77_mangling="$ac_case case"
21274	if test -z "$ac_underscore"; then
21275	   ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
21276	else
21277	   ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
21278	fi
21279	if test -z "$ac_extra"; then
21280	   ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
21281	else
21282	   ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
21283	fi
21284      else
21285	ac_cv_f77_mangling="unknown"
21286      fi
21287  else
21288     ac_cv_f77_mangling="unknown"
21289  fi
21290
21291  LIBS=$ac_save_LIBS
21292  rm -rf conftest*
21293  rm -f cfortran_test*
21294else
21295  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21297as_fn_error $? "cannot compile a simple Fortran program
21298See \`config.log' for more details" "$LINENO" 5; }
21299fi
21300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21301
21302fi
21303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
21304$as_echo "$ac_cv_f77_mangling" >&6; }
21305
21306ac_ext=c
21307ac_cpp='$CPP $CPPFLAGS'
21308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21310ac_compiler_gnu=$ac_cv_c_compiler_gnu
21311
21312ac_ext=f
21313ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21314ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21315ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21316case $ac_cv_f77_mangling in
21317  "lower case, no underscore, no extra underscore")
21318	  $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
21319
21320	  $as_echo "#define F77_FUNC_(name,NAME) name" >>confdefs.h
21321 ;;
21322  "lower case, no underscore, extra underscore")
21323	  $as_echo "#define F77_FUNC(name,NAME) name" >>confdefs.h
21324
21325	  $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
21326 ;;
21327  "lower case, underscore, no extra underscore")
21328	  $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
21329
21330	  $as_echo "#define F77_FUNC_(name,NAME) name ## _" >>confdefs.h
21331 ;;
21332  "lower case, underscore, extra underscore")
21333	  $as_echo "#define F77_FUNC(name,NAME) name ## _" >>confdefs.h
21334
21335	  $as_echo "#define F77_FUNC_(name,NAME) name ## __" >>confdefs.h
21336 ;;
21337  "upper case, no underscore, no extra underscore")
21338	  $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
21339
21340	  $as_echo "#define F77_FUNC_(name,NAME) NAME" >>confdefs.h
21341 ;;
21342  "upper case, no underscore, extra underscore")
21343	  $as_echo "#define F77_FUNC(name,NAME) NAME" >>confdefs.h
21344
21345	  $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
21346 ;;
21347  "upper case, underscore, no extra underscore")
21348	  $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
21349
21350	  $as_echo "#define F77_FUNC_(name,NAME) NAME ## _" >>confdefs.h
21351 ;;
21352  "upper case, underscore, extra underscore")
21353	  $as_echo "#define F77_FUNC(name,NAME) NAME ## _" >>confdefs.h
21354
21355	  $as_echo "#define F77_FUNC_(name,NAME) NAME ## __" >>confdefs.h
21356 ;;
21357  *)
21358	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown Fortran name-mangling scheme" >&5
21359$as_echo "$as_me: WARNING: unknown Fortran name-mangling scheme" >&2;}
21360	  ;;
21361esac
21362
21363ac_ext=c
21364ac_cpp='$CPP $CPPFLAGS'
21365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21367ac_compiler_gnu=$ac_cv_c_compiler_gnu
21368
21369    ac_ext=f
21370ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21371ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21372ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21373case $ac_cv_f77_mangling in
21374  upper*) ac_val="F77FOO" ;;
21375  lower*) ac_val="f77foo" ;;
21376  *)      ac_val="unknown" ;;
21377esac
21378case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
21379
21380f77foo="$ac_val"
21381
21382ac_ext=c
21383ac_cpp='$CPP $CPPFLAGS'
21384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21386ac_compiler_gnu=$ac_cv_c_compiler_gnu
21387
21388    ac_ext=f
21389ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21390ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21392case $ac_cv_f77_mangling in
21393  upper*) ac_val="F77_FOO" ;;
21394  lower*) ac_val="f77_foo" ;;
21395  *)      ac_val="unknown" ;;
21396esac
21397case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
21398case $ac_cv_f77_mangling in *," extra underscore"*) ac_val="$ac_val"_ ;; esac
21399
21400f77_foo="$ac_val"
21401
21402ac_ext=c
21403ac_cpp='$CPP $CPPFLAGS'
21404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21406ac_compiler_gnu=$ac_cv_c_compiler_gnu
21407
21408    f77_foo2=`echo $f77foo | sed 's/77/77_/'`
21409    if test "$f77_foo" = "$f77_foo2"; then
21410
21411$as_echo "#define F77_FUNC_EQUIV 1" >>confdefs.h
21412
21413
21414        # Include g77 wrappers by default for GNU systems or gfortran
21415        with_g77_wrappers=$ac_cv_f77_compiler_gnu
21416        case $host_os in *gnu*) with_g77_wrappers=yes ;; esac
21417    fi
21418else
21419    with_g77_wrappers=no
21420fi
21421
21422
21423# Check whether --with-g77-wrappers was given.
21424if test "${with_g77_wrappers+set}" = set; then :
21425  withval=$with_g77_wrappers; with_g77_wrappers=$withval
21426fi
21427
21428if test "x$with_g77_wrappers" = "xyes"; then
21429
21430$as_echo "#define WITH_G77_WRAPPERS 1" >>confdefs.h
21431
21432fi
21433
21434have_smp="no"
21435# Check whether --enable-openmp was given.
21436if test "${enable_openmp+set}" = set; then :
21437  enableval=$enable_openmp; enable_openmp=$enableval
21438else
21439  enable_openmp=no
21440fi
21441
21442
21443if test "$enable_openmp" = "yes"; then
21444
21445$as_echo "#define HAVE_OPENMP 1" >>confdefs.h
21446
21447
21448
21449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenMP flag of C compiler" >&5
21450$as_echo_n "checking for OpenMP flag of C compiler... " >&6; }
21451if ${ax_cv_c_openmp+:} false; then :
21452  $as_echo_n "(cached) " >&6
21453else
21454  saveCFLAGS=$CFLAGS
21455ax_cv_c_openmp=unknown
21456# Flags to try:  -fopenmp (gcc), -openmp (icc), -mp (SGI & PGI),
21457#                -xopenmp (Sun), -omp (Tru64), -qsmp=omp (AIX), none
21458ax_openmp_flags="-fopenmp -openmp -mp -xopenmp -omp -qsmp=omp none"
21459if test "x$OPENMP_CFLAGS" != x; then
21460  ax_openmp_flags="$OPENMP_CFLAGS $ax_openmp_flags"
21461fi
21462for ax_openmp_flag in $ax_openmp_flags; do
21463  case $ax_openmp_flag in
21464    none) CFLAGS=$saveC ;;
21465    *) CFLAGS="$saveCFLAGS $ax_openmp_flag" ;;
21466  esac
21467  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21468/* end confdefs.h.  */
21469
21470/* Override any GCC internal prototype to avoid an error.
21471   Use char because int might match the return type of a GCC
21472   builtin and then its argument prototype would still apply.  */
21473#ifdef __cplusplus
21474extern "C"
21475#endif
21476char omp_set_num_threads ();
21477#ifdef F77_DUMMY_MAIN
21478
21479#  ifdef __cplusplus
21480     extern "C"
21481#  endif
21482   int F77_DUMMY_MAIN() { return 1; }
21483
21484#endif
21485int
21486main ()
21487{
21488return omp_set_num_threads ();
21489  ;
21490  return 0;
21491}
21492_ACEOF
21493if ac_fn_c_try_link "$LINENO"; then :
21494  ax_cv_c_openmp=$ax_openmp_flag; break
21495fi
21496rm -f core conftest.err conftest.$ac_objext \
21497    conftest$ac_exeext conftest.$ac_ext
21498done
21499CFLAGS=$saveCFLAGS
21500
21501fi
21502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_openmp" >&5
21503$as_echo "$ax_cv_c_openmp" >&6; }
21504if test "x$ax_cv_c_openmp" = "xunknown"; then
21505  as_fn_error $? "don't know how to enable OpenMP" "$LINENO" 5
21506else
21507  if test "x$ax_cv_c_openmp" != "xnone"; then
21508    OPENMP_CFLAGS=$ax_cv_c_openmp
21509  fi
21510
21511$as_echo "#define HAVE_OPENMP 1" >>confdefs.h
21512
21513fi
21514
21515
21516fi
21517
21518# Check whether --enable-threads was given.
21519if test "${enable_threads+set}" = set; then :
21520  enableval=$enable_threads; enable_threads=$enableval
21521else
21522  enable_threads=no
21523fi
21524
21525
21526if test "$enable_threads" = "yes"; then
21527
21528$as_echo "#define HAVE_THREADS 1" >>confdefs.h
21529
21530fi
21531
21532
21533# Check whether --with-combined-threads was given.
21534if test "${with_combined_threads+set}" = set; then :
21535  withval=$with_combined_threads; with_combined_threads=$withval
21536else
21537  with_combined_threads=no
21538fi
21539
21540
21541if test "$with_combined_threads" = yes; then
21542    if test "$enable_openmp" = "yes"; then
21543        as_fn_error $? "--with-combined-threads incompatible with --enable-openmp" "$LINENO" 5
21544    fi
21545    if test "$enable_threads" != "yes"; then
21546        as_fn_error $? "--with-combined-threads requires --enable-threads" "$LINENO" 5
21547    fi
21548fi
21549
21550THREADLIBS=""
21551if test "$enable_threads" = "yes"; then
21552        # Win32 threads are the default on Windows:
21553    if test -z "$THREADLIBS"; then
21554        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32 threads" >&5
21555$as_echo_n "checking for Win32 threads... " >&6; }
21556        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21557/* end confdefs.h.  */
21558#include <windows.h>
21559#ifdef F77_DUMMY_MAIN
21560
21561#  ifdef __cplusplus
21562     extern "C"
21563#  endif
21564   int F77_DUMMY_MAIN() { return 1; }
21565
21566#endif
21567int
21568main ()
21569{
21570_beginthreadex(0,0,0,0,0,0);
21571  ;
21572  return 0;
21573}
21574_ACEOF
21575if ac_fn_c_try_link "$LINENO"; then :
21576  THREADLIBS=" "; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21577$as_echo "yes" >&6; }
21578else
21579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21580$as_echo "no" >&6; }
21581fi
21582rm -f core conftest.err conftest.$ac_objext \
21583    conftest$ac_exeext conftest.$ac_ext
21584    fi
21585
21586    # POSIX threads, the default choice everywhere else:
21587    if test -z "$THREADLIBS"; then
21588
21589
21590
21591ac_ext=c
21592ac_cpp='$CPP $CPPFLAGS'
21593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21595ac_compiler_gnu=$ac_cv_c_compiler_gnu
21596
21597acx_pthread_ok=no
21598
21599# We used to check for pthread.h first, but this fails if pthread.h
21600# requires special compiler flags (e.g. on True64 or Sequent).
21601# It gets checked for in the link test anyway.
21602
21603# First of all, check if the user has set any of the PTHREAD_LIBS,
21604# etcetera environment variables, and if threads linking works using
21605# them:
21606if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21607        save_CFLAGS="$CFLAGS"
21608        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21609        save_LIBS="$LIBS"
21610        LIBS="$PTHREAD_LIBS $LIBS"
21611        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21612$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
21613        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21614/* end confdefs.h.  */
21615
21616/* Override any GCC internal prototype to avoid an error.
21617   Use char because int might match the return type of a GCC
21618   builtin and then its argument prototype would still apply.  */
21619#ifdef __cplusplus
21620extern "C"
21621#endif
21622char pthread_join ();
21623#ifdef F77_DUMMY_MAIN
21624
21625#  ifdef __cplusplus
21626     extern "C"
21627#  endif
21628   int F77_DUMMY_MAIN() { return 1; }
21629
21630#endif
21631int
21632main ()
21633{
21634return pthread_join ();
21635  ;
21636  return 0;
21637}
21638_ACEOF
21639if ac_fn_c_try_link "$LINENO"; then :
21640  acx_pthread_ok=yes
21641fi
21642rm -f core conftest.err conftest.$ac_objext \
21643    conftest$ac_exeext conftest.$ac_ext
21644        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
21645$as_echo "$acx_pthread_ok" >&6; }
21646        if test x"$acx_pthread_ok" = xno; then
21647                PTHREAD_LIBS=""
21648                PTHREAD_CFLAGS=""
21649        fi
21650        LIBS="$save_LIBS"
21651        CFLAGS="$save_CFLAGS"
21652fi
21653
21654# We must check for the threads library under a number of different
21655# names; the ordering is very important because some systems
21656# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21657# libraries is broken (non-POSIX).
21658
21659# Create a list of thread flags to try.  Items starting with a "-" are
21660# C compiler flags, and other items are library names, except for "none"
21661# which indicates that we try without any flags at all, and "pthread-config"
21662# which is a program returning the flags for the Pth emulation library.
21663
21664acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mt -mthreads pthread --thread-safe pthread-config"
21665
21666# The ordering *is* (sometimes) important.  Some notes on the
21667# individual items follow:
21668
21669# pthreads: AIX (must check this before -lpthread)
21670# none: in case threads are in libc; should be tried before -Kthread and
21671#       other compiler flags to prevent continual compiler warnings
21672# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21673# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21674# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21675# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21676# -pthreads: Solaris/gcc
21677# -mthreads: Mingw32/gcc, Lynx/gcc
21678# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21679#      doesn't hurt to check since this sometimes defines pthreads too;
21680#      also defines -D_REENTRANT)
21681#      ... -mt is also the pthreads flag for HP/aCC
21682#           (where it should come before -mthreads to avoid spurious warnings)
21683# pthread: Linux, etcetera
21684# --thread-safe: KAI C++
21685# pthread-config: use pthread-config program (for GNU Pth library)
21686
21687case "${host_cpu}-${host_os}" in
21688        *solaris*)
21689
21690        # On Solaris (at least, for some versions), libc contains stubbed
21691        # (non-functional) versions of the pthreads routines, so link-based
21692        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
21693        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
21694        # a function called by this macro, so we could check for that, but
21695        # who knows whether they'll stub that too in a future libc.)  So,
21696        # we'll just look for -pthreads and -lpthread first:
21697
21698        acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
21699        ;;
21700esac
21701
21702if test x"$acx_pthread_ok" = xno; then
21703for flag in $acx_pthread_flags; do
21704
21705        case $flag in
21706                none)
21707                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
21708$as_echo_n "checking whether pthreads work without any flags... " >&6; }
21709                ;;
21710
21711                -*)
21712                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
21713$as_echo_n "checking whether pthreads work with $flag... " >&6; }
21714                PTHREAD_CFLAGS="$flag"
21715                ;;
21716
21717		pthread-config)
21718		# Extract the first word of "pthread-config", so it can be a program name with args.
21719set dummy pthread-config; ac_word=$2
21720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21721$as_echo_n "checking for $ac_word... " >&6; }
21722if ${ac_cv_prog_acx_pthread_config+:} false; then :
21723  $as_echo_n "(cached) " >&6
21724else
21725  if test -n "$acx_pthread_config"; then
21726  ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21727else
21728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21729for as_dir in $PATH
21730do
21731  IFS=$as_save_IFS
21732  test -z "$as_dir" && as_dir=.
21733    for ac_exec_ext in '' $ac_executable_extensions; do
21734  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21735    ac_cv_prog_acx_pthread_config="yes"
21736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21737    break 2
21738  fi
21739done
21740  done
21741IFS=$as_save_IFS
21742
21743  test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21744fi
21745fi
21746acx_pthread_config=$ac_cv_prog_acx_pthread_config
21747if test -n "$acx_pthread_config"; then
21748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
21749$as_echo "$acx_pthread_config" >&6; }
21750else
21751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21752$as_echo "no" >&6; }
21753fi
21754
21755
21756		if test x"$acx_pthread_config" = xno; then continue; fi
21757		PTHREAD_CFLAGS="`pthread-config --cflags`"
21758		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21759		;;
21760
21761                *)
21762                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
21763$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
21764                PTHREAD_LIBS="-l$flag"
21765                ;;
21766        esac
21767
21768        save_LIBS="$LIBS"
21769        save_CFLAGS="$CFLAGS"
21770        LIBS="$PTHREAD_LIBS $LIBS"
21771        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21772
21773        # Check for various functions.  We must include pthread.h,
21774        # since some functions may be macros.  (On the Sequent, we
21775        # need a special flag -Kthread to make this header compile.)
21776        # We check for pthread_join because it is in -lpthread on IRIX
21777        # while pthread_create is in libc.  We check for pthread_attr_init
21778        # due to DEC craziness with -lpthreads.  We check for
21779        # pthread_cleanup_push because it is one of the few pthread
21780        # functions on Solaris that doesn't have a non-functional libc stub.
21781        # We try pthread_create on general principles.
21782        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21783/* end confdefs.h.  */
21784#include <pthread.h>
21785#ifdef F77_DUMMY_MAIN
21786
21787#  ifdef __cplusplus
21788     extern "C"
21789#  endif
21790   int F77_DUMMY_MAIN() { return 1; }
21791
21792#endif
21793int
21794main ()
21795{
21796pthread_t th; pthread_join(th, (void**) 0);
21797                     pthread_attr_init((pthread_attr_t*) 0);
21798                     pthread_cleanup_push((void(*)(void *)) 0, (void*) 0);
21799                     pthread_create((pthread_t*) 0, (pthread_attr_t*) 0,
21800                                    (void*(*)(void *)) 0, (void*) 0);
21801                     pthread_cleanup_pop(0);
21802  ;
21803  return 0;
21804}
21805_ACEOF
21806if ac_fn_c_try_link "$LINENO"; then :
21807  acx_pthread_ok=yes
21808fi
21809rm -f core conftest.err conftest.$ac_objext \
21810    conftest$ac_exeext conftest.$ac_ext
21811
21812        LIBS="$save_LIBS"
21813        CFLAGS="$save_CFLAGS"
21814
21815        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
21816$as_echo "$acx_pthread_ok" >&6; }
21817        if test "x$acx_pthread_ok" = xyes; then
21818                break;
21819        fi
21820
21821        PTHREAD_LIBS=""
21822        PTHREAD_CFLAGS=""
21823done
21824fi
21825
21826# Various other checks:
21827if test "x$acx_pthread_ok" = xyes; then
21828        save_LIBS="$LIBS"
21829        LIBS="$PTHREAD_LIBS $LIBS"
21830        save_CFLAGS="$CFLAGS"
21831        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21832
21833        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
21834	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
21835$as_echo_n "checking for joinable pthread attribute... " >&6; }
21836	attr_name=unknown
21837	for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
21838	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21839/* end confdefs.h.  */
21840#include <pthread.h>
21841#ifdef F77_DUMMY_MAIN
21842
21843#  ifdef __cplusplus
21844     extern "C"
21845#  endif
21846   int F77_DUMMY_MAIN() { return 1; }
21847
21848#endif
21849int
21850main ()
21851{
21852int attr=$attr; return attr;
21853  ;
21854  return 0;
21855}
21856_ACEOF
21857if ac_fn_c_try_link "$LINENO"; then :
21858  attr_name=$attr; break
21859fi
21860rm -f core conftest.err conftest.$ac_objext \
21861    conftest$ac_exeext conftest.$ac_ext
21862	done
21863        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
21864$as_echo "$attr_name" >&6; }
21865        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
21866
21867cat >>confdefs.h <<_ACEOF
21868#define PTHREAD_CREATE_JOINABLE $attr_name
21869_ACEOF
21870
21871        fi
21872
21873        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
21874$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
21875        flag=no
21876        case "${host_cpu}-${host_os}" in
21877            *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
21878            *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
21879        esac
21880        { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
21881$as_echo "${flag}" >&6; }
21882        if test "x$flag" != xno; then
21883            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
21884        fi
21885
21886        LIBS="$save_LIBS"
21887        CFLAGS="$save_CFLAGS"
21888
21889        # More AIX lossage: must compile with xlc_r or cc_r
21890	if test x"$GCC" != xyes; then
21891          for ac_prog in xlc_r cc_r
21892do
21893  # Extract the first word of "$ac_prog", so it can be a program name with args.
21894set dummy $ac_prog; ac_word=$2
21895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21896$as_echo_n "checking for $ac_word... " >&6; }
21897if ${ac_cv_prog_PTHREAD_CC+:} false; then :
21898  $as_echo_n "(cached) " >&6
21899else
21900  if test -n "$PTHREAD_CC"; then
21901  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
21902else
21903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21904for as_dir in $PATH
21905do
21906  IFS=$as_save_IFS
21907  test -z "$as_dir" && as_dir=.
21908    for ac_exec_ext in '' $ac_executable_extensions; do
21909  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21910    ac_cv_prog_PTHREAD_CC="$ac_prog"
21911    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21912    break 2
21913  fi
21914done
21915  done
21916IFS=$as_save_IFS
21917
21918fi
21919fi
21920PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
21921if test -n "$PTHREAD_CC"; then
21922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
21923$as_echo "$PTHREAD_CC" >&6; }
21924else
21925  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21926$as_echo "no" >&6; }
21927fi
21928
21929
21930  test -n "$PTHREAD_CC" && break
21931done
21932test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
21933
21934        else
21935          PTHREAD_CC=$CC
21936	fi
21937else
21938        PTHREAD_CC="$CC"
21939fi
21940
21941
21942
21943
21944
21945# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
21946if test x"$acx_pthread_ok" = xyes; then
21947        THREADLIBS="$PTHREAD_LIBS "
21948                         CC="$PTHREAD_CC"
21949
21950$as_echo "#define USING_POSIX_THREADS 1" >>confdefs.h
21951
21952        :
21953else
21954        acx_pthread_ok=no
21955
21956fi
21957ac_ext=c
21958ac_cpp='$CPP $CPPFLAGS'
21959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21961ac_compiler_gnu=$ac_cv_c_compiler_gnu
21962
21963
21964    fi
21965
21966    if test -z "$THREADLIBS"; then
21967        as_fn_error $? "couldn't find threads library for --enable-threads" "$LINENO" 5
21968    fi
21969
21970$as_echo "#define HAVE_THREADS 1" >>confdefs.h
21971
21972fi
21973
21974 if test "$enable_threads" = "yes"; then
21975  THREADS_TRUE=
21976  THREADS_FALSE='#'
21977else
21978  THREADS_TRUE='#'
21979  THREADS_FALSE=
21980fi
21981
21982 if test "$enable_openmp" = "yes"; then
21983  OPENMP_TRUE=
21984  OPENMP_FALSE='#'
21985else
21986  OPENMP_TRUE='#'
21987  OPENMP_FALSE=
21988fi
21989
21990 if test "$enable_threads" = "yes" -o "$enable_openmp" = "yes"; then
21991  SMP_TRUE=
21992  SMP_FALSE='#'
21993else
21994  SMP_TRUE='#'
21995  SMP_FALSE=
21996fi
21997
21998 if test x"$with_combined_threads" = xyes; then
21999  COMBINED_THREADS_TRUE=
22000  COMBINED_THREADS_FALSE='#'
22001else
22002  COMBINED_THREADS_TRUE='#'
22003  COMBINED_THREADS_FALSE=
22004fi
22005
22006
22007
22008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a cycle counter is available" >&5
22009$as_echo_n "checking whether a cycle counter is available... " >&6; }
22010save_CPPFLAGS=$CPPFLAGS
22011CPPFLAGS="$CPPFLAGS -I$srcdir/kernel"
22012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22013/* end confdefs.h.  */
22014#include "cycle.h"
22015#ifndef HAVE_TICK_COUNTER
22016#  error No cycle counter
22017#endif
22018_ACEOF
22019if ac_fn_c_try_cpp "$LINENO"; then :
22020  ok=yes
22021else
22022  ok=no
22023fi
22024rm -f conftest.err conftest.i conftest.$ac_ext
22025CPPFLAGS=$save_CPPFLAGS
22026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ok" >&5
22027$as_echo "$ok" >&6; }
22028if test $ok = no && test "x$with_slow_timer" = xno; then
22029    echo "***************************************************************"
22030    echo "WARNING: No cycle counter found.  FFTW will use ESTIMATE mode  "
22031    echo "         for all plans.  See the manual for more information."
22032    echo "***************************************************************"
22033fi
22034
22035
22036
22037cat >>confdefs.h <<_ACEOF
22038#define FFTW_CC "$CC $CFLAGS"
22039_ACEOF
22040
22041
22042ac_config_files="$ac_config_files Makefile support/Makefile genfft/Makefile kernel/Makefile simd-support/Makefile dft/Makefile dft/scalar/Makefile dft/scalar/codelets/Makefile dft/simd/Makefile dft/simd/common/Makefile dft/simd/sse2/Makefile dft/simd/avx/Makefile dft/simd/avx-128-fma/Makefile dft/simd/avx2/Makefile dft/simd/avx2-128/Makefile dft/simd/avx512/Makefile dft/simd/kcvi/Makefile dft/simd/altivec/Makefile dft/simd/vsx/Makefile dft/simd/neon/Makefile dft/simd/generic-simd128/Makefile dft/simd/generic-simd256/Makefile rdft/Makefile rdft/scalar/Makefile rdft/scalar/r2cf/Makefile rdft/scalar/r2cb/Makefile rdft/scalar/r2r/Makefile rdft/simd/Makefile rdft/simd/common/Makefile rdft/simd/sse2/Makefile rdft/simd/avx/Makefile rdft/simd/avx-128-fma/Makefile rdft/simd/avx2/Makefile rdft/simd/avx2-128/Makefile rdft/simd/avx512/Makefile rdft/simd/kcvi/Makefile rdft/simd/altivec/Makefile rdft/simd/vsx/Makefile rdft/simd/neon/Makefile rdft/simd/generic-simd128/Makefile rdft/simd/generic-simd256/Makefile reodft/Makefile threads/Makefile api/Makefile mpi/Makefile libbench2/Makefile tests/Makefile doc/Makefile doc/FAQ/Makefile tools/Makefile tools/fftw_wisdom.1 tools/fftw-wisdom-to-conf m4/Makefile fftw.pc"
22043
22044
22045cat >confcache <<\_ACEOF
22046# This file is a shell script that caches the results of configure
22047# tests run on this system so they can be shared between configure
22048# scripts and configure runs, see configure's option --config-cache.
22049# It is not useful on other systems.  If it contains results you don't
22050# want to keep, you may remove or edit it.
22051#
22052# config.status only pays attention to the cache file if you give it
22053# the --recheck option to rerun configure.
22054#
22055# `ac_cv_env_foo' variables (set or unset) will be overridden when
22056# loading this file, other *unset* `ac_cv_foo' will be assigned the
22057# following values.
22058
22059_ACEOF
22060
22061# The following way of writing the cache mishandles newlines in values,
22062# but we know of no workaround that is simple, portable, and efficient.
22063# So, we kill variables containing newlines.
22064# Ultrix sh set writes to stderr and can't be redirected directly,
22065# and sets the high bit in the cache file unless we assign to the vars.
22066(
22067  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22068    eval ac_val=\$$ac_var
22069    case $ac_val in #(
22070    *${as_nl}*)
22071      case $ac_var in #(
22072      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22073$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22074      esac
22075      case $ac_var in #(
22076      _ | IFS | as_nl) ;; #(
22077      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22078      *) { eval $ac_var=; unset $ac_var;} ;;
22079      esac ;;
22080    esac
22081  done
22082
22083  (set) 2>&1 |
22084    case $as_nl`(ac_space=' '; set) 2>&1` in #(
22085    *${as_nl}ac_space=\ *)
22086      # `set' does not quote correctly, so add quotes: double-quote
22087      # substitution turns \\\\ into \\, and sed turns \\ into \.
22088      sed -n \
22089	"s/'/'\\\\''/g;
22090	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22091      ;; #(
22092    *)
22093      # `set' quotes correctly as required by POSIX, so do not add quotes.
22094      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22095      ;;
22096    esac |
22097    sort
22098) |
22099  sed '
22100     /^ac_cv_env_/b end
22101     t clear
22102     :clear
22103     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22104     t end
22105     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22106     :end' >>confcache
22107if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22108  if test -w "$cache_file"; then
22109    if test "x$cache_file" != "x/dev/null"; then
22110      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22111$as_echo "$as_me: updating cache $cache_file" >&6;}
22112      if test ! -f "$cache_file" || test -h "$cache_file"; then
22113	cat confcache >"$cache_file"
22114      else
22115        case $cache_file in #(
22116        */* | ?:*)
22117	  mv -f confcache "$cache_file"$$ &&
22118	  mv -f "$cache_file"$$ "$cache_file" ;; #(
22119        *)
22120	  mv -f confcache "$cache_file" ;;
22121	esac
22122      fi
22123    fi
22124  else
22125    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22126$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22127  fi
22128fi
22129rm -f confcache
22130
22131test "x$prefix" = xNONE && prefix=$ac_default_prefix
22132# Let make expand exec_prefix.
22133test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22134
22135DEFS=-DHAVE_CONFIG_H
22136
22137ac_libobjs=
22138ac_ltlibobjs=
22139for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22140  # 1. Remove the extension, and $U if already installed.
22141  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22142  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22143  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
22144  #    will be set to the directory where LIBOBJS objects are built.
22145  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22146  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22147done
22148LIBOBJS=$ac_libobjs
22149
22150LTLIBOBJS=$ac_ltlibobjs
22151
22152
22153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22154$as_echo_n "checking that generated files are newer than configure... " >&6; }
22155   if test -n "$am_sleep_pid"; then
22156     # Hide warnings about reused PIDs.
22157     wait $am_sleep_pid 2>/dev/null
22158   fi
22159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22160$as_echo "done" >&6; }
22161 if test -n "$EXEEXT"; then
22162  am__EXEEXT_TRUE=
22163  am__EXEEXT_FALSE='#'
22164else
22165  am__EXEEXT_TRUE='#'
22166  am__EXEEXT_FALSE=
22167fi
22168
22169if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22170  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22171Usually this means the macro was only invoked conditionally." "$LINENO" 5
22172fi
22173if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
22174  as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
22175Usually this means the macro was only invoked conditionally." "$LINENO" 5
22176fi
22177if test -z "${SINGLE_TRUE}" && test -z "${SINGLE_FALSE}"; then
22178  as_fn_error $? "conditional \"SINGLE\" was never defined.
22179Usually this means the macro was only invoked conditionally." "$LINENO" 5
22180fi
22181if test -z "${LDOUBLE_TRUE}" && test -z "${LDOUBLE_FALSE}"; then
22182  as_fn_error $? "conditional \"LDOUBLE\" was never defined.
22183Usually this means the macro was only invoked conditionally." "$LINENO" 5
22184fi
22185if test -z "${QUAD_TRUE}" && test -z "${QUAD_FALSE}"; then
22186  as_fn_error $? "conditional \"QUAD\" was never defined.
22187Usually this means the macro was only invoked conditionally." "$LINENO" 5
22188fi
22189if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
22190  as_fn_error $? "conditional \"HAVE_SSE2\" was never defined.
22191Usually this means the macro was only invoked conditionally." "$LINENO" 5
22192fi
22193if test -z "${HAVE_AVX_TRUE}" && test -z "${HAVE_AVX_FALSE}"; then
22194  as_fn_error $? "conditional \"HAVE_AVX\" was never defined.
22195Usually this means the macro was only invoked conditionally." "$LINENO" 5
22196fi
22197if test -z "${HAVE_AVX2_TRUE}" && test -z "${HAVE_AVX2_FALSE}"; then
22198  as_fn_error $? "conditional \"HAVE_AVX2\" was never defined.
22199Usually this means the macro was only invoked conditionally." "$LINENO" 5
22200fi
22201if test -z "${HAVE_AVX512_TRUE}" && test -z "${HAVE_AVX512_FALSE}"; then
22202  as_fn_error $? "conditional \"HAVE_AVX512\" was never defined.
22203Usually this means the macro was only invoked conditionally." "$LINENO" 5
22204fi
22205if test -z "${HAVE_AVX_128_FMA_TRUE}" && test -z "${HAVE_AVX_128_FMA_FALSE}"; then
22206  as_fn_error $? "conditional \"HAVE_AVX_128_FMA\" was never defined.
22207Usually this means the macro was only invoked conditionally." "$LINENO" 5
22208fi
22209if test -z "${HAVE_KCVI_TRUE}" && test -z "${HAVE_KCVI_FALSE}"; then
22210  as_fn_error $? "conditional \"HAVE_KCVI\" was never defined.
22211Usually this means the macro was only invoked conditionally." "$LINENO" 5
22212fi
22213if test -z "${HAVE_ALTIVEC_TRUE}" && test -z "${HAVE_ALTIVEC_FALSE}"; then
22214  as_fn_error $? "conditional \"HAVE_ALTIVEC\" was never defined.
22215Usually this means the macro was only invoked conditionally." "$LINENO" 5
22216fi
22217if test -z "${HAVE_VSX_TRUE}" && test -z "${HAVE_VSX_FALSE}"; then
22218  as_fn_error $? "conditional \"HAVE_VSX\" was never defined.
22219Usually this means the macro was only invoked conditionally." "$LINENO" 5
22220fi
22221if test -z "${HAVE_NEON_TRUE}" && test -z "${HAVE_NEON_FALSE}"; then
22222  as_fn_error $? "conditional \"HAVE_NEON\" was never defined.
22223Usually this means the macro was only invoked conditionally." "$LINENO" 5
22224fi
22225if test -z "${HAVE_GENERIC_SIMD128_TRUE}" && test -z "${HAVE_GENERIC_SIMD128_FALSE}"; then
22226  as_fn_error $? "conditional \"HAVE_GENERIC_SIMD128\" was never defined.
22227Usually this means the macro was only invoked conditionally." "$LINENO" 5
22228fi
22229if test -z "${HAVE_GENERIC_SIMD256_TRUE}" && test -z "${HAVE_GENERIC_SIMD256_FALSE}"; then
22230  as_fn_error $? "conditional \"HAVE_GENERIC_SIMD256\" was never defined.
22231Usually this means the macro was only invoked conditionally." "$LINENO" 5
22232fi
22233if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22234  as_fn_error $? "conditional \"AMDEP\" was never defined.
22235Usually this means the macro was only invoked conditionally." "$LINENO" 5
22236fi
22237if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22238  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22239Usually this means the macro was only invoked conditionally." "$LINENO" 5
22240fi
22241if test -z "${MPI_TRUE}" && test -z "${MPI_FALSE}"; then
22242  as_fn_error $? "conditional \"MPI\" was never defined.
22243Usually this means the macro was only invoked conditionally." "$LINENO" 5
22244fi
22245if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then
22246  as_fn_error $? "conditional \"THREADS\" was never defined.
22247Usually this means the macro was only invoked conditionally." "$LINENO" 5
22248fi
22249if test -z "${OPENMP_TRUE}" && test -z "${OPENMP_FALSE}"; then
22250  as_fn_error $? "conditional \"OPENMP\" was never defined.
22251Usually this means the macro was only invoked conditionally." "$LINENO" 5
22252fi
22253if test -z "${SMP_TRUE}" && test -z "${SMP_FALSE}"; then
22254  as_fn_error $? "conditional \"SMP\" was never defined.
22255Usually this means the macro was only invoked conditionally." "$LINENO" 5
22256fi
22257if test -z "${COMBINED_THREADS_TRUE}" && test -z "${COMBINED_THREADS_FALSE}"; then
22258  as_fn_error $? "conditional \"COMBINED_THREADS\" was never defined.
22259Usually this means the macro was only invoked conditionally." "$LINENO" 5
22260fi
22261
22262: "${CONFIG_STATUS=./config.status}"
22263ac_write_fail=0
22264ac_clean_files_save=$ac_clean_files
22265ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22266{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22267$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22268as_write_fail=0
22269cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22270#! $SHELL
22271# Generated by $as_me.
22272# Run this file to recreate the current configuration.
22273# Compiler output produced by configure, useful for debugging
22274# configure, is in config.log if it exists.
22275
22276debug=false
22277ac_cs_recheck=false
22278ac_cs_silent=false
22279
22280SHELL=\${CONFIG_SHELL-$SHELL}
22281export SHELL
22282_ASEOF
22283cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22284## -------------------- ##
22285## M4sh Initialization. ##
22286## -------------------- ##
22287
22288# Be more Bourne compatible
22289DUALCASE=1; export DUALCASE # for MKS sh
22290if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22291  emulate sh
22292  NULLCMD=:
22293  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22294  # is contrary to our usage.  Disable this feature.
22295  alias -g '${1+"$@"}'='"$@"'
22296  setopt NO_GLOB_SUBST
22297else
22298  case `(set -o) 2>/dev/null` in #(
22299  *posix*) :
22300    set -o posix ;; #(
22301  *) :
22302     ;;
22303esac
22304fi
22305
22306
22307as_nl='
22308'
22309export as_nl
22310# Printing a long string crashes Solaris 7 /usr/bin/printf.
22311as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22312as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22313as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22314# Prefer a ksh shell builtin over an external printf program on Solaris,
22315# but without wasting forks for bash or zsh.
22316if test -z "$BASH_VERSION$ZSH_VERSION" \
22317    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22318  as_echo='print -r --'
22319  as_echo_n='print -rn --'
22320elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22321  as_echo='printf %s\n'
22322  as_echo_n='printf %s'
22323else
22324  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22325    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22326    as_echo_n='/usr/ucb/echo -n'
22327  else
22328    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22329    as_echo_n_body='eval
22330      arg=$1;
22331      case $arg in #(
22332      *"$as_nl"*)
22333	expr "X$arg" : "X\\(.*\\)$as_nl";
22334	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22335      esac;
22336      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22337    '
22338    export as_echo_n_body
22339    as_echo_n='sh -c $as_echo_n_body as_echo'
22340  fi
22341  export as_echo_body
22342  as_echo='sh -c $as_echo_body as_echo'
22343fi
22344
22345# The user is always right.
22346if test "${PATH_SEPARATOR+set}" != set; then
22347  PATH_SEPARATOR=:
22348  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22349    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22350      PATH_SEPARATOR=';'
22351  }
22352fi
22353
22354
22355# IFS
22356# We need space, tab and new line, in precisely that order.  Quoting is
22357# there to prevent editors from complaining about space-tab.
22358# (If _AS_PATH_WALK were called with IFS unset, it would disable word
22359# splitting by setting IFS to empty value.)
22360IFS=" ""	$as_nl"
22361
22362# Find who we are.  Look in the path if we contain no directory separator.
22363as_myself=
22364case $0 in #((
22365  *[\\/]* ) as_myself=$0 ;;
22366  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22367for as_dir in $PATH
22368do
22369  IFS=$as_save_IFS
22370  test -z "$as_dir" && as_dir=.
22371    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22372  done
22373IFS=$as_save_IFS
22374
22375     ;;
22376esac
22377# We did not find ourselves, most probably we were run as `sh COMMAND'
22378# in which case we are not to be found in the path.
22379if test "x$as_myself" = x; then
22380  as_myself=$0
22381fi
22382if test ! -f "$as_myself"; then
22383  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22384  exit 1
22385fi
22386
22387# Unset variables that we do not need and which cause bugs (e.g. in
22388# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
22389# suppresses any "Segmentation fault" message there.  '((' could
22390# trigger a bug in pdksh 5.2.14.
22391for as_var in BASH_ENV ENV MAIL MAILPATH
22392do eval test x\${$as_var+set} = xset \
22393  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22394done
22395PS1='$ '
22396PS2='> '
22397PS4='+ '
22398
22399# NLS nuisances.
22400LC_ALL=C
22401export LC_ALL
22402LANGUAGE=C
22403export LANGUAGE
22404
22405# CDPATH.
22406(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22407
22408
22409# as_fn_error STATUS ERROR [LINENO LOG_FD]
22410# ----------------------------------------
22411# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22412# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22413# script with STATUS, using 1 if that was 0.
22414as_fn_error ()
22415{
22416  as_status=$1; test $as_status -eq 0 && as_status=1
22417  if test "$4"; then
22418    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22419    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22420  fi
22421  $as_echo "$as_me: error: $2" >&2
22422  as_fn_exit $as_status
22423} # as_fn_error
22424
22425
22426# as_fn_set_status STATUS
22427# -----------------------
22428# Set $? to STATUS, without forking.
22429as_fn_set_status ()
22430{
22431  return $1
22432} # as_fn_set_status
22433
22434# as_fn_exit STATUS
22435# -----------------
22436# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22437as_fn_exit ()
22438{
22439  set +e
22440  as_fn_set_status $1
22441  exit $1
22442} # as_fn_exit
22443
22444# as_fn_unset VAR
22445# ---------------
22446# Portably unset VAR.
22447as_fn_unset ()
22448{
22449  { eval $1=; unset $1;}
22450}
22451as_unset=as_fn_unset
22452# as_fn_append VAR VALUE
22453# ----------------------
22454# Append the text in VALUE to the end of the definition contained in VAR. Take
22455# advantage of any shell optimizations that allow amortized linear growth over
22456# repeated appends, instead of the typical quadratic growth present in naive
22457# implementations.
22458if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22459  eval 'as_fn_append ()
22460  {
22461    eval $1+=\$2
22462  }'
22463else
22464  as_fn_append ()
22465  {
22466    eval $1=\$$1\$2
22467  }
22468fi # as_fn_append
22469
22470# as_fn_arith ARG...
22471# ------------------
22472# Perform arithmetic evaluation on the ARGs, and store the result in the
22473# global $as_val. Take advantage of shells that can avoid forks. The arguments
22474# must be portable across $(()) and expr.
22475if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22476  eval 'as_fn_arith ()
22477  {
22478    as_val=$(( $* ))
22479  }'
22480else
22481  as_fn_arith ()
22482  {
22483    as_val=`expr "$@" || test $? -eq 1`
22484  }
22485fi # as_fn_arith
22486
22487
22488if expr a : '\(a\)' >/dev/null 2>&1 &&
22489   test "X`expr 00001 : '.*\(...\)'`" = X001; then
22490  as_expr=expr
22491else
22492  as_expr=false
22493fi
22494
22495if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22496  as_basename=basename
22497else
22498  as_basename=false
22499fi
22500
22501if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22502  as_dirname=dirname
22503else
22504  as_dirname=false
22505fi
22506
22507as_me=`$as_basename -- "$0" ||
22508$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22509	 X"$0" : 'X\(//\)$' \| \
22510	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22511$as_echo X/"$0" |
22512    sed '/^.*\/\([^/][^/]*\)\/*$/{
22513	    s//\1/
22514	    q
22515	  }
22516	  /^X\/\(\/\/\)$/{
22517	    s//\1/
22518	    q
22519	  }
22520	  /^X\/\(\/\).*/{
22521	    s//\1/
22522	    q
22523	  }
22524	  s/.*/./; q'`
22525
22526# Avoid depending upon Character Ranges.
22527as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22528as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22529as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22530as_cr_digits='0123456789'
22531as_cr_alnum=$as_cr_Letters$as_cr_digits
22532
22533ECHO_C= ECHO_N= ECHO_T=
22534case `echo -n x` in #(((((
22535-n*)
22536  case `echo 'xy\c'` in
22537  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22538  xy)  ECHO_C='\c';;
22539  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22540       ECHO_T='	';;
22541  esac;;
22542*)
22543  ECHO_N='-n';;
22544esac
22545
22546rm -f conf$$ conf$$.exe conf$$.file
22547if test -d conf$$.dir; then
22548  rm -f conf$$.dir/conf$$.file
22549else
22550  rm -f conf$$.dir
22551  mkdir conf$$.dir 2>/dev/null
22552fi
22553if (echo >conf$$.file) 2>/dev/null; then
22554  if ln -s conf$$.file conf$$ 2>/dev/null; then
22555    as_ln_s='ln -s'
22556    # ... but there are two gotchas:
22557    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22558    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22559    # In both cases, we have to default to `cp -pR'.
22560    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22561      as_ln_s='cp -pR'
22562  elif ln conf$$.file conf$$ 2>/dev/null; then
22563    as_ln_s=ln
22564  else
22565    as_ln_s='cp -pR'
22566  fi
22567else
22568  as_ln_s='cp -pR'
22569fi
22570rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22571rmdir conf$$.dir 2>/dev/null
22572
22573
22574# as_fn_mkdir_p
22575# -------------
22576# Create "$as_dir" as a directory, including parents if necessary.
22577as_fn_mkdir_p ()
22578{
22579
22580  case $as_dir in #(
22581  -*) as_dir=./$as_dir;;
22582  esac
22583  test -d "$as_dir" || eval $as_mkdir_p || {
22584    as_dirs=
22585    while :; do
22586      case $as_dir in #(
22587      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22588      *) as_qdir=$as_dir;;
22589      esac
22590      as_dirs="'$as_qdir' $as_dirs"
22591      as_dir=`$as_dirname -- "$as_dir" ||
22592$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22593	 X"$as_dir" : 'X\(//\)[^/]' \| \
22594	 X"$as_dir" : 'X\(//\)$' \| \
22595	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22596$as_echo X"$as_dir" |
22597    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22598	    s//\1/
22599	    q
22600	  }
22601	  /^X\(\/\/\)[^/].*/{
22602	    s//\1/
22603	    q
22604	  }
22605	  /^X\(\/\/\)$/{
22606	    s//\1/
22607	    q
22608	  }
22609	  /^X\(\/\).*/{
22610	    s//\1/
22611	    q
22612	  }
22613	  s/.*/./; q'`
22614      test -d "$as_dir" && break
22615    done
22616    test -z "$as_dirs" || eval "mkdir $as_dirs"
22617  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22618
22619
22620} # as_fn_mkdir_p
22621if mkdir -p . 2>/dev/null; then
22622  as_mkdir_p='mkdir -p "$as_dir"'
22623else
22624  test -d ./-p && rmdir ./-p
22625  as_mkdir_p=false
22626fi
22627
22628
22629# as_fn_executable_p FILE
22630# -----------------------
22631# Test if FILE is an executable regular file.
22632as_fn_executable_p ()
22633{
22634  test -f "$1" && test -x "$1"
22635} # as_fn_executable_p
22636as_test_x='test -x'
22637as_executable_p=as_fn_executable_p
22638
22639# Sed expression to map a string onto a valid CPP name.
22640as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22641
22642# Sed expression to map a string onto a valid variable name.
22643as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22644
22645
22646exec 6>&1
22647## ----------------------------------- ##
22648## Main body of $CONFIG_STATUS script. ##
22649## ----------------------------------- ##
22650_ASEOF
22651test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22652
22653cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22654# Save the log message, to keep $0 and so on meaningful, and to
22655# report actual input values of CONFIG_FILES etc. instead of their
22656# values after options handling.
22657ac_log="
22658This file was extended by fftw $as_me 3.3.9, which was
22659generated by GNU Autoconf 2.69.  Invocation command line was
22660
22661  CONFIG_FILES    = $CONFIG_FILES
22662  CONFIG_HEADERS  = $CONFIG_HEADERS
22663  CONFIG_LINKS    = $CONFIG_LINKS
22664  CONFIG_COMMANDS = $CONFIG_COMMANDS
22665  $ $0 $@
22666
22667on `(hostname || uname -n) 2>/dev/null | sed 1q`
22668"
22669
22670_ACEOF
22671
22672case $ac_config_files in *"
22673"*) set x $ac_config_files; shift; ac_config_files=$*;;
22674esac
22675
22676case $ac_config_headers in *"
22677"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22678esac
22679
22680
22681cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22682# Files that config.status was made for.
22683config_files="$ac_config_files"
22684config_headers="$ac_config_headers"
22685config_commands="$ac_config_commands"
22686
22687_ACEOF
22688
22689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22690ac_cs_usage="\
22691\`$as_me' instantiates files and other configuration actions
22692from templates according to the current configuration.  Unless the files
22693and actions are specified as TAGs, all are instantiated by default.
22694
22695Usage: $0 [OPTION]... [TAG]...
22696
22697  -h, --help       print this help, then exit
22698  -V, --version    print version number and configuration settings, then exit
22699      --config     print configuration, then exit
22700  -q, --quiet, --silent
22701                   do not print progress messages
22702  -d, --debug      don't remove temporary files
22703      --recheck    update $as_me by reconfiguring in the same conditions
22704      --file=FILE[:TEMPLATE]
22705                   instantiate the configuration file FILE
22706      --header=FILE[:TEMPLATE]
22707                   instantiate the configuration header FILE
22708
22709Configuration files:
22710$config_files
22711
22712Configuration headers:
22713$config_headers
22714
22715Configuration commands:
22716$config_commands
22717
22718Report bugs to <fftw@fftw.org>."
22719
22720_ACEOF
22721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22722ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22723ac_cs_version="\\
22724fftw config.status 3.3.9
22725configured by $0, generated by GNU Autoconf 2.69,
22726  with options \\"\$ac_cs_config\\"
22727
22728Copyright (C) 2012 Free Software Foundation, Inc.
22729This config.status script is free software; the Free Software Foundation
22730gives unlimited permission to copy, distribute and modify it."
22731
22732ac_pwd='$ac_pwd'
22733srcdir='$srcdir'
22734INSTALL='$INSTALL'
22735MKDIR_P='$MKDIR_P'
22736AWK='$AWK'
22737test -n "\$AWK" || AWK=awk
22738_ACEOF
22739
22740cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22741# The default lists apply if the user does not specify any file.
22742ac_need_defaults=:
22743while test $# != 0
22744do
22745  case $1 in
22746  --*=?*)
22747    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22748    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22749    ac_shift=:
22750    ;;
22751  --*=)
22752    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22753    ac_optarg=
22754    ac_shift=:
22755    ;;
22756  *)
22757    ac_option=$1
22758    ac_optarg=$2
22759    ac_shift=shift
22760    ;;
22761  esac
22762
22763  case $ac_option in
22764  # Handling of the options.
22765  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22766    ac_cs_recheck=: ;;
22767  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22768    $as_echo "$ac_cs_version"; exit ;;
22769  --config | --confi | --conf | --con | --co | --c )
22770    $as_echo "$ac_cs_config"; exit ;;
22771  --debug | --debu | --deb | --de | --d | -d )
22772    debug=: ;;
22773  --file | --fil | --fi | --f )
22774    $ac_shift
22775    case $ac_optarg in
22776    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22777    '') as_fn_error $? "missing file argument" ;;
22778    esac
22779    as_fn_append CONFIG_FILES " '$ac_optarg'"
22780    ac_need_defaults=false;;
22781  --header | --heade | --head | --hea )
22782    $ac_shift
22783    case $ac_optarg in
22784    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22785    esac
22786    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22787    ac_need_defaults=false;;
22788  --he | --h)
22789    # Conflict between --help and --header
22790    as_fn_error $? "ambiguous option: \`$1'
22791Try \`$0 --help' for more information.";;
22792  --help | --hel | -h )
22793    $as_echo "$ac_cs_usage"; exit ;;
22794  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22795  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22796    ac_cs_silent=: ;;
22797
22798  # This is an error.
22799  -*) as_fn_error $? "unrecognized option: \`$1'
22800Try \`$0 --help' for more information." ;;
22801
22802  *) as_fn_append ac_config_targets " $1"
22803     ac_need_defaults=false ;;
22804
22805  esac
22806  shift
22807done
22808
22809ac_configure_extra_args=
22810
22811if $ac_cs_silent; then
22812  exec 6>/dev/null
22813  ac_configure_extra_args="$ac_configure_extra_args --silent"
22814fi
22815
22816_ACEOF
22817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22818if \$ac_cs_recheck; then
22819  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22820  shift
22821  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22822  CONFIG_SHELL='$SHELL'
22823  export CONFIG_SHELL
22824  exec "\$@"
22825fi
22826
22827_ACEOF
22828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22829exec 5>>config.log
22830{
22831  echo
22832  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22833## Running $as_me. ##
22834_ASBOX
22835  $as_echo "$ac_log"
22836} >&5
22837
22838_ACEOF
22839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22840#
22841# INIT-COMMANDS
22842#
22843AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22844
22845
22846# The HP-UX ksh and POSIX shell print the target directory to stdout
22847# if CDPATH is set.
22848(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22849
22850sed_quote_subst='$sed_quote_subst'
22851double_quote_subst='$double_quote_subst'
22852delay_variable_subst='$delay_variable_subst'
22853enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22854AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
22855DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22856OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22857macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22858macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22859enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22860pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22861enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22862shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22863SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22864ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22865PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22866host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22867host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22868host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22869build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22870build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22871build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22872SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22873Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22874GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22875EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22876FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22877LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22878NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22879LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22880max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22881ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22882exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22883lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22884lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22885lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22886lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22887lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22888reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22889reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22890deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22891file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22892file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22893want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22894sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22895AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22896AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22897archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22898STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22899RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22900old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22901old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22902old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22903lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22904CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22905CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22906compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22907GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22908lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22909lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22910lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22911lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22912lt_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"`'
22913lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22914nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22915lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22916lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22917objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22918MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22919lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22920lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22921lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22922lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22923lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22924need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22925MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22926DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22927NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22928LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22929OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22930OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22931libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22932shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22933extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22934archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22935enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22936export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22937whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22938compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22939old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22940old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22941archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22942archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22943module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22944module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22945with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22946allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22947no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22948hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22949hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22950hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22951hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22952hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22953hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22954hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22955inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22956link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22957always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22958export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22959exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22960include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22961prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22962postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22963file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22964variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22965need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22966need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22967version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22968runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22969shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22970shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22971libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22972library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22973soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22974install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22975postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22976postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22977finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22978finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22979hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22980sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22981configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22982configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22983hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22984enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22985enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22986enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22987old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22988striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22989LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
22990reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
22991reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
22992old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
22993compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
22994GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
22995lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
22996lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
22997lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
22998lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
22999lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
23000archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
23001enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
23002export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
23003whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
23004compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
23005old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
23006old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
23007archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
23008archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
23009module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
23010module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
23011with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
23012allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
23013no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
23014hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
23015hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
23016hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
23017hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
23018hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
23019hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
23020hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
23021inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
23022link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
23023always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
23024export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
23025exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
23026include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
23027prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
23028postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
23029file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
23030hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
23031
23032LTCC='$LTCC'
23033LTCFLAGS='$LTCFLAGS'
23034compiler='$compiler_DEFAULT'
23035
23036# A function that is used when there is no print builtin or printf.
23037func_fallback_echo ()
23038{
23039  eval 'cat <<_LTECHO_EOF
23040\$1
23041_LTECHO_EOF'
23042}
23043
23044# Quote evaled strings.
23045for var in AS \
23046DLLTOOL \
23047OBJDUMP \
23048SHELL \
23049ECHO \
23050PATH_SEPARATOR \
23051SED \
23052GREP \
23053EGREP \
23054FGREP \
23055LD \
23056NM \
23057LN_S \
23058lt_SP2NL \
23059lt_NL2SP \
23060reload_flag \
23061deplibs_check_method \
23062file_magic_cmd \
23063file_magic_glob \
23064want_nocaseglob \
23065sharedlib_from_linklib_cmd \
23066AR \
23067AR_FLAGS \
23068archiver_list_spec \
23069STRIP \
23070RANLIB \
23071CC \
23072CFLAGS \
23073compiler \
23074lt_cv_sys_global_symbol_pipe \
23075lt_cv_sys_global_symbol_to_cdecl \
23076lt_cv_sys_global_symbol_to_import \
23077lt_cv_sys_global_symbol_to_c_name_address \
23078lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23079lt_cv_nm_interface \
23080nm_file_list_spec \
23081lt_cv_truncate_bin \
23082lt_prog_compiler_no_builtin_flag \
23083lt_prog_compiler_pic \
23084lt_prog_compiler_wl \
23085lt_prog_compiler_static \
23086lt_cv_prog_compiler_c_o \
23087need_locks \
23088MANIFEST_TOOL \
23089DSYMUTIL \
23090NMEDIT \
23091LIPO \
23092OTOOL \
23093OTOOL64 \
23094shrext_cmds \
23095export_dynamic_flag_spec \
23096whole_archive_flag_spec \
23097compiler_needs_object \
23098with_gnu_ld \
23099allow_undefined_flag \
23100no_undefined_flag \
23101hardcode_libdir_flag_spec \
23102hardcode_libdir_separator \
23103exclude_expsyms \
23104include_expsyms \
23105file_list_spec \
23106variables_saved_for_relink \
23107libname_spec \
23108library_names_spec \
23109soname_spec \
23110install_override_mode \
23111finish_eval \
23112old_striplib \
23113striplib \
23114LD_F77 \
23115reload_flag_F77 \
23116compiler_F77 \
23117lt_prog_compiler_no_builtin_flag_F77 \
23118lt_prog_compiler_pic_F77 \
23119lt_prog_compiler_wl_F77 \
23120lt_prog_compiler_static_F77 \
23121lt_cv_prog_compiler_c_o_F77 \
23122export_dynamic_flag_spec_F77 \
23123whole_archive_flag_spec_F77 \
23124compiler_needs_object_F77 \
23125with_gnu_ld_F77 \
23126allow_undefined_flag_F77 \
23127no_undefined_flag_F77 \
23128hardcode_libdir_flag_spec_F77 \
23129hardcode_libdir_separator_F77 \
23130exclude_expsyms_F77 \
23131include_expsyms_F77 \
23132file_list_spec_F77; do
23133    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23134    *[\\\\\\\`\\"\\\$]*)
23135      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23136      ;;
23137    *)
23138      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23139      ;;
23140    esac
23141done
23142
23143# Double-quote double-evaled strings.
23144for var in reload_cmds \
23145old_postinstall_cmds \
23146old_postuninstall_cmds \
23147old_archive_cmds \
23148extract_expsyms_cmds \
23149old_archive_from_new_cmds \
23150old_archive_from_expsyms_cmds \
23151archive_cmds \
23152archive_expsym_cmds \
23153module_cmds \
23154module_expsym_cmds \
23155export_symbols_cmds \
23156prelink_cmds \
23157postlink_cmds \
23158postinstall_cmds \
23159postuninstall_cmds \
23160finish_cmds \
23161sys_lib_search_path_spec \
23162configure_time_dlsearch_path \
23163configure_time_lt_sys_library_path \
23164reload_cmds_F77 \
23165old_archive_cmds_F77 \
23166old_archive_from_new_cmds_F77 \
23167old_archive_from_expsyms_cmds_F77 \
23168archive_cmds_F77 \
23169archive_expsym_cmds_F77 \
23170module_cmds_F77 \
23171module_expsym_cmds_F77 \
23172export_symbols_cmds_F77 \
23173prelink_cmds_F77 \
23174postlink_cmds_F77; do
23175    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23176    *[\\\\\\\`\\"\\\$]*)
23177      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
23178      ;;
23179    *)
23180      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23181      ;;
23182    esac
23183done
23184
23185ac_aux_dir='$ac_aux_dir'
23186
23187# See if we are running on zsh, and set the options that allow our
23188# commands through without removal of \ escapes INIT.
23189if test -n "\${ZSH_VERSION+set}"; then
23190   setopt NO_GLOB_SUBST
23191fi
23192
23193
23194    PACKAGE='$PACKAGE'
23195    VERSION='$VERSION'
23196    RM='$RM'
23197    ofile='$ofile'
23198
23199
23200
23201
23202
23203
23204_ACEOF
23205
23206cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23207
23208# Handling of arguments.
23209for ac_config_target in $ac_config_targets
23210do
23211  case $ac_config_target in
23212    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23213    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23214    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23215    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23216    "support/Makefile") CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
23217    "genfft/Makefile") CONFIG_FILES="$CONFIG_FILES genfft/Makefile" ;;
23218    "kernel/Makefile") CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
23219    "simd-support/Makefile") CONFIG_FILES="$CONFIG_FILES simd-support/Makefile" ;;
23220    "dft/Makefile") CONFIG_FILES="$CONFIG_FILES dft/Makefile" ;;
23221    "dft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/Makefile" ;;
23222    "dft/scalar/codelets/Makefile") CONFIG_FILES="$CONFIG_FILES dft/scalar/codelets/Makefile" ;;
23223    "dft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/Makefile" ;;
23224    "dft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/common/Makefile" ;;
23225    "dft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/sse2/Makefile" ;;
23226    "dft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx/Makefile" ;;
23227    "dft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx-128-fma/Makefile" ;;
23228    "dft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2/Makefile" ;;
23229    "dft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx2-128/Makefile" ;;
23230    "dft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/avx512/Makefile" ;;
23231    "dft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/kcvi/Makefile" ;;
23232    "dft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/altivec/Makefile" ;;
23233    "dft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/vsx/Makefile" ;;
23234    "dft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/neon/Makefile" ;;
23235    "dft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd128/Makefile" ;;
23236    "dft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES dft/simd/generic-simd256/Makefile" ;;
23237    "rdft/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/Makefile" ;;
23238    "rdft/scalar/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/Makefile" ;;
23239    "rdft/scalar/r2cf/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cf/Makefile" ;;
23240    "rdft/scalar/r2cb/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2cb/Makefile" ;;
23241    "rdft/scalar/r2r/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/scalar/r2r/Makefile" ;;
23242    "rdft/simd/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/Makefile" ;;
23243    "rdft/simd/common/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/common/Makefile" ;;
23244    "rdft/simd/sse2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/sse2/Makefile" ;;
23245    "rdft/simd/avx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx/Makefile" ;;
23246    "rdft/simd/avx-128-fma/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx-128-fma/Makefile" ;;
23247    "rdft/simd/avx2/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2/Makefile" ;;
23248    "rdft/simd/avx2-128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx2-128/Makefile" ;;
23249    "rdft/simd/avx512/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/avx512/Makefile" ;;
23250    "rdft/simd/kcvi/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/kcvi/Makefile" ;;
23251    "rdft/simd/altivec/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/altivec/Makefile" ;;
23252    "rdft/simd/vsx/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/vsx/Makefile" ;;
23253    "rdft/simd/neon/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/neon/Makefile" ;;
23254    "rdft/simd/generic-simd128/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd128/Makefile" ;;
23255    "rdft/simd/generic-simd256/Makefile") CONFIG_FILES="$CONFIG_FILES rdft/simd/generic-simd256/Makefile" ;;
23256    "reodft/Makefile") CONFIG_FILES="$CONFIG_FILES reodft/Makefile" ;;
23257    "threads/Makefile") CONFIG_FILES="$CONFIG_FILES threads/Makefile" ;;
23258    "api/Makefile") CONFIG_FILES="$CONFIG_FILES api/Makefile" ;;
23259    "mpi/Makefile") CONFIG_FILES="$CONFIG_FILES mpi/Makefile" ;;
23260    "libbench2/Makefile") CONFIG_FILES="$CONFIG_FILES libbench2/Makefile" ;;
23261    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23262    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23263    "doc/FAQ/Makefile") CONFIG_FILES="$CONFIG_FILES doc/FAQ/Makefile" ;;
23264    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
23265    "tools/fftw_wisdom.1") CONFIG_FILES="$CONFIG_FILES tools/fftw_wisdom.1" ;;
23266    "tools/fftw-wisdom-to-conf") CONFIG_FILES="$CONFIG_FILES tools/fftw-wisdom-to-conf" ;;
23267    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
23268    "fftw.pc") CONFIG_FILES="$CONFIG_FILES fftw.pc" ;;
23269
23270  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23271  esac
23272done
23273
23274
23275# If the user did not use the arguments to specify the items to instantiate,
23276# then the envvar interface is used.  Set only those that are not.
23277# We use the long form for the default assignment because of an extremely
23278# bizarre bug on SunOS 4.1.3.
23279if $ac_need_defaults; then
23280  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23281  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23282  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23283fi
23284
23285# Have a temporary directory for convenience.  Make it in the build tree
23286# simply because there is no reason against having it here, and in addition,
23287# creating and moving files from /tmp can sometimes cause problems.
23288# Hook for its removal unless debugging.
23289# Note that there is a small window in which the directory will not be cleaned:
23290# after its creation but before its name has been assigned to `$tmp'.
23291$debug ||
23292{
23293  tmp= ac_tmp=
23294  trap 'exit_status=$?
23295  : "${ac_tmp:=$tmp}"
23296  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23297' 0
23298  trap 'as_fn_exit 1' 1 2 13 15
23299}
23300# Create a (secure) tmp directory for tmp files.
23301
23302{
23303  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23304  test -d "$tmp"
23305}  ||
23306{
23307  tmp=./conf$$-$RANDOM
23308  (umask 077 && mkdir "$tmp")
23309} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23310ac_tmp=$tmp
23311
23312# Set up the scripts for CONFIG_FILES section.
23313# No need to generate them if there are no CONFIG_FILES.
23314# This happens for instance with `./config.status config.h'.
23315if test -n "$CONFIG_FILES"; then
23316
23317
23318ac_cr=`echo X | tr X '\015'`
23319# On cygwin, bash can eat \r inside `` if the user requested igncr.
23320# But we know of no other shell where ac_cr would be empty at this
23321# point, so we can use a bashism as a fallback.
23322if test "x$ac_cr" = x; then
23323  eval ac_cr=\$\'\\r\'
23324fi
23325ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23326if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23327  ac_cs_awk_cr='\\r'
23328else
23329  ac_cs_awk_cr=$ac_cr
23330fi
23331
23332echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23333_ACEOF
23334
23335
23336{
23337  echo "cat >conf$$subs.awk <<_ACEOF" &&
23338  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23339  echo "_ACEOF"
23340} >conf$$subs.sh ||
23341  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23342ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23343ac_delim='%!_!# '
23344for ac_last_try in false false false false false :; do
23345  . ./conf$$subs.sh ||
23346    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23347
23348  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23349  if test $ac_delim_n = $ac_delim_num; then
23350    break
23351  elif $ac_last_try; then
23352    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23353  else
23354    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23355  fi
23356done
23357rm -f conf$$subs.sh
23358
23359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23360cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23361_ACEOF
23362sed -n '
23363h
23364s/^/S["/; s/!.*/"]=/
23365p
23366g
23367s/^[^!]*!//
23368:repl
23369t repl
23370s/'"$ac_delim"'$//
23371t delim
23372:nl
23373h
23374s/\(.\{148\}\)..*/\1/
23375t more1
23376s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23377p
23378n
23379b repl
23380:more1
23381s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23382p
23383g
23384s/.\{148\}//
23385t nl
23386:delim
23387h
23388s/\(.\{148\}\)..*/\1/
23389t more2
23390s/["\\]/\\&/g; s/^/"/; s/$/"/
23391p
23392b
23393:more2
23394s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23395p
23396g
23397s/.\{148\}//
23398t delim
23399' <conf$$subs.awk | sed '
23400/^[^""]/{
23401  N
23402  s/\n//
23403}
23404' >>$CONFIG_STATUS || ac_write_fail=1
23405rm -f conf$$subs.awk
23406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23407_ACAWK
23408cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23409  for (key in S) S_is_set[key] = 1
23410  FS = ""
23411
23412}
23413{
23414  line = $ 0
23415  nfields = split(line, field, "@")
23416  substed = 0
23417  len = length(field[1])
23418  for (i = 2; i < nfields; i++) {
23419    key = field[i]
23420    keylen = length(key)
23421    if (S_is_set[key]) {
23422      value = S[key]
23423      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23424      len += length(value) + length(field[++i])
23425      substed = 1
23426    } else
23427      len += 1 + keylen
23428  }
23429
23430  print line
23431}
23432
23433_ACAWK
23434_ACEOF
23435cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23436if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23437  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23438else
23439  cat
23440fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23441  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23442_ACEOF
23443
23444# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23445# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23446# trailing colons and then remove the whole line if VPATH becomes empty
23447# (actually we leave an empty line to preserve line numbers).
23448if test "x$srcdir" = x.; then
23449  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23450h
23451s///
23452s/^/:/
23453s/[	 ]*$/:/
23454s/:\$(srcdir):/:/g
23455s/:\${srcdir}:/:/g
23456s/:@srcdir@:/:/g
23457s/^:*//
23458s/:*$//
23459x
23460s/\(=[	 ]*\).*/\1/
23461G
23462s/\n//
23463s/^[^=]*=[	 ]*$//
23464}'
23465fi
23466
23467cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23468fi # test -n "$CONFIG_FILES"
23469
23470# Set up the scripts for CONFIG_HEADERS section.
23471# No need to generate them if there are no CONFIG_HEADERS.
23472# This happens for instance with `./config.status Makefile'.
23473if test -n "$CONFIG_HEADERS"; then
23474cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23475BEGIN {
23476_ACEOF
23477
23478# Transform confdefs.h into an awk script `defines.awk', embedded as
23479# here-document in config.status, that substitutes the proper values into
23480# config.h.in to produce config.h.
23481
23482# Create a delimiter string that does not exist in confdefs.h, to ease
23483# handling of long lines.
23484ac_delim='%!_!# '
23485for ac_last_try in false false :; do
23486  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23487  if test -z "$ac_tt"; then
23488    break
23489  elif $ac_last_try; then
23490    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23491  else
23492    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23493  fi
23494done
23495
23496# For the awk script, D is an array of macro values keyed by name,
23497# likewise P contains macro parameters if any.  Preserve backslash
23498# newline sequences.
23499
23500ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23501sed -n '
23502s/.\{148\}/&'"$ac_delim"'/g
23503t rset
23504:rset
23505s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23506t def
23507d
23508:def
23509s/\\$//
23510t bsnl
23511s/["\\]/\\&/g
23512s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23513D["\1"]=" \3"/p
23514s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23515d
23516:bsnl
23517s/["\\]/\\&/g
23518s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23519D["\1"]=" \3\\\\\\n"\\/p
23520t cont
23521s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23522t cont
23523d
23524:cont
23525n
23526s/.\{148\}/&'"$ac_delim"'/g
23527t clear
23528:clear
23529s/\\$//
23530t bsnlc
23531s/["\\]/\\&/g; s/^/"/; s/$/"/p
23532d
23533:bsnlc
23534s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23535b cont
23536' <confdefs.h | sed '
23537s/'"$ac_delim"'/"\\\
23538"/g' >>$CONFIG_STATUS || ac_write_fail=1
23539
23540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23541  for (key in D) D_is_set[key] = 1
23542  FS = ""
23543}
23544/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23545  line = \$ 0
23546  split(line, arg, " ")
23547  if (arg[1] == "#") {
23548    defundef = arg[2]
23549    mac1 = arg[3]
23550  } else {
23551    defundef = substr(arg[1], 2)
23552    mac1 = arg[2]
23553  }
23554  split(mac1, mac2, "(") #)
23555  macro = mac2[1]
23556  prefix = substr(line, 1, index(line, defundef) - 1)
23557  if (D_is_set[macro]) {
23558    # Preserve the white space surrounding the "#".
23559    print prefix "define", macro P[macro] D[macro]
23560    next
23561  } else {
23562    # Replace #undef with comments.  This is necessary, for example,
23563    # in the case of _POSIX_SOURCE, which is predefined and required
23564    # on some systems where configure will not decide to define it.
23565    if (defundef == "undef") {
23566      print "/*", prefix defundef, macro, "*/"
23567      next
23568    }
23569  }
23570}
23571{ print }
23572_ACAWK
23573_ACEOF
23574cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23575  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23576fi # test -n "$CONFIG_HEADERS"
23577
23578
23579eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23580shift
23581for ac_tag
23582do
23583  case $ac_tag in
23584  :[FHLC]) ac_mode=$ac_tag; continue;;
23585  esac
23586  case $ac_mode$ac_tag in
23587  :[FHL]*:*);;
23588  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23589  :[FH]-) ac_tag=-:-;;
23590  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23591  esac
23592  ac_save_IFS=$IFS
23593  IFS=:
23594  set x $ac_tag
23595  IFS=$ac_save_IFS
23596  shift
23597  ac_file=$1
23598  shift
23599
23600  case $ac_mode in
23601  :L) ac_source=$1;;
23602  :[FH])
23603    ac_file_inputs=
23604    for ac_f
23605    do
23606      case $ac_f in
23607      -) ac_f="$ac_tmp/stdin";;
23608      *) # Look for the file first in the build tree, then in the source tree
23609	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23610	 # because $ac_f cannot contain `:'.
23611	 test -f "$ac_f" ||
23612	   case $ac_f in
23613	   [\\/$]*) false;;
23614	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23615	   esac ||
23616	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23617      esac
23618      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23619      as_fn_append ac_file_inputs " '$ac_f'"
23620    done
23621
23622    # Let's still pretend it is `configure' which instantiates (i.e., don't
23623    # use $as_me), people would be surprised to read:
23624    #    /* config.h.  Generated by config.status.  */
23625    configure_input='Generated from '`
23626	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23627	`' by configure.'
23628    if test x"$ac_file" != x-; then
23629      configure_input="$ac_file.  $configure_input"
23630      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23631$as_echo "$as_me: creating $ac_file" >&6;}
23632    fi
23633    # Neutralize special characters interpreted by sed in replacement strings.
23634    case $configure_input in #(
23635    *\&* | *\|* | *\\* )
23636       ac_sed_conf_input=`$as_echo "$configure_input" |
23637       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23638    *) ac_sed_conf_input=$configure_input;;
23639    esac
23640
23641    case $ac_tag in
23642    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23643      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23644    esac
23645    ;;
23646  esac
23647
23648  ac_dir=`$as_dirname -- "$ac_file" ||
23649$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23650	 X"$ac_file" : 'X\(//\)[^/]' \| \
23651	 X"$ac_file" : 'X\(//\)$' \| \
23652	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23653$as_echo X"$ac_file" |
23654    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23655	    s//\1/
23656	    q
23657	  }
23658	  /^X\(\/\/\)[^/].*/{
23659	    s//\1/
23660	    q
23661	  }
23662	  /^X\(\/\/\)$/{
23663	    s//\1/
23664	    q
23665	  }
23666	  /^X\(\/\).*/{
23667	    s//\1/
23668	    q
23669	  }
23670	  s/.*/./; q'`
23671  as_dir="$ac_dir"; as_fn_mkdir_p
23672  ac_builddir=.
23673
23674case "$ac_dir" in
23675.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23676*)
23677  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23678  # A ".." for each directory in $ac_dir_suffix.
23679  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23680  case $ac_top_builddir_sub in
23681  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23682  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23683  esac ;;
23684esac
23685ac_abs_top_builddir=$ac_pwd
23686ac_abs_builddir=$ac_pwd$ac_dir_suffix
23687# for backward compatibility:
23688ac_top_builddir=$ac_top_build_prefix
23689
23690case $srcdir in
23691  .)  # We are building in place.
23692    ac_srcdir=.
23693    ac_top_srcdir=$ac_top_builddir_sub
23694    ac_abs_top_srcdir=$ac_pwd ;;
23695  [\\/]* | ?:[\\/]* )  # Absolute name.
23696    ac_srcdir=$srcdir$ac_dir_suffix;
23697    ac_top_srcdir=$srcdir
23698    ac_abs_top_srcdir=$srcdir ;;
23699  *) # Relative name.
23700    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23701    ac_top_srcdir=$ac_top_build_prefix$srcdir
23702    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23703esac
23704ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23705
23706
23707  case $ac_mode in
23708  :F)
23709  #
23710  # CONFIG_FILE
23711  #
23712
23713  case $INSTALL in
23714  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23715  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23716  esac
23717  ac_MKDIR_P=$MKDIR_P
23718  case $MKDIR_P in
23719  [\\/$]* | ?:[\\/]* ) ;;
23720  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23721  esac
23722_ACEOF
23723
23724cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23725# If the template does not know about datarootdir, expand it.
23726# FIXME: This hack should be removed a few years after 2.60.
23727ac_datarootdir_hack=; ac_datarootdir_seen=
23728ac_sed_dataroot='
23729/datarootdir/ {
23730  p
23731  q
23732}
23733/@datadir@/p
23734/@docdir@/p
23735/@infodir@/p
23736/@localedir@/p
23737/@mandir@/p'
23738case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23739*datarootdir*) ac_datarootdir_seen=yes;;
23740*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23741  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23742$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23743_ACEOF
23744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23745  ac_datarootdir_hack='
23746  s&@datadir@&$datadir&g
23747  s&@docdir@&$docdir&g
23748  s&@infodir@&$infodir&g
23749  s&@localedir@&$localedir&g
23750  s&@mandir@&$mandir&g
23751  s&\\\${datarootdir}&$datarootdir&g' ;;
23752esac
23753_ACEOF
23754
23755# Neutralize VPATH when `$srcdir' = `.'.
23756# Shell code in configure.ac might set extrasub.
23757# FIXME: do we really want to maintain this feature?
23758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23759ac_sed_extra="$ac_vpsub
23760$extrasub
23761_ACEOF
23762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23763:t
23764/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23765s|@configure_input@|$ac_sed_conf_input|;t t
23766s&@top_builddir@&$ac_top_builddir_sub&;t t
23767s&@top_build_prefix@&$ac_top_build_prefix&;t t
23768s&@srcdir@&$ac_srcdir&;t t
23769s&@abs_srcdir@&$ac_abs_srcdir&;t t
23770s&@top_srcdir@&$ac_top_srcdir&;t t
23771s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23772s&@builddir@&$ac_builddir&;t t
23773s&@abs_builddir@&$ac_abs_builddir&;t t
23774s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23775s&@INSTALL@&$ac_INSTALL&;t t
23776s&@MKDIR_P@&$ac_MKDIR_P&;t t
23777$ac_datarootdir_hack
23778"
23779eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23780  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23781
23782test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23783  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23784  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23785      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23786  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23787which seems to be undefined.  Please make sure it is defined" >&5
23788$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23789which seems to be undefined.  Please make sure it is defined" >&2;}
23790
23791  rm -f "$ac_tmp/stdin"
23792  case $ac_file in
23793  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23794  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23795  esac \
23796  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23797 ;;
23798  :H)
23799  #
23800  # CONFIG_HEADER
23801  #
23802  if test x"$ac_file" != x-; then
23803    {
23804      $as_echo "/* $configure_input  */" \
23805      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23806    } >"$ac_tmp/config.h" \
23807      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23808    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23809      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23810$as_echo "$as_me: $ac_file is unchanged" >&6;}
23811    else
23812      rm -f "$ac_file"
23813      mv "$ac_tmp/config.h" "$ac_file" \
23814	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23815    fi
23816  else
23817    $as_echo "/* $configure_input  */" \
23818      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23819      || as_fn_error $? "could not create -" "$LINENO" 5
23820  fi
23821# Compute "$ac_file"'s index in $config_headers.
23822_am_arg="$ac_file"
23823_am_stamp_count=1
23824for _am_header in $config_headers :; do
23825  case $_am_header in
23826    $_am_arg | $_am_arg:* )
23827      break ;;
23828    * )
23829      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23830  esac
23831done
23832echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23833$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23834	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23835	 X"$_am_arg" : 'X\(//\)$' \| \
23836	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23837$as_echo X"$_am_arg" |
23838    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23839	    s//\1/
23840	    q
23841	  }
23842	  /^X\(\/\/\)[^/].*/{
23843	    s//\1/
23844	    q
23845	  }
23846	  /^X\(\/\/\)$/{
23847	    s//\1/
23848	    q
23849	  }
23850	  /^X\(\/\).*/{
23851	    s//\1/
23852	    q
23853	  }
23854	  s/.*/./; q'`/stamp-h$_am_stamp_count
23855 ;;
23856
23857  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23858$as_echo "$as_me: executing $ac_file commands" >&6;}
23859 ;;
23860  esac
23861
23862
23863  case $ac_file$ac_mode in
23864    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23865  # Older Autoconf quotes --file arguments for eval, but not when files
23866  # are listed without --file.  Let's play safe and only enable the eval
23867  # if we detect the quoting.
23868  # TODO: see whether this extra hack can be removed once we start
23869  # requiring Autoconf 2.70 or later.
23870  case $CONFIG_FILES in #(
23871  *\'*) :
23872    eval set x "$CONFIG_FILES" ;; #(
23873  *) :
23874    set x $CONFIG_FILES ;; #(
23875  *) :
23876     ;;
23877esac
23878  shift
23879  # Used to flag and report bootstrapping failures.
23880  am_rc=0
23881  for am_mf
23882  do
23883    # Strip MF so we end up with the name of the file.
23884    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
23885    # Check whether this is an Automake generated Makefile which includes
23886    # dependency-tracking related rules and includes.
23887    # Grep'ing the whole file directly is not great: AIX grep has a line
23888    # limit of 2048, but all sed's we know have understand at least 4000.
23889    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23890      || continue
23891    am_dirpart=`$as_dirname -- "$am_mf" ||
23892$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23893	 X"$am_mf" : 'X\(//\)[^/]' \| \
23894	 X"$am_mf" : 'X\(//\)$' \| \
23895	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23896$as_echo X"$am_mf" |
23897    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23898	    s//\1/
23899	    q
23900	  }
23901	  /^X\(\/\/\)[^/].*/{
23902	    s//\1/
23903	    q
23904	  }
23905	  /^X\(\/\/\)$/{
23906	    s//\1/
23907	    q
23908	  }
23909	  /^X\(\/\).*/{
23910	    s//\1/
23911	    q
23912	  }
23913	  s/.*/./; q'`
23914    am_filepart=`$as_basename -- "$am_mf" ||
23915$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23916	 X"$am_mf" : 'X\(//\)$' \| \
23917	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23918$as_echo X/"$am_mf" |
23919    sed '/^.*\/\([^/][^/]*\)\/*$/{
23920	    s//\1/
23921	    q
23922	  }
23923	  /^X\/\(\/\/\)$/{
23924	    s//\1/
23925	    q
23926	  }
23927	  /^X\/\(\/\).*/{
23928	    s//\1/
23929	    q
23930	  }
23931	  s/.*/./; q'`
23932    { echo "$as_me:$LINENO: cd "$am_dirpart" \
23933      && sed -e '/# am--include-marker/d' "$am_filepart" \
23934        | $MAKE -f - am--depfiles" >&5
23935   (cd "$am_dirpart" \
23936      && sed -e '/# am--include-marker/d' "$am_filepart" \
23937        | $MAKE -f - am--depfiles) >&5 2>&5
23938   ac_status=$?
23939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940   (exit $ac_status); } || am_rc=$?
23941  done
23942  if test $am_rc -ne 0; then
23943    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23944$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23945as_fn_error $? "Something went wrong bootstrapping makefile fragments
23946    for automatic dependency tracking.  Try re-running configure with the
23947    '--disable-dependency-tracking' option to at least be able to build
23948    the package (albeit without support for automatic dependency tracking).
23949See \`config.log' for more details" "$LINENO" 5; }
23950  fi
23951  { am_dirpart=; unset am_dirpart;}
23952  { am_filepart=; unset am_filepart;}
23953  { am_mf=; unset am_mf;}
23954  { am_rc=; unset am_rc;}
23955  rm -f conftest-deps.mk
23956}
23957 ;;
23958    "libtool":C)
23959
23960    # See if we are running on zsh, and set the options that allow our
23961    # commands through without removal of \ escapes.
23962    if test -n "${ZSH_VERSION+set}"; then
23963      setopt NO_GLOB_SUBST
23964    fi
23965
23966    cfgfile=${ofile}T
23967    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23968    $RM "$cfgfile"
23969
23970    cat <<_LT_EOF >> "$cfgfile"
23971#! $SHELL
23972# Generated automatically by $as_me ($PACKAGE) $VERSION
23973# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23974
23975# Provide generalized library-building support services.
23976# Written by Gordon Matzigkeit, 1996
23977
23978# Copyright (C) 2014 Free Software Foundation, Inc.
23979# This is free software; see the source for copying conditions.  There is NO
23980# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23981
23982# GNU Libtool is free software; you can redistribute it and/or modify
23983# it under the terms of the GNU General Public License as published by
23984# the Free Software Foundation; either version 2 of of the License, or
23985# (at your option) any later version.
23986#
23987# As a special exception to the GNU General Public License, if you
23988# distribute this file as part of a program or library that is built
23989# using GNU Libtool, you may include this file under the  same
23990# distribution terms that you use for the rest of that program.
23991#
23992# GNU Libtool is distributed in the hope that it will be useful, but
23993# WITHOUT ANY WARRANTY; without even the implied warranty of
23994# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23995# GNU General Public License for more details.
23996#
23997# You should have received a copy of the GNU General Public License
23998# along with this program.  If not, see <http://www.gnu.org/licenses/>.
23999
24000
24001# The names of the tagged configurations supported by this script.
24002available_tags='F77 '
24003
24004# Configured defaults for sys_lib_dlsearch_path munging.
24005: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
24006
24007# ### BEGIN LIBTOOL CONFIG
24008
24009# Whether or not to build shared libraries.
24010build_libtool_libs=$enable_shared
24011
24012# Assembler program.
24013AS=$lt_AS
24014
24015# DLL creation program.
24016DLLTOOL=$lt_DLLTOOL
24017
24018# Object dumper program.
24019OBJDUMP=$lt_OBJDUMP
24020
24021# Which release of libtool.m4 was used?
24022macro_version=$macro_version
24023macro_revision=$macro_revision
24024
24025# Whether or not to build static libraries.
24026build_old_libs=$enable_static
24027
24028# What type of objects to build.
24029pic_mode=$pic_mode
24030
24031# Whether or not to optimize for fast installation.
24032fast_install=$enable_fast_install
24033
24034# Shared archive member basename,for filename based shared library versioning on AIX.
24035shared_archive_member_spec=$shared_archive_member_spec
24036
24037# Shell to use when invoking shell scripts.
24038SHELL=$lt_SHELL
24039
24040# An echo program that protects backslashes.
24041ECHO=$lt_ECHO
24042
24043# The PATH separator for the build system.
24044PATH_SEPARATOR=$lt_PATH_SEPARATOR
24045
24046# The host system.
24047host_alias=$host_alias
24048host=$host
24049host_os=$host_os
24050
24051# The build system.
24052build_alias=$build_alias
24053build=$build
24054build_os=$build_os
24055
24056# A sed program that does not truncate output.
24057SED=$lt_SED
24058
24059# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24060Xsed="\$SED -e 1s/^X//"
24061
24062# A grep program that handles long lines.
24063GREP=$lt_GREP
24064
24065# An ERE matcher.
24066EGREP=$lt_EGREP
24067
24068# A literal string matcher.
24069FGREP=$lt_FGREP
24070
24071# A BSD- or MS-compatible name lister.
24072NM=$lt_NM
24073
24074# Whether we need soft or hard links.
24075LN_S=$lt_LN_S
24076
24077# What is the maximum length of a command?
24078max_cmd_len=$max_cmd_len
24079
24080# Object file suffix (normally "o").
24081objext=$ac_objext
24082
24083# Executable file suffix (normally "").
24084exeext=$exeext
24085
24086# whether the shell understands "unset".
24087lt_unset=$lt_unset
24088
24089# turn spaces into newlines.
24090SP2NL=$lt_lt_SP2NL
24091
24092# turn newlines into spaces.
24093NL2SP=$lt_lt_NL2SP
24094
24095# convert \$build file names to \$host format.
24096to_host_file_cmd=$lt_cv_to_host_file_cmd
24097
24098# convert \$build files to toolchain format.
24099to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24100
24101# Method to check whether dependent libraries are shared objects.
24102deplibs_check_method=$lt_deplibs_check_method
24103
24104# Command to use when deplibs_check_method = "file_magic".
24105file_magic_cmd=$lt_file_magic_cmd
24106
24107# How to find potential files when deplibs_check_method = "file_magic".
24108file_magic_glob=$lt_file_magic_glob
24109
24110# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24111want_nocaseglob=$lt_want_nocaseglob
24112
24113# Command to associate shared and link libraries.
24114sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24115
24116# The archiver.
24117AR=$lt_AR
24118
24119# Flags to create an archive.
24120AR_FLAGS=$lt_AR_FLAGS
24121
24122# How to feed a file listing to the archiver.
24123archiver_list_spec=$lt_archiver_list_spec
24124
24125# A symbol stripping program.
24126STRIP=$lt_STRIP
24127
24128# Commands used to install an old-style archive.
24129RANLIB=$lt_RANLIB
24130old_postinstall_cmds=$lt_old_postinstall_cmds
24131old_postuninstall_cmds=$lt_old_postuninstall_cmds
24132
24133# Whether to use a lock for old archive extraction.
24134lock_old_archive_extraction=$lock_old_archive_extraction
24135
24136# A C compiler.
24137LTCC=$lt_CC
24138
24139# LTCC compiler flags.
24140LTCFLAGS=$lt_CFLAGS
24141
24142# Take the output of nm and produce a listing of raw symbols and C names.
24143global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24144
24145# Transform the output of nm in a proper C declaration.
24146global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24147
24148# Transform the output of nm into a list of symbols to manually relocate.
24149global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
24150
24151# Transform the output of nm in a C name address pair.
24152global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24153
24154# Transform the output of nm in a C name address pair when lib prefix is needed.
24155global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24156
24157# The name lister interface.
24158nm_interface=$lt_lt_cv_nm_interface
24159
24160# Specify filename containing input files for \$NM.
24161nm_file_list_spec=$lt_nm_file_list_spec
24162
24163# The root where to search for dependent libraries,and where our libraries should be installed.
24164lt_sysroot=$lt_sysroot
24165
24166# Command to truncate a binary pipe.
24167lt_truncate_bin=$lt_lt_cv_truncate_bin
24168
24169# The name of the directory that contains temporary libtool files.
24170objdir=$objdir
24171
24172# Used to examine libraries when file_magic_cmd begins with "file".
24173MAGIC_CMD=$MAGIC_CMD
24174
24175# Must we lock files when doing compilation?
24176need_locks=$lt_need_locks
24177
24178# Manifest tool.
24179MANIFEST_TOOL=$lt_MANIFEST_TOOL
24180
24181# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24182DSYMUTIL=$lt_DSYMUTIL
24183
24184# Tool to change global to local symbols on Mac OS X.
24185NMEDIT=$lt_NMEDIT
24186
24187# Tool to manipulate fat objects and archives on Mac OS X.
24188LIPO=$lt_LIPO
24189
24190# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24191OTOOL=$lt_OTOOL
24192
24193# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24194OTOOL64=$lt_OTOOL64
24195
24196# Old archive suffix (normally "a").
24197libext=$libext
24198
24199# Shared library suffix (normally ".so").
24200shrext_cmds=$lt_shrext_cmds
24201
24202# The commands to extract the exported symbol list from a shared archive.
24203extract_expsyms_cmds=$lt_extract_expsyms_cmds
24204
24205# Variables whose values should be saved in libtool wrapper scripts and
24206# restored at link time.
24207variables_saved_for_relink=$lt_variables_saved_for_relink
24208
24209# Do we need the "lib" prefix for modules?
24210need_lib_prefix=$need_lib_prefix
24211
24212# Do we need a version for libraries?
24213need_version=$need_version
24214
24215# Library versioning type.
24216version_type=$version_type
24217
24218# Shared library runtime path variable.
24219runpath_var=$runpath_var
24220
24221# Shared library path variable.
24222shlibpath_var=$shlibpath_var
24223
24224# Is shlibpath searched before the hard-coded library search path?
24225shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24226
24227# Format of library name prefix.
24228libname_spec=$lt_libname_spec
24229
24230# List of archive names.  First name is the real one, the rest are links.
24231# The last name is the one that the linker finds with -lNAME
24232library_names_spec=$lt_library_names_spec
24233
24234# The coded name of the library, if different from the real name.
24235soname_spec=$lt_soname_spec
24236
24237# Permission mode override for installation of shared libraries.
24238install_override_mode=$lt_install_override_mode
24239
24240# Command to use after installation of a shared archive.
24241postinstall_cmds=$lt_postinstall_cmds
24242
24243# Command to use after uninstallation of a shared archive.
24244postuninstall_cmds=$lt_postuninstall_cmds
24245
24246# Commands used to finish a libtool library installation in a directory.
24247finish_cmds=$lt_finish_cmds
24248
24249# As "finish_cmds", except a single script fragment to be evaled but
24250# not shown.
24251finish_eval=$lt_finish_eval
24252
24253# Whether we should hardcode library paths into libraries.
24254hardcode_into_libs=$hardcode_into_libs
24255
24256# Compile-time system search path for libraries.
24257sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24258
24259# Detected run-time system search path for libraries.
24260sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
24261
24262# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
24263configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
24264
24265# Whether dlopen is supported.
24266dlopen_support=$enable_dlopen
24267
24268# Whether dlopen of programs is supported.
24269dlopen_self=$enable_dlopen_self
24270
24271# Whether dlopen of statically linked programs is supported.
24272dlopen_self_static=$enable_dlopen_self_static
24273
24274# Commands to strip libraries.
24275old_striplib=$lt_old_striplib
24276striplib=$lt_striplib
24277
24278
24279# The linker used to build libraries.
24280LD=$lt_LD
24281
24282# How to create reloadable object files.
24283reload_flag=$lt_reload_flag
24284reload_cmds=$lt_reload_cmds
24285
24286# Commands used to build an old-style archive.
24287old_archive_cmds=$lt_old_archive_cmds
24288
24289# A language specific compiler.
24290CC=$lt_compiler
24291
24292# Is the compiler the GNU compiler?
24293with_gcc=$GCC
24294
24295# Compiler flag to turn off builtin functions.
24296no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24297
24298# Additional compiler flags for building library objects.
24299pic_flag=$lt_lt_prog_compiler_pic
24300
24301# How to pass a linker flag through the compiler.
24302wl=$lt_lt_prog_compiler_wl
24303
24304# Compiler flag to prevent dynamic linking.
24305link_static_flag=$lt_lt_prog_compiler_static
24306
24307# Does compiler simultaneously support -c and -o options?
24308compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24309
24310# Whether or not to add -lc for building shared libraries.
24311build_libtool_need_lc=$archive_cmds_need_lc
24312
24313# Whether or not to disallow shared libs when runtime libs are static.
24314allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24315
24316# Compiler flag to allow reflexive dlopens.
24317export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24318
24319# Compiler flag to generate shared objects directly from archives.
24320whole_archive_flag_spec=$lt_whole_archive_flag_spec
24321
24322# Whether the compiler copes with passing no objects directly.
24323compiler_needs_object=$lt_compiler_needs_object
24324
24325# Create an old-style archive from a shared archive.
24326old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24327
24328# Create a temporary old-style archive to link instead of a shared archive.
24329old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24330
24331# Commands used to build a shared archive.
24332archive_cmds=$lt_archive_cmds
24333archive_expsym_cmds=$lt_archive_expsym_cmds
24334
24335# Commands used to build a loadable module if different from building
24336# a shared archive.
24337module_cmds=$lt_module_cmds
24338module_expsym_cmds=$lt_module_expsym_cmds
24339
24340# Whether we are building with GNU ld or not.
24341with_gnu_ld=$lt_with_gnu_ld
24342
24343# Flag that allows shared libraries with undefined symbols to be built.
24344allow_undefined_flag=$lt_allow_undefined_flag
24345
24346# Flag that enforces no undefined symbols.
24347no_undefined_flag=$lt_no_undefined_flag
24348
24349# Flag to hardcode \$libdir into a binary during linking.
24350# This must work even if \$libdir does not exist
24351hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24352
24353# Whether we need a single "-rpath" flag with a separated argument.
24354hardcode_libdir_separator=$lt_hardcode_libdir_separator
24355
24356# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24357# DIR into the resulting binary.
24358hardcode_direct=$hardcode_direct
24359
24360# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24361# DIR into the resulting binary and the resulting library dependency is
24362# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24363# library is relocated.
24364hardcode_direct_absolute=$hardcode_direct_absolute
24365
24366# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24367# into the resulting binary.
24368hardcode_minus_L=$hardcode_minus_L
24369
24370# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24371# into the resulting binary.
24372hardcode_shlibpath_var=$hardcode_shlibpath_var
24373
24374# Set to "yes" if building a shared library automatically hardcodes DIR
24375# into the library and all subsequent libraries and executables linked
24376# against it.
24377hardcode_automatic=$hardcode_automatic
24378
24379# Set to yes if linker adds runtime paths of dependent libraries
24380# to runtime path list.
24381inherit_rpath=$inherit_rpath
24382
24383# Whether libtool must link a program against all its dependency libraries.
24384link_all_deplibs=$link_all_deplibs
24385
24386# Set to "yes" if exported symbols are required.
24387always_export_symbols=$always_export_symbols
24388
24389# The commands to list exported symbols.
24390export_symbols_cmds=$lt_export_symbols_cmds
24391
24392# Symbols that should not be listed in the preloaded symbols.
24393exclude_expsyms=$lt_exclude_expsyms
24394
24395# Symbols that must always be exported.
24396include_expsyms=$lt_include_expsyms
24397
24398# Commands necessary for linking programs (against libraries) with templates.
24399prelink_cmds=$lt_prelink_cmds
24400
24401# Commands necessary for finishing linking programs.
24402postlink_cmds=$lt_postlink_cmds
24403
24404# Specify filename containing input files.
24405file_list_spec=$lt_file_list_spec
24406
24407# How to hardcode a shared library path into an executable.
24408hardcode_action=$hardcode_action
24409
24410# ### END LIBTOOL CONFIG
24411
24412_LT_EOF
24413
24414    cat <<'_LT_EOF' >> "$cfgfile"
24415
24416# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
24417
24418# func_munge_path_list VARIABLE PATH
24419# -----------------------------------
24420# VARIABLE is name of variable containing _space_ separated list of
24421# directories to be munged by the contents of PATH, which is string
24422# having a format:
24423# "DIR[:DIR]:"
24424#       string "DIR[ DIR]" will be prepended to VARIABLE
24425# ":DIR[:DIR]"
24426#       string "DIR[ DIR]" will be appended to VARIABLE
24427# "DIRP[:DIRP]::[DIRA:]DIRA"
24428#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
24429#       "DIRA[ DIRA]" will be appended to VARIABLE
24430# "DIR[:DIR]"
24431#       VARIABLE will be replaced by "DIR[ DIR]"
24432func_munge_path_list ()
24433{
24434    case x$2 in
24435    x)
24436        ;;
24437    *:)
24438        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
24439        ;;
24440    x:*)
24441        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
24442        ;;
24443    *::*)
24444        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
24445        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
24446        ;;
24447    *)
24448        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
24449        ;;
24450    esac
24451}
24452
24453
24454# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
24455func_cc_basename ()
24456{
24457    for cc_temp in $*""; do
24458      case $cc_temp in
24459        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
24460        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
24461        \-*) ;;
24462        *) break;;
24463      esac
24464    done
24465    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
24466}
24467
24468
24469# ### END FUNCTIONS SHARED WITH CONFIGURE
24470
24471_LT_EOF
24472
24473  case $host_os in
24474  aix3*)
24475    cat <<\_LT_EOF >> "$cfgfile"
24476# AIX sometimes has problems with the GCC collect2 program.  For some
24477# reason, if we set the COLLECT_NAMES environment variable, the problems
24478# vanish in a puff of smoke.
24479if test set != "${COLLECT_NAMES+set}"; then
24480  COLLECT_NAMES=
24481  export COLLECT_NAMES
24482fi
24483_LT_EOF
24484    ;;
24485  esac
24486
24487
24488ltmain=$ac_aux_dir/ltmain.sh
24489
24490
24491  # We use sed instead of cat because bash on DJGPP gets confused if
24492  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
24493  # text mode, it properly converts lines to CR/LF.  This bash problem
24494  # is reportedly fixed, but why not run on old versions too?
24495  sed '$q' "$ltmain" >> "$cfgfile" \
24496     || (rm -f "$cfgfile"; exit 1)
24497
24498   mv -f "$cfgfile" "$ofile" ||
24499    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24500  chmod +x "$ofile"
24501
24502
24503    cat <<_LT_EOF >> "$ofile"
24504
24505# ### BEGIN LIBTOOL TAG CONFIG: F77
24506
24507# The linker used to build libraries.
24508LD=$lt_LD_F77
24509
24510# How to create reloadable object files.
24511reload_flag=$lt_reload_flag_F77
24512reload_cmds=$lt_reload_cmds_F77
24513
24514# Commands used to build an old-style archive.
24515old_archive_cmds=$lt_old_archive_cmds_F77
24516
24517# A language specific compiler.
24518CC=$lt_compiler_F77
24519
24520# Is the compiler the GNU compiler?
24521with_gcc=$GCC_F77
24522
24523# Compiler flag to turn off builtin functions.
24524no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24525
24526# Additional compiler flags for building library objects.
24527pic_flag=$lt_lt_prog_compiler_pic_F77
24528
24529# How to pass a linker flag through the compiler.
24530wl=$lt_lt_prog_compiler_wl_F77
24531
24532# Compiler flag to prevent dynamic linking.
24533link_static_flag=$lt_lt_prog_compiler_static_F77
24534
24535# Does compiler simultaneously support -c and -o options?
24536compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24537
24538# Whether or not to add -lc for building shared libraries.
24539build_libtool_need_lc=$archive_cmds_need_lc_F77
24540
24541# Whether or not to disallow shared libs when runtime libs are static.
24542allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24543
24544# Compiler flag to allow reflexive dlopens.
24545export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24546
24547# Compiler flag to generate shared objects directly from archives.
24548whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24549
24550# Whether the compiler copes with passing no objects directly.
24551compiler_needs_object=$lt_compiler_needs_object_F77
24552
24553# Create an old-style archive from a shared archive.
24554old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24555
24556# Create a temporary old-style archive to link instead of a shared archive.
24557old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24558
24559# Commands used to build a shared archive.
24560archive_cmds=$lt_archive_cmds_F77
24561archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24562
24563# Commands used to build a loadable module if different from building
24564# a shared archive.
24565module_cmds=$lt_module_cmds_F77
24566module_expsym_cmds=$lt_module_expsym_cmds_F77
24567
24568# Whether we are building with GNU ld or not.
24569with_gnu_ld=$lt_with_gnu_ld_F77
24570
24571# Flag that allows shared libraries with undefined symbols to be built.
24572allow_undefined_flag=$lt_allow_undefined_flag_F77
24573
24574# Flag that enforces no undefined symbols.
24575no_undefined_flag=$lt_no_undefined_flag_F77
24576
24577# Flag to hardcode \$libdir into a binary during linking.
24578# This must work even if \$libdir does not exist
24579hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24580
24581# Whether we need a single "-rpath" flag with a separated argument.
24582hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24583
24584# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24585# DIR into the resulting binary.
24586hardcode_direct=$hardcode_direct_F77
24587
24588# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
24589# DIR into the resulting binary and the resulting library dependency is
24590# "absolute",i.e impossible to change by setting \$shlibpath_var if the
24591# library is relocated.
24592hardcode_direct_absolute=$hardcode_direct_absolute_F77
24593
24594# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24595# into the resulting binary.
24596hardcode_minus_L=$hardcode_minus_L_F77
24597
24598# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24599# into the resulting binary.
24600hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24601
24602# Set to "yes" if building a shared library automatically hardcodes DIR
24603# into the library and all subsequent libraries and executables linked
24604# against it.
24605hardcode_automatic=$hardcode_automatic_F77
24606
24607# Set to yes if linker adds runtime paths of dependent libraries
24608# to runtime path list.
24609inherit_rpath=$inherit_rpath_F77
24610
24611# Whether libtool must link a program against all its dependency libraries.
24612link_all_deplibs=$link_all_deplibs_F77
24613
24614# Set to "yes" if exported symbols are required.
24615always_export_symbols=$always_export_symbols_F77
24616
24617# The commands to list exported symbols.
24618export_symbols_cmds=$lt_export_symbols_cmds_F77
24619
24620# Symbols that should not be listed in the preloaded symbols.
24621exclude_expsyms=$lt_exclude_expsyms_F77
24622
24623# Symbols that must always be exported.
24624include_expsyms=$lt_include_expsyms_F77
24625
24626# Commands necessary for linking programs (against libraries) with templates.
24627prelink_cmds=$lt_prelink_cmds_F77
24628
24629# Commands necessary for finishing linking programs.
24630postlink_cmds=$lt_postlink_cmds_F77
24631
24632# Specify filename containing input files.
24633file_list_spec=$lt_file_list_spec_F77
24634
24635# How to hardcode a shared library path into an executable.
24636hardcode_action=$hardcode_action_F77
24637
24638# ### END LIBTOOL TAG CONFIG: F77
24639_LT_EOF
24640
24641 ;;
24642
24643  esac
24644done # for ac_tag
24645
24646
24647as_fn_exit 0
24648_ACEOF
24649ac_clean_files=$ac_clean_files_save
24650
24651test $ac_write_fail = 0 ||
24652  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24653
24654
24655# configure is writing to config.log, and then calls config.status.
24656# config.status does its own redirection, appending to config.log.
24657# Unfortunately, on DOS this fails, as config.log is still kept open
24658# by configure, so config.status won't be able to write to it; its
24659# output is simply discarded.  So we exec the FD to /dev/null,
24660# effectively closing config.log, so it can be properly (re)opened and
24661# appended to by config.status.  When coming back to configure, we
24662# need to make the FD available again.
24663if test "$no_create" != yes; then
24664  ac_cs_success=:
24665  ac_config_status_args=
24666  test "$silent" = yes &&
24667    ac_config_status_args="$ac_config_status_args --quiet"
24668  exec 5>/dev/null
24669  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24670  exec 5>>config.log
24671  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24672  # would make configure fail if this is the last instruction.
24673  $ac_cs_success || as_fn_exit 1
24674fi
24675if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24676  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24677$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24678fi
24679
24680