1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for grib_api  .
4#
5# Report bugs to <Software.Support@ecmwf.int>.
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
278$0: Software.Support@ecmwf.int about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do 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='grib_api'
592PACKAGE_TARNAME='grib_api'
593PACKAGE_VERSION=' '
594PACKAGE_STRING='grib_api  '
595PACKAGE_BUGREPORT='Software.Support@ecmwf.int'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612#  include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617#  include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_unique_file="src/grib_api.h"
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639LINUX_DISTRIBUTION_VERSION
640LINUX_DISTRIBUTION_NAME
641WERROR
642WARN_PEDANTIC
643RM
644CREATING_SHARED_LIBS_FALSE
645CREATING_SHARED_LIBS_TRUE
646WITH_FORTRAN_FALSE
647WITH_FORTRAN_TRUE
648WITH_PYTHON_FALSE
649WITH_PYTHON_TRUE
650PYTHON_DATA_HANDLER
651NUMPY_INCLUDE
652PYTHON_CHECK
653PYTHON_CONFIG
654PYTHON_LIBS
655PYTHON_CFLAGS
656PYTHON_LDFLAGS
657PYTHON_INCLUDES
658pkgpyexecdir
659pyexecdir
660pkgpythondir
661pythondir
662PYTHON_PLATFORM
663PYTHON_EXEC_PREFIX
664PYTHON_PREFIX
665PYTHON_VERSION
666PYTHON
667WITH_PERL_FALSE
668WITH_PERL_TRUE
669GRIB_API_INC
670GRIB_API_LIB
671PERL_MAKE_OPTIONS
672PERL
673PERL_INSTALL_OPTIONS
674LIB_PNG
675CCSDS_TEST
676AEC_DIR
677LIB_AEC
678JPEG_TEST
679LIB_JASPER
680LIB_OPENJPEG
681OPENJPEG_DIR
682JASPER_DIR
683NETCDF_LDFLAGS
684EMOS_LIB
685IFS_SAMPLES_DIR
686F90_MODULE_FLAG
687F90_CHECK
688FORTRAN_MOD
689DEBUG_IN_MOD_FALSE
690DEBUG_IN_MOD_TRUE
691GRIB_DEFINITION_PATH
692GRIB_SAMPLES_PATH
693GRIB_TEMPLATES_PATH
694RPM_RELEASE
695RPM_CONFIGURE_ARGS
696RPM_HOST_OS
697RPM_HOST_VENDOR
698RPM_HOST_CPU
699WITH_MARS_TESTS_FALSE
700WITH_MARS_TESTS_TRUE
701GRIB_DEVEL
702DEVEL_RULES
703UPPER_CASE_MOD_FALSE
704UPPER_CASE_MOD_TRUE
705ac_ct_FC
706FCFLAGS
707FC
708ac_ct_F77
709FFLAGS
710F77
711LEXLIB
712LEX_OUTPUT_ROOT
713LEX
714YFLAGS
715YACC
716PERLDIR
717AM_BACKSLASH
718AM_DEFAULT_VERBOSITY
719AM_DEFAULT_V
720AM_V
721am__fastdepCC_FALSE
722am__fastdepCC_TRUE
723CCDEPMODE
724am__nodep
725AMDEPBACKSLASH
726AMDEP_FALSE
727AMDEP_TRUE
728am__quote
729am__include
730DEPDIR
731am__untar
732am__tar
733AMTAR
734am__leading_dot
735SET_MAKE
736mkdir_p
737MKDIR_P
738INSTALL_STRIP_PROGRAM
739install_sh
740MAKEINFO
741AUTOHEADER
742AUTOMAKE
743AUTOCONF
744ACLOCAL
745VERSION
746PACKAGE
747CYGPATH_W
748am__isrc
749INSTALL_DATA
750INSTALL_SCRIPT
751INSTALL_PROGRAM
752GRIB_ABI_AGE
753GRIB_ABI_REVISION
754GRIB_ABI_CURRENT
755GRIB_API_PATCH_VERSION
756GRIB_API_MINOR_VERSION
757GRIB_API_MAJOR_VERSION
758GRIB_API_VERSION_STR
759GRIB_API_MAIN_VERSION
760LIBTOOL_DEPS
761CPP
762OTOOL64
763OTOOL
764LIPO
765NMEDIT
766DSYMUTIL
767MANIFEST_TOOL
768AWK
769RANLIB
770STRIP
771ac_ct_AR
772AR
773DLLTOOL
774OBJDUMP
775LN_S
776NM
777ac_ct_DUMPBIN
778DUMPBIN
779LD
780FGREP
781EGREP
782GREP
783SED
784OBJEXT
785EXEEXT
786ac_ct_CC
787CPPFLAGS
788LDFLAGS
789CFLAGS
790CC
791host_os
792host_vendor
793host_cpu
794host
795build_os
796build_vendor
797build_cpu
798build
799LIBTOOL
800target_alias
801host_alias
802build_alias
803LIBS
804ECHO_T
805ECHO_N
806ECHO_C
807DEFS
808mandir
809localedir
810libdir
811psdir
812pdfdir
813dvidir
814htmldir
815infodir
816docdir
817oldincludedir
818includedir
819localstatedir
820sharedstatedir
821sysconfdir
822datadir
823datarootdir
824libexecdir
825sbindir
826bindir
827program_transform_name
828prefix
829exec_prefix
830PACKAGE_URL
831PACKAGE_BUGREPORT
832PACKAGE_STRING
833PACKAGE_VERSION
834PACKAGE_TARNAME
835PACKAGE_NAME
836PATH_SEPARATOR
837SHELL'
838ac_subst_files=''
839ac_user_opts='
840enable_option_checking
841enable_shared
842enable_static
843with_pic
844enable_fast_install
845with_gnu_ld
846with_sysroot
847enable_libtool_lock
848enable_dependency_tracking
849enable_silent_rules
850enable_pthread
851enable_ibmpower67_opt
852enable_ieee_native
853enable_align_memory
854enable_vector
855enable_memory_management
856enable_development
857enable_largefile
858with_rpm_release
859enable_fortran
860with_ifs_samples
861with_emos
862with_fortranlibdir
863with_fortranlibs
864enable_timer
865enable_omp_packing
866with_netcdf
867enable_jpeg
868with_jasper
869with_openjpeg
870with_aec
871with_png_support
872enable_install_system_perl
873with_perl
874with_perl_options
875enable_python
876enable_numpy
877enable_werror_always
878'
879      ac_precious_vars='build_alias
880host_alias
881target_alias
882CC
883CFLAGS
884LDFLAGS
885LIBS
886CPPFLAGS
887CPP
888YACC
889YFLAGS
890F77
891FFLAGS
892FC
893FCFLAGS
894PYTHON
895PYTHON_INCLUDES
896PYTHON_LDFLAGS
897PYTHON_CFLAGS
898PYTHON_LIBS
899PYTHON_CONFIG'
900
901
902# Initialize some variables set by options.
903ac_init_help=
904ac_init_version=false
905ac_unrecognized_opts=
906ac_unrecognized_sep=
907# The variables have the same names as the options, with
908# dashes changed to underlines.
909cache_file=/dev/null
910exec_prefix=NONE
911no_create=
912no_recursion=
913prefix=NONE
914program_prefix=NONE
915program_suffix=NONE
916program_transform_name=s,x,x,
917silent=
918site=
919srcdir=
920verbose=
921x_includes=NONE
922x_libraries=NONE
923
924# Installation directory options.
925# These are left unexpanded so users can "make install exec_prefix=/foo"
926# and all the variables that are supposed to be based on exec_prefix
927# by default will actually change.
928# Use braces instead of parens because sh, perl, etc. also accept them.
929# (The list follows the same order as the GNU Coding Standards.)
930bindir='${exec_prefix}/bin'
931sbindir='${exec_prefix}/sbin'
932libexecdir='${exec_prefix}/libexec'
933datarootdir='${prefix}/share'
934datadir='${datarootdir}'
935sysconfdir='${prefix}/etc'
936sharedstatedir='${prefix}/com'
937localstatedir='${prefix}/var'
938includedir='${prefix}/include'
939oldincludedir='/usr/include'
940docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
941infodir='${datarootdir}/info'
942htmldir='${docdir}'
943dvidir='${docdir}'
944pdfdir='${docdir}'
945psdir='${docdir}'
946libdir='${exec_prefix}/lib'
947localedir='${datarootdir}/locale'
948mandir='${datarootdir}/man'
949
950ac_prev=
951ac_dashdash=
952for ac_option
953do
954  # If the previous option needs an argument, assign it.
955  if test -n "$ac_prev"; then
956    eval $ac_prev=\$ac_option
957    ac_prev=
958    continue
959  fi
960
961  case $ac_option in
962  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
963  *=)   ac_optarg= ;;
964  *)    ac_optarg=yes ;;
965  esac
966
967  # Accept the important Cygnus configure options, so we can diagnose typos.
968
969  case $ac_dashdash$ac_option in
970  --)
971    ac_dashdash=yes ;;
972
973  -bindir | --bindir | --bindi | --bind | --bin | --bi)
974    ac_prev=bindir ;;
975  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976    bindir=$ac_optarg ;;
977
978  -build | --build | --buil | --bui | --bu)
979    ac_prev=build_alias ;;
980  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
981    build_alias=$ac_optarg ;;
982
983  -cache-file | --cache-file | --cache-fil | --cache-fi \
984  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
985    ac_prev=cache_file ;;
986  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
987  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
988    cache_file=$ac_optarg ;;
989
990  --config-cache | -C)
991    cache_file=config.cache ;;
992
993  -datadir | --datadir | --datadi | --datad)
994    ac_prev=datadir ;;
995  -datadir=* | --datadir=* | --datadi=* | --datad=*)
996    datadir=$ac_optarg ;;
997
998  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
999  | --dataroo | --dataro | --datar)
1000    ac_prev=datarootdir ;;
1001  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1002  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1003    datarootdir=$ac_optarg ;;
1004
1005  -disable-* | --disable-*)
1006    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007    # Reject names that are not valid shell variable names.
1008    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1009      as_fn_error $? "invalid feature name: $ac_useropt"
1010    ac_useropt_orig=$ac_useropt
1011    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012    case $ac_user_opts in
1013      *"
1014"enable_$ac_useropt"
1015"*) ;;
1016      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017	 ac_unrecognized_sep=', ';;
1018    esac
1019    eval enable_$ac_useropt=no ;;
1020
1021  -docdir | --docdir | --docdi | --doc | --do)
1022    ac_prev=docdir ;;
1023  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1024    docdir=$ac_optarg ;;
1025
1026  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027    ac_prev=dvidir ;;
1028  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1029    dvidir=$ac_optarg ;;
1030
1031  -enable-* | --enable-*)
1032    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033    # Reject names that are not valid shell variable names.
1034    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035      as_fn_error $? "invalid feature name: $ac_useropt"
1036    ac_useropt_orig=$ac_useropt
1037    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038    case $ac_user_opts in
1039      *"
1040"enable_$ac_useropt"
1041"*) ;;
1042      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043	 ac_unrecognized_sep=', ';;
1044    esac
1045    eval enable_$ac_useropt=\$ac_optarg ;;
1046
1047  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1048  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1049  | --exec | --exe | --ex)
1050    ac_prev=exec_prefix ;;
1051  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1052  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1053  | --exec=* | --exe=* | --ex=*)
1054    exec_prefix=$ac_optarg ;;
1055
1056  -gas | --gas | --ga | --g)
1057    # Obsolete; use --with-gas.
1058    with_gas=yes ;;
1059
1060  -help | --help | --hel | --he | -h)
1061    ac_init_help=long ;;
1062  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1063    ac_init_help=recursive ;;
1064  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1065    ac_init_help=short ;;
1066
1067  -host | --host | --hos | --ho)
1068    ac_prev=host_alias ;;
1069  -host=* | --host=* | --hos=* | --ho=*)
1070    host_alias=$ac_optarg ;;
1071
1072  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073    ac_prev=htmldir ;;
1074  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075  | --ht=*)
1076    htmldir=$ac_optarg ;;
1077
1078  -includedir | --includedir | --includedi | --included | --include \
1079  | --includ | --inclu | --incl | --inc)
1080    ac_prev=includedir ;;
1081  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1082  | --includ=* | --inclu=* | --incl=* | --inc=*)
1083    includedir=$ac_optarg ;;
1084
1085  -infodir | --infodir | --infodi | --infod | --info | --inf)
1086    ac_prev=infodir ;;
1087  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1088    infodir=$ac_optarg ;;
1089
1090  -libdir | --libdir | --libdi | --libd)
1091    ac_prev=libdir ;;
1092  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1093    libdir=$ac_optarg ;;
1094
1095  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1096  | --libexe | --libex | --libe)
1097    ac_prev=libexecdir ;;
1098  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1099  | --libexe=* | --libex=* | --libe=*)
1100    libexecdir=$ac_optarg ;;
1101
1102  -localedir | --localedir | --localedi | --localed | --locale)
1103    ac_prev=localedir ;;
1104  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1105    localedir=$ac_optarg ;;
1106
1107  -localstatedir | --localstatedir | --localstatedi | --localstated \
1108  | --localstate | --localstat | --localsta | --localst | --locals)
1109    ac_prev=localstatedir ;;
1110  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1111  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1112    localstatedir=$ac_optarg ;;
1113
1114  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115    ac_prev=mandir ;;
1116  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1117    mandir=$ac_optarg ;;
1118
1119  -nfp | --nfp | --nf)
1120    # Obsolete; use --without-fp.
1121    with_fp=no ;;
1122
1123  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1124  | --no-cr | --no-c | -n)
1125    no_create=yes ;;
1126
1127  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1128  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1129    no_recursion=yes ;;
1130
1131  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1132  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1133  | --oldin | --oldi | --old | --ol | --o)
1134    ac_prev=oldincludedir ;;
1135  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1136  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1137  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1138    oldincludedir=$ac_optarg ;;
1139
1140  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141    ac_prev=prefix ;;
1142  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1143    prefix=$ac_optarg ;;
1144
1145  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1146  | --program-pre | --program-pr | --program-p)
1147    ac_prev=program_prefix ;;
1148  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1149  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1150    program_prefix=$ac_optarg ;;
1151
1152  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1153  | --program-suf | --program-su | --program-s)
1154    ac_prev=program_suffix ;;
1155  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1156  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1157    program_suffix=$ac_optarg ;;
1158
1159  -program-transform-name | --program-transform-name \
1160  | --program-transform-nam | --program-transform-na \
1161  | --program-transform-n | --program-transform- \
1162  | --program-transform | --program-transfor \
1163  | --program-transfo | --program-transf \
1164  | --program-trans | --program-tran \
1165  | --progr-tra | --program-tr | --program-t)
1166    ac_prev=program_transform_name ;;
1167  -program-transform-name=* | --program-transform-name=* \
1168  | --program-transform-nam=* | --program-transform-na=* \
1169  | --program-transform-n=* | --program-transform-=* \
1170  | --program-transform=* | --program-transfor=* \
1171  | --program-transfo=* | --program-transf=* \
1172  | --program-trans=* | --program-tran=* \
1173  | --progr-tra=* | --program-tr=* | --program-t=*)
1174    program_transform_name=$ac_optarg ;;
1175
1176  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177    ac_prev=pdfdir ;;
1178  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1179    pdfdir=$ac_optarg ;;
1180
1181  -psdir | --psdir | --psdi | --psd | --ps)
1182    ac_prev=psdir ;;
1183  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1184    psdir=$ac_optarg ;;
1185
1186  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1187  | -silent | --silent | --silen | --sile | --sil)
1188    silent=yes ;;
1189
1190  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191    ac_prev=sbindir ;;
1192  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193  | --sbi=* | --sb=*)
1194    sbindir=$ac_optarg ;;
1195
1196  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1197  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1198  | --sharedst | --shareds | --shared | --share | --shar \
1199  | --sha | --sh)
1200    ac_prev=sharedstatedir ;;
1201  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1202  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1203  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204  | --sha=* | --sh=*)
1205    sharedstatedir=$ac_optarg ;;
1206
1207  -site | --site | --sit)
1208    ac_prev=site ;;
1209  -site=* | --site=* | --sit=*)
1210    site=$ac_optarg ;;
1211
1212  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213    ac_prev=srcdir ;;
1214  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1215    srcdir=$ac_optarg ;;
1216
1217  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1218  | --syscon | --sysco | --sysc | --sys | --sy)
1219    ac_prev=sysconfdir ;;
1220  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1221  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1222    sysconfdir=$ac_optarg ;;
1223
1224  -target | --target | --targe | --targ | --tar | --ta | --t)
1225    ac_prev=target_alias ;;
1226  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1227    target_alias=$ac_optarg ;;
1228
1229  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1230    verbose=yes ;;
1231
1232  -version | --version | --versio | --versi | --vers | -V)
1233    ac_init_version=: ;;
1234
1235  -with-* | --with-*)
1236    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237    # Reject names that are not valid shell variable names.
1238    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1239      as_fn_error $? "invalid package name: $ac_useropt"
1240    ac_useropt_orig=$ac_useropt
1241    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242    case $ac_user_opts in
1243      *"
1244"with_$ac_useropt"
1245"*) ;;
1246      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247	 ac_unrecognized_sep=', ';;
1248    esac
1249    eval with_$ac_useropt=\$ac_optarg ;;
1250
1251  -without-* | --without-*)
1252    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253    # Reject names that are not valid shell variable names.
1254    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255      as_fn_error $? "invalid package name: $ac_useropt"
1256    ac_useropt_orig=$ac_useropt
1257    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258    case $ac_user_opts in
1259      *"
1260"with_$ac_useropt"
1261"*) ;;
1262      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263	 ac_unrecognized_sep=', ';;
1264    esac
1265    eval with_$ac_useropt=no ;;
1266
1267  --x)
1268    # Obsolete; use --with-x.
1269    with_x=yes ;;
1270
1271  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1272  | --x-incl | --x-inc | --x-in | --x-i)
1273    ac_prev=x_includes ;;
1274  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1275  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1276    x_includes=$ac_optarg ;;
1277
1278  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1279  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1280    ac_prev=x_libraries ;;
1281  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1282  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1283    x_libraries=$ac_optarg ;;
1284
1285  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1286Try \`$0 --help' for more information"
1287    ;;
1288
1289  *=*)
1290    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1291    # Reject names that are not valid shell variable names.
1292    case $ac_envvar in #(
1293      '' | [0-9]* | *[!_$as_cr_alnum]* )
1294      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295    esac
1296    eval $ac_envvar=\$ac_optarg
1297    export $ac_envvar ;;
1298
1299  *)
1300    # FIXME: should be removed in autoconf 3.0.
1301    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1303      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1305    ;;
1306
1307  esac
1308done
1309
1310if test -n "$ac_prev"; then
1311  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1312  as_fn_error $? "missing argument to $ac_option"
1313fi
1314
1315if test -n "$ac_unrecognized_opts"; then
1316  case $enable_option_checking in
1317    no) ;;
1318    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1319    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1320  esac
1321fi
1322
1323# Check all directory arguments for consistency.
1324for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325		datadir sysconfdir sharedstatedir localstatedir includedir \
1326		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327		libdir localedir mandir
1328do
1329  eval ac_val=\$$ac_var
1330  # Remove trailing slashes.
1331  case $ac_val in
1332    */ )
1333      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334      eval $ac_var=\$ac_val;;
1335  esac
1336  # Be sure to have absolute directory names.
1337  case $ac_val in
1338    [\\/$]* | ?:[\\/]* )  continue;;
1339    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340  esac
1341  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1342done
1343
1344# There might be people who depend on the old broken behavior: `$host'
1345# used to hold the argument of --host etc.
1346# FIXME: To remove some day.
1347build=$build_alias
1348host=$host_alias
1349target=$target_alias
1350
1351# FIXME: To remove some day.
1352if test "x$host_alias" != x; then
1353  if test "x$build_alias" = x; then
1354    cross_compiling=maybe
1355  elif test "x$build_alias" != "x$host_alias"; then
1356    cross_compiling=yes
1357  fi
1358fi
1359
1360ac_tool_prefix=
1361test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362
1363test "$silent" = yes && exec 6>/dev/null
1364
1365
1366ac_pwd=`pwd` && test -n "$ac_pwd" &&
1367ac_ls_di=`ls -di .` &&
1368ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1369  as_fn_error $? "working directory cannot be determined"
1370test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371  as_fn_error $? "pwd does not report name of working directory"
1372
1373
1374# Find the source files, if location was not specified.
1375if test -z "$srcdir"; then
1376  ac_srcdir_defaulted=yes
1377  # Try the directory containing this script, then the parent directory.
1378  ac_confdir=`$as_dirname -- "$as_myself" ||
1379$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380	 X"$as_myself" : 'X\(//\)[^/]' \| \
1381	 X"$as_myself" : 'X\(//\)$' \| \
1382	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383$as_echo X"$as_myself" |
1384    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1385	    s//\1/
1386	    q
1387	  }
1388	  /^X\(\/\/\)[^/].*/{
1389	    s//\1/
1390	    q
1391	  }
1392	  /^X\(\/\/\)$/{
1393	    s//\1/
1394	    q
1395	  }
1396	  /^X\(\/\).*/{
1397	    s//\1/
1398	    q
1399	  }
1400	  s/.*/./; q'`
1401  srcdir=$ac_confdir
1402  if test ! -r "$srcdir/$ac_unique_file"; then
1403    srcdir=..
1404  fi
1405else
1406  ac_srcdir_defaulted=no
1407fi
1408if test ! -r "$srcdir/$ac_unique_file"; then
1409  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1410  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411fi
1412ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413ac_abs_confdir=`(
1414	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1415	pwd)`
1416# When building in place, set srcdir=.
1417if test "$ac_abs_confdir" = "$ac_pwd"; then
1418  srcdir=.
1419fi
1420# Remove unnecessary trailing slashes from srcdir.
1421# Double slashes in file names in object file debugging info
1422# mess up M-x gdb in Emacs.
1423case $srcdir in
1424*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1425esac
1426for ac_var in $ac_precious_vars; do
1427  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1428  eval ac_env_${ac_var}_value=\$${ac_var}
1429  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1430  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1431done
1432
1433#
1434# Report the --help message.
1435#
1436if test "$ac_init_help" = "long"; then
1437  # Omit some internal or obsolete options to make the list less imposing.
1438  # This message is too long to be a string in the A/UX 3.1 sh.
1439  cat <<_ACEOF
1440\`configure' configures grib_api   to adapt to many kinds of systems.
1441
1442Usage: $0 [OPTION]... [VAR=VALUE]...
1443
1444To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445VAR=VALUE.  See below for descriptions of some of the useful variables.
1446
1447Defaults for the options are specified in brackets.
1448
1449Configuration:
1450  -h, --help              display this help and exit
1451      --help=short        display options specific to this package
1452      --help=recursive    display the short help of all the included packages
1453  -V, --version           display version information and exit
1454  -q, --quiet, --silent   do not print \`checking ...' messages
1455      --cache-file=FILE   cache test results in FILE [disabled]
1456  -C, --config-cache      alias for \`--cache-file=config.cache'
1457  -n, --no-create         do not create output files
1458      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1459
1460Installation directories:
1461  --prefix=PREFIX         install architecture-independent files in PREFIX
1462                          [$ac_default_prefix]
1463  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1464                          [PREFIX]
1465
1466By default, \`make install' will install all the files in
1467\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1468an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469for instance \`--prefix=\$HOME'.
1470
1471For better control, use the options below.
1472
1473Fine tuning of the installation directories:
1474  --bindir=DIR            user executables [EPREFIX/bin]
1475  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1476  --libexecdir=DIR        program executables [EPREFIX/libexec]
1477  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1478  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1479  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1480  --libdir=DIR            object code libraries [EPREFIX/lib]
1481  --includedir=DIR        C header files [PREFIX/include]
1482  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1483  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1484  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1485  --infodir=DIR           info documentation [DATAROOTDIR/info]
1486  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1487  --mandir=DIR            man documentation [DATAROOTDIR/man]
1488  --docdir=DIR            documentation root [DATAROOTDIR/doc/grib_api]
1489  --htmldir=DIR           html documentation [DOCDIR]
1490  --dvidir=DIR            dvi documentation [DOCDIR]
1491  --pdfdir=DIR            pdf documentation [DOCDIR]
1492  --psdir=DIR             ps documentation [DOCDIR]
1493_ACEOF
1494
1495  cat <<\_ACEOF
1496
1497Program names:
1498  --program-prefix=PREFIX            prepend PREFIX to installed program names
1499  --program-suffix=SUFFIX            append SUFFIX to installed program names
1500  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1501
1502System types:
1503  --build=BUILD     configure for building on BUILD [guessed]
1504  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1505_ACEOF
1506fi
1507
1508if test -n "$ac_init_help"; then
1509  case $ac_init_help in
1510     short | recursive ) echo "Configuration of grib_api  :";;
1511   esac
1512  cat <<\_ACEOF
1513
1514Optional Features:
1515  --disable-option-checking  ignore unrecognized --enable/--with options
1516  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1517  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1518  --enable-shared[=PKGS]  build shared libraries [default=yes]
1519  --enable-static[=PKGS]  build static libraries [default=yes]
1520  --enable-fast-install[=PKGS]
1521                          optimize for fast installation [default=yes]
1522  --disable-libtool-lock  avoid locking (might break parallel builds)
1523  --enable-dependency-tracking
1524                          do not reject slow dependency extractors
1525  --disable-dependency-tracking
1526                          speeds up one-time build
1527  --enable-silent-rules   less verbose build output (undo: "make V=1")
1528  --disable-silent-rules  verbose build output (undo: "make V=0")
1529  --enable-pthread        enable POSIX threads [by default disabled]
1530  --enable-ibmpower67_opt enable IBM POWER 6/7 optimisations [by default
1531                          disabled]
1532  --disable-ieee-native   disable ieee native packing
1533  --enable-align-memory   enable memory alignment [by default disabled]
1534  --enable-vector         enable vectorised code [by default disabled]
1535  --enable-memory-management
1536                          enable memory [by default disabled]
1537  --enable-development    enable development configuration [by default
1538                          disabled]
1539  --disable-largefile     omit support for large files
1540  --disable-fortran       disable fortran interface [by default enabled]
1541  --enable-timer          enable timer [by default disabled]
1542  --enable-omp-packing    enable OpenMP multithreaded packing [by default
1543                          disabled]
1544  --disable-jpeg          disable jpeg 2000 for grib 2 decoding/encoding [by
1545                          default enabled]
1546  --enable-install-system-perl
1547                          perl modules will install in the standard perl
1548                          installation
1549  --enable-python         Enable the Python interface in the build [by default
1550                          disabled]
1551  --disable-numpy         Disable NumPy as the data handling package for the
1552                          Python interface [by default enabled]
1553  --enable-werror-always  enable -Werror despite compiler version
1554
1555Optional Packages:
1556  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1557  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1558  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1559                          both]
1560  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1561  --with-sysroot=DIR Search for dependent libraries within DIR
1562                        (or the compiler's sysroot if not specified).
1563  --with-rpm-release=NUMBER       The rpms will use this release number  (defaults to 1)
1564  --with-ifs-samples=ifs-samples-dir
1565                          ifs_samples will be installed in ifs-samples-dir
1566  --with-emos=EMOS        use emos for tests
1567  --with-fortranlibdir=FORTRANDIR
1568                          fortran libraries directory
1569  --with-fortranlibs=FORTRANLIBS
1570                          fortran libraries to link from C
1571  --with-netcdf=NETCDF    enable netcdf encoding/decoding using netcdf library
1572                          in NETCDF
1573  --with-jasper=JASPER    use specified jasper installation directory
1574  --with-openjpeg=OPENJPEG
1575                          use specified openjpeg installation directory
1576  --with-aec=DIR          use specified libaec installation directory
1577  --with-png-support      add support for png decoding/encoding
1578  --with-perl=PERL        use specified Perl binary to configure Perl grib_api
1579  --with-perl-options=OPTIONS
1580                          options to pass on command-line when generating Perl
1581                          grib_api's Makefile from Makefile.PL
1582
1583Some influential environment variables:
1584  CC          C compiler command
1585  CFLAGS      C compiler flags
1586  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1587              nonstandard directory <lib dir>
1588  LIBS        libraries to pass to the linker, e.g. -l<library>
1589  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590              you have headers in a nonstandard directory <include dir>
1591  CPP         C preprocessor
1592  YACC        The `Yet Another Compiler Compiler' implementation to use.
1593              Defaults to the first program found out of: `bison -y', `byacc',
1594              `yacc'.
1595  YFLAGS      The list of arguments that will be passed by default to $YACC.
1596              This script will default YFLAGS to the empty string to avoid a
1597              default value of `-d' given by some make applications.
1598  F77         Fortran 77 compiler command
1599  FFLAGS      Fortran 77 compiler flags
1600  FC          Fortran compiler command
1601  FCFLAGS     Fortran compiler flags
1602  PYTHON      the Python interpreter
1603  PYTHON_INCLUDES
1604              Include flags for python
1605  PYTHON_LDFLAGS
1606              Link flags for python
1607  PYTHON_CFLAGS
1608              C flags for python
1609  PYTHON_LIBS Libraries for python
1610  PYTHON_CONFIG
1611              Path to python-config
1612
1613Use these variables to override the choices made by `configure' or to help
1614it to find libraries and programs with nonstandard names/locations.
1615
1616Report bugs to <Software.Support@ecmwf.int>.
1617_ACEOF
1618ac_status=$?
1619fi
1620
1621if test "$ac_init_help" = "recursive"; then
1622  # If there are subdirs, report their specific --help.
1623  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624    test -d "$ac_dir" ||
1625      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626      continue
1627    ac_builddir=.
1628
1629case "$ac_dir" in
1630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631*)
1632  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633  # A ".." for each directory in $ac_dir_suffix.
1634  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635  case $ac_top_builddir_sub in
1636  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638  esac ;;
1639esac
1640ac_abs_top_builddir=$ac_pwd
1641ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642# for backward compatibility:
1643ac_top_builddir=$ac_top_build_prefix
1644
1645case $srcdir in
1646  .)  # We are building in place.
1647    ac_srcdir=.
1648    ac_top_srcdir=$ac_top_builddir_sub
1649    ac_abs_top_srcdir=$ac_pwd ;;
1650  [\\/]* | ?:[\\/]* )  # Absolute name.
1651    ac_srcdir=$srcdir$ac_dir_suffix;
1652    ac_top_srcdir=$srcdir
1653    ac_abs_top_srcdir=$srcdir ;;
1654  *) # Relative name.
1655    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656    ac_top_srcdir=$ac_top_build_prefix$srcdir
1657    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658esac
1659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661    cd "$ac_dir" || { ac_status=$?; continue; }
1662    # Check for guested configure.
1663    if test -f "$ac_srcdir/configure.gnu"; then
1664      echo &&
1665      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666    elif test -f "$ac_srcdir/configure"; then
1667      echo &&
1668      $SHELL "$ac_srcdir/configure" --help=recursive
1669    else
1670      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671    fi || ac_status=$?
1672    cd "$ac_pwd" || { ac_status=$?; break; }
1673  done
1674fi
1675
1676test -n "$ac_init_help" && exit $ac_status
1677if $ac_init_version; then
1678  cat <<\_ACEOF
1679grib_api configure
1680generated by GNU Autoconf 2.69
1681
1682Copyright (C) 2012 Free Software Foundation, Inc.
1683This configure script is free software; the Free Software Foundation
1684gives unlimited permission to copy, distribute and modify it.
1685_ACEOF
1686  exit
1687fi
1688
1689## ------------------------ ##
1690## Autoconf initialization. ##
1691## ------------------------ ##
1692
1693# ac_fn_c_try_compile LINENO
1694# --------------------------
1695# Try to compile conftest.$ac_ext, and return whether this succeeded.
1696ac_fn_c_try_compile ()
1697{
1698  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699  rm -f conftest.$ac_objext
1700  if { { ac_try="$ac_compile"
1701case "(($ac_try" in
1702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703  *) ac_try_echo=$ac_try;;
1704esac
1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706$as_echo "$ac_try_echo"; } >&5
1707  (eval "$ac_compile") 2>conftest.err
1708  ac_status=$?
1709  if test -s conftest.err; then
1710    grep -v '^ *+' conftest.err >conftest.er1
1711    cat conftest.er1 >&5
1712    mv -f conftest.er1 conftest.err
1713  fi
1714  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715  test $ac_status = 0; } && {
1716	 test -z "$ac_c_werror_flag" ||
1717	 test ! -s conftest.err
1718       } && test -s conftest.$ac_objext; then :
1719  ac_retval=0
1720else
1721  $as_echo "$as_me: failed program was:" >&5
1722sed 's/^/| /' conftest.$ac_ext >&5
1723
1724	ac_retval=1
1725fi
1726  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727  as_fn_set_status $ac_retval
1728
1729} # ac_fn_c_try_compile
1730
1731# ac_fn_c_try_link LINENO
1732# -----------------------
1733# Try to link conftest.$ac_ext, and return whether this succeeded.
1734ac_fn_c_try_link ()
1735{
1736  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737  rm -f conftest.$ac_objext conftest$ac_exeext
1738  if { { ac_try="$ac_link"
1739case "(($ac_try" in
1740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741  *) ac_try_echo=$ac_try;;
1742esac
1743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744$as_echo "$ac_try_echo"; } >&5
1745  (eval "$ac_link") 2>conftest.err
1746  ac_status=$?
1747  if test -s conftest.err; then
1748    grep -v '^ *+' conftest.err >conftest.er1
1749    cat conftest.er1 >&5
1750    mv -f conftest.er1 conftest.err
1751  fi
1752  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753  test $ac_status = 0; } && {
1754	 test -z "$ac_c_werror_flag" ||
1755	 test ! -s conftest.err
1756       } && test -s conftest$ac_exeext && {
1757	 test "$cross_compiling" = yes ||
1758	 test -x conftest$ac_exeext
1759       }; then :
1760  ac_retval=0
1761else
1762  $as_echo "$as_me: failed program was:" >&5
1763sed 's/^/| /' conftest.$ac_ext >&5
1764
1765	ac_retval=1
1766fi
1767  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769  # interfere with the next link command; also delete a directory that is
1770  # left behind by Apple's compiler.  We do this before executing the actions.
1771  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773  as_fn_set_status $ac_retval
1774
1775} # ac_fn_c_try_link
1776
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
1782{
1783  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
1786if eval \${$3+:} false; then :
1787  $as_echo_n "(cached) " >&6
1788else
1789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h.  */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795  eval "$3=yes"
1796else
1797  eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806} # ac_fn_c_check_header_compile
1807
1808# ac_fn_c_try_cpp LINENO
1809# ----------------------
1810# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_cpp ()
1812{
1813  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814  if { { ac_try="$ac_cpp conftest.$ac_ext"
1815case "(($ac_try" in
1816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817  *) ac_try_echo=$ac_try;;
1818esac
1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820$as_echo "$ac_try_echo"; } >&5
1821  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1822  ac_status=$?
1823  if test -s conftest.err; then
1824    grep -v '^ *+' conftest.err >conftest.er1
1825    cat conftest.er1 >&5
1826    mv -f conftest.er1 conftest.err
1827  fi
1828  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829  test $ac_status = 0; } > conftest.i && {
1830	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1831	 test ! -s conftest.err
1832       }; then :
1833  ac_retval=0
1834else
1835  $as_echo "$as_me: failed program was:" >&5
1836sed 's/^/| /' conftest.$ac_ext >&5
1837
1838    ac_retval=1
1839fi
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_cpp
1844
1845# ac_fn_c_try_run LINENO
1846# ----------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848# that executables *can* be run.
1849ac_fn_c_try_run ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855  *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859  (eval "$ac_link") 2>&5
1860  ac_status=$?
1861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863  { { case "(($ac_try" in
1864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865  *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869  (eval "$ac_try") 2>&5
1870  ac_status=$?
1871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872  test $ac_status = 0; }; }; then :
1873  ac_retval=0
1874else
1875  $as_echo "$as_me: program exited with status $ac_status" >&5
1876       $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879       ac_retval=$ac_status
1880fi
1881  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1883  as_fn_set_status $ac_retval
1884
1885} # ac_fn_c_try_run
1886
1887# ac_fn_c_check_func LINENO FUNC VAR
1888# ----------------------------------
1889# Tests whether FUNC exists, setting the cache variable VAR accordingly
1890ac_fn_c_check_func ()
1891{
1892  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval \${$3+:} false; then :
1896  $as_echo_n "(cached) " >&6
1897else
1898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h.  */
1900/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1901   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1902#define $2 innocuous_$2
1903
1904/* System header to define __stub macros and hopefully few prototypes,
1905    which can conflict with char $2 (); below.
1906    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1907    <limits.h> exists even on freestanding compilers.  */
1908
1909#ifdef __STDC__
1910# include <limits.h>
1911#else
1912# include <assert.h>
1913#endif
1914
1915#undef $2
1916
1917/* Override any GCC internal prototype to avoid an error.
1918   Use char because int might match the return type of a GCC
1919   builtin and then its argument prototype would still apply.  */
1920#ifdef __cplusplus
1921extern "C"
1922#endif
1923char $2 ();
1924/* The GNU C library defines this for functions which it implements
1925    to always fail with ENOSYS.  Some functions are actually named
1926    something starting with __ and the normal name is an alias.  */
1927#if defined __stub_$2 || defined __stub___$2
1928choke me
1929#endif
1930
1931int
1932main ()
1933{
1934return $2 ();
1935  ;
1936  return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_link "$LINENO"; then :
1940  eval "$3=yes"
1941else
1942  eval "$3=no"
1943fi
1944rm -f core conftest.err conftest.$ac_objext \
1945    conftest$ac_exeext conftest.$ac_ext
1946fi
1947eval ac_res=\$$3
1948	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1949$as_echo "$ac_res" >&6; }
1950  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951
1952} # ac_fn_c_check_func
1953
1954# ac_fn_f77_try_compile LINENO
1955# ----------------------------
1956# Try to compile conftest.$ac_ext, and return whether this succeeded.
1957ac_fn_f77_try_compile ()
1958{
1959  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960  rm -f conftest.$ac_objext
1961  if { { ac_try="$ac_compile"
1962case "(($ac_try" in
1963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964  *) ac_try_echo=$ac_try;;
1965esac
1966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967$as_echo "$ac_try_echo"; } >&5
1968  (eval "$ac_compile") 2>conftest.err
1969  ac_status=$?
1970  if test -s conftest.err; then
1971    grep -v '^ *+' conftest.err >conftest.er1
1972    cat conftest.er1 >&5
1973    mv -f conftest.er1 conftest.err
1974  fi
1975  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976  test $ac_status = 0; } && {
1977	 test -z "$ac_f77_werror_flag" ||
1978	 test ! -s conftest.err
1979       } && test -s conftest.$ac_objext; then :
1980  ac_retval=0
1981else
1982  $as_echo "$as_me: failed program was:" >&5
1983sed 's/^/| /' conftest.$ac_ext >&5
1984
1985	ac_retval=1
1986fi
1987  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988  as_fn_set_status $ac_retval
1989
1990} # ac_fn_f77_try_compile
1991
1992# ac_fn_f77_try_link LINENO
1993# -------------------------
1994# Try to link conftest.$ac_ext, and return whether this succeeded.
1995ac_fn_f77_try_link ()
1996{
1997  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998  rm -f conftest.$ac_objext conftest$ac_exeext
1999  if { { ac_try="$ac_link"
2000case "(($ac_try" in
2001  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002  *) ac_try_echo=$ac_try;;
2003esac
2004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005$as_echo "$ac_try_echo"; } >&5
2006  (eval "$ac_link") 2>conftest.err
2007  ac_status=$?
2008  if test -s conftest.err; then
2009    grep -v '^ *+' conftest.err >conftest.er1
2010    cat conftest.er1 >&5
2011    mv -f conftest.er1 conftest.err
2012  fi
2013  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014  test $ac_status = 0; } && {
2015	 test -z "$ac_f77_werror_flag" ||
2016	 test ! -s conftest.err
2017       } && test -s conftest$ac_exeext && {
2018	 test "$cross_compiling" = yes ||
2019	 test -x conftest$ac_exeext
2020       }; then :
2021  ac_retval=0
2022else
2023  $as_echo "$as_me: failed program was:" >&5
2024sed 's/^/| /' conftest.$ac_ext >&5
2025
2026	ac_retval=1
2027fi
2028  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2029  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2030  # interfere with the next link command; also delete a directory that is
2031  # left behind by Apple's compiler.  We do this before executing the actions.
2032  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2033  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034  as_fn_set_status $ac_retval
2035
2036} # ac_fn_f77_try_link
2037
2038# ac_fn_fc_try_compile LINENO
2039# ---------------------------
2040# Try to compile conftest.$ac_ext, and return whether this succeeded.
2041ac_fn_fc_try_compile ()
2042{
2043  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044  rm -f conftest.$ac_objext
2045  if { { ac_try="$ac_compile"
2046case "(($ac_try" in
2047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048  *) ac_try_echo=$ac_try;;
2049esac
2050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051$as_echo "$ac_try_echo"; } >&5
2052  (eval "$ac_compile") 2>conftest.err
2053  ac_status=$?
2054  if test -s conftest.err; then
2055    grep -v '^ *+' conftest.err >conftest.er1
2056    cat conftest.er1 >&5
2057    mv -f conftest.er1 conftest.err
2058  fi
2059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060  test $ac_status = 0; } && {
2061	 test -z "$ac_fc_werror_flag" ||
2062	 test ! -s conftest.err
2063       } && test -s conftest.$ac_objext; then :
2064  ac_retval=0
2065else
2066  $as_echo "$as_me: failed program was:" >&5
2067sed 's/^/| /' conftest.$ac_ext >&5
2068
2069	ac_retval=1
2070fi
2071  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072  as_fn_set_status $ac_retval
2073
2074} # ac_fn_fc_try_compile
2075
2076# ac_fn_fc_try_link LINENO
2077# ------------------------
2078# Try to link conftest.$ac_ext, and return whether this succeeded.
2079ac_fn_fc_try_link ()
2080{
2081  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082  rm -f conftest.$ac_objext conftest$ac_exeext
2083  if { { ac_try="$ac_link"
2084case "(($ac_try" in
2085  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086  *) ac_try_echo=$ac_try;;
2087esac
2088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2089$as_echo "$ac_try_echo"; } >&5
2090  (eval "$ac_link") 2>conftest.err
2091  ac_status=$?
2092  if test -s conftest.err; then
2093    grep -v '^ *+' conftest.err >conftest.er1
2094    cat conftest.er1 >&5
2095    mv -f conftest.er1 conftest.err
2096  fi
2097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2098  test $ac_status = 0; } && {
2099	 test -z "$ac_fc_werror_flag" ||
2100	 test ! -s conftest.err
2101       } && test -s conftest$ac_exeext && {
2102	 test "$cross_compiling" = yes ||
2103	 test -x conftest$ac_exeext
2104       }; then :
2105  ac_retval=0
2106else
2107  $as_echo "$as_me: failed program was:" >&5
2108sed 's/^/| /' conftest.$ac_ext >&5
2109
2110	ac_retval=1
2111fi
2112  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2113  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2114  # interfere with the next link command; also delete a directory that is
2115  # left behind by Apple's compiler.  We do this before executing the actions.
2116  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2117  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2118  as_fn_set_status $ac_retval
2119
2120} # ac_fn_fc_try_link
2121
2122# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2123# -------------------------------------------------------
2124# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2125# the include files in INCLUDES and setting the cache variable VAR
2126# accordingly.
2127ac_fn_c_check_header_mongrel ()
2128{
2129  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130  if eval \${$3+:} false; then :
2131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132$as_echo_n "checking for $2... " >&6; }
2133if eval \${$3+:} false; then :
2134  $as_echo_n "(cached) " >&6
2135fi
2136eval ac_res=\$$3
2137	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138$as_echo "$ac_res" >&6; }
2139else
2140  # Is the header compilable?
2141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2142$as_echo_n "checking $2 usability... " >&6; }
2143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h.  */
2145$4
2146#include <$2>
2147_ACEOF
2148if ac_fn_c_try_compile "$LINENO"; then :
2149  ac_header_compiler=yes
2150else
2151  ac_header_compiler=no
2152fi
2153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2155$as_echo "$ac_header_compiler" >&6; }
2156
2157# Is the header present?
2158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2159$as_echo_n "checking $2 presence... " >&6; }
2160cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161/* end confdefs.h.  */
2162#include <$2>
2163_ACEOF
2164if ac_fn_c_try_cpp "$LINENO"; then :
2165  ac_header_preproc=yes
2166else
2167  ac_header_preproc=no
2168fi
2169rm -f conftest.err conftest.i conftest.$ac_ext
2170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2171$as_echo "$ac_header_preproc" >&6; }
2172
2173# So?  What about this header?
2174case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2175  yes:no: )
2176    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2177$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2178    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2179$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2180    ;;
2181  no:yes:* )
2182    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2183$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2184    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2185$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2186    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2187$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2188    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2189$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2190    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2191$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2192( $as_echo "## ----------------------------------------- ##
2193## Report this to Software.Support@ecmwf.int ##
2194## ----------------------------------------- ##"
2195     ) | sed "s/^/$as_me: WARNING:     /" >&2
2196    ;;
2197esac
2198  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2199$as_echo_n "checking for $2... " >&6; }
2200if eval \${$3+:} false; then :
2201  $as_echo_n "(cached) " >&6
2202else
2203  eval "$3=\$ac_header_compiler"
2204fi
2205eval ac_res=\$$3
2206	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207$as_echo "$ac_res" >&6; }
2208fi
2209  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2210
2211} # ac_fn_c_check_header_mongrel
2212
2213# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2214# -------------------------------------------
2215# Tests whether TYPE exists after having included INCLUDES, setting cache
2216# variable VAR accordingly.
2217ac_fn_c_check_type ()
2218{
2219  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2221$as_echo_n "checking for $2... " >&6; }
2222if eval \${$3+:} false; then :
2223  $as_echo_n "(cached) " >&6
2224else
2225  eval "$3=no"
2226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2227/* end confdefs.h.  */
2228$4
2229int
2230main ()
2231{
2232if (sizeof ($2))
2233	 return 0;
2234  ;
2235  return 0;
2236}
2237_ACEOF
2238if ac_fn_c_try_compile "$LINENO"; then :
2239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h.  */
2241$4
2242int
2243main ()
2244{
2245if (sizeof (($2)))
2246	    return 0;
2247  ;
2248  return 0;
2249}
2250_ACEOF
2251if ac_fn_c_try_compile "$LINENO"; then :
2252
2253else
2254  eval "$3=yes"
2255fi
2256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257fi
2258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259fi
2260eval ac_res=\$$3
2261	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2262$as_echo "$ac_res" >&6; }
2263  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2264
2265} # ac_fn_c_check_type
2266cat >config.log <<_ACEOF
2267This file contains any messages produced by compilers while
2268running configure, to aid debugging if configure makes a mistake.
2269
2270It was created by grib_api $as_me  , which was
2271generated by GNU Autoconf 2.69.  Invocation command line was
2272
2273  $ $0 $@
2274
2275_ACEOF
2276exec 5>>config.log
2277{
2278cat <<_ASUNAME
2279## --------- ##
2280## Platform. ##
2281## --------- ##
2282
2283hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2284uname -m = `(uname -m) 2>/dev/null || echo unknown`
2285uname -r = `(uname -r) 2>/dev/null || echo unknown`
2286uname -s = `(uname -s) 2>/dev/null || echo unknown`
2287uname -v = `(uname -v) 2>/dev/null || echo unknown`
2288
2289/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2290/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2291
2292/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2293/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2294/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2295/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2296/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2297/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2298/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2299
2300_ASUNAME
2301
2302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2303for as_dir in $PATH
2304do
2305  IFS=$as_save_IFS
2306  test -z "$as_dir" && as_dir=.
2307    $as_echo "PATH: $as_dir"
2308  done
2309IFS=$as_save_IFS
2310
2311} >&5
2312
2313cat >&5 <<_ACEOF
2314
2315
2316## ----------- ##
2317## Core tests. ##
2318## ----------- ##
2319
2320_ACEOF
2321
2322
2323# Keep a trace of the command line.
2324# Strip out --no-create and --no-recursion so they do not pile up.
2325# Strip out --silent because we don't want to record it for future runs.
2326# Also quote any args containing shell meta-characters.
2327# Make two passes to allow for proper duplicate-argument suppression.
2328ac_configure_args=
2329ac_configure_args0=
2330ac_configure_args1=
2331ac_must_keep_next=false
2332for ac_pass in 1 2
2333do
2334  for ac_arg
2335  do
2336    case $ac_arg in
2337    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2338    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2339    | -silent | --silent | --silen | --sile | --sil)
2340      continue ;;
2341    *\'*)
2342      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2343    esac
2344    case $ac_pass in
2345    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2346    2)
2347      as_fn_append ac_configure_args1 " '$ac_arg'"
2348      if test $ac_must_keep_next = true; then
2349	ac_must_keep_next=false # Got value, back to normal.
2350      else
2351	case $ac_arg in
2352	  *=* | --config-cache | -C | -disable-* | --disable-* \
2353	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2354	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2355	  | -with-* | --with-* | -without-* | --without-* | --x)
2356	    case "$ac_configure_args0 " in
2357	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2358	    esac
2359	    ;;
2360	  -* ) ac_must_keep_next=true ;;
2361	esac
2362      fi
2363      as_fn_append ac_configure_args " '$ac_arg'"
2364      ;;
2365    esac
2366  done
2367done
2368{ ac_configure_args0=; unset ac_configure_args0;}
2369{ ac_configure_args1=; unset ac_configure_args1;}
2370
2371# When interrupted or exit'd, cleanup temporary files, and complete
2372# config.log.  We remove comments because anyway the quotes in there
2373# would cause problems or look ugly.
2374# WARNING: Use '\'' to represent an apostrophe within the trap.
2375# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2376trap 'exit_status=$?
2377  # Save into config.log some information that might help in debugging.
2378  {
2379    echo
2380
2381    $as_echo "## ---------------- ##
2382## Cache variables. ##
2383## ---------------- ##"
2384    echo
2385    # The following way of writing the cache mishandles newlines in values,
2386(
2387  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2388    eval ac_val=\$$ac_var
2389    case $ac_val in #(
2390    *${as_nl}*)
2391      case $ac_var in #(
2392      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2393$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2394      esac
2395      case $ac_var in #(
2396      _ | IFS | as_nl) ;; #(
2397      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2398      *) { eval $ac_var=; unset $ac_var;} ;;
2399      esac ;;
2400    esac
2401  done
2402  (set) 2>&1 |
2403    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2404    *${as_nl}ac_space=\ *)
2405      sed -n \
2406	"s/'\''/'\''\\\\'\'''\''/g;
2407	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2408      ;; #(
2409    *)
2410      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2411      ;;
2412    esac |
2413    sort
2414)
2415    echo
2416
2417    $as_echo "## ----------------- ##
2418## Output variables. ##
2419## ----------------- ##"
2420    echo
2421    for ac_var in $ac_subst_vars
2422    do
2423      eval ac_val=\$$ac_var
2424      case $ac_val in
2425      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426      esac
2427      $as_echo "$ac_var='\''$ac_val'\''"
2428    done | sort
2429    echo
2430
2431    if test -n "$ac_subst_files"; then
2432      $as_echo "## ------------------- ##
2433## File substitutions. ##
2434## ------------------- ##"
2435      echo
2436      for ac_var in $ac_subst_files
2437      do
2438	eval ac_val=\$$ac_var
2439	case $ac_val in
2440	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2441	esac
2442	$as_echo "$ac_var='\''$ac_val'\''"
2443      done | sort
2444      echo
2445    fi
2446
2447    if test -s confdefs.h; then
2448      $as_echo "## ----------- ##
2449## confdefs.h. ##
2450## ----------- ##"
2451      echo
2452      cat confdefs.h
2453      echo
2454    fi
2455    test "$ac_signal" != 0 &&
2456      $as_echo "$as_me: caught signal $ac_signal"
2457    $as_echo "$as_me: exit $exit_status"
2458  } >&5
2459  rm -f core *.core core.conftest.* &&
2460    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2461    exit $exit_status
2462' 0
2463for ac_signal in 1 2 13 15; do
2464  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2465done
2466ac_signal=0
2467
2468# confdefs.h avoids OS command line length limits that DEFS can exceed.
2469rm -f -r conftest* confdefs.h
2470
2471$as_echo "/* confdefs.h */" > confdefs.h
2472
2473# Predefined preprocessor variables.
2474
2475cat >>confdefs.h <<_ACEOF
2476#define PACKAGE_NAME "$PACKAGE_NAME"
2477_ACEOF
2478
2479cat >>confdefs.h <<_ACEOF
2480#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2481_ACEOF
2482
2483cat >>confdefs.h <<_ACEOF
2484#define PACKAGE_VERSION "$PACKAGE_VERSION"
2485_ACEOF
2486
2487cat >>confdefs.h <<_ACEOF
2488#define PACKAGE_STRING "$PACKAGE_STRING"
2489_ACEOF
2490
2491cat >>confdefs.h <<_ACEOF
2492#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2493_ACEOF
2494
2495cat >>confdefs.h <<_ACEOF
2496#define PACKAGE_URL "$PACKAGE_URL"
2497_ACEOF
2498
2499
2500# Let the site file select an alternate cache file if it wants to.
2501# Prefer an explicitly selected file to automatically selected ones.
2502ac_site_file1=NONE
2503ac_site_file2=NONE
2504if test -n "$CONFIG_SITE"; then
2505  # We do not want a PATH search for config.site.
2506  case $CONFIG_SITE in #((
2507    -*)  ac_site_file1=./$CONFIG_SITE;;
2508    */*) ac_site_file1=$CONFIG_SITE;;
2509    *)   ac_site_file1=./$CONFIG_SITE;;
2510  esac
2511elif test "x$prefix" != xNONE; then
2512  ac_site_file1=$prefix/share/config.site
2513  ac_site_file2=$prefix/etc/config.site
2514else
2515  ac_site_file1=$ac_default_prefix/share/config.site
2516  ac_site_file2=$ac_default_prefix/etc/config.site
2517fi
2518for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2519do
2520  test "x$ac_site_file" = xNONE && continue
2521  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2522    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2523$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2524    sed 's/^/| /' "$ac_site_file" >&5
2525    . "$ac_site_file" \
2526      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2528as_fn_error $? "failed to load site script $ac_site_file
2529See \`config.log' for more details" "$LINENO" 5; }
2530  fi
2531done
2532
2533if test -r "$cache_file"; then
2534  # Some versions of bash will fail to source /dev/null (special files
2535  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2536  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2537    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2538$as_echo "$as_me: loading cache $cache_file" >&6;}
2539    case $cache_file in
2540      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2541      *)                      . "./$cache_file";;
2542    esac
2543  fi
2544else
2545  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2546$as_echo "$as_me: creating cache $cache_file" >&6;}
2547  >$cache_file
2548fi
2549
2550# Check that the precious variables saved in the cache have kept the same
2551# value.
2552ac_cache_corrupted=false
2553for ac_var in $ac_precious_vars; do
2554  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2555  eval ac_new_set=\$ac_env_${ac_var}_set
2556  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2557  eval ac_new_val=\$ac_env_${ac_var}_value
2558  case $ac_old_set,$ac_new_set in
2559    set,)
2560      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2561$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2562      ac_cache_corrupted=: ;;
2563    ,set)
2564      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2565$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2566      ac_cache_corrupted=: ;;
2567    ,);;
2568    *)
2569      if test "x$ac_old_val" != "x$ac_new_val"; then
2570	# differences in whitespace do not lead to failure.
2571	ac_old_val_w=`echo x $ac_old_val`
2572	ac_new_val_w=`echo x $ac_new_val`
2573	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2574	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2575$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2576	  ac_cache_corrupted=:
2577	else
2578	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2579$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2580	  eval $ac_var=\$ac_old_val
2581	fi
2582	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2583$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2584	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2585$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2586      fi;;
2587  esac
2588  # Pass precious variables to config.status.
2589  if test "$ac_new_set" = set; then
2590    case $ac_new_val in
2591    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2592    *) ac_arg=$ac_var=$ac_new_val ;;
2593    esac
2594    case " $ac_configure_args " in
2595      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2596      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2597    esac
2598  fi
2599done
2600if $ac_cache_corrupted; then
2601  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2604$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2605  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2606fi
2607## -------------------- ##
2608## Main body of script. ##
2609## -------------------- ##
2610
2611ac_ext=c
2612ac_cpp='$CPP $CPPFLAGS'
2613ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2614ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2615ac_compiler_gnu=$ac_cv_c_compiler_gnu
2616
2617
2618
2619ac_aux_dir=
2620for ac_dir in config "$srcdir"/config; do
2621  if test -f "$ac_dir/install-sh"; then
2622    ac_aux_dir=$ac_dir
2623    ac_install_sh="$ac_aux_dir/install-sh -c"
2624    break
2625  elif test -f "$ac_dir/install.sh"; then
2626    ac_aux_dir=$ac_dir
2627    ac_install_sh="$ac_aux_dir/install.sh -c"
2628    break
2629  elif test -f "$ac_dir/shtool"; then
2630    ac_aux_dir=$ac_dir
2631    ac_install_sh="$ac_aux_dir/shtool install -c"
2632    break
2633  fi
2634done
2635if test -z "$ac_aux_dir"; then
2636  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2637fi
2638
2639# These three variables are undocumented and unsupported,
2640# and are intended to be withdrawn in a future Autoconf release.
2641# They can cause serious problems if a builder's source tree is in a directory
2642# whose full name contains unusual characters.
2643ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2644ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2645ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2646
2647
2648
2649case `pwd` in
2650  *\ * | *\	*)
2651    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2652$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2653esac
2654
2655
2656
2657macro_version='2.4.2'
2658macro_revision='1.3337'
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672ltmain="$ac_aux_dir/ltmain.sh"
2673
2674# Make sure we can run config.sub.
2675$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2676  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2677
2678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2679$as_echo_n "checking build system type... " >&6; }
2680if ${ac_cv_build+:} false; then :
2681  $as_echo_n "(cached) " >&6
2682else
2683  ac_build_alias=$build_alias
2684test "x$ac_build_alias" = x &&
2685  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2686test "x$ac_build_alias" = x &&
2687  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2688ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2689  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2690
2691fi
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2693$as_echo "$ac_cv_build" >&6; }
2694case $ac_cv_build in
2695*-*-*) ;;
2696*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2697esac
2698build=$ac_cv_build
2699ac_save_IFS=$IFS; IFS='-'
2700set x $ac_cv_build
2701shift
2702build_cpu=$1
2703build_vendor=$2
2704shift; shift
2705# Remember, the first character of IFS is used to create $*,
2706# except with old shells:
2707build_os=$*
2708IFS=$ac_save_IFS
2709case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2710
2711
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2713$as_echo_n "checking host system type... " >&6; }
2714if ${ac_cv_host+:} false; then :
2715  $as_echo_n "(cached) " >&6
2716else
2717  if test "x$host_alias" = x; then
2718  ac_cv_host=$ac_cv_build
2719else
2720  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2721    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2722fi
2723
2724fi
2725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2726$as_echo "$ac_cv_host" >&6; }
2727case $ac_cv_host in
2728*-*-*) ;;
2729*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2730esac
2731host=$ac_cv_host
2732ac_save_IFS=$IFS; IFS='-'
2733set x $ac_cv_host
2734shift
2735host_cpu=$1
2736host_vendor=$2
2737shift; shift
2738# Remember, the first character of IFS is used to create $*,
2739# except with old shells:
2740host_os=$*
2741IFS=$ac_save_IFS
2742case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2743
2744
2745# Backslashify metacharacters that are still active within
2746# double-quoted strings.
2747sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2748
2749# Same as above, but do not quote variable references.
2750double_quote_subst='s/\(["`\\]\)/\\\1/g'
2751
2752# Sed substitution to delay expansion of an escaped shell variable in a
2753# double_quote_subst'ed string.
2754delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2755
2756# Sed substitution to delay expansion of an escaped single quote.
2757delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2758
2759# Sed substitution to avoid accidental globbing in evaled expressions
2760no_glob_subst='s/\*/\\\*/g'
2761
2762ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2763ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2764ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2765
2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2767$as_echo_n "checking how to print strings... " >&6; }
2768# Test print first, because it will be a builtin if present.
2769if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2770   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2771  ECHO='print -r --'
2772elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2773  ECHO='printf %s\n'
2774else
2775  # Use this function as a fallback that always works.
2776  func_fallback_echo ()
2777  {
2778    eval 'cat <<_LTECHO_EOF
2779$1
2780_LTECHO_EOF'
2781  }
2782  ECHO='func_fallback_echo'
2783fi
2784
2785# func_echo_all arg...
2786# Invoke $ECHO with all args, space-separated.
2787func_echo_all ()
2788{
2789    $ECHO ""
2790}
2791
2792case "$ECHO" in
2793  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2794$as_echo "printf" >&6; } ;;
2795  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2796$as_echo "print -r" >&6; } ;;
2797  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2798$as_echo "cat" >&6; } ;;
2799esac
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814ac_ext=c
2815ac_cpp='$CPP $CPPFLAGS'
2816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2818ac_compiler_gnu=$ac_cv_c_compiler_gnu
2819if test -n "$ac_tool_prefix"; then
2820  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2821set dummy ${ac_tool_prefix}gcc; ac_word=$2
2822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2823$as_echo_n "checking for $ac_word... " >&6; }
2824if ${ac_cv_prog_CC+:} false; then :
2825  $as_echo_n "(cached) " >&6
2826else
2827  if test -n "$CC"; then
2828  ac_cv_prog_CC="$CC" # Let the user override the test.
2829else
2830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831for as_dir in $PATH
2832do
2833  IFS=$as_save_IFS
2834  test -z "$as_dir" && as_dir=.
2835    for ac_exec_ext in '' $ac_executable_extensions; do
2836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2837    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2839    break 2
2840  fi
2841done
2842  done
2843IFS=$as_save_IFS
2844
2845fi
2846fi
2847CC=$ac_cv_prog_CC
2848if test -n "$CC"; then
2849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2850$as_echo "$CC" >&6; }
2851else
2852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853$as_echo "no" >&6; }
2854fi
2855
2856
2857fi
2858if test -z "$ac_cv_prog_CC"; then
2859  ac_ct_CC=$CC
2860  # Extract the first word of "gcc", so it can be a program name with args.
2861set dummy gcc; ac_word=$2
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2863$as_echo_n "checking for $ac_word... " >&6; }
2864if ${ac_cv_prog_ac_ct_CC+:} false; then :
2865  $as_echo_n "(cached) " >&6
2866else
2867  if test -n "$ac_ct_CC"; then
2868  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2869else
2870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871for as_dir in $PATH
2872do
2873  IFS=$as_save_IFS
2874  test -z "$as_dir" && as_dir=.
2875    for ac_exec_ext in '' $ac_executable_extensions; do
2876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877    ac_cv_prog_ac_ct_CC="gcc"
2878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2879    break 2
2880  fi
2881done
2882  done
2883IFS=$as_save_IFS
2884
2885fi
2886fi
2887ac_ct_CC=$ac_cv_prog_ac_ct_CC
2888if test -n "$ac_ct_CC"; then
2889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2890$as_echo "$ac_ct_CC" >&6; }
2891else
2892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2893$as_echo "no" >&6; }
2894fi
2895
2896  if test "x$ac_ct_CC" = x; then
2897    CC=""
2898  else
2899    case $cross_compiling:$ac_tool_warned in
2900yes:)
2901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2903ac_tool_warned=yes ;;
2904esac
2905    CC=$ac_ct_CC
2906  fi
2907else
2908  CC="$ac_cv_prog_CC"
2909fi
2910
2911if test -z "$CC"; then
2912          if test -n "$ac_tool_prefix"; then
2913    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2914set dummy ${ac_tool_prefix}cc; ac_word=$2
2915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916$as_echo_n "checking for $ac_word... " >&6; }
2917if ${ac_cv_prog_CC+:} false; then :
2918  $as_echo_n "(cached) " >&6
2919else
2920  if test -n "$CC"; then
2921  ac_cv_prog_CC="$CC" # Let the user override the test.
2922else
2923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924for as_dir in $PATH
2925do
2926  IFS=$as_save_IFS
2927  test -z "$as_dir" && as_dir=.
2928    for ac_exec_ext in '' $ac_executable_extensions; do
2929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930    ac_cv_prog_CC="${ac_tool_prefix}cc"
2931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932    break 2
2933  fi
2934done
2935  done
2936IFS=$as_save_IFS
2937
2938fi
2939fi
2940CC=$ac_cv_prog_CC
2941if test -n "$CC"; then
2942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2943$as_echo "$CC" >&6; }
2944else
2945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946$as_echo "no" >&6; }
2947fi
2948
2949
2950  fi
2951fi
2952if test -z "$CC"; then
2953  # Extract the first word of "cc", so it can be a program name with args.
2954set dummy cc; ac_word=$2
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956$as_echo_n "checking for $ac_word... " >&6; }
2957if ${ac_cv_prog_CC+:} false; then :
2958  $as_echo_n "(cached) " >&6
2959else
2960  if test -n "$CC"; then
2961  ac_cv_prog_CC="$CC" # Let the user override the test.
2962else
2963  ac_prog_rejected=no
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967  IFS=$as_save_IFS
2968  test -z "$as_dir" && as_dir=.
2969    for ac_exec_ext in '' $ac_executable_extensions; do
2970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2971    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2972       ac_prog_rejected=yes
2973       continue
2974     fi
2975    ac_cv_prog_CC="cc"
2976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977    break 2
2978  fi
2979done
2980  done
2981IFS=$as_save_IFS
2982
2983if test $ac_prog_rejected = yes; then
2984  # We found a bogon in the path, so make sure we never use it.
2985  set dummy $ac_cv_prog_CC
2986  shift
2987  if test $# != 0; then
2988    # We chose a different compiler from the bogus one.
2989    # However, it has the same basename, so the bogon will be chosen
2990    # first if we set CC to just the basename; use the full file name.
2991    shift
2992    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2993  fi
2994fi
2995fi
2996fi
2997CC=$ac_cv_prog_CC
2998if test -n "$CC"; then
2999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3000$as_echo "$CC" >&6; }
3001else
3002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3003$as_echo "no" >&6; }
3004fi
3005
3006
3007fi
3008if test -z "$CC"; then
3009  if test -n "$ac_tool_prefix"; then
3010  for ac_prog in cl.exe
3011  do
3012    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3013set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015$as_echo_n "checking for $ac_word... " >&6; }
3016if ${ac_cv_prog_CC+:} false; then :
3017  $as_echo_n "(cached) " >&6
3018else
3019  if test -n "$CC"; then
3020  ac_cv_prog_CC="$CC" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025  IFS=$as_save_IFS
3026  test -z "$as_dir" && as_dir=.
3027    for ac_exec_ext in '' $ac_executable_extensions; do
3028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3029    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031    break 2
3032  fi
3033done
3034  done
3035IFS=$as_save_IFS
3036
3037fi
3038fi
3039CC=$ac_cv_prog_CC
3040if test -n "$CC"; then
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3042$as_echo "$CC" >&6; }
3043else
3044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045$as_echo "no" >&6; }
3046fi
3047
3048
3049    test -n "$CC" && break
3050  done
3051fi
3052if test -z "$CC"; then
3053  ac_ct_CC=$CC
3054  for ac_prog in cl.exe
3055do
3056  # Extract the first word of "$ac_prog", so it can be a program name with args.
3057set dummy $ac_prog; ac_word=$2
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if ${ac_cv_prog_ac_ct_CC+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  if test -n "$ac_ct_CC"; then
3064  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071    for ac_exec_ext in '' $ac_executable_extensions; do
3072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3073    ac_cv_prog_ac_ct_CC="$ac_prog"
3074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075    break 2
3076  fi
3077done
3078  done
3079IFS=$as_save_IFS
3080
3081fi
3082fi
3083ac_ct_CC=$ac_cv_prog_ac_ct_CC
3084if test -n "$ac_ct_CC"; then
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3086$as_echo "$ac_ct_CC" >&6; }
3087else
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090fi
3091
3092
3093  test -n "$ac_ct_CC" && break
3094done
3095
3096  if test "x$ac_ct_CC" = x; then
3097    CC=""
3098  else
3099    case $cross_compiling:$ac_tool_warned in
3100yes:)
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3103ac_tool_warned=yes ;;
3104esac
3105    CC=$ac_ct_CC
3106  fi
3107fi
3108
3109fi
3110
3111
3112test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3114as_fn_error $? "no acceptable C compiler found in \$PATH
3115See \`config.log' for more details" "$LINENO" 5; }
3116
3117# Provide some information about the compiler.
3118$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3119set X $ac_compile
3120ac_compiler=$2
3121for ac_option in --version -v -V -qversion; do
3122  { { ac_try="$ac_compiler $ac_option >&5"
3123case "(($ac_try" in
3124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125  *) ac_try_echo=$ac_try;;
3126esac
3127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3128$as_echo "$ac_try_echo"; } >&5
3129  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3130  ac_status=$?
3131  if test -s conftest.err; then
3132    sed '10a\
3133... rest of stderr output deleted ...
3134         10q' conftest.err >conftest.er1
3135    cat conftest.er1 >&5
3136  fi
3137  rm -f conftest.er1 conftest.err
3138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3139  test $ac_status = 0; }
3140done
3141
3142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h.  */
3144
3145int
3146main ()
3147{
3148
3149  ;
3150  return 0;
3151}
3152_ACEOF
3153ac_clean_files_save=$ac_clean_files
3154ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3155# Try to create an executable without -o first, disregard a.out.
3156# It will help us diagnose broken compilers, and finding out an intuition
3157# of exeext.
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3159$as_echo_n "checking whether the C compiler works... " >&6; }
3160ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3161
3162# The possible output files:
3163ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3164
3165ac_rmfiles=
3166for ac_file in $ac_files
3167do
3168  case $ac_file in
3169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3170    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3171  esac
3172done
3173rm -f $ac_rmfiles
3174
3175if { { ac_try="$ac_link_default"
3176case "(($ac_try" in
3177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178  *) ac_try_echo=$ac_try;;
3179esac
3180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3181$as_echo "$ac_try_echo"; } >&5
3182  (eval "$ac_link_default") 2>&5
3183  ac_status=$?
3184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3185  test $ac_status = 0; }; then :
3186  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3187# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3188# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3189# so that the user can short-circuit this test for compilers unknown to
3190# Autoconf.
3191for ac_file in $ac_files ''
3192do
3193  test -f "$ac_file" || continue
3194  case $ac_file in
3195    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3196	;;
3197    [ab].out )
3198	# We found the default executable, but exeext='' is most
3199	# certainly right.
3200	break;;
3201    *.* )
3202	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3203	then :; else
3204	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3205	fi
3206	# We set ac_cv_exeext here because the later test for it is not
3207	# safe: cross compilers may not add the suffix if given an `-o'
3208	# argument, so we may need to know it at that point already.
3209	# Even if this section looks crufty: it has the advantage of
3210	# actually working.
3211	break;;
3212    * )
3213	break;;
3214  esac
3215done
3216test "$ac_cv_exeext" = no && ac_cv_exeext=
3217
3218else
3219  ac_file=''
3220fi
3221if test -z "$ac_file"; then :
3222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223$as_echo "no" >&6; }
3224$as_echo "$as_me: failed program was:" >&5
3225sed 's/^/| /' conftest.$ac_ext >&5
3226
3227{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3229as_fn_error 77 "C compiler cannot create executables
3230See \`config.log' for more details" "$LINENO" 5; }
3231else
3232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3233$as_echo "yes" >&6; }
3234fi
3235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3236$as_echo_n "checking for C compiler default output file name... " >&6; }
3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3238$as_echo "$ac_file" >&6; }
3239ac_exeext=$ac_cv_exeext
3240
3241rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3242ac_clean_files=$ac_clean_files_save
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3244$as_echo_n "checking for suffix of executables... " >&6; }
3245if { { ac_try="$ac_link"
3246case "(($ac_try" in
3247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248  *) ac_try_echo=$ac_try;;
3249esac
3250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251$as_echo "$ac_try_echo"; } >&5
3252  (eval "$ac_link") 2>&5
3253  ac_status=$?
3254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255  test $ac_status = 0; }; then :
3256  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3257# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3258# work properly (i.e., refer to `conftest.exe'), while it won't with
3259# `rm'.
3260for ac_file in conftest.exe conftest conftest.*; do
3261  test -f "$ac_file" || continue
3262  case $ac_file in
3263    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3264    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3265	  break;;
3266    * ) break;;
3267  esac
3268done
3269else
3270  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3273See \`config.log' for more details" "$LINENO" 5; }
3274fi
3275rm -f conftest conftest$ac_cv_exeext
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3277$as_echo "$ac_cv_exeext" >&6; }
3278
3279rm -f conftest.$ac_ext
3280EXEEXT=$ac_cv_exeext
3281ac_exeext=$EXEEXT
3282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3283/* end confdefs.h.  */
3284#include <stdio.h>
3285int
3286main ()
3287{
3288FILE *f = fopen ("conftest.out", "w");
3289 return ferror (f) || fclose (f) != 0;
3290
3291  ;
3292  return 0;
3293}
3294_ACEOF
3295ac_clean_files="$ac_clean_files conftest.out"
3296# Check that the compiler produces executables we can run.  If not, either
3297# the compiler is broken, or we cross compile.
3298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3299$as_echo_n "checking whether we are cross compiling... " >&6; }
3300if test "$cross_compiling" != yes; then
3301  { { ac_try="$ac_link"
3302case "(($ac_try" in
3303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304  *) ac_try_echo=$ac_try;;
3305esac
3306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3307$as_echo "$ac_try_echo"; } >&5
3308  (eval "$ac_link") 2>&5
3309  ac_status=$?
3310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3311  test $ac_status = 0; }
3312  if { ac_try='./conftest$ac_cv_exeext'
3313  { { case "(($ac_try" in
3314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315  *) ac_try_echo=$ac_try;;
3316esac
3317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318$as_echo "$ac_try_echo"; } >&5
3319  (eval "$ac_try") 2>&5
3320  ac_status=$?
3321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322  test $ac_status = 0; }; }; then
3323    cross_compiling=no
3324  else
3325    if test "$cross_compiling" = maybe; then
3326	cross_compiling=yes
3327    else
3328	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330as_fn_error $? "cannot run C compiled programs.
3331If you meant to cross compile, use \`--host'.
3332See \`config.log' for more details" "$LINENO" 5; }
3333    fi
3334  fi
3335fi
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3337$as_echo "$cross_compiling" >&6; }
3338
3339rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3340ac_clean_files=$ac_clean_files_save
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3342$as_echo_n "checking for suffix of object files... " >&6; }
3343if ${ac_cv_objext+:} false; then :
3344  $as_echo_n "(cached) " >&6
3345else
3346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347/* end confdefs.h.  */
3348
3349int
3350main ()
3351{
3352
3353  ;
3354  return 0;
3355}
3356_ACEOF
3357rm -f conftest.o conftest.obj
3358if { { ac_try="$ac_compile"
3359case "(($ac_try" in
3360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361  *) ac_try_echo=$ac_try;;
3362esac
3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364$as_echo "$ac_try_echo"; } >&5
3365  (eval "$ac_compile") 2>&5
3366  ac_status=$?
3367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368  test $ac_status = 0; }; then :
3369  for ac_file in conftest.o conftest.obj conftest.*; do
3370  test -f "$ac_file" || continue;
3371  case $ac_file in
3372    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3373    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3374       break;;
3375  esac
3376done
3377else
3378  $as_echo "$as_me: failed program was:" >&5
3379sed 's/^/| /' conftest.$ac_ext >&5
3380
3381{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383as_fn_error $? "cannot compute suffix of object files: cannot compile
3384See \`config.log' for more details" "$LINENO" 5; }
3385fi
3386rm -f conftest.$ac_cv_objext conftest.$ac_ext
3387fi
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3389$as_echo "$ac_cv_objext" >&6; }
3390OBJEXT=$ac_cv_objext
3391ac_objext=$OBJEXT
3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3393$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3394if ${ac_cv_c_compiler_gnu+:} false; then :
3395  $as_echo_n "(cached) " >&6
3396else
3397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398/* end confdefs.h.  */
3399
3400int
3401main ()
3402{
3403#ifndef __GNUC__
3404       choke me
3405#endif
3406
3407  ;
3408  return 0;
3409}
3410_ACEOF
3411if ac_fn_c_try_compile "$LINENO"; then :
3412  ac_compiler_gnu=yes
3413else
3414  ac_compiler_gnu=no
3415fi
3416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3417ac_cv_c_compiler_gnu=$ac_compiler_gnu
3418
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3421$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3422if test $ac_compiler_gnu = yes; then
3423  GCC=yes
3424else
3425  GCC=
3426fi
3427ac_test_CFLAGS=${CFLAGS+set}
3428ac_save_CFLAGS=$CFLAGS
3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3430$as_echo_n "checking whether $CC accepts -g... " >&6; }
3431if ${ac_cv_prog_cc_g+:} false; then :
3432  $as_echo_n "(cached) " >&6
3433else
3434  ac_save_c_werror_flag=$ac_c_werror_flag
3435   ac_c_werror_flag=yes
3436   ac_cv_prog_cc_g=no
3437   CFLAGS="-g"
3438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439/* end confdefs.h.  */
3440
3441int
3442main ()
3443{
3444
3445  ;
3446  return 0;
3447}
3448_ACEOF
3449if ac_fn_c_try_compile "$LINENO"; then :
3450  ac_cv_prog_cc_g=yes
3451else
3452  CFLAGS=""
3453      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454/* end confdefs.h.  */
3455
3456int
3457main ()
3458{
3459
3460  ;
3461  return 0;
3462}
3463_ACEOF
3464if ac_fn_c_try_compile "$LINENO"; then :
3465
3466else
3467  ac_c_werror_flag=$ac_save_c_werror_flag
3468	 CFLAGS="-g"
3469	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470/* end confdefs.h.  */
3471
3472int
3473main ()
3474{
3475
3476  ;
3477  return 0;
3478}
3479_ACEOF
3480if ac_fn_c_try_compile "$LINENO"; then :
3481  ac_cv_prog_cc_g=yes
3482fi
3483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484fi
3485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486fi
3487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3488   ac_c_werror_flag=$ac_save_c_werror_flag
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3491$as_echo "$ac_cv_prog_cc_g" >&6; }
3492if test "$ac_test_CFLAGS" = set; then
3493  CFLAGS=$ac_save_CFLAGS
3494elif test $ac_cv_prog_cc_g = yes; then
3495  if test "$GCC" = yes; then
3496    CFLAGS="-g -O2"
3497  else
3498    CFLAGS="-g"
3499  fi
3500else
3501  if test "$GCC" = yes; then
3502    CFLAGS="-O2"
3503  else
3504    CFLAGS=
3505  fi
3506fi
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3508$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3509if ${ac_cv_prog_cc_c89+:} false; then :
3510  $as_echo_n "(cached) " >&6
3511else
3512  ac_cv_prog_cc_c89=no
3513ac_save_CC=$CC
3514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515/* end confdefs.h.  */
3516#include <stdarg.h>
3517#include <stdio.h>
3518struct stat;
3519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3520struct buf { int x; };
3521FILE * (*rcsopen) (struct buf *, struct stat *, int);
3522static char *e (p, i)
3523     char **p;
3524     int i;
3525{
3526  return p[i];
3527}
3528static char *f (char * (*g) (char **, int), char **p, ...)
3529{
3530  char *s;
3531  va_list v;
3532  va_start (v,p);
3533  s = g (p, va_arg (v,int));
3534  va_end (v);
3535  return s;
3536}
3537
3538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3539   function prototypes and stuff, but not '\xHH' hex character constants.
3540   These don't provoke an error unfortunately, instead are silently treated
3541   as 'x'.  The following induces an error, until -std is added to get
3542   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3543   array size at least.  It's necessary to write '\x00'==0 to get something
3544   that's true only with -std.  */
3545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546
3547/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3548   inside strings and character constants.  */
3549#define FOO(x) 'x'
3550int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3551
3552int test (int i, double x);
3553struct s1 {int (*f) (int a);};
3554struct s2 {int (*f) (double a);};
3555int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3556int argc;
3557char **argv;
3558int
3559main ()
3560{
3561return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3562  ;
3563  return 0;
3564}
3565_ACEOF
3566for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3567	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568do
3569  CC="$ac_save_CC $ac_arg"
3570  if ac_fn_c_try_compile "$LINENO"; then :
3571  ac_cv_prog_cc_c89=$ac_arg
3572fi
3573rm -f core conftest.err conftest.$ac_objext
3574  test "x$ac_cv_prog_cc_c89" != "xno" && break
3575done
3576rm -f conftest.$ac_ext
3577CC=$ac_save_CC
3578
3579fi
3580# AC_CACHE_VAL
3581case "x$ac_cv_prog_cc_c89" in
3582  x)
3583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3584$as_echo "none needed" >&6; } ;;
3585  xno)
3586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3587$as_echo "unsupported" >&6; } ;;
3588  *)
3589    CC="$CC $ac_cv_prog_cc_c89"
3590    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3591$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3592esac
3593if test "x$ac_cv_prog_cc_c89" != xno; then :
3594
3595fi
3596
3597ac_ext=c
3598ac_cpp='$CPP $CPPFLAGS'
3599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3601ac_compiler_gnu=$ac_cv_c_compiler_gnu
3602
3603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3604$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3605if ${ac_cv_path_SED+:} false; then :
3606  $as_echo_n "(cached) " >&6
3607else
3608            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3609     for ac_i in 1 2 3 4 5 6 7; do
3610       ac_script="$ac_script$as_nl$ac_script"
3611     done
3612     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3613     { ac_script=; unset ac_script;}
3614     if test -z "$SED"; then
3615  ac_path_SED_found=false
3616  # Loop through the user's path and test for each of PROGNAME-LIST
3617  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618for as_dir in $PATH
3619do
3620  IFS=$as_save_IFS
3621  test -z "$as_dir" && as_dir=.
3622    for ac_prog in sed gsed; do
3623    for ac_exec_ext in '' $ac_executable_extensions; do
3624      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3625      as_fn_executable_p "$ac_path_SED" || continue
3626# Check for GNU ac_path_SED and select it if it is found.
3627  # Check for GNU $ac_path_SED
3628case `"$ac_path_SED" --version 2>&1` in
3629*GNU*)
3630  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3631*)
3632  ac_count=0
3633  $as_echo_n 0123456789 >"conftest.in"
3634  while :
3635  do
3636    cat "conftest.in" "conftest.in" >"conftest.tmp"
3637    mv "conftest.tmp" "conftest.in"
3638    cp "conftest.in" "conftest.nl"
3639    $as_echo '' >> "conftest.nl"
3640    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3641    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3642    as_fn_arith $ac_count + 1 && ac_count=$as_val
3643    if test $ac_count -gt ${ac_path_SED_max-0}; then
3644      # Best one so far, save it but keep looking for a better one
3645      ac_cv_path_SED="$ac_path_SED"
3646      ac_path_SED_max=$ac_count
3647    fi
3648    # 10*(2^10) chars as input seems more than enough
3649    test $ac_count -gt 10 && break
3650  done
3651  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3652esac
3653
3654      $ac_path_SED_found && break 3
3655    done
3656  done
3657  done
3658IFS=$as_save_IFS
3659  if test -z "$ac_cv_path_SED"; then
3660    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3661  fi
3662else
3663  ac_cv_path_SED=$SED
3664fi
3665
3666fi
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3668$as_echo "$ac_cv_path_SED" >&6; }
3669 SED="$ac_cv_path_SED"
3670  rm -f conftest.sed
3671
3672test -z "$SED" && SED=sed
3673Xsed="$SED -e 1s/^X//"
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3686$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3687if ${ac_cv_path_GREP+:} false; then :
3688  $as_echo_n "(cached) " >&6
3689else
3690  if test -z "$GREP"; then
3691  ac_path_GREP_found=false
3692  # Loop through the user's path and test for each of PROGNAME-LIST
3693  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3695do
3696  IFS=$as_save_IFS
3697  test -z "$as_dir" && as_dir=.
3698    for ac_prog in grep ggrep; do
3699    for ac_exec_ext in '' $ac_executable_extensions; do
3700      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3701      as_fn_executable_p "$ac_path_GREP" || continue
3702# Check for GNU ac_path_GREP and select it if it is found.
3703  # Check for GNU $ac_path_GREP
3704case `"$ac_path_GREP" --version 2>&1` in
3705*GNU*)
3706  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3707*)
3708  ac_count=0
3709  $as_echo_n 0123456789 >"conftest.in"
3710  while :
3711  do
3712    cat "conftest.in" "conftest.in" >"conftest.tmp"
3713    mv "conftest.tmp" "conftest.in"
3714    cp "conftest.in" "conftest.nl"
3715    $as_echo 'GREP' >> "conftest.nl"
3716    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3718    as_fn_arith $ac_count + 1 && ac_count=$as_val
3719    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3720      # Best one so far, save it but keep looking for a better one
3721      ac_cv_path_GREP="$ac_path_GREP"
3722      ac_path_GREP_max=$ac_count
3723    fi
3724    # 10*(2^10) chars as input seems more than enough
3725    test $ac_count -gt 10 && break
3726  done
3727  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3728esac
3729
3730      $ac_path_GREP_found && break 3
3731    done
3732  done
3733  done
3734IFS=$as_save_IFS
3735  if test -z "$ac_cv_path_GREP"; then
3736    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3737  fi
3738else
3739  ac_cv_path_GREP=$GREP
3740fi
3741
3742fi
3743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3744$as_echo "$ac_cv_path_GREP" >&6; }
3745 GREP="$ac_cv_path_GREP"
3746
3747
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3749$as_echo_n "checking for egrep... " >&6; }
3750if ${ac_cv_path_EGREP+:} false; then :
3751  $as_echo_n "(cached) " >&6
3752else
3753  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3754   then ac_cv_path_EGREP="$GREP -E"
3755   else
3756     if test -z "$EGREP"; then
3757  ac_path_EGREP_found=false
3758  # Loop through the user's path and test for each of PROGNAME-LIST
3759  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3761do
3762  IFS=$as_save_IFS
3763  test -z "$as_dir" && as_dir=.
3764    for ac_prog in egrep; do
3765    for ac_exec_ext in '' $ac_executable_extensions; do
3766      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3767      as_fn_executable_p "$ac_path_EGREP" || continue
3768# Check for GNU ac_path_EGREP and select it if it is found.
3769  # Check for GNU $ac_path_EGREP
3770case `"$ac_path_EGREP" --version 2>&1` in
3771*GNU*)
3772  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3773*)
3774  ac_count=0
3775  $as_echo_n 0123456789 >"conftest.in"
3776  while :
3777  do
3778    cat "conftest.in" "conftest.in" >"conftest.tmp"
3779    mv "conftest.tmp" "conftest.in"
3780    cp "conftest.in" "conftest.nl"
3781    $as_echo 'EGREP' >> "conftest.nl"
3782    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3783    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3784    as_fn_arith $ac_count + 1 && ac_count=$as_val
3785    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3786      # Best one so far, save it but keep looking for a better one
3787      ac_cv_path_EGREP="$ac_path_EGREP"
3788      ac_path_EGREP_max=$ac_count
3789    fi
3790    # 10*(2^10) chars as input seems more than enough
3791    test $ac_count -gt 10 && break
3792  done
3793  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3794esac
3795
3796      $ac_path_EGREP_found && break 3
3797    done
3798  done
3799  done
3800IFS=$as_save_IFS
3801  if test -z "$ac_cv_path_EGREP"; then
3802    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3803  fi
3804else
3805  ac_cv_path_EGREP=$EGREP
3806fi
3807
3808   fi
3809fi
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3811$as_echo "$ac_cv_path_EGREP" >&6; }
3812 EGREP="$ac_cv_path_EGREP"
3813
3814
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3816$as_echo_n "checking for fgrep... " >&6; }
3817if ${ac_cv_path_FGREP+:} false; then :
3818  $as_echo_n "(cached) " >&6
3819else
3820  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3821   then ac_cv_path_FGREP="$GREP -F"
3822   else
3823     if test -z "$FGREP"; then
3824  ac_path_FGREP_found=false
3825  # Loop through the user's path and test for each of PROGNAME-LIST
3826  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3828do
3829  IFS=$as_save_IFS
3830  test -z "$as_dir" && as_dir=.
3831    for ac_prog in fgrep; do
3832    for ac_exec_ext in '' $ac_executable_extensions; do
3833      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3834      as_fn_executable_p "$ac_path_FGREP" || continue
3835# Check for GNU ac_path_FGREP and select it if it is found.
3836  # Check for GNU $ac_path_FGREP
3837case `"$ac_path_FGREP" --version 2>&1` in
3838*GNU*)
3839  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3840*)
3841  ac_count=0
3842  $as_echo_n 0123456789 >"conftest.in"
3843  while :
3844  do
3845    cat "conftest.in" "conftest.in" >"conftest.tmp"
3846    mv "conftest.tmp" "conftest.in"
3847    cp "conftest.in" "conftest.nl"
3848    $as_echo 'FGREP' >> "conftest.nl"
3849    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3850    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3851    as_fn_arith $ac_count + 1 && ac_count=$as_val
3852    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3853      # Best one so far, save it but keep looking for a better one
3854      ac_cv_path_FGREP="$ac_path_FGREP"
3855      ac_path_FGREP_max=$ac_count
3856    fi
3857    # 10*(2^10) chars as input seems more than enough
3858    test $ac_count -gt 10 && break
3859  done
3860  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3861esac
3862
3863      $ac_path_FGREP_found && break 3
3864    done
3865  done
3866  done
3867IFS=$as_save_IFS
3868  if test -z "$ac_cv_path_FGREP"; then
3869    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3870  fi
3871else
3872  ac_cv_path_FGREP=$FGREP
3873fi
3874
3875   fi
3876fi
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
3878$as_echo "$ac_cv_path_FGREP" >&6; }
3879 FGREP="$ac_cv_path_FGREP"
3880
3881
3882test -z "$GREP" && GREP=grep
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902# Check whether --with-gnu-ld was given.
3903if test "${with_gnu_ld+set}" = set; then :
3904  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3905else
3906  with_gnu_ld=no
3907fi
3908
3909ac_prog=ld
3910if test "$GCC" = yes; then
3911  # Check if gcc -print-prog-name=ld gives a path.
3912  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
3913$as_echo_n "checking for ld used by $CC... " >&6; }
3914  case $host in
3915  *-*-mingw*)
3916    # gcc leaves a trailing carriage return which upsets mingw
3917    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3918  *)
3919    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3920  esac
3921  case $ac_prog in
3922    # Accept absolute paths.
3923    [\\/]* | ?:[\\/]*)
3924      re_direlt='/[^/][^/]*/\.\./'
3925      # Canonicalize the pathname of ld
3926      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3927      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3928	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3929      done
3930      test -z "$LD" && LD="$ac_prog"
3931      ;;
3932  "")
3933    # If it fails, then pretend we aren't using GCC.
3934    ac_prog=ld
3935    ;;
3936  *)
3937    # If it is relative, then search for the first ld in PATH.
3938    with_gnu_ld=unknown
3939    ;;
3940  esac
3941elif test "$with_gnu_ld" = yes; then
3942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
3943$as_echo_n "checking for GNU ld... " >&6; }
3944else
3945  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
3946$as_echo_n "checking for non-GNU ld... " >&6; }
3947fi
3948if ${lt_cv_path_LD+:} false; then :
3949  $as_echo_n "(cached) " >&6
3950else
3951  if test -z "$LD"; then
3952  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3953  for ac_dir in $PATH; do
3954    IFS="$lt_save_ifs"
3955    test -z "$ac_dir" && ac_dir=.
3956    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3957      lt_cv_path_LD="$ac_dir/$ac_prog"
3958      # Check to see if the program is GNU ld.  I'd rather use --version,
3959      # but apparently some variants of GNU ld only accept -v.
3960      # Break only if it was the GNU/non-GNU ld that we prefer.
3961      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3962      *GNU* | *'with BFD'*)
3963	test "$with_gnu_ld" != no && break
3964	;;
3965      *)
3966	test "$with_gnu_ld" != yes && break
3967	;;
3968      esac
3969    fi
3970  done
3971  IFS="$lt_save_ifs"
3972else
3973  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3974fi
3975fi
3976
3977LD="$lt_cv_path_LD"
3978if test -n "$LD"; then
3979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3980$as_echo "$LD" >&6; }
3981else
3982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983$as_echo "no" >&6; }
3984fi
3985test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
3987$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3988if ${lt_cv_prog_gnu_ld+:} false; then :
3989  $as_echo_n "(cached) " >&6
3990else
3991  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3992case `$LD -v 2>&1 </dev/null` in
3993*GNU* | *'with BFD'*)
3994  lt_cv_prog_gnu_ld=yes
3995  ;;
3996*)
3997  lt_cv_prog_gnu_ld=no
3998  ;;
3999esac
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4002$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4003with_gnu_ld=$lt_cv_prog_gnu_ld
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4014$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4015if ${lt_cv_path_NM+:} false; then :
4016  $as_echo_n "(cached) " >&6
4017else
4018  if test -n "$NM"; then
4019  # Let the user override the test.
4020  lt_cv_path_NM="$NM"
4021else
4022  lt_nm_to_check="${ac_tool_prefix}nm"
4023  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4024    lt_nm_to_check="$lt_nm_to_check nm"
4025  fi
4026  for lt_tmp_nm in $lt_nm_to_check; do
4027    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4028    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4029      IFS="$lt_save_ifs"
4030      test -z "$ac_dir" && ac_dir=.
4031      tmp_nm="$ac_dir/$lt_tmp_nm"
4032      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4033	# Check to see if the nm accepts a BSD-compat flag.
4034	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4035	#   nm: unknown option "B" ignored
4036	# Tru64's nm complains that /dev/null is an invalid object file
4037	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4038	*/dev/null* | *'Invalid file or object type'*)
4039	  lt_cv_path_NM="$tmp_nm -B"
4040	  break
4041	  ;;
4042	*)
4043	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4044	  */dev/null*)
4045	    lt_cv_path_NM="$tmp_nm -p"
4046	    break
4047	    ;;
4048	  *)
4049	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4050	    continue # so that we can try to find one that supports BSD flags
4051	    ;;
4052	  esac
4053	  ;;
4054	esac
4055      fi
4056    done
4057    IFS="$lt_save_ifs"
4058  done
4059  : ${lt_cv_path_NM=no}
4060fi
4061fi
4062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4063$as_echo "$lt_cv_path_NM" >&6; }
4064if test "$lt_cv_path_NM" != "no"; then
4065  NM="$lt_cv_path_NM"
4066else
4067  # Didn't find any BSD compatible name lister, look for dumpbin.
4068  if test -n "$DUMPBIN"; then :
4069    # Let the user override the test.
4070  else
4071    if test -n "$ac_tool_prefix"; then
4072  for ac_prog in dumpbin "link -dump"
4073  do
4074    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4075set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077$as_echo_n "checking for $ac_word... " >&6; }
4078if ${ac_cv_prog_DUMPBIN+:} false; then :
4079  $as_echo_n "(cached) " >&6
4080else
4081  if test -n "$DUMPBIN"; then
4082  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4083else
4084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085for as_dir in $PATH
4086do
4087  IFS=$as_save_IFS
4088  test -z "$as_dir" && as_dir=.
4089    for ac_exec_ext in '' $ac_executable_extensions; do
4090  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4091    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4092    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4093    break 2
4094  fi
4095done
4096  done
4097IFS=$as_save_IFS
4098
4099fi
4100fi
4101DUMPBIN=$ac_cv_prog_DUMPBIN
4102if test -n "$DUMPBIN"; then
4103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4104$as_echo "$DUMPBIN" >&6; }
4105else
4106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107$as_echo "no" >&6; }
4108fi
4109
4110
4111    test -n "$DUMPBIN" && break
4112  done
4113fi
4114if test -z "$DUMPBIN"; then
4115  ac_ct_DUMPBIN=$DUMPBIN
4116  for ac_prog in dumpbin "link -dump"
4117do
4118  # Extract the first word of "$ac_prog", so it can be a program name with args.
4119set dummy $ac_prog; ac_word=$2
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121$as_echo_n "checking for $ac_word... " >&6; }
4122if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4123  $as_echo_n "(cached) " >&6
4124else
4125  if test -n "$ac_ct_DUMPBIN"; then
4126  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4127else
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131  IFS=$as_save_IFS
4132  test -z "$as_dir" && as_dir=.
4133    for ac_exec_ext in '' $ac_executable_extensions; do
4134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137    break 2
4138  fi
4139done
4140  done
4141IFS=$as_save_IFS
4142
4143fi
4144fi
4145ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4146if test -n "$ac_ct_DUMPBIN"; then
4147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4148$as_echo "$ac_ct_DUMPBIN" >&6; }
4149else
4150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151$as_echo "no" >&6; }
4152fi
4153
4154
4155  test -n "$ac_ct_DUMPBIN" && break
4156done
4157
4158  if test "x$ac_ct_DUMPBIN" = x; then
4159    DUMPBIN=":"
4160  else
4161    case $cross_compiling:$ac_tool_warned in
4162yes:)
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4165ac_tool_warned=yes ;;
4166esac
4167    DUMPBIN=$ac_ct_DUMPBIN
4168  fi
4169fi
4170
4171    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4172    *COFF*)
4173      DUMPBIN="$DUMPBIN -symbols"
4174      ;;
4175    *)
4176      DUMPBIN=:
4177      ;;
4178    esac
4179  fi
4180
4181  if test "$DUMPBIN" != ":"; then
4182    NM="$DUMPBIN"
4183  fi
4184fi
4185test -z "$NM" && NM=nm
4186
4187
4188
4189
4190
4191
4192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4193$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4194if ${lt_cv_nm_interface+:} false; then :
4195  $as_echo_n "(cached) " >&6
4196else
4197  lt_cv_nm_interface="BSD nm"
4198  echo "int some_variable = 0;" > conftest.$ac_ext
4199  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4200  (eval "$ac_compile" 2>conftest.err)
4201  cat conftest.err >&5
4202  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4203  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4204  cat conftest.err >&5
4205  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4206  cat conftest.out >&5
4207  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4208    lt_cv_nm_interface="MS dumpbin"
4209  fi
4210  rm -f conftest*
4211fi
4212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4213$as_echo "$lt_cv_nm_interface" >&6; }
4214
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4216$as_echo_n "checking whether ln -s works... " >&6; }
4217LN_S=$as_ln_s
4218if test "$LN_S" = "ln -s"; then
4219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4220$as_echo "yes" >&6; }
4221else
4222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4223$as_echo "no, using $LN_S" >&6; }
4224fi
4225
4226# find the maximum length of command line arguments
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4228$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4229if ${lt_cv_sys_max_cmd_len+:} false; then :
4230  $as_echo_n "(cached) " >&6
4231else
4232    i=0
4233  teststring="ABCD"
4234
4235  case $build_os in
4236  msdosdjgpp*)
4237    # On DJGPP, this test can blow up pretty badly due to problems in libc
4238    # (any single argument exceeding 2000 bytes causes a buffer overrun
4239    # during glob expansion).  Even if it were fixed, the result of this
4240    # check would be larger than it should be.
4241    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4242    ;;
4243
4244  gnu*)
4245    # Under GNU Hurd, this test is not required because there is
4246    # no limit to the length of command line arguments.
4247    # Libtool will interpret -1 as no limit whatsoever
4248    lt_cv_sys_max_cmd_len=-1;
4249    ;;
4250
4251  cygwin* | mingw* | cegcc*)
4252    # On Win9x/ME, this test blows up -- it succeeds, but takes
4253    # about 5 minutes as the teststring grows exponentially.
4254    # Worse, since 9x/ME are not pre-emptively multitasking,
4255    # you end up with a "frozen" computer, even though with patience
4256    # the test eventually succeeds (with a max line length of 256k).
4257    # Instead, let's just punt: use the minimum linelength reported by
4258    # all of the supported platforms: 8192 (on NT/2K/XP).
4259    lt_cv_sys_max_cmd_len=8192;
4260    ;;
4261
4262  mint*)
4263    # On MiNT this can take a long time and run out of memory.
4264    lt_cv_sys_max_cmd_len=8192;
4265    ;;
4266
4267  amigaos*)
4268    # On AmigaOS with pdksh, this test takes hours, literally.
4269    # So we just punt and use a minimum line length of 8192.
4270    lt_cv_sys_max_cmd_len=8192;
4271    ;;
4272
4273  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4274    # This has been around since 386BSD, at least.  Likely further.
4275    if test -x /sbin/sysctl; then
4276      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4277    elif test -x /usr/sbin/sysctl; then
4278      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4279    else
4280      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
4281    fi
4282    # And add a safety zone
4283    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4284    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4285    ;;
4286
4287  interix*)
4288    # We know the value 262144 and hardcode it with a safety zone (like BSD)
4289    lt_cv_sys_max_cmd_len=196608
4290    ;;
4291
4292  os2*)
4293    # The test takes a long time on OS/2.
4294    lt_cv_sys_max_cmd_len=8192
4295    ;;
4296
4297  osf*)
4298    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4299    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4300    # nice to cause kernel panics so lets avoid the loop below.
4301    # First set a reasonable default.
4302    lt_cv_sys_max_cmd_len=16384
4303    #
4304    if test -x /sbin/sysconfig; then
4305      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4306        *1*) lt_cv_sys_max_cmd_len=-1 ;;
4307      esac
4308    fi
4309    ;;
4310  sco3.2v5*)
4311    lt_cv_sys_max_cmd_len=102400
4312    ;;
4313  sysv5* | sco5v6* | sysv4.2uw2*)
4314    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4315    if test -n "$kargmax"; then
4316      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
4317    else
4318      lt_cv_sys_max_cmd_len=32768
4319    fi
4320    ;;
4321  *)
4322    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4323    if test -n "$lt_cv_sys_max_cmd_len"; then
4324      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4325      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4326    else
4327      # Make teststring a little bigger before we do anything with it.
4328      # a 1K string should be a reasonable start.
4329      for i in 1 2 3 4 5 6 7 8 ; do
4330        teststring=$teststring$teststring
4331      done
4332      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4333      # If test is not a shell built-in, we'll probably end up computing a
4334      # maximum length that is only half of the actual maximum length, but
4335      # we can't tell.
4336      while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4337	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4338	      test $i != 17 # 1/2 MB should be enough
4339      do
4340        i=`expr $i + 1`
4341        teststring=$teststring$teststring
4342      done
4343      # Only check the string length outside the loop.
4344      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4345      teststring=
4346      # Add a significant safety factor because C++ compilers can tack on
4347      # massive amounts of additional arguments before passing them to the
4348      # linker.  It appears as though 1/2 is a usable value.
4349      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4350    fi
4351    ;;
4352  esac
4353
4354fi
4355
4356if test -n $lt_cv_sys_max_cmd_len ; then
4357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4358$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4359else
4360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4361$as_echo "none" >&6; }
4362fi
4363max_cmd_len=$lt_cv_sys_max_cmd_len
4364
4365
4366
4367
4368
4369
4370: ${CP="cp -f"}
4371: ${MV="mv -f"}
4372: ${RM="rm -f"}
4373
4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4375$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4376# Try some XSI features
4377xsi_shell=no
4378( _lt_dummy="a/b/c"
4379  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4380      = c,a/b,b/c, \
4381    && eval 'test $(( 1 + 1 )) -eq 2 \
4382    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4383  && xsi_shell=yes
4384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4385$as_echo "$xsi_shell" >&6; }
4386
4387
4388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4389$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4390lt_shell_append=no
4391( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4392    >/dev/null 2>&1 \
4393  && lt_shell_append=yes
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4395$as_echo "$lt_shell_append" >&6; }
4396
4397
4398if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4399  lt_unset=unset
4400else
4401  lt_unset=false
4402fi
4403
4404
4405
4406
4407
4408# test EBCDIC or ASCII
4409case `echo X|tr X '\101'` in
4410 A) # ASCII based system
4411    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4412  lt_SP2NL='tr \040 \012'
4413  lt_NL2SP='tr \015\012 \040\040'
4414  ;;
4415 *) # EBCDIC based system
4416  lt_SP2NL='tr \100 \n'
4417  lt_NL2SP='tr \r\n \100\100'
4418  ;;
4419esac
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4430$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4431if ${lt_cv_to_host_file_cmd+:} false; then :
4432  $as_echo_n "(cached) " >&6
4433else
4434  case $host in
4435  *-*-mingw* )
4436    case $build in
4437      *-*-mingw* ) # actually msys
4438        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4439        ;;
4440      *-*-cygwin* )
4441        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4442        ;;
4443      * ) # otherwise, assume *nix
4444        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4445        ;;
4446    esac
4447    ;;
4448  *-*-cygwin* )
4449    case $build in
4450      *-*-mingw* ) # actually msys
4451        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4452        ;;
4453      *-*-cygwin* )
4454        lt_cv_to_host_file_cmd=func_convert_file_noop
4455        ;;
4456      * ) # otherwise, assume *nix
4457        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4458        ;;
4459    esac
4460    ;;
4461  * ) # unhandled hosts (and "normal" native builds)
4462    lt_cv_to_host_file_cmd=func_convert_file_noop
4463    ;;
4464esac
4465
4466fi
4467
4468to_host_file_cmd=$lt_cv_to_host_file_cmd
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4470$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4471
4472
4473
4474
4475
4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4477$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4478if ${lt_cv_to_tool_file_cmd+:} false; then :
4479  $as_echo_n "(cached) " >&6
4480else
4481  #assume ordinary cross tools, or native build.
4482lt_cv_to_tool_file_cmd=func_convert_file_noop
4483case $host in
4484  *-*-mingw* )
4485    case $build in
4486      *-*-mingw* ) # actually msys
4487        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4488        ;;
4489    esac
4490    ;;
4491esac
4492
4493fi
4494
4495to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4497$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4498
4499
4500
4501
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4504$as_echo_n "checking for $LD option to reload object files... " >&6; }
4505if ${lt_cv_ld_reload_flag+:} false; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  lt_cv_ld_reload_flag='-r'
4509fi
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4511$as_echo "$lt_cv_ld_reload_flag" >&6; }
4512reload_flag=$lt_cv_ld_reload_flag
4513case $reload_flag in
4514"" | " "*) ;;
4515*) reload_flag=" $reload_flag" ;;
4516esac
4517reload_cmds='$LD$reload_flag -o $output$reload_objs'
4518case $host_os in
4519  cygwin* | mingw* | pw32* | cegcc*)
4520    if test "$GCC" != yes; then
4521      reload_cmds=false
4522    fi
4523    ;;
4524  darwin*)
4525    if test "$GCC" = yes; then
4526      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4527    else
4528      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4529    fi
4530    ;;
4531esac
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541if test -n "$ac_tool_prefix"; then
4542  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4543set dummy ${ac_tool_prefix}objdump; ac_word=$2
4544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545$as_echo_n "checking for $ac_word... " >&6; }
4546if ${ac_cv_prog_OBJDUMP+:} false; then :
4547  $as_echo_n "(cached) " >&6
4548else
4549  if test -n "$OBJDUMP"; then
4550  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4551else
4552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553for as_dir in $PATH
4554do
4555  IFS=$as_save_IFS
4556  test -z "$as_dir" && as_dir=.
4557    for ac_exec_ext in '' $ac_executable_extensions; do
4558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4559    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561    break 2
4562  fi
4563done
4564  done
4565IFS=$as_save_IFS
4566
4567fi
4568fi
4569OBJDUMP=$ac_cv_prog_OBJDUMP
4570if test -n "$OBJDUMP"; then
4571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4572$as_echo "$OBJDUMP" >&6; }
4573else
4574  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575$as_echo "no" >&6; }
4576fi
4577
4578
4579fi
4580if test -z "$ac_cv_prog_OBJDUMP"; then
4581  ac_ct_OBJDUMP=$OBJDUMP
4582  # Extract the first word of "objdump", so it can be a program name with args.
4583set dummy objdump; ac_word=$2
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585$as_echo_n "checking for $ac_word... " >&6; }
4586if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4587  $as_echo_n "(cached) " >&6
4588else
4589  if test -n "$ac_ct_OBJDUMP"; then
4590  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4591else
4592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593for as_dir in $PATH
4594do
4595  IFS=$as_save_IFS
4596  test -z "$as_dir" && as_dir=.
4597    for ac_exec_ext in '' $ac_executable_extensions; do
4598  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4599    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4600    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601    break 2
4602  fi
4603done
4604  done
4605IFS=$as_save_IFS
4606
4607fi
4608fi
4609ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4610if test -n "$ac_ct_OBJDUMP"; then
4611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4612$as_echo "$ac_ct_OBJDUMP" >&6; }
4613else
4614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615$as_echo "no" >&6; }
4616fi
4617
4618  if test "x$ac_ct_OBJDUMP" = x; then
4619    OBJDUMP="false"
4620  else
4621    case $cross_compiling:$ac_tool_warned in
4622yes:)
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4624$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4625ac_tool_warned=yes ;;
4626esac
4627    OBJDUMP=$ac_ct_OBJDUMP
4628  fi
4629else
4630  OBJDUMP="$ac_cv_prog_OBJDUMP"
4631fi
4632
4633test -z "$OBJDUMP" && OBJDUMP=objdump
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4644$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4645if ${lt_cv_deplibs_check_method+:} false; then :
4646  $as_echo_n "(cached) " >&6
4647else
4648  lt_cv_file_magic_cmd='$MAGIC_CMD'
4649lt_cv_file_magic_test_file=
4650lt_cv_deplibs_check_method='unknown'
4651# Need to set the preceding variable on all platforms that support
4652# interlibrary dependencies.
4653# 'none' -- dependencies not supported.
4654# `unknown' -- same as none, but documents that we really don't know.
4655# 'pass_all' -- all dependencies passed with no checks.
4656# 'test_compile' -- check by making test program.
4657# 'file_magic [[regex]]' -- check by looking for files in library path
4658# which responds to the $file_magic_cmd with a given extended regex.
4659# If you have `file' or equivalent on your system and you're not sure
4660# whether `pass_all' will *always* work, you probably want this one.
4661
4662case $host_os in
4663aix[4-9]*)
4664  lt_cv_deplibs_check_method=pass_all
4665  ;;
4666
4667beos*)
4668  lt_cv_deplibs_check_method=pass_all
4669  ;;
4670
4671bsdi[45]*)
4672  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4673  lt_cv_file_magic_cmd='/usr/bin/file -L'
4674  lt_cv_file_magic_test_file=/shlib/libc.so
4675  ;;
4676
4677cygwin*)
4678  # func_win32_libid is a shell function defined in ltmain.sh
4679  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4680  lt_cv_file_magic_cmd='func_win32_libid'
4681  ;;
4682
4683mingw* | pw32*)
4684  # Base MSYS/MinGW do not provide the 'file' command needed by
4685  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4686  # unless we find 'file', for example because we are cross-compiling.
4687  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4688  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4689    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4690    lt_cv_file_magic_cmd='func_win32_libid'
4691  else
4692    # Keep this pattern in sync with the one in func_win32_libid.
4693    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4694    lt_cv_file_magic_cmd='$OBJDUMP -f'
4695  fi
4696  ;;
4697
4698cegcc*)
4699  # use the weaker test based on 'objdump'. See mingw*.
4700  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4701  lt_cv_file_magic_cmd='$OBJDUMP -f'
4702  ;;
4703
4704darwin* | rhapsody*)
4705  lt_cv_deplibs_check_method=pass_all
4706  ;;
4707
4708freebsd* | dragonfly*)
4709  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4710    case $host_cpu in
4711    i*86 )
4712      # Not sure whether the presence of OpenBSD here was a mistake.
4713      # Let's accept both of them until this is cleared up.
4714      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4715      lt_cv_file_magic_cmd=/usr/bin/file
4716      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4717      ;;
4718    esac
4719  else
4720    lt_cv_deplibs_check_method=pass_all
4721  fi
4722  ;;
4723
4724gnu*)
4725  lt_cv_deplibs_check_method=pass_all
4726  ;;
4727
4728haiku*)
4729  lt_cv_deplibs_check_method=pass_all
4730  ;;
4731
4732hpux10.20* | hpux11*)
4733  lt_cv_file_magic_cmd=/usr/bin/file
4734  case $host_cpu in
4735  ia64*)
4736    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4737    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4738    ;;
4739  hppa*64*)
4740    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]'
4741    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4742    ;;
4743  *)
4744    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4745    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4746    ;;
4747  esac
4748  ;;
4749
4750interix[3-9]*)
4751  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4752  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4753  ;;
4754
4755irix5* | irix6* | nonstopux*)
4756  case $LD in
4757  *-32|*"-32 ") libmagic=32-bit;;
4758  *-n32|*"-n32 ") libmagic=N32;;
4759  *-64|*"-64 ") libmagic=64-bit;;
4760  *) libmagic=never-match;;
4761  esac
4762  lt_cv_deplibs_check_method=pass_all
4763  ;;
4764
4765# This must be glibc/ELF.
4766linux* | k*bsd*-gnu | kopensolaris*-gnu)
4767  lt_cv_deplibs_check_method=pass_all
4768  ;;
4769
4770netbsd*)
4771  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4772    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4773  else
4774    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4775  fi
4776  ;;
4777
4778newos6*)
4779  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4780  lt_cv_file_magic_cmd=/usr/bin/file
4781  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4782  ;;
4783
4784*nto* | *qnx*)
4785  lt_cv_deplibs_check_method=pass_all
4786  ;;
4787
4788openbsd*)
4789  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4790    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4791  else
4792    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4793  fi
4794  ;;
4795
4796osf3* | osf4* | osf5*)
4797  lt_cv_deplibs_check_method=pass_all
4798  ;;
4799
4800rdos*)
4801  lt_cv_deplibs_check_method=pass_all
4802  ;;
4803
4804solaris*)
4805  lt_cv_deplibs_check_method=pass_all
4806  ;;
4807
4808sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4809  lt_cv_deplibs_check_method=pass_all
4810  ;;
4811
4812sysv4 | sysv4.3*)
4813  case $host_vendor in
4814  motorola)
4815    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]'
4816    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4817    ;;
4818  ncr)
4819    lt_cv_deplibs_check_method=pass_all
4820    ;;
4821  sequent)
4822    lt_cv_file_magic_cmd='/bin/file'
4823    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4824    ;;
4825  sni)
4826    lt_cv_file_magic_cmd='/bin/file'
4827    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4828    lt_cv_file_magic_test_file=/lib/libc.so
4829    ;;
4830  siemens)
4831    lt_cv_deplibs_check_method=pass_all
4832    ;;
4833  pc)
4834    lt_cv_deplibs_check_method=pass_all
4835    ;;
4836  esac
4837  ;;
4838
4839tpf*)
4840  lt_cv_deplibs_check_method=pass_all
4841  ;;
4842esac
4843
4844fi
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4846$as_echo "$lt_cv_deplibs_check_method" >&6; }
4847
4848file_magic_glob=
4849want_nocaseglob=no
4850if test "$build" = "$host"; then
4851  case $host_os in
4852  mingw* | pw32*)
4853    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4854      want_nocaseglob=yes
4855    else
4856      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
4857    fi
4858    ;;
4859  esac
4860fi
4861
4862file_magic_cmd=$lt_cv_file_magic_cmd
4863deplibs_check_method=$lt_cv_deplibs_check_method
4864test -z "$deplibs_check_method" && deplibs_check_method=unknown
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887if test -n "$ac_tool_prefix"; then
4888  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4889set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891$as_echo_n "checking for $ac_word... " >&6; }
4892if ${ac_cv_prog_DLLTOOL+:} false; then :
4893  $as_echo_n "(cached) " >&6
4894else
4895  if test -n "$DLLTOOL"; then
4896  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4897else
4898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901  IFS=$as_save_IFS
4902  test -z "$as_dir" && as_dir=.
4903    for ac_exec_ext in '' $ac_executable_extensions; do
4904  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907    break 2
4908  fi
4909done
4910  done
4911IFS=$as_save_IFS
4912
4913fi
4914fi
4915DLLTOOL=$ac_cv_prog_DLLTOOL
4916if test -n "$DLLTOOL"; then
4917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4918$as_echo "$DLLTOOL" >&6; }
4919else
4920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4921$as_echo "no" >&6; }
4922fi
4923
4924
4925fi
4926if test -z "$ac_cv_prog_DLLTOOL"; then
4927  ac_ct_DLLTOOL=$DLLTOOL
4928  # Extract the first word of "dlltool", so it can be a program name with args.
4929set dummy dlltool; ac_word=$2
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4931$as_echo_n "checking for $ac_word... " >&6; }
4932if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4933  $as_echo_n "(cached) " >&6
4934else
4935  if test -n "$ac_ct_DLLTOOL"; then
4936  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4937else
4938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941  IFS=$as_save_IFS
4942  test -z "$as_dir" && as_dir=.
4943    for ac_exec_ext in '' $ac_executable_extensions; do
4944  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4945    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4946    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4947    break 2
4948  fi
4949done
4950  done
4951IFS=$as_save_IFS
4952
4953fi
4954fi
4955ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4956if test -n "$ac_ct_DLLTOOL"; then
4957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4958$as_echo "$ac_ct_DLLTOOL" >&6; }
4959else
4960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961$as_echo "no" >&6; }
4962fi
4963
4964  if test "x$ac_ct_DLLTOOL" = x; then
4965    DLLTOOL="false"
4966  else
4967    case $cross_compiling:$ac_tool_warned in
4968yes:)
4969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4971ac_tool_warned=yes ;;
4972esac
4973    DLLTOOL=$ac_ct_DLLTOOL
4974  fi
4975else
4976  DLLTOOL="$ac_cv_prog_DLLTOOL"
4977fi
4978
4979test -z "$DLLTOOL" && DLLTOOL=dlltool
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
4991$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
4992if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
4993  $as_echo_n "(cached) " >&6
4994else
4995  lt_cv_sharedlib_from_linklib_cmd='unknown'
4996
4997case $host_os in
4998cygwin* | mingw* | pw32* | cegcc*)
4999  # two different shell functions defined in ltmain.sh
5000  # decide which to use based on capabilities of $DLLTOOL
5001  case `$DLLTOOL --help 2>&1` in
5002  *--identify-strict*)
5003    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5004    ;;
5005  *)
5006    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5007    ;;
5008  esac
5009  ;;
5010*)
5011  # fallback: assume linklib IS sharedlib
5012  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5013  ;;
5014esac
5015
5016fi
5017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5018$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5019sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5020test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5021
5022
5023
5024
5025
5026
5027
5028
5029if test -n "$ac_tool_prefix"; then
5030  for ac_prog in ar
5031  do
5032    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5035$as_echo_n "checking for $ac_word... " >&6; }
5036if ${ac_cv_prog_AR+:} false; then :
5037  $as_echo_n "(cached) " >&6
5038else
5039  if test -n "$AR"; then
5040  ac_cv_prog_AR="$AR" # Let the user override the test.
5041else
5042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043for as_dir in $PATH
5044do
5045  IFS=$as_save_IFS
5046  test -z "$as_dir" && as_dir=.
5047    for ac_exec_ext in '' $ac_executable_extensions; do
5048  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051    break 2
5052  fi
5053done
5054  done
5055IFS=$as_save_IFS
5056
5057fi
5058fi
5059AR=$ac_cv_prog_AR
5060if test -n "$AR"; then
5061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5062$as_echo "$AR" >&6; }
5063else
5064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065$as_echo "no" >&6; }
5066fi
5067
5068
5069    test -n "$AR" && break
5070  done
5071fi
5072if test -z "$AR"; then
5073  ac_ct_AR=$AR
5074  for ac_prog in ar
5075do
5076  # Extract the first word of "$ac_prog", so it can be a program name with args.
5077set dummy $ac_prog; ac_word=$2
5078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079$as_echo_n "checking for $ac_word... " >&6; }
5080if ${ac_cv_prog_ac_ct_AR+:} false; then :
5081  $as_echo_n "(cached) " >&6
5082else
5083  if test -n "$ac_ct_AR"; then
5084  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5085else
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089  IFS=$as_save_IFS
5090  test -z "$as_dir" && as_dir=.
5091    for ac_exec_ext in '' $ac_executable_extensions; do
5092  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093    ac_cv_prog_ac_ct_AR="$ac_prog"
5094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5095    break 2
5096  fi
5097done
5098  done
5099IFS=$as_save_IFS
5100
5101fi
5102fi
5103ac_ct_AR=$ac_cv_prog_ac_ct_AR
5104if test -n "$ac_ct_AR"; then
5105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5106$as_echo "$ac_ct_AR" >&6; }
5107else
5108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109$as_echo "no" >&6; }
5110fi
5111
5112
5113  test -n "$ac_ct_AR" && break
5114done
5115
5116  if test "x$ac_ct_AR" = x; then
5117    AR="false"
5118  else
5119    case $cross_compiling:$ac_tool_warned in
5120yes:)
5121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5123ac_tool_warned=yes ;;
5124esac
5125    AR=$ac_ct_AR
5126  fi
5127fi
5128
5129: ${AR=ar}
5130: ${AR_FLAGS=cru}
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5143$as_echo_n "checking for archiver @FILE support... " >&6; }
5144if ${lt_cv_ar_at_file+:} false; then :
5145  $as_echo_n "(cached) " >&6
5146else
5147  lt_cv_ar_at_file=no
5148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5149/* end confdefs.h.  */
5150
5151int
5152main ()
5153{
5154
5155  ;
5156  return 0;
5157}
5158_ACEOF
5159if ac_fn_c_try_compile "$LINENO"; then :
5160  echo conftest.$ac_objext > conftest.lst
5161      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5162      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5163  (eval $lt_ar_try) 2>&5
5164  ac_status=$?
5165  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5166  test $ac_status = 0; }
5167      if test "$ac_status" -eq 0; then
5168	# Ensure the archiver fails upon bogus file names.
5169	rm -f conftest.$ac_objext libconftest.a
5170	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5171  (eval $lt_ar_try) 2>&5
5172  ac_status=$?
5173  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5174  test $ac_status = 0; }
5175	if test "$ac_status" -ne 0; then
5176          lt_cv_ar_at_file=@
5177        fi
5178      fi
5179      rm -f conftest.* libconftest.a
5180
5181fi
5182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183
5184fi
5185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5186$as_echo "$lt_cv_ar_at_file" >&6; }
5187
5188if test "x$lt_cv_ar_at_file" = xno; then
5189  archiver_list_spec=
5190else
5191  archiver_list_spec=$lt_cv_ar_at_file
5192fi
5193
5194
5195
5196
5197
5198
5199
5200if test -n "$ac_tool_prefix"; then
5201  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5202set dummy ${ac_tool_prefix}strip; ac_word=$2
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204$as_echo_n "checking for $ac_word... " >&6; }
5205if ${ac_cv_prog_STRIP+:} false; then :
5206  $as_echo_n "(cached) " >&6
5207else
5208  if test -n "$STRIP"; then
5209  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5210else
5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212for as_dir in $PATH
5213do
5214  IFS=$as_save_IFS
5215  test -z "$as_dir" && as_dir=.
5216    for ac_exec_ext in '' $ac_executable_extensions; do
5217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220    break 2
5221  fi
5222done
5223  done
5224IFS=$as_save_IFS
5225
5226fi
5227fi
5228STRIP=$ac_cv_prog_STRIP
5229if test -n "$STRIP"; then
5230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5231$as_echo "$STRIP" >&6; }
5232else
5233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234$as_echo "no" >&6; }
5235fi
5236
5237
5238fi
5239if test -z "$ac_cv_prog_STRIP"; then
5240  ac_ct_STRIP=$STRIP
5241  # Extract the first word of "strip", so it can be a program name with args.
5242set dummy strip; ac_word=$2
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244$as_echo_n "checking for $ac_word... " >&6; }
5245if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5246  $as_echo_n "(cached) " >&6
5247else
5248  if test -n "$ac_ct_STRIP"; then
5249  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254  IFS=$as_save_IFS
5255  test -z "$as_dir" && as_dir=.
5256    for ac_exec_ext in '' $ac_executable_extensions; do
5257  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258    ac_cv_prog_ac_ct_STRIP="strip"
5259    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260    break 2
5261  fi
5262done
5263  done
5264IFS=$as_save_IFS
5265
5266fi
5267fi
5268ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5269if test -n "$ac_ct_STRIP"; then
5270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5271$as_echo "$ac_ct_STRIP" >&6; }
5272else
5273  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
5275fi
5276
5277  if test "x$ac_ct_STRIP" = x; then
5278    STRIP=":"
5279  else
5280    case $cross_compiling:$ac_tool_warned in
5281yes:)
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5284ac_tool_warned=yes ;;
5285esac
5286    STRIP=$ac_ct_STRIP
5287  fi
5288else
5289  STRIP="$ac_cv_prog_STRIP"
5290fi
5291
5292test -z "$STRIP" && STRIP=:
5293
5294
5295
5296
5297
5298
5299if test -n "$ac_tool_prefix"; then
5300  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5301set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303$as_echo_n "checking for $ac_word... " >&6; }
5304if ${ac_cv_prog_RANLIB+:} false; then :
5305  $as_echo_n "(cached) " >&6
5306else
5307  if test -n "$RANLIB"; then
5308  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5309else
5310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313  IFS=$as_save_IFS
5314  test -z "$as_dir" && as_dir=.
5315    for ac_exec_ext in '' $ac_executable_extensions; do
5316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319    break 2
5320  fi
5321done
5322  done
5323IFS=$as_save_IFS
5324
5325fi
5326fi
5327RANLIB=$ac_cv_prog_RANLIB
5328if test -n "$RANLIB"; then
5329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5330$as_echo "$RANLIB" >&6; }
5331else
5332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333$as_echo "no" >&6; }
5334fi
5335
5336
5337fi
5338if test -z "$ac_cv_prog_RANLIB"; then
5339  ac_ct_RANLIB=$RANLIB
5340  # Extract the first word of "ranlib", so it can be a program name with args.
5341set dummy ranlib; ac_word=$2
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343$as_echo_n "checking for $ac_word... " >&6; }
5344if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5345  $as_echo_n "(cached) " >&6
5346else
5347  if test -n "$ac_ct_RANLIB"; then
5348  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5349else
5350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353  IFS=$as_save_IFS
5354  test -z "$as_dir" && as_dir=.
5355    for ac_exec_ext in '' $ac_executable_extensions; do
5356  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357    ac_cv_prog_ac_ct_RANLIB="ranlib"
5358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359    break 2
5360  fi
5361done
5362  done
5363IFS=$as_save_IFS
5364
5365fi
5366fi
5367ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5368if test -n "$ac_ct_RANLIB"; then
5369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5370$as_echo "$ac_ct_RANLIB" >&6; }
5371else
5372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373$as_echo "no" >&6; }
5374fi
5375
5376  if test "x$ac_ct_RANLIB" = x; then
5377    RANLIB=":"
5378  else
5379    case $cross_compiling:$ac_tool_warned in
5380yes:)
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5383ac_tool_warned=yes ;;
5384esac
5385    RANLIB=$ac_ct_RANLIB
5386  fi
5387else
5388  RANLIB="$ac_cv_prog_RANLIB"
5389fi
5390
5391test -z "$RANLIB" && RANLIB=:
5392
5393
5394
5395
5396
5397
5398# Determine commands to create old-style static archives.
5399old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5400old_postinstall_cmds='chmod 644 $oldlib'
5401old_postuninstall_cmds=
5402
5403if test -n "$RANLIB"; then
5404  case $host_os in
5405  openbsd*)
5406    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5407    ;;
5408  *)
5409    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5410    ;;
5411  esac
5412  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5413fi
5414
5415case $host_os in
5416  darwin*)
5417    lock_old_archive_extraction=yes ;;
5418  *)
5419    lock_old_archive_extraction=no ;;
5420esac
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442for ac_prog in gawk mawk nawk awk
5443do
5444  # Extract the first word of "$ac_prog", so it can be a program name with args.
5445set dummy $ac_prog; ac_word=$2
5446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447$as_echo_n "checking for $ac_word... " >&6; }
5448if ${ac_cv_prog_AWK+:} false; then :
5449  $as_echo_n "(cached) " >&6
5450else
5451  if test -n "$AWK"; then
5452  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5453else
5454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455for as_dir in $PATH
5456do
5457  IFS=$as_save_IFS
5458  test -z "$as_dir" && as_dir=.
5459    for ac_exec_ext in '' $ac_executable_extensions; do
5460  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5461    ac_cv_prog_AWK="$ac_prog"
5462    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5463    break 2
5464  fi
5465done
5466  done
5467IFS=$as_save_IFS
5468
5469fi
5470fi
5471AWK=$ac_cv_prog_AWK
5472if test -n "$AWK"; then
5473  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5474$as_echo "$AWK" >&6; }
5475else
5476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477$as_echo "no" >&6; }
5478fi
5479
5480
5481  test -n "$AWK" && break
5482done
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502# If no C compiler was specified, use CC.
5503LTCC=${LTCC-"$CC"}
5504
5505# If no C compiler flags were specified, use CFLAGS.
5506LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5507
5508# Allow CC to be a program name with arguments.
5509compiler=$CC
5510
5511
5512# Check for command to grab the raw symbol name followed by C symbol from nm.
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5514$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5515if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5516  $as_echo_n "(cached) " >&6
5517else
5518
5519# These are sane defaults that work on at least a few old systems.
5520# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5521
5522# Character class describing NM global symbol codes.
5523symcode='[BCDEGRST]'
5524
5525# Regexp to match symbols that can be accessed directly from C.
5526sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5527
5528# Define system-specific variables.
5529case $host_os in
5530aix*)
5531  symcode='[BCDT]'
5532  ;;
5533cygwin* | mingw* | pw32* | cegcc*)
5534  symcode='[ABCDGISTW]'
5535  ;;
5536hpux*)
5537  if test "$host_cpu" = ia64; then
5538    symcode='[ABCDEGRST]'
5539  fi
5540  ;;
5541irix* | nonstopux*)
5542  symcode='[BCDEGRST]'
5543  ;;
5544osf*)
5545  symcode='[BCDEGQRST]'
5546  ;;
5547solaris*)
5548  symcode='[BDRT]'
5549  ;;
5550sco3.2v5*)
5551  symcode='[DT]'
5552  ;;
5553sysv4.2uw2*)
5554  symcode='[DT]'
5555  ;;
5556sysv5* | sco5v6* | unixware* | OpenUNIX*)
5557  symcode='[ABDT]'
5558  ;;
5559sysv4)
5560  symcode='[DFNSTU]'
5561  ;;
5562esac
5563
5564# If we're using GNU nm, then use its standard symbol codes.
5565case `$NM -V 2>&1` in
5566*GNU* | *'with BFD'*)
5567  symcode='[ABCDGIRSTW]' ;;
5568esac
5569
5570# Transform an extracted symbol line into a proper C declaration.
5571# Some systems (esp. on ia64) link data and code symbols differently,
5572# so use this general approach.
5573lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5574
5575# Transform an extracted symbol line into symbol name and symbol address
5576lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5577lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5578
5579# Handle CRLF in mingw tool chain
5580opt_cr=
5581case $build_os in
5582mingw*)
5583  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5584  ;;
5585esac
5586
5587# Try without a prefix underscore, then with it.
5588for ac_symprfx in "" "_"; do
5589
5590  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5591  symxfrm="\\1 $ac_symprfx\\2 \\2"
5592
5593  # Write the raw and C identifiers.
5594  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5595    # Fake it for dumpbin and say T for any non-static function
5596    # and D for any global variable.
5597    # Also find C++ and __fastcall symbols from MSVC++,
5598    # which start with @ or ?.
5599    lt_cv_sys_global_symbol_pipe="$AWK '"\
5600"     {last_section=section; section=\$ 3};"\
5601"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5602"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5603"     \$ 0!~/External *\|/{next};"\
5604"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5605"     {if(hide[section]) next};"\
5606"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5607"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5608"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5609"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5610"     ' prfx=^$ac_symprfx"
5611  else
5612    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5613  fi
5614  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5615
5616  # Check to see that the pipe works correctly.
5617  pipe_works=no
5618
5619  rm -f conftest*
5620  cat > conftest.$ac_ext <<_LT_EOF
5621#ifdef __cplusplus
5622extern "C" {
5623#endif
5624char nm_test_var;
5625void nm_test_func(void);
5626void nm_test_func(void){}
5627#ifdef __cplusplus
5628}
5629#endif
5630int main(){nm_test_var='a';nm_test_func();return(0);}
5631_LT_EOF
5632
5633  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5634  (eval $ac_compile) 2>&5
5635  ac_status=$?
5636  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5637  test $ac_status = 0; }; then
5638    # Now try to grab the symbols.
5639    nlist=conftest.nm
5640    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5641  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5642  ac_status=$?
5643  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644  test $ac_status = 0; } && test -s "$nlist"; then
5645      # Try sorting and uniquifying the output.
5646      if sort "$nlist" | uniq > "$nlist"T; then
5647	mv -f "$nlist"T "$nlist"
5648      else
5649	rm -f "$nlist"T
5650      fi
5651
5652      # Make sure that we snagged all the symbols we need.
5653      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5654	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5655	  cat <<_LT_EOF > conftest.$ac_ext
5656/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5657#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5658/* DATA imports from DLLs on WIN32 con't be const, because runtime
5659   relocations are performed -- see ld's documentation on pseudo-relocs.  */
5660# define LT_DLSYM_CONST
5661#elif defined(__osf__)
5662/* This system does not cope well with relocations in const data.  */
5663# define LT_DLSYM_CONST
5664#else
5665# define LT_DLSYM_CONST const
5666#endif
5667
5668#ifdef __cplusplus
5669extern "C" {
5670#endif
5671
5672_LT_EOF
5673	  # Now generate the symbol file.
5674	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5675
5676	  cat <<_LT_EOF >> conftest.$ac_ext
5677
5678/* The mapping between symbol names and symbols.  */
5679LT_DLSYM_CONST struct {
5680  const char *name;
5681  void       *address;
5682}
5683lt__PROGRAM__LTX_preloaded_symbols[] =
5684{
5685  { "@PROGRAM@", (void *) 0 },
5686_LT_EOF
5687	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5688	  cat <<\_LT_EOF >> conftest.$ac_ext
5689  {0, (void *) 0}
5690};
5691
5692/* This works around a problem in FreeBSD linker */
5693#ifdef FREEBSD_WORKAROUND
5694static const void *lt_preloaded_setup() {
5695  return lt__PROGRAM__LTX_preloaded_symbols;
5696}
5697#endif
5698
5699#ifdef __cplusplus
5700}
5701#endif
5702_LT_EOF
5703	  # Now try linking the two files.
5704	  mv conftest.$ac_objext conftstm.$ac_objext
5705	  lt_globsym_save_LIBS=$LIBS
5706	  lt_globsym_save_CFLAGS=$CFLAGS
5707	  LIBS="conftstm.$ac_objext"
5708	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5709	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5710  (eval $ac_link) 2>&5
5711  ac_status=$?
5712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5714	    pipe_works=yes
5715	  fi
5716	  LIBS=$lt_globsym_save_LIBS
5717	  CFLAGS=$lt_globsym_save_CFLAGS
5718	else
5719	  echo "cannot find nm_test_func in $nlist" >&5
5720	fi
5721      else
5722	echo "cannot find nm_test_var in $nlist" >&5
5723      fi
5724    else
5725      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5726    fi
5727  else
5728    echo "$progname: failed program was:" >&5
5729    cat conftest.$ac_ext >&5
5730  fi
5731  rm -rf conftest* conftst*
5732
5733  # Do not use the global_symbol_pipe unless it works.
5734  if test "$pipe_works" = yes; then
5735    break
5736  else
5737    lt_cv_sys_global_symbol_pipe=
5738  fi
5739done
5740
5741fi
5742
5743if test -z "$lt_cv_sys_global_symbol_pipe"; then
5744  lt_cv_sys_global_symbol_to_cdecl=
5745fi
5746if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5747  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5748$as_echo "failed" >&6; }
5749else
5750  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5751$as_echo "ok" >&6; }
5752fi
5753
5754# Response file support.
5755if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5756  nm_file_list_spec='@'
5757elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5758  nm_file_list_spec='@'
5759fi
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5788$as_echo_n "checking for sysroot... " >&6; }
5789
5790# Check whether --with-sysroot was given.
5791if test "${with_sysroot+set}" = set; then :
5792  withval=$with_sysroot;
5793else
5794  with_sysroot=no
5795fi
5796
5797
5798lt_sysroot=
5799case ${with_sysroot} in #(
5800 yes)
5801   if test "$GCC" = yes; then
5802     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5803   fi
5804   ;; #(
5805 /*)
5806   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5807   ;; #(
5808 no|'')
5809   ;; #(
5810 *)
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5812$as_echo "${with_sysroot}" >&6; }
5813   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5814   ;;
5815esac
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5818$as_echo "${lt_sysroot:-no}" >&6; }
5819
5820
5821
5822
5823
5824# Check whether --enable-libtool-lock was given.
5825if test "${enable_libtool_lock+set}" = set; then :
5826  enableval=$enable_libtool_lock;
5827fi
5828
5829test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5830
5831# Some flags need to be propagated to the compiler or linker for good
5832# libtool support.
5833case $host in
5834ia64-*-hpux*)
5835  # Find out which ABI we are using.
5836  echo 'int i;' > conftest.$ac_ext
5837  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5838  (eval $ac_compile) 2>&5
5839  ac_status=$?
5840  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5841  test $ac_status = 0; }; then
5842    case `/usr/bin/file conftest.$ac_objext` in
5843      *ELF-32*)
5844	HPUX_IA64_MODE="32"
5845	;;
5846      *ELF-64*)
5847	HPUX_IA64_MODE="64"
5848	;;
5849    esac
5850  fi
5851  rm -rf conftest*
5852  ;;
5853*-*-irix6*)
5854  # Find out which ABI we are using.
5855  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5856  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5857  (eval $ac_compile) 2>&5
5858  ac_status=$?
5859  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5860  test $ac_status = 0; }; then
5861    if test "$lt_cv_prog_gnu_ld" = yes; then
5862      case `/usr/bin/file conftest.$ac_objext` in
5863	*32-bit*)
5864	  LD="${LD-ld} -melf32bsmip"
5865	  ;;
5866	*N32*)
5867	  LD="${LD-ld} -melf32bmipn32"
5868	  ;;
5869	*64-bit*)
5870	  LD="${LD-ld} -melf64bmip"
5871	;;
5872      esac
5873    else
5874      case `/usr/bin/file conftest.$ac_objext` in
5875	*32-bit*)
5876	  LD="${LD-ld} -32"
5877	  ;;
5878	*N32*)
5879	  LD="${LD-ld} -n32"
5880	  ;;
5881	*64-bit*)
5882	  LD="${LD-ld} -64"
5883	  ;;
5884      esac
5885    fi
5886  fi
5887  rm -rf conftest*
5888  ;;
5889
5890x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
5891s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5892  # Find out which ABI we are using.
5893  echo 'int i;' > conftest.$ac_ext
5894  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5895  (eval $ac_compile) 2>&5
5896  ac_status=$?
5897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898  test $ac_status = 0; }; then
5899    case `/usr/bin/file conftest.o` in
5900      *32-bit*)
5901	case $host in
5902	  x86_64-*kfreebsd*-gnu)
5903	    LD="${LD-ld} -m elf_i386_fbsd"
5904	    ;;
5905	  x86_64-*linux*)
5906	    LD="${LD-ld} -m elf_i386"
5907	    ;;
5908	  powerpc64le-*linux*)
5909	    LD="${LD-ld} -m elf32lppclinux"
5910	    ;;
5911	  powerpc64-*linux*)
5912	    LD="${LD-ld} -m elf32ppclinux"
5913	    ;;
5914	  s390x-*linux*)
5915	    LD="${LD-ld} -m elf_s390"
5916	    ;;
5917	  sparc64-*linux*)
5918	    LD="${LD-ld} -m elf32_sparc"
5919	    ;;
5920	esac
5921	;;
5922      *64-bit*)
5923	case $host in
5924	  x86_64-*kfreebsd*-gnu)
5925	    LD="${LD-ld} -m elf_x86_64_fbsd"
5926	    ;;
5927	  x86_64-*linux*)
5928	    LD="${LD-ld} -m elf_x86_64"
5929	    ;;
5930	  powerpcle-*linux*)
5931	    LD="${LD-ld} -m elf64lppc"
5932	    ;;
5933	  powerpc-*linux*)
5934	    LD="${LD-ld} -m elf64ppc"
5935	    ;;
5936	  s390*-*linux*|s390*-*tpf*)
5937	    LD="${LD-ld} -m elf64_s390"
5938	    ;;
5939	  sparc*-*linux*)
5940	    LD="${LD-ld} -m elf64_sparc"
5941	    ;;
5942	esac
5943	;;
5944    esac
5945  fi
5946  rm -rf conftest*
5947  ;;
5948
5949*-*-sco3.2v5*)
5950  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5951  SAVE_CFLAGS="$CFLAGS"
5952  CFLAGS="$CFLAGS -belf"
5953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5954$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5955if ${lt_cv_cc_needs_belf+:} false; then :
5956  $as_echo_n "(cached) " >&6
5957else
5958  ac_ext=c
5959ac_cpp='$CPP $CPPFLAGS'
5960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5962ac_compiler_gnu=$ac_cv_c_compiler_gnu
5963
5964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965/* end confdefs.h.  */
5966
5967int
5968main ()
5969{
5970
5971  ;
5972  return 0;
5973}
5974_ACEOF
5975if ac_fn_c_try_link "$LINENO"; then :
5976  lt_cv_cc_needs_belf=yes
5977else
5978  lt_cv_cc_needs_belf=no
5979fi
5980rm -f core conftest.err conftest.$ac_objext \
5981    conftest$ac_exeext conftest.$ac_ext
5982     ac_ext=c
5983ac_cpp='$CPP $CPPFLAGS'
5984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5986ac_compiler_gnu=$ac_cv_c_compiler_gnu
5987
5988fi
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5990$as_echo "$lt_cv_cc_needs_belf" >&6; }
5991  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5992    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5993    CFLAGS="$SAVE_CFLAGS"
5994  fi
5995  ;;
5996*-*solaris*)
5997  # Find out which ABI we are using.
5998  echo 'int i;' > conftest.$ac_ext
5999  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6000  (eval $ac_compile) 2>&5
6001  ac_status=$?
6002  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003  test $ac_status = 0; }; then
6004    case `/usr/bin/file conftest.o` in
6005    *64-bit*)
6006      case $lt_cv_prog_gnu_ld in
6007      yes*)
6008        case $host in
6009        i?86-*-solaris*)
6010          LD="${LD-ld} -m elf_x86_64"
6011          ;;
6012        sparc*-*-solaris*)
6013          LD="${LD-ld} -m elf64_sparc"
6014          ;;
6015        esac
6016        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6017        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6018          LD="${LD-ld}_sol2"
6019        fi
6020        ;;
6021      *)
6022	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6023	  LD="${LD-ld} -64"
6024	fi
6025	;;
6026      esac
6027      ;;
6028    esac
6029  fi
6030  rm -rf conftest*
6031  ;;
6032esac
6033
6034need_locks="$enable_libtool_lock"
6035
6036if test -n "$ac_tool_prefix"; then
6037  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6038set dummy ${ac_tool_prefix}mt; ac_word=$2
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6040$as_echo_n "checking for $ac_word... " >&6; }
6041if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6042  $as_echo_n "(cached) " >&6
6043else
6044  if test -n "$MANIFEST_TOOL"; then
6045  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6046else
6047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048for as_dir in $PATH
6049do
6050  IFS=$as_save_IFS
6051  test -z "$as_dir" && as_dir=.
6052    for ac_exec_ext in '' $ac_executable_extensions; do
6053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6054    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056    break 2
6057  fi
6058done
6059  done
6060IFS=$as_save_IFS
6061
6062fi
6063fi
6064MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6065if test -n "$MANIFEST_TOOL"; then
6066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6067$as_echo "$MANIFEST_TOOL" >&6; }
6068else
6069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6070$as_echo "no" >&6; }
6071fi
6072
6073
6074fi
6075if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6076  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6077  # Extract the first word of "mt", so it can be a program name with args.
6078set dummy mt; ac_word=$2
6079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080$as_echo_n "checking for $ac_word... " >&6; }
6081if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6082  $as_echo_n "(cached) " >&6
6083else
6084  if test -n "$ac_ct_MANIFEST_TOOL"; then
6085  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6086else
6087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088for as_dir in $PATH
6089do
6090  IFS=$as_save_IFS
6091  test -z "$as_dir" && as_dir=.
6092    for ac_exec_ext in '' $ac_executable_extensions; do
6093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096    break 2
6097  fi
6098done
6099  done
6100IFS=$as_save_IFS
6101
6102fi
6103fi
6104ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6105if test -n "$ac_ct_MANIFEST_TOOL"; then
6106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6107$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6108else
6109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110$as_echo "no" >&6; }
6111fi
6112
6113  if test "x$ac_ct_MANIFEST_TOOL" = x; then
6114    MANIFEST_TOOL=":"
6115  else
6116    case $cross_compiling:$ac_tool_warned in
6117yes:)
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6120ac_tool_warned=yes ;;
6121esac
6122    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6123  fi
6124else
6125  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6126fi
6127
6128test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6130$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6131if ${lt_cv_path_mainfest_tool+:} false; then :
6132  $as_echo_n "(cached) " >&6
6133else
6134  lt_cv_path_mainfest_tool=no
6135  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6136  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6137  cat conftest.err >&5
6138  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6139    lt_cv_path_mainfest_tool=yes
6140  fi
6141  rm -f conftest*
6142fi
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6144$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6145if test "x$lt_cv_path_mainfest_tool" != xyes; then
6146  MANIFEST_TOOL=:
6147fi
6148
6149
6150
6151
6152
6153
6154  case $host_os in
6155    rhapsody* | darwin*)
6156    if test -n "$ac_tool_prefix"; then
6157  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6158set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160$as_echo_n "checking for $ac_word... " >&6; }
6161if ${ac_cv_prog_DSYMUTIL+:} false; then :
6162  $as_echo_n "(cached) " >&6
6163else
6164  if test -n "$DSYMUTIL"; then
6165  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6166else
6167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168for as_dir in $PATH
6169do
6170  IFS=$as_save_IFS
6171  test -z "$as_dir" && as_dir=.
6172    for ac_exec_ext in '' $ac_executable_extensions; do
6173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6174    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176    break 2
6177  fi
6178done
6179  done
6180IFS=$as_save_IFS
6181
6182fi
6183fi
6184DSYMUTIL=$ac_cv_prog_DSYMUTIL
6185if test -n "$DSYMUTIL"; then
6186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6187$as_echo "$DSYMUTIL" >&6; }
6188else
6189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190$as_echo "no" >&6; }
6191fi
6192
6193
6194fi
6195if test -z "$ac_cv_prog_DSYMUTIL"; then
6196  ac_ct_DSYMUTIL=$DSYMUTIL
6197  # Extract the first word of "dsymutil", so it can be a program name with args.
6198set dummy dsymutil; ac_word=$2
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6200$as_echo_n "checking for $ac_word... " >&6; }
6201if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6202  $as_echo_n "(cached) " >&6
6203else
6204  if test -n "$ac_ct_DSYMUTIL"; then
6205  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6206else
6207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208for as_dir in $PATH
6209do
6210  IFS=$as_save_IFS
6211  test -z "$as_dir" && as_dir=.
6212    for ac_exec_ext in '' $ac_executable_extensions; do
6213  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6214    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6215    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6216    break 2
6217  fi
6218done
6219  done
6220IFS=$as_save_IFS
6221
6222fi
6223fi
6224ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6225if test -n "$ac_ct_DSYMUTIL"; then
6226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6227$as_echo "$ac_ct_DSYMUTIL" >&6; }
6228else
6229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6230$as_echo "no" >&6; }
6231fi
6232
6233  if test "x$ac_ct_DSYMUTIL" = x; then
6234    DSYMUTIL=":"
6235  else
6236    case $cross_compiling:$ac_tool_warned in
6237yes:)
6238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6240ac_tool_warned=yes ;;
6241esac
6242    DSYMUTIL=$ac_ct_DSYMUTIL
6243  fi
6244else
6245  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6246fi
6247
6248    if test -n "$ac_tool_prefix"; then
6249  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6250set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6252$as_echo_n "checking for $ac_word... " >&6; }
6253if ${ac_cv_prog_NMEDIT+:} false; then :
6254  $as_echo_n "(cached) " >&6
6255else
6256  if test -n "$NMEDIT"; then
6257  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6258else
6259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260for as_dir in $PATH
6261do
6262  IFS=$as_save_IFS
6263  test -z "$as_dir" && as_dir=.
6264    for ac_exec_ext in '' $ac_executable_extensions; do
6265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6268    break 2
6269  fi
6270done
6271  done
6272IFS=$as_save_IFS
6273
6274fi
6275fi
6276NMEDIT=$ac_cv_prog_NMEDIT
6277if test -n "$NMEDIT"; then
6278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6279$as_echo "$NMEDIT" >&6; }
6280else
6281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6282$as_echo "no" >&6; }
6283fi
6284
6285
6286fi
6287if test -z "$ac_cv_prog_NMEDIT"; then
6288  ac_ct_NMEDIT=$NMEDIT
6289  # Extract the first word of "nmedit", so it can be a program name with args.
6290set dummy nmedit; ac_word=$2
6291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292$as_echo_n "checking for $ac_word... " >&6; }
6293if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6294  $as_echo_n "(cached) " >&6
6295else
6296  if test -n "$ac_ct_NMEDIT"; then
6297  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6298else
6299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300for as_dir in $PATH
6301do
6302  IFS=$as_save_IFS
6303  test -z "$as_dir" && as_dir=.
6304    for ac_exec_ext in '' $ac_executable_extensions; do
6305  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6307    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308    break 2
6309  fi
6310done
6311  done
6312IFS=$as_save_IFS
6313
6314fi
6315fi
6316ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6317if test -n "$ac_ct_NMEDIT"; then
6318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6319$as_echo "$ac_ct_NMEDIT" >&6; }
6320else
6321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322$as_echo "no" >&6; }
6323fi
6324
6325  if test "x$ac_ct_NMEDIT" = x; then
6326    NMEDIT=":"
6327  else
6328    case $cross_compiling:$ac_tool_warned in
6329yes:)
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6331$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6332ac_tool_warned=yes ;;
6333esac
6334    NMEDIT=$ac_ct_NMEDIT
6335  fi
6336else
6337  NMEDIT="$ac_cv_prog_NMEDIT"
6338fi
6339
6340    if test -n "$ac_tool_prefix"; then
6341  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6342set dummy ${ac_tool_prefix}lipo; ac_word=$2
6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344$as_echo_n "checking for $ac_word... " >&6; }
6345if ${ac_cv_prog_LIPO+:} false; then :
6346  $as_echo_n "(cached) " >&6
6347else
6348  if test -n "$LIPO"; then
6349  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6350else
6351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6352for as_dir in $PATH
6353do
6354  IFS=$as_save_IFS
6355  test -z "$as_dir" && as_dir=.
6356    for ac_exec_ext in '' $ac_executable_extensions; do
6357  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6359    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6360    break 2
6361  fi
6362done
6363  done
6364IFS=$as_save_IFS
6365
6366fi
6367fi
6368LIPO=$ac_cv_prog_LIPO
6369if test -n "$LIPO"; then
6370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6371$as_echo "$LIPO" >&6; }
6372else
6373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376
6377
6378fi
6379if test -z "$ac_cv_prog_LIPO"; then
6380  ac_ct_LIPO=$LIPO
6381  # Extract the first word of "lipo", so it can be a program name with args.
6382set dummy lipo; ac_word=$2
6383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6384$as_echo_n "checking for $ac_word... " >&6; }
6385if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6386  $as_echo_n "(cached) " >&6
6387else
6388  if test -n "$ac_ct_LIPO"; then
6389  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394  IFS=$as_save_IFS
6395  test -z "$as_dir" && as_dir=.
6396    for ac_exec_ext in '' $ac_executable_extensions; do
6397  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398    ac_cv_prog_ac_ct_LIPO="lipo"
6399    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400    break 2
6401  fi
6402done
6403  done
6404IFS=$as_save_IFS
6405
6406fi
6407fi
6408ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6409if test -n "$ac_ct_LIPO"; then
6410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6411$as_echo "$ac_ct_LIPO" >&6; }
6412else
6413  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414$as_echo "no" >&6; }
6415fi
6416
6417  if test "x$ac_ct_LIPO" = x; then
6418    LIPO=":"
6419  else
6420    case $cross_compiling:$ac_tool_warned in
6421yes:)
6422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424ac_tool_warned=yes ;;
6425esac
6426    LIPO=$ac_ct_LIPO
6427  fi
6428else
6429  LIPO="$ac_cv_prog_LIPO"
6430fi
6431
6432    if test -n "$ac_tool_prefix"; then
6433  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6434set dummy ${ac_tool_prefix}otool; ac_word=$2
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436$as_echo_n "checking for $ac_word... " >&6; }
6437if ${ac_cv_prog_OTOOL+:} false; then :
6438  $as_echo_n "(cached) " >&6
6439else
6440  if test -n "$OTOOL"; then
6441  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6442else
6443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444for as_dir in $PATH
6445do
6446  IFS=$as_save_IFS
6447  test -z "$as_dir" && as_dir=.
6448    for ac_exec_ext in '' $ac_executable_extensions; do
6449  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6450    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6451    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6452    break 2
6453  fi
6454done
6455  done
6456IFS=$as_save_IFS
6457
6458fi
6459fi
6460OTOOL=$ac_cv_prog_OTOOL
6461if test -n "$OTOOL"; then
6462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6463$as_echo "$OTOOL" >&6; }
6464else
6465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6466$as_echo "no" >&6; }
6467fi
6468
6469
6470fi
6471if test -z "$ac_cv_prog_OTOOL"; then
6472  ac_ct_OTOOL=$OTOOL
6473  # Extract the first word of "otool", so it can be a program name with args.
6474set dummy otool; ac_word=$2
6475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476$as_echo_n "checking for $ac_word... " >&6; }
6477if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6478  $as_echo_n "(cached) " >&6
6479else
6480  if test -n "$ac_ct_OTOOL"; then
6481  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6482else
6483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6484for as_dir in $PATH
6485do
6486  IFS=$as_save_IFS
6487  test -z "$as_dir" && as_dir=.
6488    for ac_exec_ext in '' $ac_executable_extensions; do
6489  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6490    ac_cv_prog_ac_ct_OTOOL="otool"
6491    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6492    break 2
6493  fi
6494done
6495  done
6496IFS=$as_save_IFS
6497
6498fi
6499fi
6500ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6501if test -n "$ac_ct_OTOOL"; then
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6503$as_echo "$ac_ct_OTOOL" >&6; }
6504else
6505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6506$as_echo "no" >&6; }
6507fi
6508
6509  if test "x$ac_ct_OTOOL" = x; then
6510    OTOOL=":"
6511  else
6512    case $cross_compiling:$ac_tool_warned in
6513yes:)
6514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6516ac_tool_warned=yes ;;
6517esac
6518    OTOOL=$ac_ct_OTOOL
6519  fi
6520else
6521  OTOOL="$ac_cv_prog_OTOOL"
6522fi
6523
6524    if test -n "$ac_tool_prefix"; then
6525  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6526set dummy ${ac_tool_prefix}otool64; ac_word=$2
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528$as_echo_n "checking for $ac_word... " >&6; }
6529if ${ac_cv_prog_OTOOL64+:} false; then :
6530  $as_echo_n "(cached) " >&6
6531else
6532  if test -n "$OTOOL64"; then
6533  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6534else
6535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536for as_dir in $PATH
6537do
6538  IFS=$as_save_IFS
6539  test -z "$as_dir" && as_dir=.
6540    for ac_exec_ext in '' $ac_executable_extensions; do
6541  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6543    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544    break 2
6545  fi
6546done
6547  done
6548IFS=$as_save_IFS
6549
6550fi
6551fi
6552OTOOL64=$ac_cv_prog_OTOOL64
6553if test -n "$OTOOL64"; then
6554  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6555$as_echo "$OTOOL64" >&6; }
6556else
6557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558$as_echo "no" >&6; }
6559fi
6560
6561
6562fi
6563if test -z "$ac_cv_prog_OTOOL64"; then
6564  ac_ct_OTOOL64=$OTOOL64
6565  # Extract the first word of "otool64", so it can be a program name with args.
6566set dummy otool64; ac_word=$2
6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6568$as_echo_n "checking for $ac_word... " >&6; }
6569if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6570  $as_echo_n "(cached) " >&6
6571else
6572  if test -n "$ac_ct_OTOOL64"; then
6573  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6574else
6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576for as_dir in $PATH
6577do
6578  IFS=$as_save_IFS
6579  test -z "$as_dir" && as_dir=.
6580    for ac_exec_ext in '' $ac_executable_extensions; do
6581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6582    ac_cv_prog_ac_ct_OTOOL64="otool64"
6583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584    break 2
6585  fi
6586done
6587  done
6588IFS=$as_save_IFS
6589
6590fi
6591fi
6592ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6593if test -n "$ac_ct_OTOOL64"; then
6594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6595$as_echo "$ac_ct_OTOOL64" >&6; }
6596else
6597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6598$as_echo "no" >&6; }
6599fi
6600
6601  if test "x$ac_ct_OTOOL64" = x; then
6602    OTOOL64=":"
6603  else
6604    case $cross_compiling:$ac_tool_warned in
6605yes:)
6606{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6607$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6608ac_tool_warned=yes ;;
6609esac
6610    OTOOL64=$ac_ct_OTOOL64
6611  fi
6612else
6613  OTOOL64="$ac_cv_prog_OTOOL64"
6614fi
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6643$as_echo_n "checking for -single_module linker flag... " >&6; }
6644if ${lt_cv_apple_cc_single_mod+:} false; then :
6645  $as_echo_n "(cached) " >&6
6646else
6647  lt_cv_apple_cc_single_mod=no
6648      if test -z "${LT_MULTI_MODULE}"; then
6649	# By default we will add the -single_module flag. You can override
6650	# by either setting the environment variable LT_MULTI_MODULE
6651	# non-empty at configure time, or by adding -multi_module to the
6652	# link flags.
6653	rm -rf libconftest.dylib*
6654	echo "int foo(void){return 1;}" > conftest.c
6655	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6656-dynamiclib -Wl,-single_module conftest.c" >&5
6657	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6658	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6659        _lt_result=$?
6660	# If there is a non-empty error log, and "single_module"
6661	# appears in it, assume the flag caused a linker warning
6662        if test -s conftest.err && $GREP single_module conftest.err; then
6663	  cat conftest.err >&5
6664	# Otherwise, if the output was created with a 0 exit code from
6665	# the compiler, it worked.
6666	elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6667	  lt_cv_apple_cc_single_mod=yes
6668	else
6669	  cat conftest.err >&5
6670	fi
6671	rm -rf libconftest.dylib*
6672	rm -f conftest.*
6673      fi
6674fi
6675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6676$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6677
6678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6679$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6680if ${lt_cv_ld_exported_symbols_list+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  lt_cv_ld_exported_symbols_list=no
6684      save_LDFLAGS=$LDFLAGS
6685      echo "_main" > conftest.sym
6686      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6687      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688/* end confdefs.h.  */
6689
6690int
6691main ()
6692{
6693
6694  ;
6695  return 0;
6696}
6697_ACEOF
6698if ac_fn_c_try_link "$LINENO"; then :
6699  lt_cv_ld_exported_symbols_list=yes
6700else
6701  lt_cv_ld_exported_symbols_list=no
6702fi
6703rm -f core conftest.err conftest.$ac_objext \
6704    conftest$ac_exeext conftest.$ac_ext
6705	LDFLAGS="$save_LDFLAGS"
6706
6707fi
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6709$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6710
6711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6712$as_echo_n "checking for -force_load linker flag... " >&6; }
6713if ${lt_cv_ld_force_load+:} false; then :
6714  $as_echo_n "(cached) " >&6
6715else
6716  lt_cv_ld_force_load=no
6717      cat > conftest.c << _LT_EOF
6718int forced_loaded() { return 2;}
6719_LT_EOF
6720      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6721      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6722      echo "$AR cru libconftest.a conftest.o" >&5
6723      $AR cru libconftest.a conftest.o 2>&5
6724      echo "$RANLIB libconftest.a" >&5
6725      $RANLIB libconftest.a 2>&5
6726      cat > conftest.c << _LT_EOF
6727int main() { return 0;}
6728_LT_EOF
6729      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6730      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6731      _lt_result=$?
6732      if test -s conftest.err && $GREP force_load conftest.err; then
6733	cat conftest.err >&5
6734      elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6735	lt_cv_ld_force_load=yes
6736      else
6737	cat conftest.err >&5
6738      fi
6739        rm -f conftest.err libconftest.a conftest conftest.c
6740        rm -rf conftest.dSYM
6741
6742fi
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6744$as_echo "$lt_cv_ld_force_load" >&6; }
6745    case $host_os in
6746    rhapsody* | darwin1.[012])
6747      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6748    darwin1.*)
6749      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6750    darwin*) # darwin 5.x on
6751      # if running on 10.5 or later, the deployment target defaults
6752      # to the OS version, if on x86, and 10.4, the deployment
6753      # target defaults to 10.4. Don't you love it?
6754      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6755	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6756	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6757	10.[012]*)
6758	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6759	10.*)
6760	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6761      esac
6762    ;;
6763  esac
6764    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6765      _lt_dar_single_mod='$single_module'
6766    fi
6767    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6768      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6769    else
6770      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6771    fi
6772    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6773      _lt_dsymutil='~$DSYMUTIL $lib || :'
6774    else
6775      _lt_dsymutil=
6776    fi
6777    ;;
6778  esac
6779
6780ac_ext=c
6781ac_cpp='$CPP $CPPFLAGS'
6782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6784ac_compiler_gnu=$ac_cv_c_compiler_gnu
6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6786$as_echo_n "checking how to run the C preprocessor... " >&6; }
6787# On Suns, sometimes $CPP names a directory.
6788if test -n "$CPP" && test -d "$CPP"; then
6789  CPP=
6790fi
6791if test -z "$CPP"; then
6792  if ${ac_cv_prog_CPP+:} false; then :
6793  $as_echo_n "(cached) " >&6
6794else
6795      # Double quotes because CPP needs to be expanded
6796    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6797    do
6798      ac_preproc_ok=false
6799for ac_c_preproc_warn_flag in '' yes
6800do
6801  # Use a header file that comes with gcc, so configuring glibc
6802  # with a fresh cross-compiler works.
6803  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6804  # <limits.h> exists even on freestanding compilers.
6805  # On the NeXT, cc -E runs the code through the compiler's parser,
6806  # not just through cpp. "Syntax error" is here to catch this case.
6807  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h.  */
6809#ifdef __STDC__
6810# include <limits.h>
6811#else
6812# include <assert.h>
6813#endif
6814		     Syntax error
6815_ACEOF
6816if ac_fn_c_try_cpp "$LINENO"; then :
6817
6818else
6819  # Broken: fails on valid input.
6820continue
6821fi
6822rm -f conftest.err conftest.i conftest.$ac_ext
6823
6824  # OK, works on sane cases.  Now check whether nonexistent headers
6825  # can be detected and how.
6826  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6827/* end confdefs.h.  */
6828#include <ac_nonexistent.h>
6829_ACEOF
6830if ac_fn_c_try_cpp "$LINENO"; then :
6831  # Broken: success on invalid input.
6832continue
6833else
6834  # Passes both tests.
6835ac_preproc_ok=:
6836break
6837fi
6838rm -f conftest.err conftest.i conftest.$ac_ext
6839
6840done
6841# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6842rm -f conftest.i conftest.err conftest.$ac_ext
6843if $ac_preproc_ok; then :
6844  break
6845fi
6846
6847    done
6848    ac_cv_prog_CPP=$CPP
6849
6850fi
6851  CPP=$ac_cv_prog_CPP
6852else
6853  ac_cv_prog_CPP=$CPP
6854fi
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6856$as_echo "$CPP" >&6; }
6857ac_preproc_ok=false
6858for ac_c_preproc_warn_flag in '' yes
6859do
6860  # Use a header file that comes with gcc, so configuring glibc
6861  # with a fresh cross-compiler works.
6862  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6863  # <limits.h> exists even on freestanding compilers.
6864  # On the NeXT, cc -E runs the code through the compiler's parser,
6865  # not just through cpp. "Syntax error" is here to catch this case.
6866  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867/* end confdefs.h.  */
6868#ifdef __STDC__
6869# include <limits.h>
6870#else
6871# include <assert.h>
6872#endif
6873		     Syntax error
6874_ACEOF
6875if ac_fn_c_try_cpp "$LINENO"; then :
6876
6877else
6878  # Broken: fails on valid input.
6879continue
6880fi
6881rm -f conftest.err conftest.i conftest.$ac_ext
6882
6883  # OK, works on sane cases.  Now check whether nonexistent headers
6884  # can be detected and how.
6885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886/* end confdefs.h.  */
6887#include <ac_nonexistent.h>
6888_ACEOF
6889if ac_fn_c_try_cpp "$LINENO"; then :
6890  # Broken: success on invalid input.
6891continue
6892else
6893  # Passes both tests.
6894ac_preproc_ok=:
6895break
6896fi
6897rm -f conftest.err conftest.i conftest.$ac_ext
6898
6899done
6900# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6901rm -f conftest.i conftest.err conftest.$ac_ext
6902if $ac_preproc_ok; then :
6903
6904else
6905  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6906$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6907as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6908See \`config.log' for more details" "$LINENO" 5; }
6909fi
6910
6911ac_ext=c
6912ac_cpp='$CPP $CPPFLAGS'
6913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915ac_compiler_gnu=$ac_cv_c_compiler_gnu
6916
6917
6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6919$as_echo_n "checking for ANSI C header files... " >&6; }
6920if ${ac_cv_header_stdc+:} false; then :
6921  $as_echo_n "(cached) " >&6
6922else
6923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6924/* end confdefs.h.  */
6925#include <stdlib.h>
6926#include <stdarg.h>
6927#include <string.h>
6928#include <float.h>
6929
6930int
6931main ()
6932{
6933
6934  ;
6935  return 0;
6936}
6937_ACEOF
6938if ac_fn_c_try_compile "$LINENO"; then :
6939  ac_cv_header_stdc=yes
6940else
6941  ac_cv_header_stdc=no
6942fi
6943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6944
6945if test $ac_cv_header_stdc = yes; then
6946  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948/* end confdefs.h.  */
6949#include <string.h>
6950
6951_ACEOF
6952if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6953  $EGREP "memchr" >/dev/null 2>&1; then :
6954
6955else
6956  ac_cv_header_stdc=no
6957fi
6958rm -f conftest*
6959
6960fi
6961
6962if test $ac_cv_header_stdc = yes; then
6963  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965/* end confdefs.h.  */
6966#include <stdlib.h>
6967
6968_ACEOF
6969if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6970  $EGREP "free" >/dev/null 2>&1; then :
6971
6972else
6973  ac_cv_header_stdc=no
6974fi
6975rm -f conftest*
6976
6977fi
6978
6979if test $ac_cv_header_stdc = yes; then
6980  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6981  if test "$cross_compiling" = yes; then :
6982  :
6983else
6984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985/* end confdefs.h.  */
6986#include <ctype.h>
6987#include <stdlib.h>
6988#if ((' ' & 0x0FF) == 0x020)
6989# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6990# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6991#else
6992# define ISLOWER(c) \
6993		   (('a' <= (c) && (c) <= 'i') \
6994		     || ('j' <= (c) && (c) <= 'r') \
6995		     || ('s' <= (c) && (c) <= 'z'))
6996# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6997#endif
6998
6999#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7000int
7001main ()
7002{
7003  int i;
7004  for (i = 0; i < 256; i++)
7005    if (XOR (islower (i), ISLOWER (i))
7006	|| toupper (i) != TOUPPER (i))
7007      return 2;
7008  return 0;
7009}
7010_ACEOF
7011if ac_fn_c_try_run "$LINENO"; then :
7012
7013else
7014  ac_cv_header_stdc=no
7015fi
7016rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7017  conftest.$ac_objext conftest.beam conftest.$ac_ext
7018fi
7019
7020fi
7021fi
7022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7023$as_echo "$ac_cv_header_stdc" >&6; }
7024if test $ac_cv_header_stdc = yes; then
7025
7026$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7027
7028fi
7029
7030# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7031for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7032		  inttypes.h stdint.h unistd.h
7033do :
7034  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7035ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7036"
7037if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7038  cat >>confdefs.h <<_ACEOF
7039#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7040_ACEOF
7041
7042fi
7043
7044done
7045
7046
7047for ac_header in dlfcn.h
7048do :
7049  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7050"
7051if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7052  cat >>confdefs.h <<_ACEOF
7053#define HAVE_DLFCN_H 1
7054_ACEOF
7055
7056fi
7057
7058done
7059
7060
7061
7062
7063
7064# Set options
7065# Check whether --enable-shared was given.
7066if test "${enable_shared+set}" = set; then :
7067  enableval=$enable_shared; p=${PACKAGE-default}
7068    case $enableval in
7069    yes) enable_shared=yes ;;
7070    no) enable_shared=no ;;
7071    *)
7072      enable_shared=no
7073      # Look at the argument we got.  We use all the common list separators.
7074      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7075      for pkg in $enableval; do
7076	IFS="$lt_save_ifs"
7077	if test "X$pkg" = "X$p"; then
7078	  enable_shared=yes
7079	fi
7080      done
7081      IFS="$lt_save_ifs"
7082      ;;
7083    esac
7084else
7085  enable_shared=yes
7086fi
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097        enable_dlopen=no
7098
7099
7100  enable_win32_dll=no
7101
7102
7103
7104  # Check whether --enable-static was given.
7105if test "${enable_static+set}" = set; then :
7106  enableval=$enable_static; p=${PACKAGE-default}
7107    case $enableval in
7108    yes) enable_static=yes ;;
7109    no) enable_static=no ;;
7110    *)
7111     enable_static=no
7112      # Look at the argument we got.  We use all the common list separators.
7113      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7114      for pkg in $enableval; do
7115	IFS="$lt_save_ifs"
7116	if test "X$pkg" = "X$p"; then
7117	  enable_static=yes
7118	fi
7119      done
7120      IFS="$lt_save_ifs"
7121      ;;
7122    esac
7123else
7124  enable_static=yes
7125fi
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136# Check whether --with-pic was given.
7137if test "${with_pic+set}" = set; then :
7138  withval=$with_pic; lt_p=${PACKAGE-default}
7139    case $withval in
7140    yes|no) pic_mode=$withval ;;
7141    *)
7142      pic_mode=default
7143      # Look at the argument we got.  We use all the common list separators.
7144      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7145      for lt_pkg in $withval; do
7146	IFS="$lt_save_ifs"
7147	if test "X$lt_pkg" = "X$lt_p"; then
7148	  pic_mode=yes
7149	fi
7150      done
7151      IFS="$lt_save_ifs"
7152      ;;
7153    esac
7154else
7155  pic_mode=default
7156fi
7157
7158
7159test -z "$pic_mode" && pic_mode=default
7160
7161
7162
7163
7164
7165
7166
7167  # Check whether --enable-fast-install was given.
7168if test "${enable_fast_install+set}" = set; then :
7169  enableval=$enable_fast_install; p=${PACKAGE-default}
7170    case $enableval in
7171    yes) enable_fast_install=yes ;;
7172    no) enable_fast_install=no ;;
7173    *)
7174      enable_fast_install=no
7175      # Look at the argument we got.  We use all the common list separators.
7176      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7177      for pkg in $enableval; do
7178	IFS="$lt_save_ifs"
7179	if test "X$pkg" = "X$p"; then
7180	  enable_fast_install=yes
7181	fi
7182      done
7183      IFS="$lt_save_ifs"
7184      ;;
7185    esac
7186else
7187  enable_fast_install=yes
7188fi
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200# This can be used to rebuild libtool when needed
7201LIBTOOL_DEPS="$ltmain"
7202
7203# Always use our own libtool.
7204LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235test -z "$LN_S" && LN_S="ln -s"
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250if test -n "${ZSH_VERSION+set}" ; then
7251   setopt NO_GLOB_SUBST
7252fi
7253
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7255$as_echo_n "checking for objdir... " >&6; }
7256if ${lt_cv_objdir+:} false; then :
7257  $as_echo_n "(cached) " >&6
7258else
7259  rm -f .libs 2>/dev/null
7260mkdir .libs 2>/dev/null
7261if test -d .libs; then
7262  lt_cv_objdir=.libs
7263else
7264  # MS-DOS does not allow filenames that begin with a dot.
7265  lt_cv_objdir=_libs
7266fi
7267rmdir .libs 2>/dev/null
7268fi
7269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7270$as_echo "$lt_cv_objdir" >&6; }
7271objdir=$lt_cv_objdir
7272
7273
7274
7275
7276
7277cat >>confdefs.h <<_ACEOF
7278#define LT_OBJDIR "$lt_cv_objdir/"
7279_ACEOF
7280
7281
7282
7283
7284case $host_os in
7285aix3*)
7286  # AIX sometimes has problems with the GCC collect2 program.  For some
7287  # reason, if we set the COLLECT_NAMES environment variable, the problems
7288  # vanish in a puff of smoke.
7289  if test "X${COLLECT_NAMES+set}" != Xset; then
7290    COLLECT_NAMES=
7291    export COLLECT_NAMES
7292  fi
7293  ;;
7294esac
7295
7296# Global variables:
7297ofile=libtool
7298can_build_shared=yes
7299
7300# All known linkers require a `.a' archive for static linking (except MSVC,
7301# which needs '.lib').
7302libext=a
7303
7304with_gnu_ld="$lt_cv_prog_gnu_ld"
7305
7306old_CC="$CC"
7307old_CFLAGS="$CFLAGS"
7308
7309# Set sane defaults for various variables
7310test -z "$CC" && CC=cc
7311test -z "$LTCC" && LTCC=$CC
7312test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7313test -z "$LD" && LD=ld
7314test -z "$ac_objext" && ac_objext=o
7315
7316for cc_temp in $compiler""; do
7317  case $cc_temp in
7318    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7319    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7320    \-*) ;;
7321    *) break;;
7322  esac
7323done
7324cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7325
7326
7327# Only perform the check for file, if the check method requires it
7328test -z "$MAGIC_CMD" && MAGIC_CMD=file
7329case $deplibs_check_method in
7330file_magic*)
7331  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7332    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7333$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7334if ${lt_cv_path_MAGIC_CMD+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  case $MAGIC_CMD in
7338[\\/*] |  ?:[\\/]*)
7339  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7340  ;;
7341*)
7342  lt_save_MAGIC_CMD="$MAGIC_CMD"
7343  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7344  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7345  for ac_dir in $ac_dummy; do
7346    IFS="$lt_save_ifs"
7347    test -z "$ac_dir" && ac_dir=.
7348    if test -f $ac_dir/${ac_tool_prefix}file; then
7349      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7350      if test -n "$file_magic_test_file"; then
7351	case $deplibs_check_method in
7352	"file_magic "*)
7353	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7354	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7355	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7356	    $EGREP "$file_magic_regex" > /dev/null; then
7357	    :
7358	  else
7359	    cat <<_LT_EOF 1>&2
7360
7361*** Warning: the command libtool uses to detect shared libraries,
7362*** $file_magic_cmd, produces output that libtool cannot recognize.
7363*** The result is that libtool may fail to recognize shared libraries
7364*** as such.  This will affect the creation of libtool libraries that
7365*** depend on shared libraries, but programs linked with such libtool
7366*** libraries will work regardless of this problem.  Nevertheless, you
7367*** may want to report the problem to your system manager and/or to
7368*** bug-libtool@gnu.org
7369
7370_LT_EOF
7371	  fi ;;
7372	esac
7373      fi
7374      break
7375    fi
7376  done
7377  IFS="$lt_save_ifs"
7378  MAGIC_CMD="$lt_save_MAGIC_CMD"
7379  ;;
7380esac
7381fi
7382
7383MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7384if test -n "$MAGIC_CMD"; then
7385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7386$as_echo "$MAGIC_CMD" >&6; }
7387else
7388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7389$as_echo "no" >&6; }
7390fi
7391
7392
7393
7394
7395
7396if test -z "$lt_cv_path_MAGIC_CMD"; then
7397  if test -n "$ac_tool_prefix"; then
7398    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7399$as_echo_n "checking for file... " >&6; }
7400if ${lt_cv_path_MAGIC_CMD+:} false; then :
7401  $as_echo_n "(cached) " >&6
7402else
7403  case $MAGIC_CMD in
7404[\\/*] |  ?:[\\/]*)
7405  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7406  ;;
7407*)
7408  lt_save_MAGIC_CMD="$MAGIC_CMD"
7409  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7410  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7411  for ac_dir in $ac_dummy; do
7412    IFS="$lt_save_ifs"
7413    test -z "$ac_dir" && ac_dir=.
7414    if test -f $ac_dir/file; then
7415      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7416      if test -n "$file_magic_test_file"; then
7417	case $deplibs_check_method in
7418	"file_magic "*)
7419	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7420	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7421	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7422	    $EGREP "$file_magic_regex" > /dev/null; then
7423	    :
7424	  else
7425	    cat <<_LT_EOF 1>&2
7426
7427*** Warning: the command libtool uses to detect shared libraries,
7428*** $file_magic_cmd, produces output that libtool cannot recognize.
7429*** The result is that libtool may fail to recognize shared libraries
7430*** as such.  This will affect the creation of libtool libraries that
7431*** depend on shared libraries, but programs linked with such libtool
7432*** libraries will work regardless of this problem.  Nevertheless, you
7433*** may want to report the problem to your system manager and/or to
7434*** bug-libtool@gnu.org
7435
7436_LT_EOF
7437	  fi ;;
7438	esac
7439      fi
7440      break
7441    fi
7442  done
7443  IFS="$lt_save_ifs"
7444  MAGIC_CMD="$lt_save_MAGIC_CMD"
7445  ;;
7446esac
7447fi
7448
7449MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7450if test -n "$MAGIC_CMD"; then
7451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7452$as_echo "$MAGIC_CMD" >&6; }
7453else
7454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455$as_echo "no" >&6; }
7456fi
7457
7458
7459  else
7460    MAGIC_CMD=:
7461  fi
7462fi
7463
7464  fi
7465  ;;
7466esac
7467
7468# Use C for the default configuration in the libtool script
7469
7470lt_save_CC="$CC"
7471ac_ext=c
7472ac_cpp='$CPP $CPPFLAGS'
7473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7475ac_compiler_gnu=$ac_cv_c_compiler_gnu
7476
7477
7478# Source file extension for C test sources.
7479ac_ext=c
7480
7481# Object file extension for compiled C test sources.
7482objext=o
7483objext=$objext
7484
7485# Code to be used in simple compile tests
7486lt_simple_compile_test_code="int some_variable = 0;"
7487
7488# Code to be used in simple link tests
7489lt_simple_link_test_code='int main(){return(0);}'
7490
7491
7492
7493
7494
7495
7496
7497# If no C compiler was specified, use CC.
7498LTCC=${LTCC-"$CC"}
7499
7500# If no C compiler flags were specified, use CFLAGS.
7501LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7502
7503# Allow CC to be a program name with arguments.
7504compiler=$CC
7505
7506# Save the default compiler, since it gets overwritten when the other
7507# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7508compiler_DEFAULT=$CC
7509
7510# save warnings/boilerplate of simple test code
7511ac_outfile=conftest.$ac_objext
7512echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7513eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7514_lt_compiler_boilerplate=`cat conftest.err`
7515$RM conftest*
7516
7517ac_outfile=conftest.$ac_objext
7518echo "$lt_simple_link_test_code" >conftest.$ac_ext
7519eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7520_lt_linker_boilerplate=`cat conftest.err`
7521$RM -r conftest*
7522
7523
7524## CAVEAT EMPTOR:
7525## There is no encapsulation within the following macros, do not change
7526## the running order or otherwise move them around unless you know exactly
7527## what you are doing...
7528if test -n "$compiler"; then
7529
7530lt_prog_compiler_no_builtin_flag=
7531
7532if test "$GCC" = yes; then
7533  case $cc_basename in
7534  nvcc*)
7535    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7536  *)
7537    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7538  esac
7539
7540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7541$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7542if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7543  $as_echo_n "(cached) " >&6
7544else
7545  lt_cv_prog_compiler_rtti_exceptions=no
7546   ac_outfile=conftest.$ac_objext
7547   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7548   lt_compiler_flag="-fno-rtti -fno-exceptions"
7549   # Insert the option either (1) after the last *FLAGS variable, or
7550   # (2) before a word containing "conftest.", or (3) at the end.
7551   # Note that $ac_compile itself does not contain backslashes and begins
7552   # with a dollar sign (not a hyphen), so the echo should work correctly.
7553   # The option is referenced via a variable to avoid confusing sed.
7554   lt_compile=`echo "$ac_compile" | $SED \
7555   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7556   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7557   -e 's:$: $lt_compiler_flag:'`
7558   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7559   (eval "$lt_compile" 2>conftest.err)
7560   ac_status=$?
7561   cat conftest.err >&5
7562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563   if (exit $ac_status) && test -s "$ac_outfile"; then
7564     # The compiler can only warn and ignore the option if not recognized
7565     # So say no if there are warnings other than the usual output.
7566     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7567     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7568     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7569       lt_cv_prog_compiler_rtti_exceptions=yes
7570     fi
7571   fi
7572   $RM conftest*
7573
7574fi
7575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7576$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7577
7578if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7579    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7580else
7581    :
7582fi
7583
7584fi
7585
7586
7587
7588
7589
7590
7591  lt_prog_compiler_wl=
7592lt_prog_compiler_pic=
7593lt_prog_compiler_static=
7594
7595
7596  if test "$GCC" = yes; then
7597    lt_prog_compiler_wl='-Wl,'
7598    lt_prog_compiler_static='-static'
7599
7600    case $host_os in
7601      aix*)
7602      # All AIX code is PIC.
7603      if test "$host_cpu" = ia64; then
7604	# AIX 5 now supports IA64 processor
7605	lt_prog_compiler_static='-Bstatic'
7606      fi
7607      ;;
7608
7609    amigaos*)
7610      case $host_cpu in
7611      powerpc)
7612            # see comment about AmigaOS4 .so support
7613            lt_prog_compiler_pic='-fPIC'
7614        ;;
7615      m68k)
7616            # FIXME: we need at least 68020 code to build shared libraries, but
7617            # adding the `-m68020' flag to GCC prevents building anything better,
7618            # like `-m68040'.
7619            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7620        ;;
7621      esac
7622      ;;
7623
7624    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7625      # PIC is the default for these OSes.
7626      ;;
7627
7628    mingw* | cygwin* | pw32* | os2* | cegcc*)
7629      # This hack is so that the source file can tell whether it is being
7630      # built for inclusion in a dll (and should export symbols for example).
7631      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7632      # (--disable-auto-import) libraries
7633      lt_prog_compiler_pic='-DDLL_EXPORT'
7634      ;;
7635
7636    darwin* | rhapsody*)
7637      # PIC is the default on this platform
7638      # Common symbols not allowed in MH_DYLIB files
7639      lt_prog_compiler_pic='-fno-common'
7640      ;;
7641
7642    haiku*)
7643      # PIC is the default for Haiku.
7644      # The "-static" flag exists, but is broken.
7645      lt_prog_compiler_static=
7646      ;;
7647
7648    hpux*)
7649      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7650      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7651      # sets the default TLS model and affects inlining.
7652      case $host_cpu in
7653      hppa*64*)
7654	# +Z the default
7655	;;
7656      *)
7657	lt_prog_compiler_pic='-fPIC'
7658	;;
7659      esac
7660      ;;
7661
7662    interix[3-9]*)
7663      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7664      # Instead, we relocate shared libraries at runtime.
7665      ;;
7666
7667    msdosdjgpp*)
7668      # Just because we use GCC doesn't mean we suddenly get shared libraries
7669      # on systems that don't support them.
7670      lt_prog_compiler_can_build_shared=no
7671      enable_shared=no
7672      ;;
7673
7674    *nto* | *qnx*)
7675      # QNX uses GNU C++, but need to define -shared option too, otherwise
7676      # it will coredump.
7677      lt_prog_compiler_pic='-fPIC -shared'
7678      ;;
7679
7680    sysv4*MP*)
7681      if test -d /usr/nec; then
7682	lt_prog_compiler_pic=-Kconform_pic
7683      fi
7684      ;;
7685
7686    *)
7687      lt_prog_compiler_pic='-fPIC'
7688      ;;
7689    esac
7690
7691    case $cc_basename in
7692    nvcc*) # Cuda Compiler Driver 2.2
7693      lt_prog_compiler_wl='-Xlinker '
7694      if test -n "$lt_prog_compiler_pic"; then
7695        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7696      fi
7697      ;;
7698    esac
7699  else
7700    # PORTME Check for flag to pass linker flags through the system compiler.
7701    case $host_os in
7702    aix*)
7703      lt_prog_compiler_wl='-Wl,'
7704      if test "$host_cpu" = ia64; then
7705	# AIX 5 now supports IA64 processor
7706	lt_prog_compiler_static='-Bstatic'
7707      else
7708	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7709      fi
7710      ;;
7711
7712    mingw* | cygwin* | pw32* | os2* | cegcc*)
7713      # This hack is so that the source file can tell whether it is being
7714      # built for inclusion in a dll (and should export symbols for example).
7715      lt_prog_compiler_pic='-DDLL_EXPORT'
7716      ;;
7717
7718    hpux9* | hpux10* | hpux11*)
7719      lt_prog_compiler_wl='-Wl,'
7720      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7721      # not for PA HP-UX.
7722      case $host_cpu in
7723      hppa*64*|ia64*)
7724	# +Z the default
7725	;;
7726      *)
7727	lt_prog_compiler_pic='+Z'
7728	;;
7729      esac
7730      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7731      lt_prog_compiler_static='${wl}-a ${wl}archive'
7732      ;;
7733
7734    irix5* | irix6* | nonstopux*)
7735      lt_prog_compiler_wl='-Wl,'
7736      # PIC (with -KPIC) is the default.
7737      lt_prog_compiler_static='-non_shared'
7738      ;;
7739
7740    linux* | k*bsd*-gnu | kopensolaris*-gnu)
7741      case $cc_basename in
7742      # old Intel for x86_64 which still supported -KPIC.
7743      ecc*)
7744	lt_prog_compiler_wl='-Wl,'
7745	lt_prog_compiler_pic='-KPIC'
7746	lt_prog_compiler_static='-static'
7747        ;;
7748      # icc used to be incompatible with GCC.
7749      # ICC 10 doesn't accept -KPIC any more.
7750      icc* | ifort*)
7751	lt_prog_compiler_wl='-Wl,'
7752	lt_prog_compiler_pic='-fPIC'
7753	lt_prog_compiler_static='-static'
7754        ;;
7755      # Lahey Fortran 8.1.
7756      lf95*)
7757	lt_prog_compiler_wl='-Wl,'
7758	lt_prog_compiler_pic='--shared'
7759	lt_prog_compiler_static='--static'
7760	;;
7761      nagfor*)
7762	# NAG Fortran compiler
7763	lt_prog_compiler_wl='-Wl,-Wl,,'
7764	lt_prog_compiler_pic='-PIC'
7765	lt_prog_compiler_static='-Bstatic'
7766	;;
7767      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7768        # Portland Group compilers (*not* the Pentium gcc compiler,
7769	# which looks to be a dead project)
7770	lt_prog_compiler_wl='-Wl,'
7771	lt_prog_compiler_pic='-fpic'
7772	lt_prog_compiler_static='-Bstatic'
7773        ;;
7774      ccc*)
7775        lt_prog_compiler_wl='-Wl,'
7776        # All Alpha code is PIC.
7777        lt_prog_compiler_static='-non_shared'
7778        ;;
7779      xl* | bgxl* | bgf* | mpixl*)
7780	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7781	lt_prog_compiler_wl='-Wl,'
7782	lt_prog_compiler_pic='-qpic'
7783	lt_prog_compiler_static='-qstaticlink'
7784	;;
7785      *)
7786	case `$CC -V 2>&1 | sed 5q` in
7787	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7788	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7789	  lt_prog_compiler_pic='-KPIC'
7790	  lt_prog_compiler_static='-Bstatic'
7791	  lt_prog_compiler_wl=''
7792	  ;;
7793	*Sun\ F* | *Sun*Fortran*)
7794	  lt_prog_compiler_pic='-KPIC'
7795	  lt_prog_compiler_static='-Bstatic'
7796	  lt_prog_compiler_wl='-Qoption ld '
7797	  ;;
7798	*Sun\ C*)
7799	  # Sun C 5.9
7800	  lt_prog_compiler_pic='-KPIC'
7801	  lt_prog_compiler_static='-Bstatic'
7802	  lt_prog_compiler_wl='-Wl,'
7803	  ;;
7804        *Intel*\ [CF]*Compiler*)
7805	  lt_prog_compiler_wl='-Wl,'
7806	  lt_prog_compiler_pic='-fPIC'
7807	  lt_prog_compiler_static='-static'
7808	  ;;
7809	*Portland\ Group*)
7810	  lt_prog_compiler_wl='-Wl,'
7811	  lt_prog_compiler_pic='-fpic'
7812	  lt_prog_compiler_static='-Bstatic'
7813	  ;;
7814	esac
7815	;;
7816      esac
7817      ;;
7818
7819    newsos6)
7820      lt_prog_compiler_pic='-KPIC'
7821      lt_prog_compiler_static='-Bstatic'
7822      ;;
7823
7824    *nto* | *qnx*)
7825      # QNX uses GNU C++, but need to define -shared option too, otherwise
7826      # it will coredump.
7827      lt_prog_compiler_pic='-fPIC -shared'
7828      ;;
7829
7830    osf3* | osf4* | osf5*)
7831      lt_prog_compiler_wl='-Wl,'
7832      # All OSF/1 code is PIC.
7833      lt_prog_compiler_static='-non_shared'
7834      ;;
7835
7836    rdos*)
7837      lt_prog_compiler_static='-non_shared'
7838      ;;
7839
7840    solaris*)
7841      lt_prog_compiler_pic='-KPIC'
7842      lt_prog_compiler_static='-Bstatic'
7843      case $cc_basename in
7844      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7845	lt_prog_compiler_wl='-Qoption ld ';;
7846      *)
7847	lt_prog_compiler_wl='-Wl,';;
7848      esac
7849      ;;
7850
7851    sunos4*)
7852      lt_prog_compiler_wl='-Qoption ld '
7853      lt_prog_compiler_pic='-PIC'
7854      lt_prog_compiler_static='-Bstatic'
7855      ;;
7856
7857    sysv4 | sysv4.2uw2* | sysv4.3*)
7858      lt_prog_compiler_wl='-Wl,'
7859      lt_prog_compiler_pic='-KPIC'
7860      lt_prog_compiler_static='-Bstatic'
7861      ;;
7862
7863    sysv4*MP*)
7864      if test -d /usr/nec ;then
7865	lt_prog_compiler_pic='-Kconform_pic'
7866	lt_prog_compiler_static='-Bstatic'
7867      fi
7868      ;;
7869
7870    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7871      lt_prog_compiler_wl='-Wl,'
7872      lt_prog_compiler_pic='-KPIC'
7873      lt_prog_compiler_static='-Bstatic'
7874      ;;
7875
7876    unicos*)
7877      lt_prog_compiler_wl='-Wl,'
7878      lt_prog_compiler_can_build_shared=no
7879      ;;
7880
7881    uts4*)
7882      lt_prog_compiler_pic='-pic'
7883      lt_prog_compiler_static='-Bstatic'
7884      ;;
7885
7886    *)
7887      lt_prog_compiler_can_build_shared=no
7888      ;;
7889    esac
7890  fi
7891
7892case $host_os in
7893  # For platforms which do not support PIC, -DPIC is meaningless:
7894  *djgpp*)
7895    lt_prog_compiler_pic=
7896    ;;
7897  *)
7898    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7899    ;;
7900esac
7901
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7903$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7904if ${lt_cv_prog_compiler_pic+:} false; then :
7905  $as_echo_n "(cached) " >&6
7906else
7907  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
7908fi
7909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
7910$as_echo "$lt_cv_prog_compiler_pic" >&6; }
7911lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
7912
7913#
7914# Check to make sure the PIC flag actually works.
7915#
7916if test -n "$lt_prog_compiler_pic"; then
7917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7918$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7919if ${lt_cv_prog_compiler_pic_works+:} false; then :
7920  $as_echo_n "(cached) " >&6
7921else
7922  lt_cv_prog_compiler_pic_works=no
7923   ac_outfile=conftest.$ac_objext
7924   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7925   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7926   # Insert the option either (1) after the last *FLAGS variable, or
7927   # (2) before a word containing "conftest.", or (3) at the end.
7928   # Note that $ac_compile itself does not contain backslashes and begins
7929   # with a dollar sign (not a hyphen), so the echo should work correctly.
7930   # The option is referenced via a variable to avoid confusing sed.
7931   lt_compile=`echo "$ac_compile" | $SED \
7932   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7933   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7934   -e 's:$: $lt_compiler_flag:'`
7935   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7936   (eval "$lt_compile" 2>conftest.err)
7937   ac_status=$?
7938   cat conftest.err >&5
7939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940   if (exit $ac_status) && test -s "$ac_outfile"; then
7941     # The compiler can only warn and ignore the option if not recognized
7942     # So say no if there are warnings other than the usual output.
7943     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7944     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7945     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7946       lt_cv_prog_compiler_pic_works=yes
7947     fi
7948   fi
7949   $RM conftest*
7950
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7953$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7954
7955if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7956    case $lt_prog_compiler_pic in
7957     "" | " "*) ;;
7958     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7959     esac
7960else
7961    lt_prog_compiler_pic=
7962     lt_prog_compiler_can_build_shared=no
7963fi
7964
7965fi
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977#
7978# Check to make sure the static flag actually works.
7979#
7980wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7982$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7983if ${lt_cv_prog_compiler_static_works+:} false; then :
7984  $as_echo_n "(cached) " >&6
7985else
7986  lt_cv_prog_compiler_static_works=no
7987   save_LDFLAGS="$LDFLAGS"
7988   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7989   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7990   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7991     # The linker can only warn and ignore the option if not recognized
7992     # So say no if there are warnings
7993     if test -s conftest.err; then
7994       # Append any errors to the config.log.
7995       cat conftest.err 1>&5
7996       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7997       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7998       if diff conftest.exp conftest.er2 >/dev/null; then
7999         lt_cv_prog_compiler_static_works=yes
8000       fi
8001     else
8002       lt_cv_prog_compiler_static_works=yes
8003     fi
8004   fi
8005   $RM -r conftest*
8006   LDFLAGS="$save_LDFLAGS"
8007
8008fi
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8010$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8011
8012if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8013    :
8014else
8015    lt_prog_compiler_static=
8016fi
8017
8018
8019
8020
8021
8022
8023
8024  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8025$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8026if ${lt_cv_prog_compiler_c_o+:} false; then :
8027  $as_echo_n "(cached) " >&6
8028else
8029  lt_cv_prog_compiler_c_o=no
8030   $RM -r conftest 2>/dev/null
8031   mkdir conftest
8032   cd conftest
8033   mkdir out
8034   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8035
8036   lt_compiler_flag="-o out/conftest2.$ac_objext"
8037   # Insert the option either (1) after the last *FLAGS variable, or
8038   # (2) before a word containing "conftest.", or (3) at the end.
8039   # Note that $ac_compile itself does not contain backslashes and begins
8040   # with a dollar sign (not a hyphen), so the echo should work correctly.
8041   lt_compile=`echo "$ac_compile" | $SED \
8042   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8043   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8044   -e 's:$: $lt_compiler_flag:'`
8045   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8046   (eval "$lt_compile" 2>out/conftest.err)
8047   ac_status=$?
8048   cat out/conftest.err >&5
8049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8051   then
8052     # The compiler can only warn and ignore the option if not recognized
8053     # So say no if there are warnings
8054     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8055     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8056     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8057       lt_cv_prog_compiler_c_o=yes
8058     fi
8059   fi
8060   chmod u+w . 2>&5
8061   $RM conftest*
8062   # SGI C++ compiler will create directory out/ii_files/ for
8063   # template instantiation
8064   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8065   $RM out/* && rmdir out
8066   cd ..
8067   $RM -r conftest
8068   $RM conftest*
8069
8070fi
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8072$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8073
8074
8075
8076
8077
8078
8079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8080$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8081if ${lt_cv_prog_compiler_c_o+:} false; then :
8082  $as_echo_n "(cached) " >&6
8083else
8084  lt_cv_prog_compiler_c_o=no
8085   $RM -r conftest 2>/dev/null
8086   mkdir conftest
8087   cd conftest
8088   mkdir out
8089   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8090
8091   lt_compiler_flag="-o out/conftest2.$ac_objext"
8092   # Insert the option either (1) after the last *FLAGS variable, or
8093   # (2) before a word containing "conftest.", or (3) at the end.
8094   # Note that $ac_compile itself does not contain backslashes and begins
8095   # with a dollar sign (not a hyphen), so the echo should work correctly.
8096   lt_compile=`echo "$ac_compile" | $SED \
8097   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8098   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8099   -e 's:$: $lt_compiler_flag:'`
8100   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8101   (eval "$lt_compile" 2>out/conftest.err)
8102   ac_status=$?
8103   cat out/conftest.err >&5
8104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8105   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8106   then
8107     # The compiler can only warn and ignore the option if not recognized
8108     # So say no if there are warnings
8109     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8110     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8111     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8112       lt_cv_prog_compiler_c_o=yes
8113     fi
8114   fi
8115   chmod u+w . 2>&5
8116   $RM conftest*
8117   # SGI C++ compiler will create directory out/ii_files/ for
8118   # template instantiation
8119   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8120   $RM out/* && rmdir out
8121   cd ..
8122   $RM -r conftest
8123   $RM conftest*
8124
8125fi
8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8127$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8128
8129
8130
8131
8132hard_links="nottested"
8133if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8134  # do not overwrite the value of need_locks provided by the user
8135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8136$as_echo_n "checking if we can lock with hard links... " >&6; }
8137  hard_links=yes
8138  $RM conftest*
8139  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8140  touch conftest.a
8141  ln conftest.a conftest.b 2>&5 || hard_links=no
8142  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8143  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8144$as_echo "$hard_links" >&6; }
8145  if test "$hard_links" = no; then
8146    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8147$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8148    need_locks=warn
8149  fi
8150else
8151  need_locks=no
8152fi
8153
8154
8155
8156
8157
8158
8159  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8160$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8161
8162  runpath_var=
8163  allow_undefined_flag=
8164  always_export_symbols=no
8165  archive_cmds=
8166  archive_expsym_cmds=
8167  compiler_needs_object=no
8168  enable_shared_with_static_runtimes=no
8169  export_dynamic_flag_spec=
8170  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8171  hardcode_automatic=no
8172  hardcode_direct=no
8173  hardcode_direct_absolute=no
8174  hardcode_libdir_flag_spec=
8175  hardcode_libdir_separator=
8176  hardcode_minus_L=no
8177  hardcode_shlibpath_var=unsupported
8178  inherit_rpath=no
8179  link_all_deplibs=unknown
8180  module_cmds=
8181  module_expsym_cmds=
8182  old_archive_from_new_cmds=
8183  old_archive_from_expsyms_cmds=
8184  thread_safe_flag_spec=
8185  whole_archive_flag_spec=
8186  # include_expsyms should be a list of space-separated symbols to be *always*
8187  # included in the symbol list
8188  include_expsyms=
8189  # exclude_expsyms can be an extended regexp of symbols to exclude
8190  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8191  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8192  # as well as any symbol that contains `d'.
8193  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8194  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8195  # platforms (ab)use it in PIC code, but their linkers get confused if
8196  # the symbol is explicitly referenced.  Since portable code cannot
8197  # rely on this symbol name, it's probably fine to never include it in
8198  # preloaded symbol tables.
8199  # Exclude shared library initialization/finalization symbols.
8200  extract_expsyms_cmds=
8201
8202  case $host_os in
8203  cygwin* | mingw* | pw32* | cegcc*)
8204    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8205    # When not using gcc, we currently assume that we are using
8206    # Microsoft Visual C++.
8207    if test "$GCC" != yes; then
8208      with_gnu_ld=no
8209    fi
8210    ;;
8211  interix*)
8212    # we just hope/assume this is gcc and not c89 (= MSVC++)
8213    with_gnu_ld=yes
8214    ;;
8215  openbsd*)
8216    with_gnu_ld=no
8217    ;;
8218  esac
8219
8220  ld_shlibs=yes
8221
8222  # On some targets, GNU ld is compatible enough with the native linker
8223  # that we're better off using the native interface for both.
8224  lt_use_gnu_ld_interface=no
8225  if test "$with_gnu_ld" = yes; then
8226    case $host_os in
8227      aix*)
8228	# The AIX port of GNU ld has always aspired to compatibility
8229	# with the native linker.  However, as the warning in the GNU ld
8230	# block says, versions before 2.19.5* couldn't really create working
8231	# shared libraries, regardless of the interface used.
8232	case `$LD -v 2>&1` in
8233	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8234	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8235	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8236	  *)
8237	    lt_use_gnu_ld_interface=yes
8238	    ;;
8239	esac
8240	;;
8241      *)
8242	lt_use_gnu_ld_interface=yes
8243	;;
8244    esac
8245  fi
8246
8247  if test "$lt_use_gnu_ld_interface" = yes; then
8248    # If archive_cmds runs LD, not CC, wlarc should be empty
8249    wlarc='${wl}'
8250
8251    # Set some defaults for GNU ld with shared library support. These
8252    # are reset later if shared libraries are not supported. Putting them
8253    # here allows them to be overridden if necessary.
8254    runpath_var=LD_RUN_PATH
8255    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8256    export_dynamic_flag_spec='${wl}--export-dynamic'
8257    # ancient GNU ld didn't support --whole-archive et. al.
8258    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8259      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8260    else
8261      whole_archive_flag_spec=
8262    fi
8263    supports_anon_versioning=no
8264    case `$LD -v 2>&1` in
8265      *GNU\ gold*) supports_anon_versioning=yes ;;
8266      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8267      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8268      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8269      *\ 2.11.*) ;; # other 2.11 versions
8270      *) supports_anon_versioning=yes ;;
8271    esac
8272
8273    # See if GNU ld supports shared libraries.
8274    case $host_os in
8275    aix[3-9]*)
8276      # On AIX/PPC, the GNU linker is very broken
8277      if test "$host_cpu" != ia64; then
8278	ld_shlibs=no
8279	cat <<_LT_EOF 1>&2
8280
8281*** Warning: the GNU linker, at least up to release 2.19, is reported
8282*** to be unable to reliably create shared libraries on AIX.
8283*** Therefore, libtool is disabling shared libraries support.  If you
8284*** really care for shared libraries, you may want to install binutils
8285*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8286*** You will then need to restart the configuration process.
8287
8288_LT_EOF
8289      fi
8290      ;;
8291
8292    amigaos*)
8293      case $host_cpu in
8294      powerpc)
8295            # see comment about AmigaOS4 .so support
8296            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8297            archive_expsym_cmds=''
8298        ;;
8299      m68k)
8300            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)'
8301            hardcode_libdir_flag_spec='-L$libdir'
8302            hardcode_minus_L=yes
8303        ;;
8304      esac
8305      ;;
8306
8307    beos*)
8308      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8309	allow_undefined_flag=unsupported
8310	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8311	# support --undefined.  This deserves some investigation.  FIXME
8312	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8313      else
8314	ld_shlibs=no
8315      fi
8316      ;;
8317
8318    cygwin* | mingw* | pw32* | cegcc*)
8319      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8320      # as there is no search path for DLLs.
8321      hardcode_libdir_flag_spec='-L$libdir'
8322      export_dynamic_flag_spec='${wl}--export-all-symbols'
8323      allow_undefined_flag=unsupported
8324      always_export_symbols=no
8325      enable_shared_with_static_runtimes=yes
8326      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'
8327      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8328
8329      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8330        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8331	# If the export-symbols file already is a .def file (1st line
8332	# is EXPORTS), use it as is; otherwise, prepend...
8333	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8334	  cp $export_symbols $output_objdir/$soname.def;
8335	else
8336	  echo EXPORTS > $output_objdir/$soname.def;
8337	  cat $export_symbols >> $output_objdir/$soname.def;
8338	fi~
8339	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8340      else
8341	ld_shlibs=no
8342      fi
8343      ;;
8344
8345    haiku*)
8346      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8347      link_all_deplibs=yes
8348      ;;
8349
8350    interix[3-9]*)
8351      hardcode_direct=no
8352      hardcode_shlibpath_var=no
8353      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8354      export_dynamic_flag_spec='${wl}-E'
8355      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8356      # Instead, shared libraries are loaded at an image base (0x10000000 by
8357      # default) and relocated if they conflict, which is a slow very memory
8358      # consuming and fragmenting process.  To avoid this, we pick a random,
8359      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8360      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8361      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8362      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'
8363      ;;
8364
8365    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8366      tmp_diet=no
8367      if test "$host_os" = linux-dietlibc; then
8368	case $cc_basename in
8369	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8370	esac
8371      fi
8372      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8373	 && test "$tmp_diet" = no
8374      then
8375	tmp_addflag=' $pic_flag'
8376	tmp_sharedflag='-shared'
8377	case $cc_basename,$host_cpu in
8378        pgcc*)				# Portland Group C compiler
8379	  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'
8380	  tmp_addflag=' $pic_flag'
8381	  ;;
8382	pgf77* | pgf90* | pgf95* | pgfortran*)
8383					# Portland Group f77 and f90 compilers
8384	  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'
8385	  tmp_addflag=' $pic_flag -Mnomain' ;;
8386	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8387	  tmp_addflag=' -i_dynamic' ;;
8388	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8389	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8390	ifc* | ifort*)			# Intel Fortran compiler
8391	  tmp_addflag=' -nofor_main' ;;
8392	lf95*)				# Lahey Fortran 8.1
8393	  whole_archive_flag_spec=
8394	  tmp_sharedflag='--shared' ;;
8395	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8396	  tmp_sharedflag='-qmkshrobj'
8397	  tmp_addflag= ;;
8398	nvcc*)	# Cuda Compiler Driver 2.2
8399	  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'
8400	  compiler_needs_object=yes
8401	  ;;
8402	esac
8403	case `$CC -V 2>&1 | sed 5q` in
8404	*Sun\ C*)			# Sun C 5.9
8405	  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'
8406	  compiler_needs_object=yes
8407	  tmp_sharedflag='-G' ;;
8408	*Sun\ F*)			# Sun Fortran 8.3
8409	  tmp_sharedflag='-G' ;;
8410	esac
8411	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8412
8413        if test "x$supports_anon_versioning" = xyes; then
8414          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8415	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8416	    echo "local: *; };" >> $output_objdir/$libname.ver~
8417	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8418        fi
8419
8420	case $cc_basename in
8421	xlf* | bgf* | bgxlf* | mpixlf*)
8422	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8423	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8424	  hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8425	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8426	  if test "x$supports_anon_versioning" = xyes; then
8427	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8428	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8429	      echo "local: *; };" >> $output_objdir/$libname.ver~
8430	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8431	  fi
8432	  ;;
8433	esac
8434      else
8435        ld_shlibs=no
8436      fi
8437      ;;
8438
8439    netbsd*)
8440      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8441	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8442	wlarc=
8443      else
8444	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8445	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8446      fi
8447      ;;
8448
8449    solaris*)
8450      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8451	ld_shlibs=no
8452	cat <<_LT_EOF 1>&2
8453
8454*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8455*** create shared libraries on Solaris systems.  Therefore, libtool
8456*** is disabling shared libraries support.  We urge you to upgrade GNU
8457*** binutils to release 2.9.1 or newer.  Another option is to modify
8458*** your PATH or compiler configuration so that the native linker is
8459*** used, and then restart.
8460
8461_LT_EOF
8462      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8463	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8464	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8465      else
8466	ld_shlibs=no
8467      fi
8468      ;;
8469
8470    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8471      case `$LD -v 2>&1` in
8472        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8473	ld_shlibs=no
8474	cat <<_LT_EOF 1>&2
8475
8476*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8477*** reliably create shared libraries on SCO systems.  Therefore, libtool
8478*** is disabling shared libraries support.  We urge you to upgrade GNU
8479*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8480*** your PATH or compiler configuration so that the native linker is
8481*** used, and then restart.
8482
8483_LT_EOF
8484	;;
8485	*)
8486	  # For security reasons, it is highly recommended that you always
8487	  # use absolute paths for naming shared libraries, and exclude the
8488	  # DT_RUNPATH tag from executables and libraries.  But doing so
8489	  # requires that you compile everything twice, which is a pain.
8490	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8491	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8492	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8493	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8494	  else
8495	    ld_shlibs=no
8496	  fi
8497	;;
8498      esac
8499      ;;
8500
8501    sunos4*)
8502      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8503      wlarc=
8504      hardcode_direct=yes
8505      hardcode_shlibpath_var=no
8506      ;;
8507
8508    *)
8509      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8510	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8511	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8512      else
8513	ld_shlibs=no
8514      fi
8515      ;;
8516    esac
8517
8518    if test "$ld_shlibs" = no; then
8519      runpath_var=
8520      hardcode_libdir_flag_spec=
8521      export_dynamic_flag_spec=
8522      whole_archive_flag_spec=
8523    fi
8524  else
8525    # PORTME fill in a description of your system's linker (not GNU ld)
8526    case $host_os in
8527    aix3*)
8528      allow_undefined_flag=unsupported
8529      always_export_symbols=yes
8530      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'
8531      # Note: this linker hardcodes the directories in LIBPATH if there
8532      # are no directories specified by -L.
8533      hardcode_minus_L=yes
8534      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8535	# Neither direct hardcoding nor static linking is supported with a
8536	# broken collect2.
8537	hardcode_direct=unsupported
8538      fi
8539      ;;
8540
8541    aix[4-9]*)
8542      if test "$host_cpu" = ia64; then
8543	# On IA64, the linker does run time linking by default, so we don't
8544	# have to do anything special.
8545	aix_use_runtimelinking=no
8546	exp_sym_flag='-Bexport'
8547	no_entry_flag=""
8548      else
8549	# If we're using GNU nm, then we don't want the "-C" option.
8550	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8551	# Also, AIX nm treats weak defined symbols like other global
8552	# defined symbols, whereas GNU nm marks them as "W".
8553	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8554	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8555	else
8556	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8557	fi
8558	aix_use_runtimelinking=no
8559
8560	# Test if we are trying to use run time linking or normal
8561	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8562	# need to do runtime linking.
8563	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8564	  for ld_flag in $LDFLAGS; do
8565	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8566	    aix_use_runtimelinking=yes
8567	    break
8568	  fi
8569	  done
8570	  ;;
8571	esac
8572
8573	exp_sym_flag='-bexport'
8574	no_entry_flag='-bnoentry'
8575      fi
8576
8577      # When large executables or shared objects are built, AIX ld can
8578      # have problems creating the table of contents.  If linking a library
8579      # or program results in "error TOC overflow" add -mminimal-toc to
8580      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8581      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8582
8583      archive_cmds=''
8584      hardcode_direct=yes
8585      hardcode_direct_absolute=yes
8586      hardcode_libdir_separator=':'
8587      link_all_deplibs=yes
8588      file_list_spec='${wl}-f,'
8589
8590      if test "$GCC" = yes; then
8591	case $host_os in aix4.[012]|aix4.[012].*)
8592	# We only want to do this on AIX 4.2 and lower, the check
8593	# below for broken collect2 doesn't work under 4.3+
8594	  collect2name=`${CC} -print-prog-name=collect2`
8595	  if test -f "$collect2name" &&
8596	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8597	  then
8598	  # We have reworked collect2
8599	  :
8600	  else
8601	  # We have old collect2
8602	  hardcode_direct=unsupported
8603	  # It fails to find uninstalled libraries when the uninstalled
8604	  # path is not listed in the libpath.  Setting hardcode_minus_L
8605	  # to unsupported forces relinking
8606	  hardcode_minus_L=yes
8607	  hardcode_libdir_flag_spec='-L$libdir'
8608	  hardcode_libdir_separator=
8609	  fi
8610	  ;;
8611	esac
8612	shared_flag='-shared'
8613	if test "$aix_use_runtimelinking" = yes; then
8614	  shared_flag="$shared_flag "'${wl}-G'
8615	fi
8616      else
8617	# not using gcc
8618	if test "$host_cpu" = ia64; then
8619	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8620	# chokes on -Wl,-G. The following line is correct:
8621	  shared_flag='-G'
8622	else
8623	  if test "$aix_use_runtimelinking" = yes; then
8624	    shared_flag='${wl}-G'
8625	  else
8626	    shared_flag='${wl}-bM:SRE'
8627	  fi
8628	fi
8629      fi
8630
8631      export_dynamic_flag_spec='${wl}-bexpall'
8632      # It seems that -bexpall does not export symbols beginning with
8633      # underscore (_), so it is better to generate a list of symbols to export.
8634      always_export_symbols=yes
8635      if test "$aix_use_runtimelinking" = yes; then
8636	# Warning - without using the other runtime loading flags (-brtl),
8637	# -berok will link without error, but may produce a broken library.
8638	allow_undefined_flag='-berok'
8639        # Determine the default libpath from the value encoded in an
8640        # empty executable.
8641        if test "${lt_cv_aix_libpath+set}" = set; then
8642  aix_libpath=$lt_cv_aix_libpath
8643else
8644  if ${lt_cv_aix_libpath_+:} false; then :
8645  $as_echo_n "(cached) " >&6
8646else
8647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648/* end confdefs.h.  */
8649
8650int
8651main ()
8652{
8653
8654  ;
8655  return 0;
8656}
8657_ACEOF
8658if ac_fn_c_try_link "$LINENO"; then :
8659
8660  lt_aix_libpath_sed='
8661      /Import File Strings/,/^$/ {
8662	  /^0/ {
8663	      s/^0  *\([^ ]*\) *$/\1/
8664	      p
8665	  }
8666      }'
8667  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8668  # Check for a 64-bit object if we didn't find anything.
8669  if test -z "$lt_cv_aix_libpath_"; then
8670    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8671  fi
8672fi
8673rm -f core conftest.err conftest.$ac_objext \
8674    conftest$ac_exeext conftest.$ac_ext
8675  if test -z "$lt_cv_aix_libpath_"; then
8676    lt_cv_aix_libpath_="/usr/lib:/lib"
8677  fi
8678
8679fi
8680
8681  aix_libpath=$lt_cv_aix_libpath_
8682fi
8683
8684        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8685        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8686      else
8687	if test "$host_cpu" = ia64; then
8688	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8689	  allow_undefined_flag="-z nodefs"
8690	  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"
8691	else
8692	 # Determine the default libpath from the value encoded in an
8693	 # empty executable.
8694	 if test "${lt_cv_aix_libpath+set}" = set; then
8695  aix_libpath=$lt_cv_aix_libpath
8696else
8697  if ${lt_cv_aix_libpath_+:} false; then :
8698  $as_echo_n "(cached) " >&6
8699else
8700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8701/* end confdefs.h.  */
8702
8703int
8704main ()
8705{
8706
8707  ;
8708  return 0;
8709}
8710_ACEOF
8711if ac_fn_c_try_link "$LINENO"; then :
8712
8713  lt_aix_libpath_sed='
8714      /Import File Strings/,/^$/ {
8715	  /^0/ {
8716	      s/^0  *\([^ ]*\) *$/\1/
8717	      p
8718	  }
8719      }'
8720  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8721  # Check for a 64-bit object if we didn't find anything.
8722  if test -z "$lt_cv_aix_libpath_"; then
8723    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8724  fi
8725fi
8726rm -f core conftest.err conftest.$ac_objext \
8727    conftest$ac_exeext conftest.$ac_ext
8728  if test -z "$lt_cv_aix_libpath_"; then
8729    lt_cv_aix_libpath_="/usr/lib:/lib"
8730  fi
8731
8732fi
8733
8734  aix_libpath=$lt_cv_aix_libpath_
8735fi
8736
8737	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8738	  # Warning - without using the other run time loading flags,
8739	  # -berok will link without error, but may produce a broken library.
8740	  no_undefined_flag=' ${wl}-bernotok'
8741	  allow_undefined_flag=' ${wl}-berok'
8742	  if test "$with_gnu_ld" = yes; then
8743	    # We only use this code for GNU lds that support --whole-archive.
8744	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8745	  else
8746	    # Exported symbols can be pulled into shared objects from archives
8747	    whole_archive_flag_spec='$convenience'
8748	  fi
8749	  archive_cmds_need_lc=yes
8750	  # This is similar to how AIX traditionally builds its shared libraries.
8751	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8752	fi
8753      fi
8754      ;;
8755
8756    amigaos*)
8757      case $host_cpu in
8758      powerpc)
8759            # see comment about AmigaOS4 .so support
8760            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8761            archive_expsym_cmds=''
8762        ;;
8763      m68k)
8764            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)'
8765            hardcode_libdir_flag_spec='-L$libdir'
8766            hardcode_minus_L=yes
8767        ;;
8768      esac
8769      ;;
8770
8771    bsdi[45]*)
8772      export_dynamic_flag_spec=-rdynamic
8773      ;;
8774
8775    cygwin* | mingw* | pw32* | cegcc*)
8776      # When not using gcc, we currently assume that we are using
8777      # Microsoft Visual C++.
8778      # hardcode_libdir_flag_spec is actually meaningless, as there is
8779      # no search path for DLLs.
8780      case $cc_basename in
8781      cl*)
8782	# Native MSVC
8783	hardcode_libdir_flag_spec=' '
8784	allow_undefined_flag=unsupported
8785	always_export_symbols=yes
8786	file_list_spec='@'
8787	# Tell ltmain to make .lib files, not .a files.
8788	libext=lib
8789	# Tell ltmain to make .dll files, not .so files.
8790	shrext_cmds=".dll"
8791	# FIXME: Setting linknames here is a bad hack.
8792	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8793	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8794	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8795	  else
8796	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8797	  fi~
8798	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8799	  linknames='
8800	# The linker will not automatically build a static lib if we build a DLL.
8801	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8802	enable_shared_with_static_runtimes=yes
8803	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8804	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8805	# Don't use ranlib
8806	old_postinstall_cmds='chmod 644 $oldlib'
8807	postlink_cmds='lt_outputfile="@OUTPUT@"~
8808	  lt_tool_outputfile="@TOOL_OUTPUT@"~
8809	  case $lt_outputfile in
8810	    *.exe|*.EXE) ;;
8811	    *)
8812	      lt_outputfile="$lt_outputfile.exe"
8813	      lt_tool_outputfile="$lt_tool_outputfile.exe"
8814	      ;;
8815	  esac~
8816	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8817	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8818	    $RM "$lt_outputfile.manifest";
8819	  fi'
8820	;;
8821      *)
8822	# Assume MSVC wrapper
8823	hardcode_libdir_flag_spec=' '
8824	allow_undefined_flag=unsupported
8825	# Tell ltmain to make .lib files, not .a files.
8826	libext=lib
8827	# Tell ltmain to make .dll files, not .so files.
8828	shrext_cmds=".dll"
8829	# FIXME: Setting linknames here is a bad hack.
8830	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8831	# The linker will automatically build a .lib file if we build a DLL.
8832	old_archive_from_new_cmds='true'
8833	# FIXME: Should let the user specify the lib program.
8834	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8835	enable_shared_with_static_runtimes=yes
8836	;;
8837      esac
8838      ;;
8839
8840    darwin* | rhapsody*)
8841
8842
8843  archive_cmds_need_lc=no
8844  hardcode_direct=no
8845  hardcode_automatic=yes
8846  hardcode_shlibpath_var=unsupported
8847  if test "$lt_cv_ld_force_load" = "yes"; then
8848    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\"`'
8849
8850  else
8851    whole_archive_flag_spec=''
8852  fi
8853  link_all_deplibs=yes
8854  allow_undefined_flag="$_lt_dar_allow_undefined"
8855  case $cc_basename in
8856     ifort*) _lt_dar_can_shared=yes ;;
8857     *) _lt_dar_can_shared=$GCC ;;
8858  esac
8859  if test "$_lt_dar_can_shared" = "yes"; then
8860    output_verbose_link_cmd=func_echo_all
8861    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8862    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8863    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}"
8864    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}"
8865
8866  else
8867  ld_shlibs=no
8868  fi
8869
8870      ;;
8871
8872    dgux*)
8873      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8874      hardcode_libdir_flag_spec='-L$libdir'
8875      hardcode_shlibpath_var=no
8876      ;;
8877
8878    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8879    # support.  Future versions do this automatically, but an explicit c++rt0.o
8880    # does not break anything, and helps significantly (at the cost of a little
8881    # extra space).
8882    freebsd2.2*)
8883      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8884      hardcode_libdir_flag_spec='-R$libdir'
8885      hardcode_direct=yes
8886      hardcode_shlibpath_var=no
8887      ;;
8888
8889    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8890    freebsd2.*)
8891      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8892      hardcode_direct=yes
8893      hardcode_minus_L=yes
8894      hardcode_shlibpath_var=no
8895      ;;
8896
8897    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8898    freebsd* | dragonfly*)
8899      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8900      hardcode_libdir_flag_spec='-R$libdir'
8901      hardcode_direct=yes
8902      hardcode_shlibpath_var=no
8903      ;;
8904
8905    hpux9*)
8906      if test "$GCC" = yes; then
8907	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8908      else
8909	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8910      fi
8911      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8912      hardcode_libdir_separator=:
8913      hardcode_direct=yes
8914
8915      # hardcode_minus_L: Not really in the search PATH,
8916      # but as the default location of the library.
8917      hardcode_minus_L=yes
8918      export_dynamic_flag_spec='${wl}-E'
8919      ;;
8920
8921    hpux10*)
8922      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8923	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8924      else
8925	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8926      fi
8927      if test "$with_gnu_ld" = no; then
8928	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8929	hardcode_libdir_separator=:
8930	hardcode_direct=yes
8931	hardcode_direct_absolute=yes
8932	export_dynamic_flag_spec='${wl}-E'
8933	# hardcode_minus_L: Not really in the search PATH,
8934	# but as the default location of the library.
8935	hardcode_minus_L=yes
8936      fi
8937      ;;
8938
8939    hpux11*)
8940      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8941	case $host_cpu in
8942	hppa*64*)
8943	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8944	  ;;
8945	ia64*)
8946	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8947	  ;;
8948	*)
8949	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8950	  ;;
8951	esac
8952      else
8953	case $host_cpu in
8954	hppa*64*)
8955	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956	  ;;
8957	ia64*)
8958	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8959	  ;;
8960	*)
8961
8962	  # Older versions of the 11.00 compiler do not understand -b yet
8963	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8964	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8965$as_echo_n "checking if $CC understands -b... " >&6; }
8966if ${lt_cv_prog_compiler__b+:} false; then :
8967  $as_echo_n "(cached) " >&6
8968else
8969  lt_cv_prog_compiler__b=no
8970   save_LDFLAGS="$LDFLAGS"
8971   LDFLAGS="$LDFLAGS -b"
8972   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8973   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8974     # The linker can only warn and ignore the option if not recognized
8975     # So say no if there are warnings
8976     if test -s conftest.err; then
8977       # Append any errors to the config.log.
8978       cat conftest.err 1>&5
8979       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8980       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8981       if diff conftest.exp conftest.er2 >/dev/null; then
8982         lt_cv_prog_compiler__b=yes
8983       fi
8984     else
8985       lt_cv_prog_compiler__b=yes
8986     fi
8987   fi
8988   $RM -r conftest*
8989   LDFLAGS="$save_LDFLAGS"
8990
8991fi
8992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8993$as_echo "$lt_cv_prog_compiler__b" >&6; }
8994
8995if test x"$lt_cv_prog_compiler__b" = xyes; then
8996    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8997else
8998    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8999fi
9000
9001	  ;;
9002	esac
9003      fi
9004      if test "$with_gnu_ld" = no; then
9005	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9006	hardcode_libdir_separator=:
9007
9008	case $host_cpu in
9009	hppa*64*|ia64*)
9010	  hardcode_direct=no
9011	  hardcode_shlibpath_var=no
9012	  ;;
9013	*)
9014	  hardcode_direct=yes
9015	  hardcode_direct_absolute=yes
9016	  export_dynamic_flag_spec='${wl}-E'
9017
9018	  # hardcode_minus_L: Not really in the search PATH,
9019	  # but as the default location of the library.
9020	  hardcode_minus_L=yes
9021	  ;;
9022	esac
9023      fi
9024      ;;
9025
9026    irix5* | irix6* | nonstopux*)
9027      if test "$GCC" = yes; then
9028	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'
9029	# Try to use the -exported_symbol ld option, if it does not
9030	# work, assume that -exports_file does not work either and
9031	# implicitly export all symbols.
9032	# This should be the same for all languages, so no per-tag cache variable.
9033	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9034$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9035if ${lt_cv_irix_exported_symbol+:} false; then :
9036  $as_echo_n "(cached) " >&6
9037else
9038  save_LDFLAGS="$LDFLAGS"
9039	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9040	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041/* end confdefs.h.  */
9042int foo (void) { return 0; }
9043_ACEOF
9044if ac_fn_c_try_link "$LINENO"; then :
9045  lt_cv_irix_exported_symbol=yes
9046else
9047  lt_cv_irix_exported_symbol=no
9048fi
9049rm -f core conftest.err conftest.$ac_objext \
9050    conftest$ac_exeext conftest.$ac_ext
9051           LDFLAGS="$save_LDFLAGS"
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9054$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9055	if test "$lt_cv_irix_exported_symbol" = yes; then
9056          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'
9057	fi
9058      else
9059	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'
9060	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'
9061      fi
9062      archive_cmds_need_lc='no'
9063      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9064      hardcode_libdir_separator=:
9065      inherit_rpath=yes
9066      link_all_deplibs=yes
9067      ;;
9068
9069    netbsd*)
9070      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9071	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9072      else
9073	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9074      fi
9075      hardcode_libdir_flag_spec='-R$libdir'
9076      hardcode_direct=yes
9077      hardcode_shlibpath_var=no
9078      ;;
9079
9080    newsos6)
9081      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9082      hardcode_direct=yes
9083      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9084      hardcode_libdir_separator=:
9085      hardcode_shlibpath_var=no
9086      ;;
9087
9088    *nto* | *qnx*)
9089      ;;
9090
9091    openbsd*)
9092      if test -f /usr/libexec/ld.so; then
9093	hardcode_direct=yes
9094	hardcode_shlibpath_var=no
9095	hardcode_direct_absolute=yes
9096	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9097	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9098	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9099	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9100	  export_dynamic_flag_spec='${wl}-E'
9101	else
9102	  case $host_os in
9103	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9104	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9105	     hardcode_libdir_flag_spec='-R$libdir'
9106	     ;;
9107	   *)
9108	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9109	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9110	     ;;
9111	  esac
9112	fi
9113      else
9114	ld_shlibs=no
9115      fi
9116      ;;
9117
9118    os2*)
9119      hardcode_libdir_flag_spec='-L$libdir'
9120      hardcode_minus_L=yes
9121      allow_undefined_flag=unsupported
9122      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9123      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9124      ;;
9125
9126    osf3*)
9127      if test "$GCC" = yes; then
9128	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9129	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'
9130      else
9131	allow_undefined_flag=' -expect_unresolved \*'
9132	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'
9133      fi
9134      archive_cmds_need_lc='no'
9135      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9136      hardcode_libdir_separator=:
9137      ;;
9138
9139    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9140      if test "$GCC" = yes; then
9141	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9142	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'
9143	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9144      else
9145	allow_undefined_flag=' -expect_unresolved \*'
9146	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'
9147	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~
9148	$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'
9149
9150	# Both c and cxx compiler support -rpath directly
9151	hardcode_libdir_flag_spec='-rpath $libdir'
9152      fi
9153      archive_cmds_need_lc='no'
9154      hardcode_libdir_separator=:
9155      ;;
9156
9157    solaris*)
9158      no_undefined_flag=' -z defs'
9159      if test "$GCC" = yes; then
9160	wlarc='${wl}'
9161	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9162	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9163	  $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'
9164      else
9165	case `$CC -V 2>&1` in
9166	*"Compilers 5.0"*)
9167	  wlarc=''
9168	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9169	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9170	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9171	  ;;
9172	*)
9173	  wlarc='${wl}'
9174	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9175	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9176	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9177	  ;;
9178	esac
9179      fi
9180      hardcode_libdir_flag_spec='-R$libdir'
9181      hardcode_shlibpath_var=no
9182      case $host_os in
9183      solaris2.[0-5] | solaris2.[0-5].*) ;;
9184      *)
9185	# The compiler driver will combine and reorder linker options,
9186	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9187	# but is careful enough not to reorder.
9188	# Supported since Solaris 2.6 (maybe 2.5.1?)
9189	if test "$GCC" = yes; then
9190	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9191	else
9192	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9193	fi
9194	;;
9195      esac
9196      link_all_deplibs=yes
9197      ;;
9198
9199    sunos4*)
9200      if test "x$host_vendor" = xsequent; then
9201	# Use $CC to link under sequent, because it throws in some extra .o
9202	# files that make .init and .fini sections work.
9203	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9204      else
9205	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9206      fi
9207      hardcode_libdir_flag_spec='-L$libdir'
9208      hardcode_direct=yes
9209      hardcode_minus_L=yes
9210      hardcode_shlibpath_var=no
9211      ;;
9212
9213    sysv4)
9214      case $host_vendor in
9215	sni)
9216	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9217	  hardcode_direct=yes # is this really true???
9218	;;
9219	siemens)
9220	  ## LD is ld it makes a PLAMLIB
9221	  ## CC just makes a GrossModule.
9222	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9223	  reload_cmds='$CC -r -o $output$reload_objs'
9224	  hardcode_direct=no
9225        ;;
9226	motorola)
9227	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9228	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9229	;;
9230      esac
9231      runpath_var='LD_RUN_PATH'
9232      hardcode_shlibpath_var=no
9233      ;;
9234
9235    sysv4.3*)
9236      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9237      hardcode_shlibpath_var=no
9238      export_dynamic_flag_spec='-Bexport'
9239      ;;
9240
9241    sysv4*MP*)
9242      if test -d /usr/nec; then
9243	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9244	hardcode_shlibpath_var=no
9245	runpath_var=LD_RUN_PATH
9246	hardcode_runpath_var=yes
9247	ld_shlibs=yes
9248      fi
9249      ;;
9250
9251    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9252      no_undefined_flag='${wl}-z,text'
9253      archive_cmds_need_lc=no
9254      hardcode_shlibpath_var=no
9255      runpath_var='LD_RUN_PATH'
9256
9257      if test "$GCC" = yes; then
9258	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9259	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9260      else
9261	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9262	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9263      fi
9264      ;;
9265
9266    sysv5* | sco3.2v5* | sco5v6*)
9267      # Note: We can NOT use -z defs as we might desire, because we do not
9268      # link with -lc, and that would cause any symbols used from libc to
9269      # always be unresolved, which means just about no library would
9270      # ever link correctly.  If we're not using GNU ld we use -z text
9271      # though, which does catch some bad symbols but isn't as heavy-handed
9272      # as -z defs.
9273      no_undefined_flag='${wl}-z,text'
9274      allow_undefined_flag='${wl}-z,nodefs'
9275      archive_cmds_need_lc=no
9276      hardcode_shlibpath_var=no
9277      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9278      hardcode_libdir_separator=':'
9279      link_all_deplibs=yes
9280      export_dynamic_flag_spec='${wl}-Bexport'
9281      runpath_var='LD_RUN_PATH'
9282
9283      if test "$GCC" = yes; then
9284	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9285	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9286      else
9287	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9288	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9289      fi
9290      ;;
9291
9292    uts4*)
9293      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294      hardcode_libdir_flag_spec='-L$libdir'
9295      hardcode_shlibpath_var=no
9296      ;;
9297
9298    *)
9299      ld_shlibs=no
9300      ;;
9301    esac
9302
9303    if test x$host_vendor = xsni; then
9304      case $host in
9305      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9306	export_dynamic_flag_spec='${wl}-Blargedynsym'
9307	;;
9308      esac
9309    fi
9310  fi
9311
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9313$as_echo "$ld_shlibs" >&6; }
9314test "$ld_shlibs" = no && can_build_shared=no
9315
9316with_gnu_ld=$with_gnu_ld
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332#
9333# Do we need to explicitly link libc?
9334#
9335case "x$archive_cmds_need_lc" in
9336x|xyes)
9337  # Assume -lc should be added
9338  archive_cmds_need_lc=yes
9339
9340  if test "$enable_shared" = yes && test "$GCC" = yes; then
9341    case $archive_cmds in
9342    *'~'*)
9343      # FIXME: we may have to deal with multi-command sequences.
9344      ;;
9345    '$CC '*)
9346      # Test whether the compiler implicitly links with -lc since on some
9347      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9348      # to ld, don't add -lc before -lgcc.
9349      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9350$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9351if ${lt_cv_archive_cmds_need_lc+:} false; then :
9352  $as_echo_n "(cached) " >&6
9353else
9354  $RM conftest*
9355	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9356
9357	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9358  (eval $ac_compile) 2>&5
9359  ac_status=$?
9360  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9361  test $ac_status = 0; } 2>conftest.err; then
9362	  soname=conftest
9363	  lib=conftest
9364	  libobjs=conftest.$ac_objext
9365	  deplibs=
9366	  wl=$lt_prog_compiler_wl
9367	  pic_flag=$lt_prog_compiler_pic
9368	  compiler_flags=-v
9369	  linker_flags=-v
9370	  verstring=
9371	  output_objdir=.
9372	  libname=conftest
9373	  lt_save_allow_undefined_flag=$allow_undefined_flag
9374	  allow_undefined_flag=
9375	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9376  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9377  ac_status=$?
9378  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9379  test $ac_status = 0; }
9380	  then
9381	    lt_cv_archive_cmds_need_lc=no
9382	  else
9383	    lt_cv_archive_cmds_need_lc=yes
9384	  fi
9385	  allow_undefined_flag=$lt_save_allow_undefined_flag
9386	else
9387	  cat conftest.err 1>&5
9388	fi
9389	$RM conftest*
9390
9391fi
9392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9393$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9394      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9395      ;;
9396    esac
9397  fi
9398  ;;
9399esac
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9553$as_echo_n "checking dynamic linker characteristics... " >&6; }
9554
9555if test "$GCC" = yes; then
9556  case $host_os in
9557    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9558    *) lt_awk_arg="/^libraries:/" ;;
9559  esac
9560  case $host_os in
9561    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9562    *) lt_sed_strip_eq="s,=/,/,g" ;;
9563  esac
9564  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9565  case $lt_search_path_spec in
9566  *\;*)
9567    # if the path contains ";" then we assume it to be the separator
9568    # otherwise default to the standard path separator (i.e. ":") - it is
9569    # assumed that no part of a normal pathname contains ";" but that should
9570    # okay in the real world where ";" in dirpaths is itself problematic.
9571    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9572    ;;
9573  *)
9574    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9575    ;;
9576  esac
9577  # Ok, now we have the path, separated by spaces, we can step through it
9578  # and add multilib dir if necessary.
9579  lt_tmp_lt_search_path_spec=
9580  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9581  for lt_sys_path in $lt_search_path_spec; do
9582    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9583      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9584    else
9585      test -d "$lt_sys_path" && \
9586	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9587    fi
9588  done
9589  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9590BEGIN {RS=" "; FS="/|\n";} {
9591  lt_foo="";
9592  lt_count=0;
9593  for (lt_i = NF; lt_i > 0; lt_i--) {
9594    if ($lt_i != "" && $lt_i != ".") {
9595      if ($lt_i == "..") {
9596        lt_count++;
9597      } else {
9598        if (lt_count == 0) {
9599          lt_foo="/" $lt_i lt_foo;
9600        } else {
9601          lt_count--;
9602        }
9603      }
9604    }
9605  }
9606  if (lt_foo != "") { lt_freq[lt_foo]++; }
9607  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9608}'`
9609  # AWK program above erroneously prepends '/' to C:/dos/paths
9610  # for these hosts.
9611  case $host_os in
9612    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9613      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9614  esac
9615  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9616else
9617  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9618fi
9619library_names_spec=
9620libname_spec='lib$name'
9621soname_spec=
9622shrext_cmds=".so"
9623postinstall_cmds=
9624postuninstall_cmds=
9625finish_cmds=
9626finish_eval=
9627shlibpath_var=
9628shlibpath_overrides_runpath=unknown
9629version_type=none
9630dynamic_linker="$host_os ld.so"
9631sys_lib_dlsearch_path_spec="/lib /usr/lib"
9632need_lib_prefix=unknown
9633hardcode_into_libs=no
9634
9635# when you set need_version to no, make sure it does not cause -set_version
9636# flags to be left without arguments
9637need_version=unknown
9638
9639case $host_os in
9640aix3*)
9641  version_type=linux # correct to gnu/linux during the next big refactor
9642  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9643  shlibpath_var=LIBPATH
9644
9645  # AIX 3 has no versioning support, so we append a major version to the name.
9646  soname_spec='${libname}${release}${shared_ext}$major'
9647  ;;
9648
9649aix[4-9]*)
9650  version_type=linux # correct to gnu/linux during the next big refactor
9651  need_lib_prefix=no
9652  need_version=no
9653  hardcode_into_libs=yes
9654  if test "$host_cpu" = ia64; then
9655    # AIX 5 supports IA64
9656    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9657    shlibpath_var=LD_LIBRARY_PATH
9658  else
9659    # With GCC up to 2.95.x, collect2 would create an import file
9660    # for dependence libraries.  The import file would start with
9661    # the line `#! .'.  This would cause the generated library to
9662    # depend on `.', always an invalid library.  This was fixed in
9663    # development snapshots of GCC prior to 3.0.
9664    case $host_os in
9665      aix4 | aix4.[01] | aix4.[01].*)
9666      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9667	   echo ' yes '
9668	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9669	:
9670      else
9671	can_build_shared=no
9672      fi
9673      ;;
9674    esac
9675    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9676    # soname into executable. Probably we can add versioning support to
9677    # collect2, so additional links can be useful in future.
9678    if test "$aix_use_runtimelinking" = yes; then
9679      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9680      # instead of lib<name>.a to let people know that these are not
9681      # typical AIX shared libraries.
9682      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683    else
9684      # We preserve .a as extension for shared libraries through AIX4.2
9685      # and later when we are not doing run time linking.
9686      library_names_spec='${libname}${release}.a $libname.a'
9687      soname_spec='${libname}${release}${shared_ext}$major'
9688    fi
9689    shlibpath_var=LIBPATH
9690  fi
9691  ;;
9692
9693amigaos*)
9694  case $host_cpu in
9695  powerpc)
9696    # Since July 2007 AmigaOS4 officially supports .so libraries.
9697    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9698    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699    ;;
9700  m68k)
9701    library_names_spec='$libname.ixlibrary $libname.a'
9702    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9703    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9704    ;;
9705  esac
9706  ;;
9707
9708beos*)
9709  library_names_spec='${libname}${shared_ext}'
9710  dynamic_linker="$host_os ld.so"
9711  shlibpath_var=LIBRARY_PATH
9712  ;;
9713
9714bsdi[45]*)
9715  version_type=linux # correct to gnu/linux during the next big refactor
9716  need_version=no
9717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9718  soname_spec='${libname}${release}${shared_ext}$major'
9719  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9720  shlibpath_var=LD_LIBRARY_PATH
9721  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9722  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9723  # the default ld.so.conf also contains /usr/contrib/lib and
9724  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9725  # libtool to hard-code these into programs
9726  ;;
9727
9728cygwin* | mingw* | pw32* | cegcc*)
9729  version_type=windows
9730  shrext_cmds=".dll"
9731  need_version=no
9732  need_lib_prefix=no
9733
9734  case $GCC,$cc_basename in
9735  yes,*)
9736    # gcc
9737    library_names_spec='$libname.dll.a'
9738    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9739    postinstall_cmds='base_file=`basename \${file}`~
9740      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9741      dldir=$destdir/`dirname \$dlpath`~
9742      test -d \$dldir || mkdir -p \$dldir~
9743      $install_prog $dir/$dlname \$dldir/$dlname~
9744      chmod a+x \$dldir/$dlname~
9745      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9746        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9747      fi'
9748    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9749      dlpath=$dir/\$dldll~
9750       $RM \$dlpath'
9751    shlibpath_overrides_runpath=yes
9752
9753    case $host_os in
9754    cygwin*)
9755      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9756      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9757
9758      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9759      ;;
9760    mingw* | cegcc*)
9761      # MinGW DLLs use traditional 'lib' prefix
9762      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9763      ;;
9764    pw32*)
9765      # pw32 DLLs use 'pw' prefix rather than 'lib'
9766      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9767      ;;
9768    esac
9769    dynamic_linker='Win32 ld.exe'
9770    ;;
9771
9772  *,cl*)
9773    # Native MSVC
9774    libname_spec='$name'
9775    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9776    library_names_spec='${libname}.dll.lib'
9777
9778    case $build_os in
9779    mingw*)
9780      sys_lib_search_path_spec=
9781      lt_save_ifs=$IFS
9782      IFS=';'
9783      for lt_path in $LIB
9784      do
9785        IFS=$lt_save_ifs
9786        # Let DOS variable expansion print the short 8.3 style file name.
9787        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9788        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9789      done
9790      IFS=$lt_save_ifs
9791      # Convert to MSYS style.
9792      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9793      ;;
9794    cygwin*)
9795      # Convert to unix form, then to dos form, then back to unix form
9796      # but this time dos style (no spaces!) so that the unix form looks
9797      # like /cygdrive/c/PROGRA~1:/cygdr...
9798      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9799      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9800      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9801      ;;
9802    *)
9803      sys_lib_search_path_spec="$LIB"
9804      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9805        # It is most probably a Windows format PATH.
9806        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9807      else
9808        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9809      fi
9810      # FIXME: find the short name or the path components, as spaces are
9811      # common. (e.g. "Program Files" -> "PROGRA~1")
9812      ;;
9813    esac
9814
9815    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9816    postinstall_cmds='base_file=`basename \${file}`~
9817      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9818      dldir=$destdir/`dirname \$dlpath`~
9819      test -d \$dldir || mkdir -p \$dldir~
9820      $install_prog $dir/$dlname \$dldir/$dlname'
9821    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9822      dlpath=$dir/\$dldll~
9823       $RM \$dlpath'
9824    shlibpath_overrides_runpath=yes
9825    dynamic_linker='Win32 link.exe'
9826    ;;
9827
9828  *)
9829    # Assume MSVC wrapper
9830    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9831    dynamic_linker='Win32 ld.exe'
9832    ;;
9833  esac
9834  # FIXME: first we should search . and the directory the executable is in
9835  shlibpath_var=PATH
9836  ;;
9837
9838darwin* | rhapsody*)
9839  dynamic_linker="$host_os dyld"
9840  version_type=darwin
9841  need_lib_prefix=no
9842  need_version=no
9843  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9844  soname_spec='${libname}${release}${major}$shared_ext'
9845  shlibpath_overrides_runpath=yes
9846  shlibpath_var=DYLD_LIBRARY_PATH
9847  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9848
9849  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9850  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9851  ;;
9852
9853dgux*)
9854  version_type=linux # correct to gnu/linux during the next big refactor
9855  need_lib_prefix=no
9856  need_version=no
9857  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9858  soname_spec='${libname}${release}${shared_ext}$major'
9859  shlibpath_var=LD_LIBRARY_PATH
9860  ;;
9861
9862freebsd* | dragonfly*)
9863  # DragonFly does not have aout.  When/if they implement a new
9864  # versioning mechanism, adjust this.
9865  if test -x /usr/bin/objformat; then
9866    objformat=`/usr/bin/objformat`
9867  else
9868    case $host_os in
9869    freebsd[23].*) objformat=aout ;;
9870    *) objformat=elf ;;
9871    esac
9872  fi
9873  version_type=freebsd-$objformat
9874  case $version_type in
9875    freebsd-elf*)
9876      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9877      need_version=no
9878      need_lib_prefix=no
9879      ;;
9880    freebsd-*)
9881      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9882      need_version=yes
9883      ;;
9884  esac
9885  shlibpath_var=LD_LIBRARY_PATH
9886  case $host_os in
9887  freebsd2.*)
9888    shlibpath_overrides_runpath=yes
9889    ;;
9890  freebsd3.[01]* | freebsdelf3.[01]*)
9891    shlibpath_overrides_runpath=yes
9892    hardcode_into_libs=yes
9893    ;;
9894  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9895  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9896    shlibpath_overrides_runpath=no
9897    hardcode_into_libs=yes
9898    ;;
9899  *) # from 4.6 on, and DragonFly
9900    shlibpath_overrides_runpath=yes
9901    hardcode_into_libs=yes
9902    ;;
9903  esac
9904  ;;
9905
9906gnu*)
9907  version_type=linux # correct to gnu/linux during the next big refactor
9908  need_lib_prefix=no
9909  need_version=no
9910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9911  soname_spec='${libname}${release}${shared_ext}$major'
9912  shlibpath_var=LD_LIBRARY_PATH
9913  shlibpath_overrides_runpath=no
9914  hardcode_into_libs=yes
9915  ;;
9916
9917haiku*)
9918  version_type=linux # correct to gnu/linux during the next big refactor
9919  need_lib_prefix=no
9920  need_version=no
9921  dynamic_linker="$host_os runtime_loader"
9922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9923  soname_spec='${libname}${release}${shared_ext}$major'
9924  shlibpath_var=LIBRARY_PATH
9925  shlibpath_overrides_runpath=yes
9926  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9927  hardcode_into_libs=yes
9928  ;;
9929
9930hpux9* | hpux10* | hpux11*)
9931  # Give a soname corresponding to the major version so that dld.sl refuses to
9932  # link against other versions.
9933  version_type=sunos
9934  need_lib_prefix=no
9935  need_version=no
9936  case $host_cpu in
9937  ia64*)
9938    shrext_cmds='.so'
9939    hardcode_into_libs=yes
9940    dynamic_linker="$host_os dld.so"
9941    shlibpath_var=LD_LIBRARY_PATH
9942    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9943    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9944    soname_spec='${libname}${release}${shared_ext}$major'
9945    if test "X$HPUX_IA64_MODE" = X32; then
9946      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9947    else
9948      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9949    fi
9950    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9951    ;;
9952  hppa*64*)
9953    shrext_cmds='.sl'
9954    hardcode_into_libs=yes
9955    dynamic_linker="$host_os dld.sl"
9956    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9957    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9958    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959    soname_spec='${libname}${release}${shared_ext}$major'
9960    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9961    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9962    ;;
9963  *)
9964    shrext_cmds='.sl'
9965    dynamic_linker="$host_os dld.sl"
9966    shlibpath_var=SHLIB_PATH
9967    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9968    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9969    soname_spec='${libname}${release}${shared_ext}$major'
9970    ;;
9971  esac
9972  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9973  postinstall_cmds='chmod 555 $lib'
9974  # or fails outright, so override atomically:
9975  install_override_mode=555
9976  ;;
9977
9978interix[3-9]*)
9979  version_type=linux # correct to gnu/linux during the next big refactor
9980  need_lib_prefix=no
9981  need_version=no
9982  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9983  soname_spec='${libname}${release}${shared_ext}$major'
9984  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9985  shlibpath_var=LD_LIBRARY_PATH
9986  shlibpath_overrides_runpath=no
9987  hardcode_into_libs=yes
9988  ;;
9989
9990irix5* | irix6* | nonstopux*)
9991  case $host_os in
9992    nonstopux*) version_type=nonstopux ;;
9993    *)
9994	if test "$lt_cv_prog_gnu_ld" = yes; then
9995		version_type=linux # correct to gnu/linux during the next big refactor
9996	else
9997		version_type=irix
9998	fi ;;
9999  esac
10000  need_lib_prefix=no
10001  need_version=no
10002  soname_spec='${libname}${release}${shared_ext}$major'
10003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10004  case $host_os in
10005  irix5* | nonstopux*)
10006    libsuff= shlibsuff=
10007    ;;
10008  *)
10009    case $LD in # libtool.m4 will add one of these switches to LD
10010    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10011      libsuff= shlibsuff= libmagic=32-bit;;
10012    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10013      libsuff=32 shlibsuff=N32 libmagic=N32;;
10014    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10015      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10016    *) libsuff= shlibsuff= libmagic=never-match;;
10017    esac
10018    ;;
10019  esac
10020  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10021  shlibpath_overrides_runpath=no
10022  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10023  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10024  hardcode_into_libs=yes
10025  ;;
10026
10027# No shared lib support for Linux oldld, aout, or coff.
10028linux*oldld* | linux*aout* | linux*coff*)
10029  dynamic_linker=no
10030  ;;
10031
10032# This must be glibc/ELF.
10033linux* | k*bsd*-gnu | kopensolaris*-gnu)
10034  version_type=linux # correct to gnu/linux during the next big refactor
10035  need_lib_prefix=no
10036  need_version=no
10037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10038  soname_spec='${libname}${release}${shared_ext}$major'
10039  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10040  shlibpath_var=LD_LIBRARY_PATH
10041  shlibpath_overrides_runpath=no
10042
10043  # Some binutils ld are patched to set DT_RUNPATH
10044  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10045  $as_echo_n "(cached) " >&6
10046else
10047  lt_cv_shlibpath_overrides_runpath=no
10048    save_LDFLAGS=$LDFLAGS
10049    save_libdir=$libdir
10050    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10051	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10053/* end confdefs.h.  */
10054
10055int
10056main ()
10057{
10058
10059  ;
10060  return 0;
10061}
10062_ACEOF
10063if ac_fn_c_try_link "$LINENO"; then :
10064  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10065  lt_cv_shlibpath_overrides_runpath=yes
10066fi
10067fi
10068rm -f core conftest.err conftest.$ac_objext \
10069    conftest$ac_exeext conftest.$ac_ext
10070    LDFLAGS=$save_LDFLAGS
10071    libdir=$save_libdir
10072
10073fi
10074
10075  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10076
10077  # This implies no fast_install, which is unacceptable.
10078  # Some rework will be needed to allow for fast_install
10079  # before this can be enabled.
10080  hardcode_into_libs=yes
10081
10082  # Append ld.so.conf contents to the search path
10083  if test -f /etc/ld.so.conf; then
10084    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' ' '`
10085    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10086  fi
10087
10088  # We used to test for /lib/ld.so.1 and disable shared libraries on
10089  # powerpc, because MkLinux only supported shared libraries with the
10090  # GNU dynamic linker.  Since this was broken with cross compilers,
10091  # most powerpc-linux boxes support dynamic linking these days and
10092  # people can always --disable-shared, the test was removed, and we
10093  # assume the GNU/Linux dynamic linker is in use.
10094  dynamic_linker='GNU/Linux ld.so'
10095  ;;
10096
10097netbsd*)
10098  version_type=sunos
10099  need_lib_prefix=no
10100  need_version=no
10101  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10102    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10103    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10104    dynamic_linker='NetBSD (a.out) ld.so'
10105  else
10106    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10107    soname_spec='${libname}${release}${shared_ext}$major'
10108    dynamic_linker='NetBSD ld.elf_so'
10109  fi
10110  shlibpath_var=LD_LIBRARY_PATH
10111  shlibpath_overrides_runpath=yes
10112  hardcode_into_libs=yes
10113  ;;
10114
10115newsos6)
10116  version_type=linux # correct to gnu/linux during the next big refactor
10117  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118  shlibpath_var=LD_LIBRARY_PATH
10119  shlibpath_overrides_runpath=yes
10120  ;;
10121
10122*nto* | *qnx*)
10123  version_type=qnx
10124  need_lib_prefix=no
10125  need_version=no
10126  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127  soname_spec='${libname}${release}${shared_ext}$major'
10128  shlibpath_var=LD_LIBRARY_PATH
10129  shlibpath_overrides_runpath=no
10130  hardcode_into_libs=yes
10131  dynamic_linker='ldqnx.so'
10132  ;;
10133
10134openbsd*)
10135  version_type=sunos
10136  sys_lib_dlsearch_path_spec="/usr/lib"
10137  need_lib_prefix=no
10138  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10139  case $host_os in
10140    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10141    *)				need_version=no  ;;
10142  esac
10143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10144  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10145  shlibpath_var=LD_LIBRARY_PATH
10146  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10147    case $host_os in
10148      openbsd2.[89] | openbsd2.[89].*)
10149	shlibpath_overrides_runpath=no
10150	;;
10151      *)
10152	shlibpath_overrides_runpath=yes
10153	;;
10154      esac
10155  else
10156    shlibpath_overrides_runpath=yes
10157  fi
10158  ;;
10159
10160os2*)
10161  libname_spec='$name'
10162  shrext_cmds=".dll"
10163  need_lib_prefix=no
10164  library_names_spec='$libname${shared_ext} $libname.a'
10165  dynamic_linker='OS/2 ld.exe'
10166  shlibpath_var=LIBPATH
10167  ;;
10168
10169osf3* | osf4* | osf5*)
10170  version_type=osf
10171  need_lib_prefix=no
10172  need_version=no
10173  soname_spec='${libname}${release}${shared_ext}$major'
10174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10175  shlibpath_var=LD_LIBRARY_PATH
10176  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10177  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10178  ;;
10179
10180rdos*)
10181  dynamic_linker=no
10182  ;;
10183
10184solaris*)
10185  version_type=linux # correct to gnu/linux during the next big refactor
10186  need_lib_prefix=no
10187  need_version=no
10188  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10189  soname_spec='${libname}${release}${shared_ext}$major'
10190  shlibpath_var=LD_LIBRARY_PATH
10191  shlibpath_overrides_runpath=yes
10192  hardcode_into_libs=yes
10193  # ldd complains unless libraries are executable
10194  postinstall_cmds='chmod +x $lib'
10195  ;;
10196
10197sunos4*)
10198  version_type=sunos
10199  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10200  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10201  shlibpath_var=LD_LIBRARY_PATH
10202  shlibpath_overrides_runpath=yes
10203  if test "$with_gnu_ld" = yes; then
10204    need_lib_prefix=no
10205  fi
10206  need_version=yes
10207  ;;
10208
10209sysv4 | sysv4.3*)
10210  version_type=linux # correct to gnu/linux during the next big refactor
10211  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10212  soname_spec='${libname}${release}${shared_ext}$major'
10213  shlibpath_var=LD_LIBRARY_PATH
10214  case $host_vendor in
10215    sni)
10216      shlibpath_overrides_runpath=no
10217      need_lib_prefix=no
10218      runpath_var=LD_RUN_PATH
10219      ;;
10220    siemens)
10221      need_lib_prefix=no
10222      ;;
10223    motorola)
10224      need_lib_prefix=no
10225      need_version=no
10226      shlibpath_overrides_runpath=no
10227      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10228      ;;
10229  esac
10230  ;;
10231
10232sysv4*MP*)
10233  if test -d /usr/nec ;then
10234    version_type=linux # correct to gnu/linux during the next big refactor
10235    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10236    soname_spec='$libname${shared_ext}.$major'
10237    shlibpath_var=LD_LIBRARY_PATH
10238  fi
10239  ;;
10240
10241sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10242  version_type=freebsd-elf
10243  need_lib_prefix=no
10244  need_version=no
10245  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10246  soname_spec='${libname}${release}${shared_ext}$major'
10247  shlibpath_var=LD_LIBRARY_PATH
10248  shlibpath_overrides_runpath=yes
10249  hardcode_into_libs=yes
10250  if test "$with_gnu_ld" = yes; then
10251    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10252  else
10253    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10254    case $host_os in
10255      sco3.2v5*)
10256        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10257	;;
10258    esac
10259  fi
10260  sys_lib_dlsearch_path_spec='/usr/lib'
10261  ;;
10262
10263tpf*)
10264  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10265  version_type=linux # correct to gnu/linux during the next big refactor
10266  need_lib_prefix=no
10267  need_version=no
10268  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10269  shlibpath_var=LD_LIBRARY_PATH
10270  shlibpath_overrides_runpath=no
10271  hardcode_into_libs=yes
10272  ;;
10273
10274uts4*)
10275  version_type=linux # correct to gnu/linux during the next big refactor
10276  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277  soname_spec='${libname}${release}${shared_ext}$major'
10278  shlibpath_var=LD_LIBRARY_PATH
10279  ;;
10280
10281*)
10282  dynamic_linker=no
10283  ;;
10284esac
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10286$as_echo "$dynamic_linker" >&6; }
10287test "$dynamic_linker" = no && can_build_shared=no
10288
10289variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10290if test "$GCC" = yes; then
10291  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10292fi
10293
10294if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10295  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10296fi
10297if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10298  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10299fi
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10393$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10394hardcode_action=
10395if test -n "$hardcode_libdir_flag_spec" ||
10396   test -n "$runpath_var" ||
10397   test "X$hardcode_automatic" = "Xyes" ; then
10398
10399  # We can hardcode non-existent directories.
10400  if test "$hardcode_direct" != no &&
10401     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10402     # have to relink, otherwise we might link with an installed library
10403     # when we should be linking with a yet-to-be-installed one
10404     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10405     test "$hardcode_minus_L" != no; then
10406    # Linking always hardcodes the temporary library directory.
10407    hardcode_action=relink
10408  else
10409    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10410    hardcode_action=immediate
10411  fi
10412else
10413  # We cannot hardcode anything, or else we can only hardcode existing
10414  # directories.
10415  hardcode_action=unsupported
10416fi
10417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10418$as_echo "$hardcode_action" >&6; }
10419
10420if test "$hardcode_action" = relink ||
10421   test "$inherit_rpath" = yes; then
10422  # Fast installation is not supported
10423  enable_fast_install=no
10424elif test "$shlibpath_overrides_runpath" = yes ||
10425     test "$enable_shared" = no; then
10426  # Fast installation is not necessary
10427  enable_fast_install=needless
10428fi
10429
10430
10431
10432
10433
10434
10435  if test "x$enable_dlopen" != xyes; then
10436  enable_dlopen=unknown
10437  enable_dlopen_self=unknown
10438  enable_dlopen_self_static=unknown
10439else
10440  lt_cv_dlopen=no
10441  lt_cv_dlopen_libs=
10442
10443  case $host_os in
10444  beos*)
10445    lt_cv_dlopen="load_add_on"
10446    lt_cv_dlopen_libs=
10447    lt_cv_dlopen_self=yes
10448    ;;
10449
10450  mingw* | pw32* | cegcc*)
10451    lt_cv_dlopen="LoadLibrary"
10452    lt_cv_dlopen_libs=
10453    ;;
10454
10455  cygwin*)
10456    lt_cv_dlopen="dlopen"
10457    lt_cv_dlopen_libs=
10458    ;;
10459
10460  darwin*)
10461  # if libdl is installed we need to link against it
10462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10463$as_echo_n "checking for dlopen in -ldl... " >&6; }
10464if ${ac_cv_lib_dl_dlopen+:} false; then :
10465  $as_echo_n "(cached) " >&6
10466else
10467  ac_check_lib_save_LIBS=$LIBS
10468LIBS="-ldl  $LIBS"
10469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470/* end confdefs.h.  */
10471
10472/* Override any GCC internal prototype to avoid an error.
10473   Use char because int might match the return type of a GCC
10474   builtin and then its argument prototype would still apply.  */
10475#ifdef __cplusplus
10476extern "C"
10477#endif
10478char dlopen ();
10479int
10480main ()
10481{
10482return dlopen ();
10483  ;
10484  return 0;
10485}
10486_ACEOF
10487if ac_fn_c_try_link "$LINENO"; then :
10488  ac_cv_lib_dl_dlopen=yes
10489else
10490  ac_cv_lib_dl_dlopen=no
10491fi
10492rm -f core conftest.err conftest.$ac_objext \
10493    conftest$ac_exeext conftest.$ac_ext
10494LIBS=$ac_check_lib_save_LIBS
10495fi
10496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10497$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10498if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10499  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10500else
10501
10502    lt_cv_dlopen="dyld"
10503    lt_cv_dlopen_libs=
10504    lt_cv_dlopen_self=yes
10505
10506fi
10507
10508    ;;
10509
10510  *)
10511    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10512if test "x$ac_cv_func_shl_load" = xyes; then :
10513  lt_cv_dlopen="shl_load"
10514else
10515  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10516$as_echo_n "checking for shl_load in -ldld... " >&6; }
10517if ${ac_cv_lib_dld_shl_load+:} false; then :
10518  $as_echo_n "(cached) " >&6
10519else
10520  ac_check_lib_save_LIBS=$LIBS
10521LIBS="-ldld  $LIBS"
10522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10523/* end confdefs.h.  */
10524
10525/* Override any GCC internal prototype to avoid an error.
10526   Use char because int might match the return type of a GCC
10527   builtin and then its argument prototype would still apply.  */
10528#ifdef __cplusplus
10529extern "C"
10530#endif
10531char shl_load ();
10532int
10533main ()
10534{
10535return shl_load ();
10536  ;
10537  return 0;
10538}
10539_ACEOF
10540if ac_fn_c_try_link "$LINENO"; then :
10541  ac_cv_lib_dld_shl_load=yes
10542else
10543  ac_cv_lib_dld_shl_load=no
10544fi
10545rm -f core conftest.err conftest.$ac_objext \
10546    conftest$ac_exeext conftest.$ac_ext
10547LIBS=$ac_check_lib_save_LIBS
10548fi
10549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10550$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10551if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10552  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10553else
10554  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10555if test "x$ac_cv_func_dlopen" = xyes; then :
10556  lt_cv_dlopen="dlopen"
10557else
10558  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10559$as_echo_n "checking for dlopen in -ldl... " >&6; }
10560if ${ac_cv_lib_dl_dlopen+:} false; then :
10561  $as_echo_n "(cached) " >&6
10562else
10563  ac_check_lib_save_LIBS=$LIBS
10564LIBS="-ldl  $LIBS"
10565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h.  */
10567
10568/* Override any GCC internal prototype to avoid an error.
10569   Use char because int might match the return type of a GCC
10570   builtin and then its argument prototype would still apply.  */
10571#ifdef __cplusplus
10572extern "C"
10573#endif
10574char dlopen ();
10575int
10576main ()
10577{
10578return dlopen ();
10579  ;
10580  return 0;
10581}
10582_ACEOF
10583if ac_fn_c_try_link "$LINENO"; then :
10584  ac_cv_lib_dl_dlopen=yes
10585else
10586  ac_cv_lib_dl_dlopen=no
10587fi
10588rm -f core conftest.err conftest.$ac_objext \
10589    conftest$ac_exeext conftest.$ac_ext
10590LIBS=$ac_check_lib_save_LIBS
10591fi
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10593$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10594if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10595  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10596else
10597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10598$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10599if ${ac_cv_lib_svld_dlopen+:} false; then :
10600  $as_echo_n "(cached) " >&6
10601else
10602  ac_check_lib_save_LIBS=$LIBS
10603LIBS="-lsvld  $LIBS"
10604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10605/* end confdefs.h.  */
10606
10607/* Override any GCC internal prototype to avoid an error.
10608   Use char because int might match the return type of a GCC
10609   builtin and then its argument prototype would still apply.  */
10610#ifdef __cplusplus
10611extern "C"
10612#endif
10613char dlopen ();
10614int
10615main ()
10616{
10617return dlopen ();
10618  ;
10619  return 0;
10620}
10621_ACEOF
10622if ac_fn_c_try_link "$LINENO"; then :
10623  ac_cv_lib_svld_dlopen=yes
10624else
10625  ac_cv_lib_svld_dlopen=no
10626fi
10627rm -f core conftest.err conftest.$ac_objext \
10628    conftest$ac_exeext conftest.$ac_ext
10629LIBS=$ac_check_lib_save_LIBS
10630fi
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10632$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10633if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10634  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10635else
10636  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10637$as_echo_n "checking for dld_link in -ldld... " >&6; }
10638if ${ac_cv_lib_dld_dld_link+:} false; then :
10639  $as_echo_n "(cached) " >&6
10640else
10641  ac_check_lib_save_LIBS=$LIBS
10642LIBS="-ldld  $LIBS"
10643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10644/* end confdefs.h.  */
10645
10646/* Override any GCC internal prototype to avoid an error.
10647   Use char because int might match the return type of a GCC
10648   builtin and then its argument prototype would still apply.  */
10649#ifdef __cplusplus
10650extern "C"
10651#endif
10652char dld_link ();
10653int
10654main ()
10655{
10656return dld_link ();
10657  ;
10658  return 0;
10659}
10660_ACEOF
10661if ac_fn_c_try_link "$LINENO"; then :
10662  ac_cv_lib_dld_dld_link=yes
10663else
10664  ac_cv_lib_dld_dld_link=no
10665fi
10666rm -f core conftest.err conftest.$ac_objext \
10667    conftest$ac_exeext conftest.$ac_ext
10668LIBS=$ac_check_lib_save_LIBS
10669fi
10670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10671$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10672if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10673  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10674fi
10675
10676
10677fi
10678
10679
10680fi
10681
10682
10683fi
10684
10685
10686fi
10687
10688
10689fi
10690
10691    ;;
10692  esac
10693
10694  if test "x$lt_cv_dlopen" != xno; then
10695    enable_dlopen=yes
10696  else
10697    enable_dlopen=no
10698  fi
10699
10700  case $lt_cv_dlopen in
10701  dlopen)
10702    save_CPPFLAGS="$CPPFLAGS"
10703    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10704
10705    save_LDFLAGS="$LDFLAGS"
10706    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10707
10708    save_LIBS="$LIBS"
10709    LIBS="$lt_cv_dlopen_libs $LIBS"
10710
10711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10712$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10713if ${lt_cv_dlopen_self+:} false; then :
10714  $as_echo_n "(cached) " >&6
10715else
10716  	  if test "$cross_compiling" = yes; then :
10717  lt_cv_dlopen_self=cross
10718else
10719  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10720  lt_status=$lt_dlunknown
10721  cat > conftest.$ac_ext <<_LT_EOF
10722#line $LINENO "configure"
10723#include "confdefs.h"
10724
10725#if HAVE_DLFCN_H
10726#include <dlfcn.h>
10727#endif
10728
10729#include <stdio.h>
10730
10731#ifdef RTLD_GLOBAL
10732#  define LT_DLGLOBAL		RTLD_GLOBAL
10733#else
10734#  ifdef DL_GLOBAL
10735#    define LT_DLGLOBAL		DL_GLOBAL
10736#  else
10737#    define LT_DLGLOBAL		0
10738#  endif
10739#endif
10740
10741/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10742   find out it does not work in some platform. */
10743#ifndef LT_DLLAZY_OR_NOW
10744#  ifdef RTLD_LAZY
10745#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10746#  else
10747#    ifdef DL_LAZY
10748#      define LT_DLLAZY_OR_NOW		DL_LAZY
10749#    else
10750#      ifdef RTLD_NOW
10751#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10752#      else
10753#        ifdef DL_NOW
10754#          define LT_DLLAZY_OR_NOW	DL_NOW
10755#        else
10756#          define LT_DLLAZY_OR_NOW	0
10757#        endif
10758#      endif
10759#    endif
10760#  endif
10761#endif
10762
10763/* When -fvisbility=hidden is used, assume the code has been annotated
10764   correspondingly for the symbols needed.  */
10765#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10766int fnord () __attribute__((visibility("default")));
10767#endif
10768
10769int fnord () { return 42; }
10770int main ()
10771{
10772  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10773  int status = $lt_dlunknown;
10774
10775  if (self)
10776    {
10777      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10778      else
10779        {
10780	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10781          else puts (dlerror ());
10782	}
10783      /* dlclose (self); */
10784    }
10785  else
10786    puts (dlerror ());
10787
10788  return status;
10789}
10790_LT_EOF
10791  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10792  (eval $ac_link) 2>&5
10793  ac_status=$?
10794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10795  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10796    (./conftest; exit; ) >&5 2>/dev/null
10797    lt_status=$?
10798    case x$lt_status in
10799      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10800      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10801      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10802    esac
10803  else :
10804    # compilation failed
10805    lt_cv_dlopen_self=no
10806  fi
10807fi
10808rm -fr conftest*
10809
10810
10811fi
10812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10813$as_echo "$lt_cv_dlopen_self" >&6; }
10814
10815    if test "x$lt_cv_dlopen_self" = xyes; then
10816      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10817      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10818$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10819if ${lt_cv_dlopen_self_static+:} false; then :
10820  $as_echo_n "(cached) " >&6
10821else
10822  	  if test "$cross_compiling" = yes; then :
10823  lt_cv_dlopen_self_static=cross
10824else
10825  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10826  lt_status=$lt_dlunknown
10827  cat > conftest.$ac_ext <<_LT_EOF
10828#line $LINENO "configure"
10829#include "confdefs.h"
10830
10831#if HAVE_DLFCN_H
10832#include <dlfcn.h>
10833#endif
10834
10835#include <stdio.h>
10836
10837#ifdef RTLD_GLOBAL
10838#  define LT_DLGLOBAL		RTLD_GLOBAL
10839#else
10840#  ifdef DL_GLOBAL
10841#    define LT_DLGLOBAL		DL_GLOBAL
10842#  else
10843#    define LT_DLGLOBAL		0
10844#  endif
10845#endif
10846
10847/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10848   find out it does not work in some platform. */
10849#ifndef LT_DLLAZY_OR_NOW
10850#  ifdef RTLD_LAZY
10851#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10852#  else
10853#    ifdef DL_LAZY
10854#      define LT_DLLAZY_OR_NOW		DL_LAZY
10855#    else
10856#      ifdef RTLD_NOW
10857#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10858#      else
10859#        ifdef DL_NOW
10860#          define LT_DLLAZY_OR_NOW	DL_NOW
10861#        else
10862#          define LT_DLLAZY_OR_NOW	0
10863#        endif
10864#      endif
10865#    endif
10866#  endif
10867#endif
10868
10869/* When -fvisbility=hidden is used, assume the code has been annotated
10870   correspondingly for the symbols needed.  */
10871#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10872int fnord () __attribute__((visibility("default")));
10873#endif
10874
10875int fnord () { return 42; }
10876int main ()
10877{
10878  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10879  int status = $lt_dlunknown;
10880
10881  if (self)
10882    {
10883      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10884      else
10885        {
10886	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10887          else puts (dlerror ());
10888	}
10889      /* dlclose (self); */
10890    }
10891  else
10892    puts (dlerror ());
10893
10894  return status;
10895}
10896_LT_EOF
10897  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10898  (eval $ac_link) 2>&5
10899  ac_status=$?
10900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10901  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10902    (./conftest; exit; ) >&5 2>/dev/null
10903    lt_status=$?
10904    case x$lt_status in
10905      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10906      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10907      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10908    esac
10909  else :
10910    # compilation failed
10911    lt_cv_dlopen_self_static=no
10912  fi
10913fi
10914rm -fr conftest*
10915
10916
10917fi
10918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10919$as_echo "$lt_cv_dlopen_self_static" >&6; }
10920    fi
10921
10922    CPPFLAGS="$save_CPPFLAGS"
10923    LDFLAGS="$save_LDFLAGS"
10924    LIBS="$save_LIBS"
10925    ;;
10926  esac
10927
10928  case $lt_cv_dlopen_self in
10929  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10930  *) enable_dlopen_self=unknown ;;
10931  esac
10932
10933  case $lt_cv_dlopen_self_static in
10934  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10935  *) enable_dlopen_self_static=unknown ;;
10936  esac
10937fi
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955striplib=
10956old_striplib=
10957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10958$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10959if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10960  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10961  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10963$as_echo "yes" >&6; }
10964else
10965# FIXME - insert some real tests, host_os isn't really good enough
10966  case $host_os in
10967  darwin*)
10968    if test -n "$STRIP" ; then
10969      striplib="$STRIP -x"
10970      old_striplib="$STRIP -S"
10971      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10972$as_echo "yes" >&6; }
10973    else
10974      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10975$as_echo "no" >&6; }
10976    fi
10977    ;;
10978  *)
10979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10980$as_echo "no" >&6; }
10981    ;;
10982  esac
10983fi
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996  # Report which library types will actually be built
10997  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10998$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11000$as_echo "$can_build_shared" >&6; }
11001
11002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11003$as_echo_n "checking whether to build shared libraries... " >&6; }
11004  test "$can_build_shared" = "no" && enable_shared=no
11005
11006  # On AIX, shared libraries and static libraries use the same namespace, and
11007  # are all built from PIC.
11008  case $host_os in
11009  aix3*)
11010    test "$enable_shared" = yes && enable_static=no
11011    if test -n "$RANLIB"; then
11012      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11013      postinstall_cmds='$RANLIB $lib'
11014    fi
11015    ;;
11016
11017  aix[4-9]*)
11018    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11019      test "$enable_shared" = yes && enable_static=no
11020    fi
11021    ;;
11022  esac
11023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11024$as_echo "$enable_shared" >&6; }
11025
11026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11027$as_echo_n "checking whether to build static libraries... " >&6; }
11028  # Make sure either enable_shared or enable_static is yes.
11029  test "$enable_shared" = yes || enable_static=yes
11030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11031$as_echo "$enable_static" >&6; }
11032
11033
11034
11035
11036fi
11037ac_ext=c
11038ac_cpp='$CPP $CPPFLAGS'
11039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11041ac_compiler_gnu=$ac_cv_c_compiler_gnu
11042
11043CC="$lt_save_CC"
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059        ac_config_commands="$ac_config_commands libtool"
11060
11061
11062
11063
11064# Only expand once:
11065
11066
11067
11068
11069
11070# Source file containing package/library versioning information.
11071
11072 . ${srcdir}/version.sh
11073
11074GRIB_API_MAIN_VERSION="${GRIB_API_MAJOR_VERSION}.${GRIB_API_MINOR_VERSION}.${GRIB_API_REVISION_VERSION}"
11075 echo $GRIB_API_MAIN_VERSION
11076
11077PACKAGE_VERSION="${GRIB_API_MAIN_VERSION}"
11078GRIB_API_VERSION_STR="${GRIB_API_MAIN_VERSION}"
11079GRIB_API_PATCH_VERSION="${GRIB_API_REVISION_VERSION}"
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}"
11091
11092# Ensure that make can run correctly
11093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11094$as_echo_n "checking whether build environment is sane... " >&6; }
11095# Reject unsafe characters in $srcdir or the absolute working directory
11096# name.  Accept space and tab only in the latter.
11097am_lf='
11098'
11099case `pwd` in
11100  *[\\\"\#\$\&\'\`$am_lf]*)
11101    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
11102esac
11103case $srcdir in
11104  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
11105    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
11106esac
11107
11108# Do 'set' in a subshell so we don't clobber the current shell's
11109# arguments.  Must try -L first in case configure is actually a
11110# symlink; some systems play weird games with the mod time of symlinks
11111# (eg FreeBSD returns the mod time of the symlink's containing
11112# directory).
11113if (
11114   am_has_slept=no
11115   for am_try in 1 2; do
11116     echo "timestamp, slept: $am_has_slept" > conftest.file
11117     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11118     if test "$*" = "X"; then
11119	# -L didn't work.
11120	set X `ls -t "$srcdir/configure" conftest.file`
11121     fi
11122     if test "$*" != "X $srcdir/configure conftest.file" \
11123	&& test "$*" != "X conftest.file $srcdir/configure"; then
11124
11125	# If neither matched, then we have a broken ls.  This can happen
11126	# if, for instance, CONFIG_SHELL is bash and it inherits a
11127	# broken ls alias from the environment.  This has actually
11128	# happened.  Such a system could not be considered "sane".
11129	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
11130  alias in your environment" "$LINENO" 5
11131     fi
11132     if test "$2" = conftest.file || test $am_try -eq 2; then
11133       break
11134     fi
11135     # Just in case.
11136     sleep 1
11137     am_has_slept=yes
11138   done
11139   test "$2" = conftest.file
11140   )
11141then
11142   # Ok.
11143   :
11144else
11145   as_fn_error $? "newly created file is older than distributed files!
11146Check your system clock" "$LINENO" 5
11147fi
11148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11149$as_echo "yes" >&6; }
11150# If we didn't sleep, we still need to ensure time stamps of config.status and
11151# generated files are strictly newer.
11152am_sleep_pid=
11153if grep 'slept: no' conftest.file >/dev/null 2>&1; then
11154  ( sleep 1 ) &
11155  am_sleep_pid=$!
11156fi
11157
11158rm -f conftest.file
11159
11160
11161
11162ac_config_headers="$ac_config_headers src/config.h"
11163
11164ac_config_files="$ac_config_files src/grib_api_version.h"
11165
11166ac_config_files="$ac_config_files rpms/grib_api.pc rpms/grib_api.spec rpms/grib_api_f90.pc"
11167
11168am__api_version='1.13'
11169
11170# Find a good install program.  We prefer a C program (faster),
11171# so one script is as good as another.  But avoid the broken or
11172# incompatible versions:
11173# SysV /etc/install, /usr/sbin/install
11174# SunOS /usr/etc/install
11175# IRIX /sbin/install
11176# AIX /bin/install
11177# AmigaOS /C/install, which installs bootblocks on floppy discs
11178# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11179# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11180# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11181# OS/2's system install, which has a completely different semantic
11182# ./install, which can be erroneously created by make from ./install.sh.
11183# Reject install programs that cannot install multiple files.
11184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11185$as_echo_n "checking for a BSD-compatible install... " >&6; }
11186if test -z "$INSTALL"; then
11187if ${ac_cv_path_install+:} false; then :
11188  $as_echo_n "(cached) " >&6
11189else
11190  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191for as_dir in $PATH
11192do
11193  IFS=$as_save_IFS
11194  test -z "$as_dir" && as_dir=.
11195    # Account for people who put trailing slashes in PATH elements.
11196case $as_dir/ in #((
11197  ./ | .// | /[cC]/* | \
11198  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11199  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11200  /usr/ucb/* ) ;;
11201  *)
11202    # OSF1 and SCO ODT 3.0 have their own names for install.
11203    # Don't use installbsd from OSF since it installs stuff as root
11204    # by default.
11205    for ac_prog in ginstall scoinst install; do
11206      for ac_exec_ext in '' $ac_executable_extensions; do
11207	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11208	  if test $ac_prog = install &&
11209	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11210	    # AIX install.  It has an incompatible calling convention.
11211	    :
11212	  elif test $ac_prog = install &&
11213	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11214	    # program-specific install script used by HP pwplus--don't use.
11215	    :
11216	  else
11217	    rm -rf conftest.one conftest.two conftest.dir
11218	    echo one > conftest.one
11219	    echo two > conftest.two
11220	    mkdir conftest.dir
11221	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11222	      test -s conftest.one && test -s conftest.two &&
11223	      test -s conftest.dir/conftest.one &&
11224	      test -s conftest.dir/conftest.two
11225	    then
11226	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11227	      break 3
11228	    fi
11229	  fi
11230	fi
11231      done
11232    done
11233    ;;
11234esac
11235
11236  done
11237IFS=$as_save_IFS
11238
11239rm -rf conftest.one conftest.two conftest.dir
11240
11241fi
11242  if test "${ac_cv_path_install+set}" = set; then
11243    INSTALL=$ac_cv_path_install
11244  else
11245    # As a last resort, use the slow shell script.  Don't cache a
11246    # value for INSTALL within a source directory, because that will
11247    # break other packages using the cache if that directory is
11248    # removed, or if the value is a relative name.
11249    INSTALL=$ac_install_sh
11250  fi
11251fi
11252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11253$as_echo "$INSTALL" >&6; }
11254
11255# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11256# It thinks the first close brace ends the variable substitution.
11257test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11258
11259test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11260
11261test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11262
11263test "$program_prefix" != NONE &&
11264  program_transform_name="s&^&$program_prefix&;$program_transform_name"
11265# Use a double $ so make ignores it.
11266test "$program_suffix" != NONE &&
11267  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11268# Double any \ or $.
11269# By default was `s,x,x', remove it if useless.
11270ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11271program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11272
11273# Expand $ac_aux_dir to an absolute path.
11274am_aux_dir=`cd "$ac_aux_dir" && pwd`
11275
11276if test x"${MISSING+set}" != xset; then
11277  case $am_aux_dir in
11278  *\ * | *\	*)
11279    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11280  *)
11281    MISSING="\${SHELL} $am_aux_dir/missing" ;;
11282  esac
11283fi
11284# Use eval to expand $SHELL
11285if eval "$MISSING --is-lightweight"; then
11286  am_missing_run="$MISSING "
11287else
11288  am_missing_run=
11289  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
11290$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
11291fi
11292
11293if test x"${install_sh}" != xset; then
11294  case $am_aux_dir in
11295  *\ * | *\	*)
11296    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11297  *)
11298    install_sh="\${SHELL} $am_aux_dir/install-sh"
11299  esac
11300fi
11301
11302# Installed binaries are usually stripped using 'strip' when the user
11303# run "make install-strip".  However 'strip' might not be the right
11304# tool to use in cross-compilation environments, therefore Automake
11305# will honor the 'STRIP' environment variable to overrule this program.
11306if test "$cross_compiling" != no; then
11307  if test -n "$ac_tool_prefix"; then
11308  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11309set dummy ${ac_tool_prefix}strip; ac_word=$2
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11311$as_echo_n "checking for $ac_word... " >&6; }
11312if ${ac_cv_prog_STRIP+:} false; then :
11313  $as_echo_n "(cached) " >&6
11314else
11315  if test -n "$STRIP"; then
11316  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11317else
11318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319for as_dir in $PATH
11320do
11321  IFS=$as_save_IFS
11322  test -z "$as_dir" && as_dir=.
11323    for ac_exec_ext in '' $ac_executable_extensions; do
11324  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11325    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11327    break 2
11328  fi
11329done
11330  done
11331IFS=$as_save_IFS
11332
11333fi
11334fi
11335STRIP=$ac_cv_prog_STRIP
11336if test -n "$STRIP"; then
11337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11338$as_echo "$STRIP" >&6; }
11339else
11340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11341$as_echo "no" >&6; }
11342fi
11343
11344
11345fi
11346if test -z "$ac_cv_prog_STRIP"; then
11347  ac_ct_STRIP=$STRIP
11348  # Extract the first word of "strip", so it can be a program name with args.
11349set dummy strip; ac_word=$2
11350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11351$as_echo_n "checking for $ac_word... " >&6; }
11352if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11353  $as_echo_n "(cached) " >&6
11354else
11355  if test -n "$ac_ct_STRIP"; then
11356  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11357else
11358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11359for as_dir in $PATH
11360do
11361  IFS=$as_save_IFS
11362  test -z "$as_dir" && as_dir=.
11363    for ac_exec_ext in '' $ac_executable_extensions; do
11364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11365    ac_cv_prog_ac_ct_STRIP="strip"
11366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11367    break 2
11368  fi
11369done
11370  done
11371IFS=$as_save_IFS
11372
11373fi
11374fi
11375ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11376if test -n "$ac_ct_STRIP"; then
11377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11378$as_echo "$ac_ct_STRIP" >&6; }
11379else
11380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381$as_echo "no" >&6; }
11382fi
11383
11384  if test "x$ac_ct_STRIP" = x; then
11385    STRIP=":"
11386  else
11387    case $cross_compiling:$ac_tool_warned in
11388yes:)
11389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11391ac_tool_warned=yes ;;
11392esac
11393    STRIP=$ac_ct_STRIP
11394  fi
11395else
11396  STRIP="$ac_cv_prog_STRIP"
11397fi
11398
11399fi
11400INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11401
11402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11403$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11404if test -z "$MKDIR_P"; then
11405  if ${ac_cv_path_mkdir+:} false; then :
11406  $as_echo_n "(cached) " >&6
11407else
11408  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11410do
11411  IFS=$as_save_IFS
11412  test -z "$as_dir" && as_dir=.
11413    for ac_prog in mkdir gmkdir; do
11414	 for ac_exec_ext in '' $ac_executable_extensions; do
11415	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
11416	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11417	     'mkdir (GNU coreutils) '* | \
11418	     'mkdir (coreutils) '* | \
11419	     'mkdir (fileutils) '4.1*)
11420	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11421	       break 3;;
11422	   esac
11423	 done
11424       done
11425  done
11426IFS=$as_save_IFS
11427
11428fi
11429
11430  test -d ./--version && rmdir ./--version
11431  if test "${ac_cv_path_mkdir+set}" = set; then
11432    MKDIR_P="$ac_cv_path_mkdir -p"
11433  else
11434    # As a last resort, use the slow shell script.  Don't cache a
11435    # value for MKDIR_P within a source directory, because that will
11436    # break other packages using the cache if that directory is
11437    # removed, or if the value is a relative name.
11438    MKDIR_P="$ac_install_sh -d"
11439  fi
11440fi
11441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11442$as_echo "$MKDIR_P" >&6; }
11443
11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11445$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11446set x ${MAKE-make}
11447ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11448if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
11449  $as_echo_n "(cached) " >&6
11450else
11451  cat >conftest.make <<\_ACEOF
11452SHELL = /bin/sh
11453all:
11454	@echo '@@@%%%=$(MAKE)=@@@%%%'
11455_ACEOF
11456# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11457case `${MAKE-make} -f conftest.make 2>/dev/null` in
11458  *@@@%%%=?*=@@@%%%*)
11459    eval ac_cv_prog_make_${ac_make}_set=yes;;
11460  *)
11461    eval ac_cv_prog_make_${ac_make}_set=no;;
11462esac
11463rm -f conftest.make
11464fi
11465if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11467$as_echo "yes" >&6; }
11468  SET_MAKE=
11469else
11470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11471$as_echo "no" >&6; }
11472  SET_MAKE="MAKE=${MAKE-make}"
11473fi
11474
11475rm -rf .tst 2>/dev/null
11476mkdir .tst 2>/dev/null
11477if test -d .tst; then
11478  am__leading_dot=.
11479else
11480  am__leading_dot=_
11481fi
11482rmdir .tst 2>/dev/null
11483
11484DEPDIR="${am__leading_dot}deps"
11485
11486ac_config_commands="$ac_config_commands depfiles"
11487
11488
11489am_make=${MAKE-make}
11490cat > confinc << 'END'
11491am__doit:
11492	@echo this is the am__doit target
11493.PHONY: am__doit
11494END
11495# If we don't find an include directive, just comment out the code.
11496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11497$as_echo_n "checking for style of include used by $am_make... " >&6; }
11498am__include="#"
11499am__quote=
11500_am_result=none
11501# First try GNU make style include.
11502echo "include confinc" > confmf
11503# Ignore all kinds of additional output from 'make'.
11504case `$am_make -s -f confmf 2> /dev/null` in #(
11505*the\ am__doit\ target*)
11506  am__include=include
11507  am__quote=
11508  _am_result=GNU
11509  ;;
11510esac
11511# Now try BSD make style include.
11512if test "$am__include" = "#"; then
11513   echo '.include "confinc"' > confmf
11514   case `$am_make -s -f confmf 2> /dev/null` in #(
11515   *the\ am__doit\ target*)
11516     am__include=.include
11517     am__quote="\""
11518     _am_result=BSD
11519     ;;
11520   esac
11521fi
11522
11523
11524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11525$as_echo "$_am_result" >&6; }
11526rm -f confinc confmf
11527
11528# Check whether --enable-dependency-tracking was given.
11529if test "${enable_dependency_tracking+set}" = set; then :
11530  enableval=$enable_dependency_tracking;
11531fi
11532
11533if test "x$enable_dependency_tracking" != xno; then
11534  am_depcomp="$ac_aux_dir/depcomp"
11535  AMDEPBACKSLASH='\'
11536  am__nodep='_no'
11537fi
11538 if test "x$enable_dependency_tracking" != xno; then
11539  AMDEP_TRUE=
11540  AMDEP_FALSE='#'
11541else
11542  AMDEP_TRUE='#'
11543  AMDEP_FALSE=
11544fi
11545
11546
11547# Check whether --enable-silent-rules was given.
11548if test "${enable_silent_rules+set}" = set; then :
11549  enableval=$enable_silent_rules;
11550fi
11551
11552case $enable_silent_rules in # (((
11553  yes) AM_DEFAULT_VERBOSITY=0;;
11554   no) AM_DEFAULT_VERBOSITY=1;;
11555    *) AM_DEFAULT_VERBOSITY=1;;
11556esac
11557am_make=${MAKE-make}
11558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11559$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
11560if ${am_cv_make_support_nested_variables+:} false; then :
11561  $as_echo_n "(cached) " >&6
11562else
11563  if $as_echo 'TRUE=$(BAR$(V))
11564BAR0=false
11565BAR1=true
11566V=1
11567am__doit:
11568	@$(TRUE)
11569.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11570  am_cv_make_support_nested_variables=yes
11571else
11572  am_cv_make_support_nested_variables=no
11573fi
11574fi
11575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11576$as_echo "$am_cv_make_support_nested_variables" >&6; }
11577if test $am_cv_make_support_nested_variables = yes; then
11578    AM_V='$(V)'
11579  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11580else
11581  AM_V=$AM_DEFAULT_VERBOSITY
11582  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11583fi
11584AM_BACKSLASH='\'
11585
11586if test "`cd $srcdir && pwd`" != "`pwd`"; then
11587  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11588  # is not polluted with repeated "-I."
11589  am__isrc=' -I$(srcdir)'
11590  # test to see if srcdir already configured
11591  if test -f $srcdir/config.status; then
11592    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11593  fi
11594fi
11595
11596# test whether we have cygpath
11597if test -z "$CYGPATH_W"; then
11598  if (cygpath --version) >/dev/null 2>/dev/null; then
11599    CYGPATH_W='cygpath -w'
11600  else
11601    CYGPATH_W=echo
11602  fi
11603fi
11604
11605
11606# Define the identity of the package.
11607
11608 PACKAGE=$PACKAGE_NAME
11609 VERSION=${PACKAGE_VERSION}
11610
11611
11612# Some tools Automake needs.
11613
11614ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11615
11616
11617AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11618
11619
11620AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11621
11622
11623AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11624
11625
11626MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11627
11628# For better backward compatibility.  To be removed once Automake 1.9.x
11629# dies out for good.  For more background, see:
11630# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
11631# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
11632mkdir_p='$(MKDIR_P)'
11633
11634# We need awk for the "check" target.  The system "awk" is bad on
11635# some platforms.
11636# Always define AMTAR for backward compatibility.  Yes, it's still used
11637# in the wild :-(  We should find a proper way to deprecate it ...
11638AMTAR='$${TAR-tar}'
11639
11640
11641# We'll loop over all known methods to create a tar archive until one works.
11642_am_tools='gnutar  pax cpio none'
11643
11644am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
11645
11646
11647
11648
11649
11650depcc="$CC"   am_compiler_list=
11651
11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11653$as_echo_n "checking dependency style of $depcc... " >&6; }
11654if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11655  $as_echo_n "(cached) " >&6
11656else
11657  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11658  # We make a subdir and do the tests there.  Otherwise we can end up
11659  # making bogus files that we don't know about and never remove.  For
11660  # instance it was reported that on HP-UX the gcc test will end up
11661  # making a dummy file named 'D' -- because '-MD' means "put the output
11662  # in D".
11663  rm -rf conftest.dir
11664  mkdir conftest.dir
11665  # Copy depcomp to subdir because otherwise we won't find it if we're
11666  # using a relative directory.
11667  cp "$am_depcomp" conftest.dir
11668  cd conftest.dir
11669  # We will build objects and dependencies in a subdirectory because
11670  # it helps to detect inapplicable dependency modes.  For instance
11671  # both Tru64's cc and ICC support -MD to output dependencies as a
11672  # side effect of compilation, but ICC will put the dependencies in
11673  # the current directory while Tru64 will put them in the object
11674  # directory.
11675  mkdir sub
11676
11677  am_cv_CC_dependencies_compiler_type=none
11678  if test "$am_compiler_list" = ""; then
11679     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11680  fi
11681  am__universal=false
11682  case " $depcc " in #(
11683     *\ -arch\ *\ -arch\ *) am__universal=true ;;
11684     esac
11685
11686  for depmode in $am_compiler_list; do
11687    # Setup a source with many dependencies, because some compilers
11688    # like to wrap large dependency lists on column 80 (with \), and
11689    # we should not choose a depcomp mode which is confused by this.
11690    #
11691    # We need to recreate these files for each test, as the compiler may
11692    # overwrite some of them when testing with obscure command lines.
11693    # This happens at least with the AIX C compiler.
11694    : > sub/conftest.c
11695    for i in 1 2 3 4 5 6; do
11696      echo '#include "conftst'$i'.h"' >> sub/conftest.c
11697      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11698      # Solaris 10 /bin/sh.
11699      echo '/* dummy */' > sub/conftst$i.h
11700    done
11701    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11702
11703    # We check with '-c' and '-o' for the sake of the "dashmstdout"
11704    # mode.  It turns out that the SunPro C++ compiler does not properly
11705    # handle '-M -o', and we need to detect this.  Also, some Intel
11706    # versions had trouble with output in subdirs.
11707    am__obj=sub/conftest.${OBJEXT-o}
11708    am__minus_obj="-o $am__obj"
11709    case $depmode in
11710    gcc)
11711      # This depmode causes a compiler race in universal mode.
11712      test "$am__universal" = false || continue
11713      ;;
11714    nosideeffect)
11715      # After this tag, mechanisms are not by side-effect, so they'll
11716      # only be used when explicitly requested.
11717      if test "x$enable_dependency_tracking" = xyes; then
11718	continue
11719      else
11720	break
11721      fi
11722      ;;
11723    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11724      # This compiler won't grok '-c -o', but also, the minuso test has
11725      # not run yet.  These depmodes are late enough in the game, and
11726      # so weak that their functioning should not be impacted.
11727      am__obj=conftest.${OBJEXT-o}
11728      am__minus_obj=
11729      ;;
11730    none) break ;;
11731    esac
11732    if depmode=$depmode \
11733       source=sub/conftest.c object=$am__obj \
11734       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11735       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11736         >/dev/null 2>conftest.err &&
11737       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11738       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11739       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11740       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11741      # icc doesn't choke on unknown options, it will just issue warnings
11742      # or remarks (even with -Werror).  So we grep stderr for any message
11743      # that says an option was ignored or not supported.
11744      # When given -MP, icc 7.0 and 7.1 complain thusly:
11745      #   icc: Command line warning: ignoring option '-M'; no argument required
11746      # The diagnosis changed in icc 8.0:
11747      #   icc: Command line remark: option '-MP' not supported
11748      if (grep 'ignoring option' conftest.err ||
11749          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11750        am_cv_CC_dependencies_compiler_type=$depmode
11751        break
11752      fi
11753    fi
11754  done
11755
11756  cd ..
11757  rm -rf conftest.dir
11758else
11759  am_cv_CC_dependencies_compiler_type=none
11760fi
11761
11762fi
11763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11764$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11765CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11766
11767 if
11768  test "x$enable_dependency_tracking" != xno \
11769  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11770  am__fastdepCC_TRUE=
11771  am__fastdepCC_FALSE='#'
11772else
11773  am__fastdepCC_TRUE='#'
11774  am__fastdepCC_FALSE=
11775fi
11776
11777
11778
11779
11780definition_files_path="${datadir}/grib_api/definitions"
11781samples_files_path="${datadir}/grib_api/samples"
11782ifs_samples_files_path="${datadir}/grib_api/ifs_samples"
11783default_perl_install="${prefix}/perl"
11784
11785
11786cat >>confdefs.h <<_ACEOF
11787#define GRIB_API_MAIN_VERSION $GRIB_API_MAIN_VERSION
11788_ACEOF
11789
11790
11791cat >>confdefs.h <<_ACEOF
11792#define GRIB_API_MAJOR_VERSION $GRIB_API_MAJOR_VERSION
11793_ACEOF
11794
11795
11796cat >>confdefs.h <<_ACEOF
11797#define GRIB_API_MINOR_VERSION $GRIB_API_MINOR_VERSION
11798_ACEOF
11799
11800
11801cat >>confdefs.h <<_ACEOF
11802#define GRIB_API_REVISION_VERSION $GRIB_API_REVISION_VERSION
11803_ACEOF
11804
11805
11806
11807cat >>confdefs.h <<_ACEOF
11808#define GRIB_ABI_CURRENT $GRIB_ABI_CURRENT
11809_ACEOF
11810
11811
11812cat >>confdefs.h <<_ACEOF
11813#define GRIB_ABI_REVISION $GRIB_ABI_REVISION
11814_ACEOF
11815
11816
11817cat >>confdefs.h <<_ACEOF
11818#define GRIB_ABI_AGE $GRIB_ABI_AGE
11819_ACEOF
11820
11821
11822
11823
11824
11825PERLDIR=perl
11826
11827
11828
11829ac_ext=c
11830ac_cpp='$CPP $CPPFLAGS'
11831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11833ac_compiler_gnu=$ac_cv_c_compiler_gnu
11834if test -n "$ac_tool_prefix"; then
11835  for ac_prog in xlc_r xlc gcc cc pgcc
11836  do
11837    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840$as_echo_n "checking for $ac_word... " >&6; }
11841if ${ac_cv_prog_CC+:} false; then :
11842  $as_echo_n "(cached) " >&6
11843else
11844  if test -n "$CC"; then
11845  ac_cv_prog_CC="$CC" # Let the user override the test.
11846else
11847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848for as_dir in $PATH
11849do
11850  IFS=$as_save_IFS
11851  test -z "$as_dir" && as_dir=.
11852    for ac_exec_ext in '' $ac_executable_extensions; do
11853  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11854    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11855    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11856    break 2
11857  fi
11858done
11859  done
11860IFS=$as_save_IFS
11861
11862fi
11863fi
11864CC=$ac_cv_prog_CC
11865if test -n "$CC"; then
11866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11867$as_echo "$CC" >&6; }
11868else
11869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870$as_echo "no" >&6; }
11871fi
11872
11873
11874    test -n "$CC" && break
11875  done
11876fi
11877if test -z "$CC"; then
11878  ac_ct_CC=$CC
11879  for ac_prog in xlc_r xlc gcc cc pgcc
11880do
11881  # Extract the first word of "$ac_prog", so it can be a program name with args.
11882set dummy $ac_prog; ac_word=$2
11883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11884$as_echo_n "checking for $ac_word... " >&6; }
11885if ${ac_cv_prog_ac_ct_CC+:} false; then :
11886  $as_echo_n "(cached) " >&6
11887else
11888  if test -n "$ac_ct_CC"; then
11889  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11890else
11891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894  IFS=$as_save_IFS
11895  test -z "$as_dir" && as_dir=.
11896    for ac_exec_ext in '' $ac_executable_extensions; do
11897  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11898    ac_cv_prog_ac_ct_CC="$ac_prog"
11899    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900    break 2
11901  fi
11902done
11903  done
11904IFS=$as_save_IFS
11905
11906fi
11907fi
11908ac_ct_CC=$ac_cv_prog_ac_ct_CC
11909if test -n "$ac_ct_CC"; then
11910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11911$as_echo "$ac_ct_CC" >&6; }
11912else
11913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11914$as_echo "no" >&6; }
11915fi
11916
11917
11918  test -n "$ac_ct_CC" && break
11919done
11920
11921  if test "x$ac_ct_CC" = x; then
11922    CC=""
11923  else
11924    case $cross_compiling:$ac_tool_warned in
11925yes:)
11926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11928ac_tool_warned=yes ;;
11929esac
11930    CC=$ac_ct_CC
11931  fi
11932fi
11933
11934
11935test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11937as_fn_error $? "no acceptable C compiler found in \$PATH
11938See \`config.log' for more details" "$LINENO" 5; }
11939
11940# Provide some information about the compiler.
11941$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11942set X $ac_compile
11943ac_compiler=$2
11944for ac_option in --version -v -V -qversion; do
11945  { { ac_try="$ac_compiler $ac_option >&5"
11946case "(($ac_try" in
11947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11948  *) ac_try_echo=$ac_try;;
11949esac
11950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11951$as_echo "$ac_try_echo"; } >&5
11952  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11953  ac_status=$?
11954  if test -s conftest.err; then
11955    sed '10a\
11956... rest of stderr output deleted ...
11957         10q' conftest.err >conftest.er1
11958    cat conftest.er1 >&5
11959  fi
11960  rm -f conftest.er1 conftest.err
11961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11962  test $ac_status = 0; }
11963done
11964
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11966$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11967if ${ac_cv_c_compiler_gnu+:} false; then :
11968  $as_echo_n "(cached) " >&6
11969else
11970  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11971/* end confdefs.h.  */
11972
11973int
11974main ()
11975{
11976#ifndef __GNUC__
11977       choke me
11978#endif
11979
11980  ;
11981  return 0;
11982}
11983_ACEOF
11984if ac_fn_c_try_compile "$LINENO"; then :
11985  ac_compiler_gnu=yes
11986else
11987  ac_compiler_gnu=no
11988fi
11989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11990ac_cv_c_compiler_gnu=$ac_compiler_gnu
11991
11992fi
11993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11994$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11995if test $ac_compiler_gnu = yes; then
11996  GCC=yes
11997else
11998  GCC=
11999fi
12000ac_test_CFLAGS=${CFLAGS+set}
12001ac_save_CFLAGS=$CFLAGS
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12003$as_echo_n "checking whether $CC accepts -g... " >&6; }
12004if ${ac_cv_prog_cc_g+:} false; then :
12005  $as_echo_n "(cached) " >&6
12006else
12007  ac_save_c_werror_flag=$ac_c_werror_flag
12008   ac_c_werror_flag=yes
12009   ac_cv_prog_cc_g=no
12010   CFLAGS="-g"
12011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12012/* end confdefs.h.  */
12013
12014int
12015main ()
12016{
12017
12018  ;
12019  return 0;
12020}
12021_ACEOF
12022if ac_fn_c_try_compile "$LINENO"; then :
12023  ac_cv_prog_cc_g=yes
12024else
12025  CFLAGS=""
12026      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027/* end confdefs.h.  */
12028
12029int
12030main ()
12031{
12032
12033  ;
12034  return 0;
12035}
12036_ACEOF
12037if ac_fn_c_try_compile "$LINENO"; then :
12038
12039else
12040  ac_c_werror_flag=$ac_save_c_werror_flag
12041	 CFLAGS="-g"
12042	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043/* end confdefs.h.  */
12044
12045int
12046main ()
12047{
12048
12049  ;
12050  return 0;
12051}
12052_ACEOF
12053if ac_fn_c_try_compile "$LINENO"; then :
12054  ac_cv_prog_cc_g=yes
12055fi
12056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057fi
12058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12059fi
12060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12061   ac_c_werror_flag=$ac_save_c_werror_flag
12062fi
12063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12064$as_echo "$ac_cv_prog_cc_g" >&6; }
12065if test "$ac_test_CFLAGS" = set; then
12066  CFLAGS=$ac_save_CFLAGS
12067elif test $ac_cv_prog_cc_g = yes; then
12068  if test "$GCC" = yes; then
12069    CFLAGS="-g -O2"
12070  else
12071    CFLAGS="-g"
12072  fi
12073else
12074  if test "$GCC" = yes; then
12075    CFLAGS="-O2"
12076  else
12077    CFLAGS=
12078  fi
12079fi
12080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12081$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12082if ${ac_cv_prog_cc_c89+:} false; then :
12083  $as_echo_n "(cached) " >&6
12084else
12085  ac_cv_prog_cc_c89=no
12086ac_save_CC=$CC
12087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088/* end confdefs.h.  */
12089#include <stdarg.h>
12090#include <stdio.h>
12091struct stat;
12092/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12093struct buf { int x; };
12094FILE * (*rcsopen) (struct buf *, struct stat *, int);
12095static char *e (p, i)
12096     char **p;
12097     int i;
12098{
12099  return p[i];
12100}
12101static char *f (char * (*g) (char **, int), char **p, ...)
12102{
12103  char *s;
12104  va_list v;
12105  va_start (v,p);
12106  s = g (p, va_arg (v,int));
12107  va_end (v);
12108  return s;
12109}
12110
12111/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12112   function prototypes and stuff, but not '\xHH' hex character constants.
12113   These don't provoke an error unfortunately, instead are silently treated
12114   as 'x'.  The following induces an error, until -std is added to get
12115   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12116   array size at least.  It's necessary to write '\x00'==0 to get something
12117   that's true only with -std.  */
12118int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12119
12120/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12121   inside strings and character constants.  */
12122#define FOO(x) 'x'
12123int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12124
12125int test (int i, double x);
12126struct s1 {int (*f) (int a);};
12127struct s2 {int (*f) (double a);};
12128int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12129int argc;
12130char **argv;
12131int
12132main ()
12133{
12134return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12135  ;
12136  return 0;
12137}
12138_ACEOF
12139for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12140	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12141do
12142  CC="$ac_save_CC $ac_arg"
12143  if ac_fn_c_try_compile "$LINENO"; then :
12144  ac_cv_prog_cc_c89=$ac_arg
12145fi
12146rm -f core conftest.err conftest.$ac_objext
12147  test "x$ac_cv_prog_cc_c89" != "xno" && break
12148done
12149rm -f conftest.$ac_ext
12150CC=$ac_save_CC
12151
12152fi
12153# AC_CACHE_VAL
12154case "x$ac_cv_prog_cc_c89" in
12155  x)
12156    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12157$as_echo "none needed" >&6; } ;;
12158  xno)
12159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12160$as_echo "unsupported" >&6; } ;;
12161  *)
12162    CC="$CC $ac_cv_prog_cc_c89"
12163    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12164$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12165esac
12166if test "x$ac_cv_prog_cc_c89" != xno; then :
12167
12168fi
12169
12170ac_ext=c
12171ac_cpp='$CPP $CPPFLAGS'
12172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12174ac_compiler_gnu=$ac_cv_c_compiler_gnu
12175
12176ac_ext=c
12177ac_cpp='$CPP $CPPFLAGS'
12178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12180ac_compiler_gnu=$ac_cv_c_compiler_gnu
12181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12182$as_echo_n "checking how to run the C preprocessor... " >&6; }
12183# On Suns, sometimes $CPP names a directory.
12184if test -n "$CPP" && test -d "$CPP"; then
12185  CPP=
12186fi
12187if test -z "$CPP"; then
12188  if ${ac_cv_prog_CPP+:} false; then :
12189  $as_echo_n "(cached) " >&6
12190else
12191      # Double quotes because CPP needs to be expanded
12192    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12193    do
12194      ac_preproc_ok=false
12195for ac_c_preproc_warn_flag in '' yes
12196do
12197  # Use a header file that comes with gcc, so configuring glibc
12198  # with a fresh cross-compiler works.
12199  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12200  # <limits.h> exists even on freestanding compilers.
12201  # On the NeXT, cc -E runs the code through the compiler's parser,
12202  # not just through cpp. "Syntax error" is here to catch this case.
12203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12204/* end confdefs.h.  */
12205#ifdef __STDC__
12206# include <limits.h>
12207#else
12208# include <assert.h>
12209#endif
12210		     Syntax error
12211_ACEOF
12212if ac_fn_c_try_cpp "$LINENO"; then :
12213
12214else
12215  # Broken: fails on valid input.
12216continue
12217fi
12218rm -f conftest.err conftest.i conftest.$ac_ext
12219
12220  # OK, works on sane cases.  Now check whether nonexistent headers
12221  # can be detected and how.
12222  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223/* end confdefs.h.  */
12224#include <ac_nonexistent.h>
12225_ACEOF
12226if ac_fn_c_try_cpp "$LINENO"; then :
12227  # Broken: success on invalid input.
12228continue
12229else
12230  # Passes both tests.
12231ac_preproc_ok=:
12232break
12233fi
12234rm -f conftest.err conftest.i conftest.$ac_ext
12235
12236done
12237# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12238rm -f conftest.i conftest.err conftest.$ac_ext
12239if $ac_preproc_ok; then :
12240  break
12241fi
12242
12243    done
12244    ac_cv_prog_CPP=$CPP
12245
12246fi
12247  CPP=$ac_cv_prog_CPP
12248else
12249  ac_cv_prog_CPP=$CPP
12250fi
12251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12252$as_echo "$CPP" >&6; }
12253ac_preproc_ok=false
12254for ac_c_preproc_warn_flag in '' yes
12255do
12256  # Use a header file that comes with gcc, so configuring glibc
12257  # with a fresh cross-compiler works.
12258  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12259  # <limits.h> exists even on freestanding compilers.
12260  # On the NeXT, cc -E runs the code through the compiler's parser,
12261  # not just through cpp. "Syntax error" is here to catch this case.
12262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263/* end confdefs.h.  */
12264#ifdef __STDC__
12265# include <limits.h>
12266#else
12267# include <assert.h>
12268#endif
12269		     Syntax error
12270_ACEOF
12271if ac_fn_c_try_cpp "$LINENO"; then :
12272
12273else
12274  # Broken: fails on valid input.
12275continue
12276fi
12277rm -f conftest.err conftest.i conftest.$ac_ext
12278
12279  # OK, works on sane cases.  Now check whether nonexistent headers
12280  # can be detected and how.
12281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h.  */
12283#include <ac_nonexistent.h>
12284_ACEOF
12285if ac_fn_c_try_cpp "$LINENO"; then :
12286  # Broken: success on invalid input.
12287continue
12288else
12289  # Passes both tests.
12290ac_preproc_ok=:
12291break
12292fi
12293rm -f conftest.err conftest.i conftest.$ac_ext
12294
12295done
12296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12297rm -f conftest.i conftest.err conftest.$ac_ext
12298if $ac_preproc_ok; then :
12299
12300else
12301  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12303as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12304See \`config.log' for more details" "$LINENO" 5; }
12305fi
12306
12307ac_ext=c
12308ac_cpp='$CPP $CPPFLAGS'
12309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311ac_compiler_gnu=$ac_cv_c_compiler_gnu
12312
12313
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12315$as_echo_n "checking whether ln -s works... " >&6; }
12316LN_S=$as_ln_s
12317if test "$LN_S" = "ln -s"; then
12318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12319$as_echo "yes" >&6; }
12320else
12321  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12322$as_echo "no, using $LN_S" >&6; }
12323fi
12324
12325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12326$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12327set x ${MAKE-make}
12328ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12329if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12330  $as_echo_n "(cached) " >&6
12331else
12332  cat >conftest.make <<\_ACEOF
12333SHELL = /bin/sh
12334all:
12335	@echo '@@@%%%=$(MAKE)=@@@%%%'
12336_ACEOF
12337# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12338case `${MAKE-make} -f conftest.make 2>/dev/null` in
12339  *@@@%%%=?*=@@@%%%*)
12340    eval ac_cv_prog_make_${ac_make}_set=yes;;
12341  *)
12342    eval ac_cv_prog_make_${ac_make}_set=no;;
12343esac
12344rm -f conftest.make
12345fi
12346if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348$as_echo "yes" >&6; }
12349  SET_MAKE=
12350else
12351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352$as_echo "no" >&6; }
12353  SET_MAKE="MAKE=${MAKE-make}"
12354fi
12355
12356for ac_prog in 'bison -y' byacc
12357do
12358  # Extract the first word of "$ac_prog", so it can be a program name with args.
12359set dummy $ac_prog; ac_word=$2
12360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12361$as_echo_n "checking for $ac_word... " >&6; }
12362if ${ac_cv_prog_YACC+:} false; then :
12363  $as_echo_n "(cached) " >&6
12364else
12365  if test -n "$YACC"; then
12366  ac_cv_prog_YACC="$YACC" # Let the user override the test.
12367else
12368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12369for as_dir in $PATH
12370do
12371  IFS=$as_save_IFS
12372  test -z "$as_dir" && as_dir=.
12373    for ac_exec_ext in '' $ac_executable_extensions; do
12374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12375    ac_cv_prog_YACC="$ac_prog"
12376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12377    break 2
12378  fi
12379done
12380  done
12381IFS=$as_save_IFS
12382
12383fi
12384fi
12385YACC=$ac_cv_prog_YACC
12386if test -n "$YACC"; then
12387  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12388$as_echo "$YACC" >&6; }
12389else
12390  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12391$as_echo "no" >&6; }
12392fi
12393
12394
12395  test -n "$YACC" && break
12396done
12397test -n "$YACC" || YACC="yacc"
12398
12399for ac_prog in flex lex
12400do
12401  # Extract the first word of "$ac_prog", so it can be a program name with args.
12402set dummy $ac_prog; ac_word=$2
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12404$as_echo_n "checking for $ac_word... " >&6; }
12405if ${ac_cv_prog_LEX+:} false; then :
12406  $as_echo_n "(cached) " >&6
12407else
12408  if test -n "$LEX"; then
12409  ac_cv_prog_LEX="$LEX" # Let the user override the test.
12410else
12411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12412for as_dir in $PATH
12413do
12414  IFS=$as_save_IFS
12415  test -z "$as_dir" && as_dir=.
12416    for ac_exec_ext in '' $ac_executable_extensions; do
12417  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12418    ac_cv_prog_LEX="$ac_prog"
12419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12420    break 2
12421  fi
12422done
12423  done
12424IFS=$as_save_IFS
12425
12426fi
12427fi
12428LEX=$ac_cv_prog_LEX
12429if test -n "$LEX"; then
12430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12431$as_echo "$LEX" >&6; }
12432else
12433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12434$as_echo "no" >&6; }
12435fi
12436
12437
12438  test -n "$LEX" && break
12439done
12440test -n "$LEX" || LEX=":"
12441
12442if test "x$LEX" != "x:"; then
12443  cat >conftest.l <<_ACEOF
12444%%
12445a { ECHO; }
12446b { REJECT; }
12447c { yymore (); }
12448d { yyless (1); }
12449e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12450    yyless ((input () != 0)); }
12451f { unput (yytext[0]); }
12452. { BEGIN INITIAL; }
12453%%
12454#ifdef YYTEXT_POINTER
12455extern char *yytext;
12456#endif
12457int
12458main (void)
12459{
12460  return ! yylex () + ! yywrap ();
12461}
12462_ACEOF
12463{ { ac_try="$LEX conftest.l"
12464case "(($ac_try" in
12465  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466  *) ac_try_echo=$ac_try;;
12467esac
12468eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12469$as_echo "$ac_try_echo"; } >&5
12470  (eval "$LEX conftest.l") 2>&5
12471  ac_status=$?
12472  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12473  test $ac_status = 0; }
12474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12475$as_echo_n "checking lex output file root... " >&6; }
12476if ${ac_cv_prog_lex_root+:} false; then :
12477  $as_echo_n "(cached) " >&6
12478else
12479
12480if test -f lex.yy.c; then
12481  ac_cv_prog_lex_root=lex.yy
12482elif test -f lexyy.c; then
12483  ac_cv_prog_lex_root=lexyy
12484else
12485  as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12486fi
12487fi
12488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12489$as_echo "$ac_cv_prog_lex_root" >&6; }
12490LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12491
12492if test -z "${LEXLIB+set}"; then
12493  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12494$as_echo_n "checking lex library... " >&6; }
12495if ${ac_cv_lib_lex+:} false; then :
12496  $as_echo_n "(cached) " >&6
12497else
12498
12499    ac_save_LIBS=$LIBS
12500    ac_cv_lib_lex='none needed'
12501    for ac_lib in '' -lfl -ll; do
12502      LIBS="$ac_lib $ac_save_LIBS"
12503      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12504/* end confdefs.h.  */
12505`cat $LEX_OUTPUT_ROOT.c`
12506_ACEOF
12507if ac_fn_c_try_link "$LINENO"; then :
12508  ac_cv_lib_lex=$ac_lib
12509fi
12510rm -f core conftest.err conftest.$ac_objext \
12511    conftest$ac_exeext conftest.$ac_ext
12512      test "$ac_cv_lib_lex" != 'none needed' && break
12513    done
12514    LIBS=$ac_save_LIBS
12515
12516fi
12517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12518$as_echo "$ac_cv_lib_lex" >&6; }
12519  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12520fi
12521
12522
12523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12524$as_echo_n "checking whether yytext is a pointer... " >&6; }
12525if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12526  $as_echo_n "(cached) " >&6
12527else
12528  # POSIX says lex can declare yytext either as a pointer or an array; the
12529# default is implementation-dependent.  Figure out which it is, since
12530# not all implementations provide the %pointer and %array declarations.
12531ac_cv_prog_lex_yytext_pointer=no
12532ac_save_LIBS=$LIBS
12533LIBS="$LEXLIB $ac_save_LIBS"
12534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12535/* end confdefs.h.  */
12536
12537  #define YYTEXT_POINTER 1
12538`cat $LEX_OUTPUT_ROOT.c`
12539_ACEOF
12540if ac_fn_c_try_link "$LINENO"; then :
12541  ac_cv_prog_lex_yytext_pointer=yes
12542fi
12543rm -f core conftest.err conftest.$ac_objext \
12544    conftest$ac_exeext conftest.$ac_ext
12545LIBS=$ac_save_LIBS
12546
12547fi
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12549$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12550if test $ac_cv_prog_lex_yytext_pointer = yes; then
12551
12552$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12553
12554fi
12555rm -f conftest.l $LEX_OUTPUT_ROOT.c
12556
12557fi
12558ac_ext=f
12559ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12560ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12561ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12562if test -n "$ac_tool_prefix"; then
12563  for ac_prog in pgf90 pgf77 xlf gfortran f77 g77 f90 ifort
12564  do
12565    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12566set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12568$as_echo_n "checking for $ac_word... " >&6; }
12569if ${ac_cv_prog_F77+:} false; then :
12570  $as_echo_n "(cached) " >&6
12571else
12572  if test -n "$F77"; then
12573  ac_cv_prog_F77="$F77" # Let the user override the test.
12574else
12575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12576for as_dir in $PATH
12577do
12578  IFS=$as_save_IFS
12579  test -z "$as_dir" && as_dir=.
12580    for ac_exec_ext in '' $ac_executable_extensions; do
12581  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12582    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12583    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12584    break 2
12585  fi
12586done
12587  done
12588IFS=$as_save_IFS
12589
12590fi
12591fi
12592F77=$ac_cv_prog_F77
12593if test -n "$F77"; then
12594  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
12595$as_echo "$F77" >&6; }
12596else
12597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12598$as_echo "no" >&6; }
12599fi
12600
12601
12602    test -n "$F77" && break
12603  done
12604fi
12605if test -z "$F77"; then
12606  ac_ct_F77=$F77
12607  for ac_prog in pgf90 pgf77 xlf gfortran f77 g77 f90 ifort
12608do
12609  # Extract the first word of "$ac_prog", so it can be a program name with args.
12610set dummy $ac_prog; ac_word=$2
12611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12612$as_echo_n "checking for $ac_word... " >&6; }
12613if ${ac_cv_prog_ac_ct_F77+:} false; then :
12614  $as_echo_n "(cached) " >&6
12615else
12616  if test -n "$ac_ct_F77"; then
12617  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12618else
12619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12620for as_dir in $PATH
12621do
12622  IFS=$as_save_IFS
12623  test -z "$as_dir" && as_dir=.
12624    for ac_exec_ext in '' $ac_executable_extensions; do
12625  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12626    ac_cv_prog_ac_ct_F77="$ac_prog"
12627    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12628    break 2
12629  fi
12630done
12631  done
12632IFS=$as_save_IFS
12633
12634fi
12635fi
12636ac_ct_F77=$ac_cv_prog_ac_ct_F77
12637if test -n "$ac_ct_F77"; then
12638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
12639$as_echo "$ac_ct_F77" >&6; }
12640else
12641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12642$as_echo "no" >&6; }
12643fi
12644
12645
12646  test -n "$ac_ct_F77" && break
12647done
12648
12649  if test "x$ac_ct_F77" = x; then
12650    F77=""
12651  else
12652    case $cross_compiling:$ac_tool_warned in
12653yes:)
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12655$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12656ac_tool_warned=yes ;;
12657esac
12658    F77=$ac_ct_F77
12659  fi
12660fi
12661
12662
12663# Provide some information about the compiler.
12664$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
12665set X $ac_compile
12666ac_compiler=$2
12667for ac_option in --version -v -V -qversion; do
12668  { { ac_try="$ac_compiler $ac_option >&5"
12669case "(($ac_try" in
12670  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671  *) ac_try_echo=$ac_try;;
12672esac
12673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12674$as_echo "$ac_try_echo"; } >&5
12675  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12676  ac_status=$?
12677  if test -s conftest.err; then
12678    sed '10a\
12679... rest of stderr output deleted ...
12680         10q' conftest.err >conftest.er1
12681    cat conftest.er1 >&5
12682  fi
12683  rm -f conftest.er1 conftest.err
12684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12685  test $ac_status = 0; }
12686done
12687rm -f a.out
12688
12689# If we don't use `.F' as extension, the preprocessor is not run on the
12690# input file.  (Note that this only needs to work for GNU compilers.)
12691ac_save_ext=$ac_ext
12692ac_ext=F
12693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
12694$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
12695if ${ac_cv_f77_compiler_gnu+:} false; then :
12696  $as_echo_n "(cached) " >&6
12697else
12698  cat > conftest.$ac_ext <<_ACEOF
12699      program main
12700#ifndef __GNUC__
12701       choke me
12702#endif
12703
12704      end
12705_ACEOF
12706if ac_fn_f77_try_compile "$LINENO"; then :
12707  ac_compiler_gnu=yes
12708else
12709  ac_compiler_gnu=no
12710fi
12711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12713
12714fi
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
12716$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
12717ac_ext=$ac_save_ext
12718ac_test_FFLAGS=${FFLAGS+set}
12719ac_save_FFLAGS=$FFLAGS
12720FFLAGS=
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
12722$as_echo_n "checking whether $F77 accepts -g... " >&6; }
12723if ${ac_cv_prog_f77_g+:} false; then :
12724  $as_echo_n "(cached) " >&6
12725else
12726  FFLAGS=-g
12727cat > conftest.$ac_ext <<_ACEOF
12728      program main
12729
12730      end
12731_ACEOF
12732if ac_fn_f77_try_compile "$LINENO"; then :
12733  ac_cv_prog_f77_g=yes
12734else
12735  ac_cv_prog_f77_g=no
12736fi
12737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12738
12739fi
12740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
12741$as_echo "$ac_cv_prog_f77_g" >&6; }
12742if test "$ac_test_FFLAGS" = set; then
12743  FFLAGS=$ac_save_FFLAGS
12744elif test $ac_cv_prog_f77_g = yes; then
12745  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12746    FFLAGS="-g -O2"
12747  else
12748    FFLAGS="-g"
12749  fi
12750else
12751  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12752    FFLAGS="-O2"
12753  else
12754    FFLAGS=
12755  fi
12756fi
12757
12758if test $ac_compiler_gnu = yes; then
12759  G77=yes
12760else
12761  G77=
12762fi
12763ac_ext=c
12764ac_cpp='$CPP $CPPFLAGS'
12765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12767ac_compiler_gnu=$ac_cv_c_compiler_gnu
12768
12769      ac_ext=f
12770ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12771ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12772ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12773
12774if test -z "$F77" || test "X$F77" = "Xno"; then
12775  _lt_disable_F77=yes
12776fi
12777
12778archive_cmds_need_lc_F77=no
12779allow_undefined_flag_F77=
12780always_export_symbols_F77=no
12781archive_expsym_cmds_F77=
12782export_dynamic_flag_spec_F77=
12783hardcode_direct_F77=no
12784hardcode_direct_absolute_F77=no
12785hardcode_libdir_flag_spec_F77=
12786hardcode_libdir_separator_F77=
12787hardcode_minus_L_F77=no
12788hardcode_automatic_F77=no
12789inherit_rpath_F77=no
12790module_cmds_F77=
12791module_expsym_cmds_F77=
12792link_all_deplibs_F77=unknown
12793old_archive_cmds_F77=$old_archive_cmds
12794reload_flag_F77=$reload_flag
12795reload_cmds_F77=$reload_cmds
12796no_undefined_flag_F77=
12797whole_archive_flag_spec_F77=
12798enable_shared_with_static_runtimes_F77=no
12799
12800# Source file extension for f77 test sources.
12801ac_ext=f
12802
12803# Object file extension for compiled f77 test sources.
12804objext=o
12805objext_F77=$objext
12806
12807# No sense in running all these tests if we already determined that
12808# the F77 compiler isn't working.  Some variables (like enable_shared)
12809# are currently assumed to apply to all compilers on this platform,
12810# and will be corrupted by setting them based on a non-working compiler.
12811if test "$_lt_disable_F77" != yes; then
12812  # Code to be used in simple compile tests
12813  lt_simple_compile_test_code="\
12814      subroutine t
12815      return
12816      end
12817"
12818
12819  # Code to be used in simple link tests
12820  lt_simple_link_test_code="\
12821      program t
12822      end
12823"
12824
12825  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12826
12827
12828
12829
12830
12831
12832# If no C compiler was specified, use CC.
12833LTCC=${LTCC-"$CC"}
12834
12835# If no C compiler flags were specified, use CFLAGS.
12836LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12837
12838# Allow CC to be a program name with arguments.
12839compiler=$CC
12840
12841
12842  # save warnings/boilerplate of simple test code
12843  ac_outfile=conftest.$ac_objext
12844echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12845eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12846_lt_compiler_boilerplate=`cat conftest.err`
12847$RM conftest*
12848
12849  ac_outfile=conftest.$ac_objext
12850echo "$lt_simple_link_test_code" >conftest.$ac_ext
12851eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12852_lt_linker_boilerplate=`cat conftest.err`
12853$RM -r conftest*
12854
12855
12856  # Allow CC to be a program name with arguments.
12857  lt_save_CC="$CC"
12858  lt_save_GCC=$GCC
12859  lt_save_CFLAGS=$CFLAGS
12860  CC=${F77-"f77"}
12861  CFLAGS=$FFLAGS
12862  compiler=$CC
12863  compiler_F77=$CC
12864  for cc_temp in $compiler""; do
12865  case $cc_temp in
12866    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12867    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12868    \-*) ;;
12869    *) break;;
12870  esac
12871done
12872cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12873
12874  GCC=$G77
12875  if test -n "$compiler"; then
12876    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12877$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12879$as_echo "$can_build_shared" >&6; }
12880
12881    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12882$as_echo_n "checking whether to build shared libraries... " >&6; }
12883    test "$can_build_shared" = "no" && enable_shared=no
12884
12885    # On AIX, shared libraries and static libraries use the same namespace, and
12886    # are all built from PIC.
12887    case $host_os in
12888      aix3*)
12889        test "$enable_shared" = yes && enable_static=no
12890        if test -n "$RANLIB"; then
12891          archive_cmds="$archive_cmds~\$RANLIB \$lib"
12892          postinstall_cmds='$RANLIB $lib'
12893        fi
12894        ;;
12895      aix[4-9]*)
12896	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12897	  test "$enable_shared" = yes && enable_static=no
12898	fi
12899        ;;
12900    esac
12901    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12902$as_echo "$enable_shared" >&6; }
12903
12904    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12905$as_echo_n "checking whether to build static libraries... " >&6; }
12906    # Make sure either enable_shared or enable_static is yes.
12907    test "$enable_shared" = yes || enable_static=yes
12908    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12909$as_echo "$enable_static" >&6; }
12910
12911    GCC_F77="$G77"
12912    LD_F77="$LD"
12913
12914    ## CAVEAT EMPTOR:
12915    ## There is no encapsulation within the following macros, do not change
12916    ## the running order or otherwise move them around unless you know exactly
12917    ## what you are doing...
12918    lt_prog_compiler_wl_F77=
12919lt_prog_compiler_pic_F77=
12920lt_prog_compiler_static_F77=
12921
12922
12923  if test "$GCC" = yes; then
12924    lt_prog_compiler_wl_F77='-Wl,'
12925    lt_prog_compiler_static_F77='-static'
12926
12927    case $host_os in
12928      aix*)
12929      # All AIX code is PIC.
12930      if test "$host_cpu" = ia64; then
12931	# AIX 5 now supports IA64 processor
12932	lt_prog_compiler_static_F77='-Bstatic'
12933      fi
12934      ;;
12935
12936    amigaos*)
12937      case $host_cpu in
12938      powerpc)
12939            # see comment about AmigaOS4 .so support
12940            lt_prog_compiler_pic_F77='-fPIC'
12941        ;;
12942      m68k)
12943            # FIXME: we need at least 68020 code to build shared libraries, but
12944            # adding the `-m68020' flag to GCC prevents building anything better,
12945            # like `-m68040'.
12946            lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12947        ;;
12948      esac
12949      ;;
12950
12951    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12952      # PIC is the default for these OSes.
12953      ;;
12954
12955    mingw* | cygwin* | pw32* | os2* | cegcc*)
12956      # This hack is so that the source file can tell whether it is being
12957      # built for inclusion in a dll (and should export symbols for example).
12958      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12959      # (--disable-auto-import) libraries
12960      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12961      ;;
12962
12963    darwin* | rhapsody*)
12964      # PIC is the default on this platform
12965      # Common symbols not allowed in MH_DYLIB files
12966      lt_prog_compiler_pic_F77='-fno-common'
12967      ;;
12968
12969    haiku*)
12970      # PIC is the default for Haiku.
12971      # The "-static" flag exists, but is broken.
12972      lt_prog_compiler_static_F77=
12973      ;;
12974
12975    hpux*)
12976      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12977      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12978      # sets the default TLS model and affects inlining.
12979      case $host_cpu in
12980      hppa*64*)
12981	# +Z the default
12982	;;
12983      *)
12984	lt_prog_compiler_pic_F77='-fPIC'
12985	;;
12986      esac
12987      ;;
12988
12989    interix[3-9]*)
12990      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12991      # Instead, we relocate shared libraries at runtime.
12992      ;;
12993
12994    msdosdjgpp*)
12995      # Just because we use GCC doesn't mean we suddenly get shared libraries
12996      # on systems that don't support them.
12997      lt_prog_compiler_can_build_shared_F77=no
12998      enable_shared=no
12999      ;;
13000
13001    *nto* | *qnx*)
13002      # QNX uses GNU C++, but need to define -shared option too, otherwise
13003      # it will coredump.
13004      lt_prog_compiler_pic_F77='-fPIC -shared'
13005      ;;
13006
13007    sysv4*MP*)
13008      if test -d /usr/nec; then
13009	lt_prog_compiler_pic_F77=-Kconform_pic
13010      fi
13011      ;;
13012
13013    *)
13014      lt_prog_compiler_pic_F77='-fPIC'
13015      ;;
13016    esac
13017
13018    case $cc_basename in
13019    nvcc*) # Cuda Compiler Driver 2.2
13020      lt_prog_compiler_wl_F77='-Xlinker '
13021      if test -n "$lt_prog_compiler_pic_F77"; then
13022        lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
13023      fi
13024      ;;
13025    esac
13026  else
13027    # PORTME Check for flag to pass linker flags through the system compiler.
13028    case $host_os in
13029    aix*)
13030      lt_prog_compiler_wl_F77='-Wl,'
13031      if test "$host_cpu" = ia64; then
13032	# AIX 5 now supports IA64 processor
13033	lt_prog_compiler_static_F77='-Bstatic'
13034      else
13035	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13036      fi
13037      ;;
13038
13039    mingw* | cygwin* | pw32* | os2* | cegcc*)
13040      # This hack is so that the source file can tell whether it is being
13041      # built for inclusion in a dll (and should export symbols for example).
13042      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13043      ;;
13044
13045    hpux9* | hpux10* | hpux11*)
13046      lt_prog_compiler_wl_F77='-Wl,'
13047      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13048      # not for PA HP-UX.
13049      case $host_cpu in
13050      hppa*64*|ia64*)
13051	# +Z the default
13052	;;
13053      *)
13054	lt_prog_compiler_pic_F77='+Z'
13055	;;
13056      esac
13057      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13058      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13059      ;;
13060
13061    irix5* | irix6* | nonstopux*)
13062      lt_prog_compiler_wl_F77='-Wl,'
13063      # PIC (with -KPIC) is the default.
13064      lt_prog_compiler_static_F77='-non_shared'
13065      ;;
13066
13067    linux* | k*bsd*-gnu | kopensolaris*-gnu)
13068      case $cc_basename in
13069      # old Intel for x86_64 which still supported -KPIC.
13070      ecc*)
13071	lt_prog_compiler_wl_F77='-Wl,'
13072	lt_prog_compiler_pic_F77='-KPIC'
13073	lt_prog_compiler_static_F77='-static'
13074        ;;
13075      # icc used to be incompatible with GCC.
13076      # ICC 10 doesn't accept -KPIC any more.
13077      icc* | ifort*)
13078	lt_prog_compiler_wl_F77='-Wl,'
13079	lt_prog_compiler_pic_F77='-fPIC'
13080	lt_prog_compiler_static_F77='-static'
13081        ;;
13082      # Lahey Fortran 8.1.
13083      lf95*)
13084	lt_prog_compiler_wl_F77='-Wl,'
13085	lt_prog_compiler_pic_F77='--shared'
13086	lt_prog_compiler_static_F77='--static'
13087	;;
13088      nagfor*)
13089	# NAG Fortran compiler
13090	lt_prog_compiler_wl_F77='-Wl,-Wl,,'
13091	lt_prog_compiler_pic_F77='-PIC'
13092	lt_prog_compiler_static_F77='-Bstatic'
13093	;;
13094      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13095        # Portland Group compilers (*not* the Pentium gcc compiler,
13096	# which looks to be a dead project)
13097	lt_prog_compiler_wl_F77='-Wl,'
13098	lt_prog_compiler_pic_F77='-fpic'
13099	lt_prog_compiler_static_F77='-Bstatic'
13100        ;;
13101      ccc*)
13102        lt_prog_compiler_wl_F77='-Wl,'
13103        # All Alpha code is PIC.
13104        lt_prog_compiler_static_F77='-non_shared'
13105        ;;
13106      xl* | bgxl* | bgf* | mpixl*)
13107	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13108	lt_prog_compiler_wl_F77='-Wl,'
13109	lt_prog_compiler_pic_F77='-qpic'
13110	lt_prog_compiler_static_F77='-qstaticlink'
13111	;;
13112      *)
13113	case `$CC -V 2>&1 | sed 5q` in
13114	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13115	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13116	  lt_prog_compiler_pic_F77='-KPIC'
13117	  lt_prog_compiler_static_F77='-Bstatic'
13118	  lt_prog_compiler_wl_F77=''
13119	  ;;
13120	*Sun\ F* | *Sun*Fortran*)
13121	  lt_prog_compiler_pic_F77='-KPIC'
13122	  lt_prog_compiler_static_F77='-Bstatic'
13123	  lt_prog_compiler_wl_F77='-Qoption ld '
13124	  ;;
13125	*Sun\ C*)
13126	  # Sun C 5.9
13127	  lt_prog_compiler_pic_F77='-KPIC'
13128	  lt_prog_compiler_static_F77='-Bstatic'
13129	  lt_prog_compiler_wl_F77='-Wl,'
13130	  ;;
13131        *Intel*\ [CF]*Compiler*)
13132	  lt_prog_compiler_wl_F77='-Wl,'
13133	  lt_prog_compiler_pic_F77='-fPIC'
13134	  lt_prog_compiler_static_F77='-static'
13135	  ;;
13136	*Portland\ Group*)
13137	  lt_prog_compiler_wl_F77='-Wl,'
13138	  lt_prog_compiler_pic_F77='-fpic'
13139	  lt_prog_compiler_static_F77='-Bstatic'
13140	  ;;
13141	esac
13142	;;
13143      esac
13144      ;;
13145
13146    newsos6)
13147      lt_prog_compiler_pic_F77='-KPIC'
13148      lt_prog_compiler_static_F77='-Bstatic'
13149      ;;
13150
13151    *nto* | *qnx*)
13152      # QNX uses GNU C++, but need to define -shared option too, otherwise
13153      # it will coredump.
13154      lt_prog_compiler_pic_F77='-fPIC -shared'
13155      ;;
13156
13157    osf3* | osf4* | osf5*)
13158      lt_prog_compiler_wl_F77='-Wl,'
13159      # All OSF/1 code is PIC.
13160      lt_prog_compiler_static_F77='-non_shared'
13161      ;;
13162
13163    rdos*)
13164      lt_prog_compiler_static_F77='-non_shared'
13165      ;;
13166
13167    solaris*)
13168      lt_prog_compiler_pic_F77='-KPIC'
13169      lt_prog_compiler_static_F77='-Bstatic'
13170      case $cc_basename in
13171      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13172	lt_prog_compiler_wl_F77='-Qoption ld ';;
13173      *)
13174	lt_prog_compiler_wl_F77='-Wl,';;
13175      esac
13176      ;;
13177
13178    sunos4*)
13179      lt_prog_compiler_wl_F77='-Qoption ld '
13180      lt_prog_compiler_pic_F77='-PIC'
13181      lt_prog_compiler_static_F77='-Bstatic'
13182      ;;
13183
13184    sysv4 | sysv4.2uw2* | sysv4.3*)
13185      lt_prog_compiler_wl_F77='-Wl,'
13186      lt_prog_compiler_pic_F77='-KPIC'
13187      lt_prog_compiler_static_F77='-Bstatic'
13188      ;;
13189
13190    sysv4*MP*)
13191      if test -d /usr/nec ;then
13192	lt_prog_compiler_pic_F77='-Kconform_pic'
13193	lt_prog_compiler_static_F77='-Bstatic'
13194      fi
13195      ;;
13196
13197    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13198      lt_prog_compiler_wl_F77='-Wl,'
13199      lt_prog_compiler_pic_F77='-KPIC'
13200      lt_prog_compiler_static_F77='-Bstatic'
13201      ;;
13202
13203    unicos*)
13204      lt_prog_compiler_wl_F77='-Wl,'
13205      lt_prog_compiler_can_build_shared_F77=no
13206      ;;
13207
13208    uts4*)
13209      lt_prog_compiler_pic_F77='-pic'
13210      lt_prog_compiler_static_F77='-Bstatic'
13211      ;;
13212
13213    *)
13214      lt_prog_compiler_can_build_shared_F77=no
13215      ;;
13216    esac
13217  fi
13218
13219case $host_os in
13220  # For platforms which do not support PIC, -DPIC is meaningless:
13221  *djgpp*)
13222    lt_prog_compiler_pic_F77=
13223    ;;
13224  *)
13225    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13226    ;;
13227esac
13228
13229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13230$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13231if ${lt_cv_prog_compiler_pic_F77+:} false; then :
13232  $as_echo_n "(cached) " >&6
13233else
13234  lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
13235fi
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
13237$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
13238lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
13239
13240#
13241# Check to make sure the PIC flag actually works.
13242#
13243if test -n "$lt_prog_compiler_pic_F77"; then
13244  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13245$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13246if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
13247  $as_echo_n "(cached) " >&6
13248else
13249  lt_cv_prog_compiler_pic_works_F77=no
13250   ac_outfile=conftest.$ac_objext
13251   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13252   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13253   # Insert the option either (1) after the last *FLAGS variable, or
13254   # (2) before a word containing "conftest.", or (3) at the end.
13255   # Note that $ac_compile itself does not contain backslashes and begins
13256   # with a dollar sign (not a hyphen), so the echo should work correctly.
13257   # The option is referenced via a variable to avoid confusing sed.
13258   lt_compile=`echo "$ac_compile" | $SED \
13259   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13260   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13261   -e 's:$: $lt_compiler_flag:'`
13262   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13263   (eval "$lt_compile" 2>conftest.err)
13264   ac_status=$?
13265   cat conftest.err >&5
13266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267   if (exit $ac_status) && test -s "$ac_outfile"; then
13268     # The compiler can only warn and ignore the option if not recognized
13269     # So say no if there are warnings other than the usual output.
13270     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13271     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13272     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13273       lt_cv_prog_compiler_pic_works_F77=yes
13274     fi
13275   fi
13276   $RM conftest*
13277
13278fi
13279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13280$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13281
13282if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13283    case $lt_prog_compiler_pic_F77 in
13284     "" | " "*) ;;
13285     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13286     esac
13287else
13288    lt_prog_compiler_pic_F77=
13289     lt_prog_compiler_can_build_shared_F77=no
13290fi
13291
13292fi
13293
13294
13295
13296
13297
13298#
13299# Check to make sure the static flag actually works.
13300#
13301wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13303$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13304if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
13305  $as_echo_n "(cached) " >&6
13306else
13307  lt_cv_prog_compiler_static_works_F77=no
13308   save_LDFLAGS="$LDFLAGS"
13309   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13310   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13311   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13312     # The linker can only warn and ignore the option if not recognized
13313     # So say no if there are warnings
13314     if test -s conftest.err; then
13315       # Append any errors to the config.log.
13316       cat conftest.err 1>&5
13317       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13318       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13319       if diff conftest.exp conftest.er2 >/dev/null; then
13320         lt_cv_prog_compiler_static_works_F77=yes
13321       fi
13322     else
13323       lt_cv_prog_compiler_static_works_F77=yes
13324     fi
13325   fi
13326   $RM -r conftest*
13327   LDFLAGS="$save_LDFLAGS"
13328
13329fi
13330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13331$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13332
13333if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13334    :
13335else
13336    lt_prog_compiler_static_F77=
13337fi
13338
13339
13340
13341
13342    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13343$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13344if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13345  $as_echo_n "(cached) " >&6
13346else
13347  lt_cv_prog_compiler_c_o_F77=no
13348   $RM -r conftest 2>/dev/null
13349   mkdir conftest
13350   cd conftest
13351   mkdir out
13352   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13353
13354   lt_compiler_flag="-o out/conftest2.$ac_objext"
13355   # Insert the option either (1) after the last *FLAGS variable, or
13356   # (2) before a word containing "conftest.", or (3) at the end.
13357   # Note that $ac_compile itself does not contain backslashes and begins
13358   # with a dollar sign (not a hyphen), so the echo should work correctly.
13359   lt_compile=`echo "$ac_compile" | $SED \
13360   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13361   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13362   -e 's:$: $lt_compiler_flag:'`
13363   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13364   (eval "$lt_compile" 2>out/conftest.err)
13365   ac_status=$?
13366   cat out/conftest.err >&5
13367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13369   then
13370     # The compiler can only warn and ignore the option if not recognized
13371     # So say no if there are warnings
13372     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13373     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13374     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13375       lt_cv_prog_compiler_c_o_F77=yes
13376     fi
13377   fi
13378   chmod u+w . 2>&5
13379   $RM conftest*
13380   # SGI C++ compiler will create directory out/ii_files/ for
13381   # template instantiation
13382   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13383   $RM out/* && rmdir out
13384   cd ..
13385   $RM -r conftest
13386   $RM conftest*
13387
13388fi
13389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13390$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13391
13392
13393
13394    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13395$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13396if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13397  $as_echo_n "(cached) " >&6
13398else
13399  lt_cv_prog_compiler_c_o_F77=no
13400   $RM -r conftest 2>/dev/null
13401   mkdir conftest
13402   cd conftest
13403   mkdir out
13404   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13405
13406   lt_compiler_flag="-o out/conftest2.$ac_objext"
13407   # Insert the option either (1) after the last *FLAGS variable, or
13408   # (2) before a word containing "conftest.", or (3) at the end.
13409   # Note that $ac_compile itself does not contain backslashes and begins
13410   # with a dollar sign (not a hyphen), so the echo should work correctly.
13411   lt_compile=`echo "$ac_compile" | $SED \
13412   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13413   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13414   -e 's:$: $lt_compiler_flag:'`
13415   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13416   (eval "$lt_compile" 2>out/conftest.err)
13417   ac_status=$?
13418   cat out/conftest.err >&5
13419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13421   then
13422     # The compiler can only warn and ignore the option if not recognized
13423     # So say no if there are warnings
13424     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13425     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13426     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13427       lt_cv_prog_compiler_c_o_F77=yes
13428     fi
13429   fi
13430   chmod u+w . 2>&5
13431   $RM conftest*
13432   # SGI C++ compiler will create directory out/ii_files/ for
13433   # template instantiation
13434   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13435   $RM out/* && rmdir out
13436   cd ..
13437   $RM -r conftest
13438   $RM conftest*
13439
13440fi
13441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13442$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13443
13444
13445
13446
13447hard_links="nottested"
13448if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13449  # do not overwrite the value of need_locks provided by the user
13450  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13451$as_echo_n "checking if we can lock with hard links... " >&6; }
13452  hard_links=yes
13453  $RM conftest*
13454  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13455  touch conftest.a
13456  ln conftest.a conftest.b 2>&5 || hard_links=no
13457  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13458  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13459$as_echo "$hard_links" >&6; }
13460  if test "$hard_links" = no; then
13461    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13462$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13463    need_locks=warn
13464  fi
13465else
13466  need_locks=no
13467fi
13468
13469
13470
13471    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13472$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13473
13474  runpath_var=
13475  allow_undefined_flag_F77=
13476  always_export_symbols_F77=no
13477  archive_cmds_F77=
13478  archive_expsym_cmds_F77=
13479  compiler_needs_object_F77=no
13480  enable_shared_with_static_runtimes_F77=no
13481  export_dynamic_flag_spec_F77=
13482  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13483  hardcode_automatic_F77=no
13484  hardcode_direct_F77=no
13485  hardcode_direct_absolute_F77=no
13486  hardcode_libdir_flag_spec_F77=
13487  hardcode_libdir_separator_F77=
13488  hardcode_minus_L_F77=no
13489  hardcode_shlibpath_var_F77=unsupported
13490  inherit_rpath_F77=no
13491  link_all_deplibs_F77=unknown
13492  module_cmds_F77=
13493  module_expsym_cmds_F77=
13494  old_archive_from_new_cmds_F77=
13495  old_archive_from_expsyms_cmds_F77=
13496  thread_safe_flag_spec_F77=
13497  whole_archive_flag_spec_F77=
13498  # include_expsyms should be a list of space-separated symbols to be *always*
13499  # included in the symbol list
13500  include_expsyms_F77=
13501  # exclude_expsyms can be an extended regexp of symbols to exclude
13502  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13503  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13504  # as well as any symbol that contains `d'.
13505  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13506  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13507  # platforms (ab)use it in PIC code, but their linkers get confused if
13508  # the symbol is explicitly referenced.  Since portable code cannot
13509  # rely on this symbol name, it's probably fine to never include it in
13510  # preloaded symbol tables.
13511  # Exclude shared library initialization/finalization symbols.
13512  extract_expsyms_cmds=
13513
13514  case $host_os in
13515  cygwin* | mingw* | pw32* | cegcc*)
13516    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13517    # When not using gcc, we currently assume that we are using
13518    # Microsoft Visual C++.
13519    if test "$GCC" != yes; then
13520      with_gnu_ld=no
13521    fi
13522    ;;
13523  interix*)
13524    # we just hope/assume this is gcc and not c89 (= MSVC++)
13525    with_gnu_ld=yes
13526    ;;
13527  openbsd*)
13528    with_gnu_ld=no
13529    ;;
13530  esac
13531
13532  ld_shlibs_F77=yes
13533
13534  # On some targets, GNU ld is compatible enough with the native linker
13535  # that we're better off using the native interface for both.
13536  lt_use_gnu_ld_interface=no
13537  if test "$with_gnu_ld" = yes; then
13538    case $host_os in
13539      aix*)
13540	# The AIX port of GNU ld has always aspired to compatibility
13541	# with the native linker.  However, as the warning in the GNU ld
13542	# block says, versions before 2.19.5* couldn't really create working
13543	# shared libraries, regardless of the interface used.
13544	case `$LD -v 2>&1` in
13545	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13546	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13547	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13548	  *)
13549	    lt_use_gnu_ld_interface=yes
13550	    ;;
13551	esac
13552	;;
13553      *)
13554	lt_use_gnu_ld_interface=yes
13555	;;
13556    esac
13557  fi
13558
13559  if test "$lt_use_gnu_ld_interface" = yes; then
13560    # If archive_cmds runs LD, not CC, wlarc should be empty
13561    wlarc='${wl}'
13562
13563    # Set some defaults for GNU ld with shared library support. These
13564    # are reset later if shared libraries are not supported. Putting them
13565    # here allows them to be overridden if necessary.
13566    runpath_var=LD_RUN_PATH
13567    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13568    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13569    # ancient GNU ld didn't support --whole-archive et. al.
13570    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13571      whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13572    else
13573      whole_archive_flag_spec_F77=
13574    fi
13575    supports_anon_versioning=no
13576    case `$LD -v 2>&1` in
13577      *GNU\ gold*) supports_anon_versioning=yes ;;
13578      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13579      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13580      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13581      *\ 2.11.*) ;; # other 2.11 versions
13582      *) supports_anon_versioning=yes ;;
13583    esac
13584
13585    # See if GNU ld supports shared libraries.
13586    case $host_os in
13587    aix[3-9]*)
13588      # On AIX/PPC, the GNU linker is very broken
13589      if test "$host_cpu" != ia64; then
13590	ld_shlibs_F77=no
13591	cat <<_LT_EOF 1>&2
13592
13593*** Warning: the GNU linker, at least up to release 2.19, is reported
13594*** to be unable to reliably create shared libraries on AIX.
13595*** Therefore, libtool is disabling shared libraries support.  If you
13596*** really care for shared libraries, you may want to install binutils
13597*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13598*** You will then need to restart the configuration process.
13599
13600_LT_EOF
13601      fi
13602      ;;
13603
13604    amigaos*)
13605      case $host_cpu in
13606      powerpc)
13607            # see comment about AmigaOS4 .so support
13608            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13609            archive_expsym_cmds_F77=''
13610        ;;
13611      m68k)
13612            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)'
13613            hardcode_libdir_flag_spec_F77='-L$libdir'
13614            hardcode_minus_L_F77=yes
13615        ;;
13616      esac
13617      ;;
13618
13619    beos*)
13620      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13621	allow_undefined_flag_F77=unsupported
13622	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13623	# support --undefined.  This deserves some investigation.  FIXME
13624	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13625      else
13626	ld_shlibs_F77=no
13627      fi
13628      ;;
13629
13630    cygwin* | mingw* | pw32* | cegcc*)
13631      # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13632      # as there is no search path for DLLs.
13633      hardcode_libdir_flag_spec_F77='-L$libdir'
13634      export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
13635      allow_undefined_flag_F77=unsupported
13636      always_export_symbols_F77=no
13637      enable_shared_with_static_runtimes_F77=yes
13638      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'
13639      exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13640
13641      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13642        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13643	# If the export-symbols file already is a .def file (1st line
13644	# is EXPORTS), use it as is; otherwise, prepend...
13645	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13646	  cp $export_symbols $output_objdir/$soname.def;
13647	else
13648	  echo EXPORTS > $output_objdir/$soname.def;
13649	  cat $export_symbols >> $output_objdir/$soname.def;
13650	fi~
13651	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13652      else
13653	ld_shlibs_F77=no
13654      fi
13655      ;;
13656
13657    haiku*)
13658      archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13659      link_all_deplibs_F77=yes
13660      ;;
13661
13662    interix[3-9]*)
13663      hardcode_direct_F77=no
13664      hardcode_shlibpath_var_F77=no
13665      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13666      export_dynamic_flag_spec_F77='${wl}-E'
13667      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13668      # Instead, shared libraries are loaded at an image base (0x10000000 by
13669      # default) and relocated if they conflict, which is a slow very memory
13670      # consuming and fragmenting process.  To avoid this, we pick a random,
13671      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13672      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13673      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'
13674      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'
13675      ;;
13676
13677    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13678      tmp_diet=no
13679      if test "$host_os" = linux-dietlibc; then
13680	case $cc_basename in
13681	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
13682	esac
13683      fi
13684      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13685	 && test "$tmp_diet" = no
13686      then
13687	tmp_addflag=' $pic_flag'
13688	tmp_sharedflag='-shared'
13689	case $cc_basename,$host_cpu in
13690        pgcc*)				# Portland Group C compiler
13691	  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'
13692	  tmp_addflag=' $pic_flag'
13693	  ;;
13694	pgf77* | pgf90* | pgf95* | pgfortran*)
13695					# Portland Group f77 and f90 compilers
13696	  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'
13697	  tmp_addflag=' $pic_flag -Mnomain' ;;
13698	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
13699	  tmp_addflag=' -i_dynamic' ;;
13700	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13701	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13702	ifc* | ifort*)			# Intel Fortran compiler
13703	  tmp_addflag=' -nofor_main' ;;
13704	lf95*)				# Lahey Fortran 8.1
13705	  whole_archive_flag_spec_F77=
13706	  tmp_sharedflag='--shared' ;;
13707	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13708	  tmp_sharedflag='-qmkshrobj'
13709	  tmp_addflag= ;;
13710	nvcc*)	# Cuda Compiler Driver 2.2
13711	  whole_archive_flag_spec_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'
13712	  compiler_needs_object_F77=yes
13713	  ;;
13714	esac
13715	case `$CC -V 2>&1 | sed 5q` in
13716	*Sun\ C*)			# Sun C 5.9
13717	  whole_archive_flag_spec_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'
13718	  compiler_needs_object_F77=yes
13719	  tmp_sharedflag='-G' ;;
13720	*Sun\ F*)			# Sun Fortran 8.3
13721	  tmp_sharedflag='-G' ;;
13722	esac
13723	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13724
13725        if test "x$supports_anon_versioning" = xyes; then
13726          archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
13727	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13728	    echo "local: *; };" >> $output_objdir/$libname.ver~
13729	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13730        fi
13731
13732	case $cc_basename in
13733	xlf* | bgf* | bgxlf* | mpixlf*)
13734	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13735	  whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
13736	  hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13737	  archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13738	  if test "x$supports_anon_versioning" = xyes; then
13739	    archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
13740	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13741	      echo "local: *; };" >> $output_objdir/$libname.ver~
13742	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13743	  fi
13744	  ;;
13745	esac
13746      else
13747        ld_shlibs_F77=no
13748      fi
13749      ;;
13750
13751    netbsd*)
13752      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13753	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13754	wlarc=
13755      else
13756	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13757	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'
13758      fi
13759      ;;
13760
13761    solaris*)
13762      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13763	ld_shlibs_F77=no
13764	cat <<_LT_EOF 1>&2
13765
13766*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13767*** create shared libraries on Solaris systems.  Therefore, libtool
13768*** is disabling shared libraries support.  We urge you to upgrade GNU
13769*** binutils to release 2.9.1 or newer.  Another option is to modify
13770*** your PATH or compiler configuration so that the native linker is
13771*** used, and then restart.
13772
13773_LT_EOF
13774      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13775	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13776	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'
13777      else
13778	ld_shlibs_F77=no
13779      fi
13780      ;;
13781
13782    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13783      case `$LD -v 2>&1` in
13784        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13785	ld_shlibs_F77=no
13786	cat <<_LT_EOF 1>&2
13787
13788*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13789*** reliably create shared libraries on SCO systems.  Therefore, libtool
13790*** is disabling shared libraries support.  We urge you to upgrade GNU
13791*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13792*** your PATH or compiler configuration so that the native linker is
13793*** used, and then restart.
13794
13795_LT_EOF
13796	;;
13797	*)
13798	  # For security reasons, it is highly recommended that you always
13799	  # use absolute paths for naming shared libraries, and exclude the
13800	  # DT_RUNPATH tag from executables and libraries.  But doing so
13801	  # requires that you compile everything twice, which is a pain.
13802	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13803	    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13804	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13805	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13806	  else
13807	    ld_shlibs_F77=no
13808	  fi
13809	;;
13810      esac
13811      ;;
13812
13813    sunos4*)
13814      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13815      wlarc=
13816      hardcode_direct_F77=yes
13817      hardcode_shlibpath_var_F77=no
13818      ;;
13819
13820    *)
13821      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13822	archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13823	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'
13824      else
13825	ld_shlibs_F77=no
13826      fi
13827      ;;
13828    esac
13829
13830    if test "$ld_shlibs_F77" = no; then
13831      runpath_var=
13832      hardcode_libdir_flag_spec_F77=
13833      export_dynamic_flag_spec_F77=
13834      whole_archive_flag_spec_F77=
13835    fi
13836  else
13837    # PORTME fill in a description of your system's linker (not GNU ld)
13838    case $host_os in
13839    aix3*)
13840      allow_undefined_flag_F77=unsupported
13841      always_export_symbols_F77=yes
13842      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'
13843      # Note: this linker hardcodes the directories in LIBPATH if there
13844      # are no directories specified by -L.
13845      hardcode_minus_L_F77=yes
13846      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13847	# Neither direct hardcoding nor static linking is supported with a
13848	# broken collect2.
13849	hardcode_direct_F77=unsupported
13850      fi
13851      ;;
13852
13853    aix[4-9]*)
13854      if test "$host_cpu" = ia64; then
13855	# On IA64, the linker does run time linking by default, so we don't
13856	# have to do anything special.
13857	aix_use_runtimelinking=no
13858	exp_sym_flag='-Bexport'
13859	no_entry_flag=""
13860      else
13861	# If we're using GNU nm, then we don't want the "-C" option.
13862	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13863	# Also, AIX nm treats weak defined symbols like other global
13864	# defined symbols, whereas GNU nm marks them as "W".
13865	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13866	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13867	else
13868	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13869	fi
13870	aix_use_runtimelinking=no
13871
13872	# Test if we are trying to use run time linking or normal
13873	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13874	# need to do runtime linking.
13875	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13876	  for ld_flag in $LDFLAGS; do
13877	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13878	    aix_use_runtimelinking=yes
13879	    break
13880	  fi
13881	  done
13882	  ;;
13883	esac
13884
13885	exp_sym_flag='-bexport'
13886	no_entry_flag='-bnoentry'
13887      fi
13888
13889      # When large executables or shared objects are built, AIX ld can
13890      # have problems creating the table of contents.  If linking a library
13891      # or program results in "error TOC overflow" add -mminimal-toc to
13892      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13893      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13894
13895      archive_cmds_F77=''
13896      hardcode_direct_F77=yes
13897      hardcode_direct_absolute_F77=yes
13898      hardcode_libdir_separator_F77=':'
13899      link_all_deplibs_F77=yes
13900      file_list_spec_F77='${wl}-f,'
13901
13902      if test "$GCC" = yes; then
13903	case $host_os in aix4.[012]|aix4.[012].*)
13904	# We only want to do this on AIX 4.2 and lower, the check
13905	# below for broken collect2 doesn't work under 4.3+
13906	  collect2name=`${CC} -print-prog-name=collect2`
13907	  if test -f "$collect2name" &&
13908	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13909	  then
13910	  # We have reworked collect2
13911	  :
13912	  else
13913	  # We have old collect2
13914	  hardcode_direct_F77=unsupported
13915	  # It fails to find uninstalled libraries when the uninstalled
13916	  # path is not listed in the libpath.  Setting hardcode_minus_L
13917	  # to unsupported forces relinking
13918	  hardcode_minus_L_F77=yes
13919	  hardcode_libdir_flag_spec_F77='-L$libdir'
13920	  hardcode_libdir_separator_F77=
13921	  fi
13922	  ;;
13923	esac
13924	shared_flag='-shared'
13925	if test "$aix_use_runtimelinking" = yes; then
13926	  shared_flag="$shared_flag "'${wl}-G'
13927	fi
13928      else
13929	# not using gcc
13930	if test "$host_cpu" = ia64; then
13931	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13932	# chokes on -Wl,-G. The following line is correct:
13933	  shared_flag='-G'
13934	else
13935	  if test "$aix_use_runtimelinking" = yes; then
13936	    shared_flag='${wl}-G'
13937	  else
13938	    shared_flag='${wl}-bM:SRE'
13939	  fi
13940	fi
13941      fi
13942
13943      export_dynamic_flag_spec_F77='${wl}-bexpall'
13944      # It seems that -bexpall does not export symbols beginning with
13945      # underscore (_), so it is better to generate a list of symbols to export.
13946      always_export_symbols_F77=yes
13947      if test "$aix_use_runtimelinking" = yes; then
13948	# Warning - without using the other runtime loading flags (-brtl),
13949	# -berok will link without error, but may produce a broken library.
13950	allow_undefined_flag_F77='-berok'
13951        # Determine the default libpath from the value encoded in an
13952        # empty executable.
13953        if test "${lt_cv_aix_libpath+set}" = set; then
13954  aix_libpath=$lt_cv_aix_libpath
13955else
13956  if ${lt_cv_aix_libpath__F77+:} false; then :
13957  $as_echo_n "(cached) " >&6
13958else
13959  cat > conftest.$ac_ext <<_ACEOF
13960      program main
13961
13962      end
13963_ACEOF
13964if ac_fn_f77_try_link "$LINENO"; then :
13965
13966  lt_aix_libpath_sed='
13967      /Import File Strings/,/^$/ {
13968	  /^0/ {
13969	      s/^0  *\([^ ]*\) *$/\1/
13970	      p
13971	  }
13972      }'
13973  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13974  # Check for a 64-bit object if we didn't find anything.
13975  if test -z "$lt_cv_aix_libpath__F77"; then
13976    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13977  fi
13978fi
13979rm -f core conftest.err conftest.$ac_objext \
13980    conftest$ac_exeext conftest.$ac_ext
13981  if test -z "$lt_cv_aix_libpath__F77"; then
13982    lt_cv_aix_libpath__F77="/usr/lib:/lib"
13983  fi
13984
13985fi
13986
13987  aix_libpath=$lt_cv_aix_libpath__F77
13988fi
13989
13990        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13991        archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13992      else
13993	if test "$host_cpu" = ia64; then
13994	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13995	  allow_undefined_flag_F77="-z nodefs"
13996	  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"
13997	else
13998	 # Determine the default libpath from the value encoded in an
13999	 # empty executable.
14000	 if test "${lt_cv_aix_libpath+set}" = set; then
14001  aix_libpath=$lt_cv_aix_libpath
14002else
14003  if ${lt_cv_aix_libpath__F77+:} false; then :
14004  $as_echo_n "(cached) " >&6
14005else
14006  cat > conftest.$ac_ext <<_ACEOF
14007      program main
14008
14009      end
14010_ACEOF
14011if ac_fn_f77_try_link "$LINENO"; then :
14012
14013  lt_aix_libpath_sed='
14014      /Import File Strings/,/^$/ {
14015	  /^0/ {
14016	      s/^0  *\([^ ]*\) *$/\1/
14017	      p
14018	  }
14019      }'
14020  lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14021  # Check for a 64-bit object if we didn't find anything.
14022  if test -z "$lt_cv_aix_libpath__F77"; then
14023    lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14024  fi
14025fi
14026rm -f core conftest.err conftest.$ac_objext \
14027    conftest$ac_exeext conftest.$ac_ext
14028  if test -z "$lt_cv_aix_libpath__F77"; then
14029    lt_cv_aix_libpath__F77="/usr/lib:/lib"
14030  fi
14031
14032fi
14033
14034  aix_libpath=$lt_cv_aix_libpath__F77
14035fi
14036
14037	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14038	  # Warning - without using the other run time loading flags,
14039	  # -berok will link without error, but may produce a broken library.
14040	  no_undefined_flag_F77=' ${wl}-bernotok'
14041	  allow_undefined_flag_F77=' ${wl}-berok'
14042	  if test "$with_gnu_ld" = yes; then
14043	    # We only use this code for GNU lds that support --whole-archive.
14044	    whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14045	  else
14046	    # Exported symbols can be pulled into shared objects from archives
14047	    whole_archive_flag_spec_F77='$convenience'
14048	  fi
14049	  archive_cmds_need_lc_F77=yes
14050	  # This is similar to how AIX traditionally builds its shared libraries.
14051	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14052	fi
14053      fi
14054      ;;
14055
14056    amigaos*)
14057      case $host_cpu in
14058      powerpc)
14059            # see comment about AmigaOS4 .so support
14060            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14061            archive_expsym_cmds_F77=''
14062        ;;
14063      m68k)
14064            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)'
14065            hardcode_libdir_flag_spec_F77='-L$libdir'
14066            hardcode_minus_L_F77=yes
14067        ;;
14068      esac
14069      ;;
14070
14071    bsdi[45]*)
14072      export_dynamic_flag_spec_F77=-rdynamic
14073      ;;
14074
14075    cygwin* | mingw* | pw32* | cegcc*)
14076      # When not using gcc, we currently assume that we are using
14077      # Microsoft Visual C++.
14078      # hardcode_libdir_flag_spec is actually meaningless, as there is
14079      # no search path for DLLs.
14080      case $cc_basename in
14081      cl*)
14082	# Native MSVC
14083	hardcode_libdir_flag_spec_F77=' '
14084	allow_undefined_flag_F77=unsupported
14085	always_export_symbols_F77=yes
14086	file_list_spec_F77='@'
14087	# Tell ltmain to make .lib files, not .a files.
14088	libext=lib
14089	# Tell ltmain to make .dll files, not .so files.
14090	shrext_cmds=".dll"
14091	# FIXME: Setting linknames here is a bad hack.
14092	archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14093	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14094	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14095	  else
14096	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14097	  fi~
14098	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14099	  linknames='
14100	# The linker will not automatically build a static lib if we build a DLL.
14101	# _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
14102	enable_shared_with_static_runtimes_F77=yes
14103	exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14104	export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14105	# Don't use ranlib
14106	old_postinstall_cmds_F77='chmod 644 $oldlib'
14107	postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
14108	  lt_tool_outputfile="@TOOL_OUTPUT@"~
14109	  case $lt_outputfile in
14110	    *.exe|*.EXE) ;;
14111	    *)
14112	      lt_outputfile="$lt_outputfile.exe"
14113	      lt_tool_outputfile="$lt_tool_outputfile.exe"
14114	      ;;
14115	  esac~
14116	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14117	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14118	    $RM "$lt_outputfile.manifest";
14119	  fi'
14120	;;
14121      *)
14122	# Assume MSVC wrapper
14123	hardcode_libdir_flag_spec_F77=' '
14124	allow_undefined_flag_F77=unsupported
14125	# Tell ltmain to make .lib files, not .a files.
14126	libext=lib
14127	# Tell ltmain to make .dll files, not .so files.
14128	shrext_cmds=".dll"
14129	# FIXME: Setting linknames here is a bad hack.
14130	archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14131	# The linker will automatically build a .lib file if we build a DLL.
14132	old_archive_from_new_cmds_F77='true'
14133	# FIXME: Should let the user specify the lib program.
14134	old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14135	enable_shared_with_static_runtimes_F77=yes
14136	;;
14137      esac
14138      ;;
14139
14140    darwin* | rhapsody*)
14141
14142
14143  archive_cmds_need_lc_F77=no
14144  hardcode_direct_F77=no
14145  hardcode_automatic_F77=yes
14146  hardcode_shlibpath_var_F77=unsupported
14147  if test "$lt_cv_ld_force_load" = "yes"; then
14148    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\"`'
14149    compiler_needs_object_F77=yes
14150  else
14151    whole_archive_flag_spec_F77=''
14152  fi
14153  link_all_deplibs_F77=yes
14154  allow_undefined_flag_F77="$_lt_dar_allow_undefined"
14155  case $cc_basename in
14156     ifort*) _lt_dar_can_shared=yes ;;
14157     *) _lt_dar_can_shared=$GCC ;;
14158  esac
14159  if test "$_lt_dar_can_shared" = "yes"; then
14160    output_verbose_link_cmd=func_echo_all
14161    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}"
14162    module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14163    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}"
14164    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}"
14165
14166  else
14167  ld_shlibs_F77=no
14168  fi
14169
14170      ;;
14171
14172    dgux*)
14173      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14174      hardcode_libdir_flag_spec_F77='-L$libdir'
14175      hardcode_shlibpath_var_F77=no
14176      ;;
14177
14178    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14179    # support.  Future versions do this automatically, but an explicit c++rt0.o
14180    # does not break anything, and helps significantly (at the cost of a little
14181    # extra space).
14182    freebsd2.2*)
14183      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14184      hardcode_libdir_flag_spec_F77='-R$libdir'
14185      hardcode_direct_F77=yes
14186      hardcode_shlibpath_var_F77=no
14187      ;;
14188
14189    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14190    freebsd2.*)
14191      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14192      hardcode_direct_F77=yes
14193      hardcode_minus_L_F77=yes
14194      hardcode_shlibpath_var_F77=no
14195      ;;
14196
14197    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14198    freebsd* | dragonfly*)
14199      archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14200      hardcode_libdir_flag_spec_F77='-R$libdir'
14201      hardcode_direct_F77=yes
14202      hardcode_shlibpath_var_F77=no
14203      ;;
14204
14205    hpux9*)
14206      if test "$GCC" = yes; then
14207	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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14208      else
14209	archive_cmds_F77='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14210      fi
14211      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14212      hardcode_libdir_separator_F77=:
14213      hardcode_direct_F77=yes
14214
14215      # hardcode_minus_L: Not really in the search PATH,
14216      # but as the default location of the library.
14217      hardcode_minus_L_F77=yes
14218      export_dynamic_flag_spec_F77='${wl}-E'
14219      ;;
14220
14221    hpux10*)
14222      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14223	archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14224      else
14225	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14226      fi
14227      if test "$with_gnu_ld" = no; then
14228	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14229	hardcode_libdir_separator_F77=:
14230	hardcode_direct_F77=yes
14231	hardcode_direct_absolute_F77=yes
14232	export_dynamic_flag_spec_F77='${wl}-E'
14233	# hardcode_minus_L: Not really in the search PATH,
14234	# but as the default location of the library.
14235	hardcode_minus_L_F77=yes
14236      fi
14237      ;;
14238
14239    hpux11*)
14240      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14241	case $host_cpu in
14242	hppa*64*)
14243	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14244	  ;;
14245	ia64*)
14246	  archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14247	  ;;
14248	*)
14249	  archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14250	  ;;
14251	esac
14252      else
14253	case $host_cpu in
14254	hppa*64*)
14255	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14256	  ;;
14257	ia64*)
14258	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14259	  ;;
14260	*)
14261	archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14262	  ;;
14263	esac
14264      fi
14265      if test "$with_gnu_ld" = no; then
14266	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14267	hardcode_libdir_separator_F77=:
14268
14269	case $host_cpu in
14270	hppa*64*|ia64*)
14271	  hardcode_direct_F77=no
14272	  hardcode_shlibpath_var_F77=no
14273	  ;;
14274	*)
14275	  hardcode_direct_F77=yes
14276	  hardcode_direct_absolute_F77=yes
14277	  export_dynamic_flag_spec_F77='${wl}-E'
14278
14279	  # hardcode_minus_L: Not really in the search PATH,
14280	  # but as the default location of the library.
14281	  hardcode_minus_L_F77=yes
14282	  ;;
14283	esac
14284      fi
14285      ;;
14286
14287    irix5* | irix6* | nonstopux*)
14288      if test "$GCC" = yes; then
14289	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'
14290	# Try to use the -exported_symbol ld option, if it does not
14291	# work, assume that -exports_file does not work either and
14292	# implicitly export all symbols.
14293	# This should be the same for all languages, so no per-tag cache variable.
14294	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14295$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14296if ${lt_cv_irix_exported_symbol+:} false; then :
14297  $as_echo_n "(cached) " >&6
14298else
14299  save_LDFLAGS="$LDFLAGS"
14300	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14301	   cat > conftest.$ac_ext <<_ACEOF
14302
14303      subroutine foo
14304      end
14305_ACEOF
14306if ac_fn_f77_try_link "$LINENO"; then :
14307  lt_cv_irix_exported_symbol=yes
14308else
14309  lt_cv_irix_exported_symbol=no
14310fi
14311rm -f core conftest.err conftest.$ac_objext \
14312    conftest$ac_exeext conftest.$ac_ext
14313           LDFLAGS="$save_LDFLAGS"
14314fi
14315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14316$as_echo "$lt_cv_irix_exported_symbol" >&6; }
14317	if test "$lt_cv_irix_exported_symbol" = yes; then
14318          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'
14319	fi
14320      else
14321	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'
14322	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'
14323      fi
14324      archive_cmds_need_lc_F77='no'
14325      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14326      hardcode_libdir_separator_F77=:
14327      inherit_rpath_F77=yes
14328      link_all_deplibs_F77=yes
14329      ;;
14330
14331    netbsd*)
14332      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14333	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14334      else
14335	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14336      fi
14337      hardcode_libdir_flag_spec_F77='-R$libdir'
14338      hardcode_direct_F77=yes
14339      hardcode_shlibpath_var_F77=no
14340      ;;
14341
14342    newsos6)
14343      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14344      hardcode_direct_F77=yes
14345      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14346      hardcode_libdir_separator_F77=:
14347      hardcode_shlibpath_var_F77=no
14348      ;;
14349
14350    *nto* | *qnx*)
14351      ;;
14352
14353    openbsd*)
14354      if test -f /usr/libexec/ld.so; then
14355	hardcode_direct_F77=yes
14356	hardcode_shlibpath_var_F77=no
14357	hardcode_direct_absolute_F77=yes
14358	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14359	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14360	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14361	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14362	  export_dynamic_flag_spec_F77='${wl}-E'
14363	else
14364	  case $host_os in
14365	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14366	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14367	     hardcode_libdir_flag_spec_F77='-R$libdir'
14368	     ;;
14369	   *)
14370	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14371	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14372	     ;;
14373	  esac
14374	fi
14375      else
14376	ld_shlibs_F77=no
14377      fi
14378      ;;
14379
14380    os2*)
14381      hardcode_libdir_flag_spec_F77='-L$libdir'
14382      hardcode_minus_L_F77=yes
14383      allow_undefined_flag_F77=unsupported
14384      archive_cmds_F77='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14385      old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14386      ;;
14387
14388    osf3*)
14389      if test "$GCC" = yes; then
14390	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14391	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'
14392      else
14393	allow_undefined_flag_F77=' -expect_unresolved \*'
14394	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'
14395      fi
14396      archive_cmds_need_lc_F77='no'
14397      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14398      hardcode_libdir_separator_F77=:
14399      ;;
14400
14401    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14402      if test "$GCC" = yes; then
14403	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14404	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'
14405	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14406      else
14407	allow_undefined_flag_F77=' -expect_unresolved \*'
14408	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'
14409	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~
14410	$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'
14411
14412	# Both c and cxx compiler support -rpath directly
14413	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14414      fi
14415      archive_cmds_need_lc_F77='no'
14416      hardcode_libdir_separator_F77=:
14417      ;;
14418
14419    solaris*)
14420      no_undefined_flag_F77=' -z defs'
14421      if test "$GCC" = yes; then
14422	wlarc='${wl}'
14423	archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14424	archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14425	  $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'
14426      else
14427	case `$CC -V 2>&1` in
14428	*"Compilers 5.0"*)
14429	  wlarc=''
14430	  archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14431	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14432	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14433	  ;;
14434	*)
14435	  wlarc='${wl}'
14436	  archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14437	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14438	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14439	  ;;
14440	esac
14441      fi
14442      hardcode_libdir_flag_spec_F77='-R$libdir'
14443      hardcode_shlibpath_var_F77=no
14444      case $host_os in
14445      solaris2.[0-5] | solaris2.[0-5].*) ;;
14446      *)
14447	# The compiler driver will combine and reorder linker options,
14448	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14449	# but is careful enough not to reorder.
14450	# Supported since Solaris 2.6 (maybe 2.5.1?)
14451	if test "$GCC" = yes; then
14452	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14453	else
14454	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14455	fi
14456	;;
14457      esac
14458      link_all_deplibs_F77=yes
14459      ;;
14460
14461    sunos4*)
14462      if test "x$host_vendor" = xsequent; then
14463	# Use $CC to link under sequent, because it throws in some extra .o
14464	# files that make .init and .fini sections work.
14465	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14466      else
14467	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14468      fi
14469      hardcode_libdir_flag_spec_F77='-L$libdir'
14470      hardcode_direct_F77=yes
14471      hardcode_minus_L_F77=yes
14472      hardcode_shlibpath_var_F77=no
14473      ;;
14474
14475    sysv4)
14476      case $host_vendor in
14477	sni)
14478	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14479	  hardcode_direct_F77=yes # is this really true???
14480	;;
14481	siemens)
14482	  ## LD is ld it makes a PLAMLIB
14483	  ## CC just makes a GrossModule.
14484	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14485	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14486	  hardcode_direct_F77=no
14487        ;;
14488	motorola)
14489	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14490	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14491	;;
14492      esac
14493      runpath_var='LD_RUN_PATH'
14494      hardcode_shlibpath_var_F77=no
14495      ;;
14496
14497    sysv4.3*)
14498      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14499      hardcode_shlibpath_var_F77=no
14500      export_dynamic_flag_spec_F77='-Bexport'
14501      ;;
14502
14503    sysv4*MP*)
14504      if test -d /usr/nec; then
14505	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14506	hardcode_shlibpath_var_F77=no
14507	runpath_var=LD_RUN_PATH
14508	hardcode_runpath_var=yes
14509	ld_shlibs_F77=yes
14510      fi
14511      ;;
14512
14513    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14514      no_undefined_flag_F77='${wl}-z,text'
14515      archive_cmds_need_lc_F77=no
14516      hardcode_shlibpath_var_F77=no
14517      runpath_var='LD_RUN_PATH'
14518
14519      if test "$GCC" = yes; then
14520	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14521	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14522      else
14523	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14524	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14525      fi
14526      ;;
14527
14528    sysv5* | sco3.2v5* | sco5v6*)
14529      # Note: We can NOT use -z defs as we might desire, because we do not
14530      # link with -lc, and that would cause any symbols used from libc to
14531      # always be unresolved, which means just about no library would
14532      # ever link correctly.  If we're not using GNU ld we use -z text
14533      # though, which does catch some bad symbols but isn't as heavy-handed
14534      # as -z defs.
14535      no_undefined_flag_F77='${wl}-z,text'
14536      allow_undefined_flag_F77='${wl}-z,nodefs'
14537      archive_cmds_need_lc_F77=no
14538      hardcode_shlibpath_var_F77=no
14539      hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
14540      hardcode_libdir_separator_F77=':'
14541      link_all_deplibs_F77=yes
14542      export_dynamic_flag_spec_F77='${wl}-Bexport'
14543      runpath_var='LD_RUN_PATH'
14544
14545      if test "$GCC" = yes; then
14546	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14548      else
14549	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14550	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14551      fi
14552      ;;
14553
14554    uts4*)
14555      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14556      hardcode_libdir_flag_spec_F77='-L$libdir'
14557      hardcode_shlibpath_var_F77=no
14558      ;;
14559
14560    *)
14561      ld_shlibs_F77=no
14562      ;;
14563    esac
14564
14565    if test x$host_vendor = xsni; then
14566      case $host in
14567      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14568	export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
14569	;;
14570      esac
14571    fi
14572  fi
14573
14574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14575$as_echo "$ld_shlibs_F77" >&6; }
14576test "$ld_shlibs_F77" = no && can_build_shared=no
14577
14578with_gnu_ld_F77=$with_gnu_ld
14579
14580
14581
14582
14583
14584
14585#
14586# Do we need to explicitly link libc?
14587#
14588case "x$archive_cmds_need_lc_F77" in
14589x|xyes)
14590  # Assume -lc should be added
14591  archive_cmds_need_lc_F77=yes
14592
14593  if test "$enable_shared" = yes && test "$GCC" = yes; then
14594    case $archive_cmds_F77 in
14595    *'~'*)
14596      # FIXME: we may have to deal with multi-command sequences.
14597      ;;
14598    '$CC '*)
14599      # Test whether the compiler implicitly links with -lc since on some
14600      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14601      # to ld, don't add -lc before -lgcc.
14602      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14603$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14604if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
14605  $as_echo_n "(cached) " >&6
14606else
14607  $RM conftest*
14608	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14609
14610	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14611  (eval $ac_compile) 2>&5
14612  ac_status=$?
14613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14614  test $ac_status = 0; } 2>conftest.err; then
14615	  soname=conftest
14616	  lib=conftest
14617	  libobjs=conftest.$ac_objext
14618	  deplibs=
14619	  wl=$lt_prog_compiler_wl_F77
14620	  pic_flag=$lt_prog_compiler_pic_F77
14621	  compiler_flags=-v
14622	  linker_flags=-v
14623	  verstring=
14624	  output_objdir=.
14625	  libname=conftest
14626	  lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14627	  allow_undefined_flag_F77=
14628	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14629  (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14630  ac_status=$?
14631  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14632  test $ac_status = 0; }
14633	  then
14634	    lt_cv_archive_cmds_need_lc_F77=no
14635	  else
14636	    lt_cv_archive_cmds_need_lc_F77=yes
14637	  fi
14638	  allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14639	else
14640	  cat conftest.err 1>&5
14641	fi
14642	$RM conftest*
14643
14644fi
14645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
14646$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
14647      archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
14648      ;;
14649    esac
14650  fi
14651  ;;
14652esac
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14716$as_echo_n "checking dynamic linker characteristics... " >&6; }
14717
14718library_names_spec=
14719libname_spec='lib$name'
14720soname_spec=
14721shrext_cmds=".so"
14722postinstall_cmds=
14723postuninstall_cmds=
14724finish_cmds=
14725finish_eval=
14726shlibpath_var=
14727shlibpath_overrides_runpath=unknown
14728version_type=none
14729dynamic_linker="$host_os ld.so"
14730sys_lib_dlsearch_path_spec="/lib /usr/lib"
14731need_lib_prefix=unknown
14732hardcode_into_libs=no
14733
14734# when you set need_version to no, make sure it does not cause -set_version
14735# flags to be left without arguments
14736need_version=unknown
14737
14738case $host_os in
14739aix3*)
14740  version_type=linux # correct to gnu/linux during the next big refactor
14741  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14742  shlibpath_var=LIBPATH
14743
14744  # AIX 3 has no versioning support, so we append a major version to the name.
14745  soname_spec='${libname}${release}${shared_ext}$major'
14746  ;;
14747
14748aix[4-9]*)
14749  version_type=linux # correct to gnu/linux during the next big refactor
14750  need_lib_prefix=no
14751  need_version=no
14752  hardcode_into_libs=yes
14753  if test "$host_cpu" = ia64; then
14754    # AIX 5 supports IA64
14755    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14756    shlibpath_var=LD_LIBRARY_PATH
14757  else
14758    # With GCC up to 2.95.x, collect2 would create an import file
14759    # for dependence libraries.  The import file would start with
14760    # the line `#! .'.  This would cause the generated library to
14761    # depend on `.', always an invalid library.  This was fixed in
14762    # development snapshots of GCC prior to 3.0.
14763    case $host_os in
14764      aix4 | aix4.[01] | aix4.[01].*)
14765      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14766	   echo ' yes '
14767	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14768	:
14769      else
14770	can_build_shared=no
14771      fi
14772      ;;
14773    esac
14774    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14775    # soname into executable. Probably we can add versioning support to
14776    # collect2, so additional links can be useful in future.
14777    if test "$aix_use_runtimelinking" = yes; then
14778      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14779      # instead of lib<name>.a to let people know that these are not
14780      # typical AIX shared libraries.
14781      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782    else
14783      # We preserve .a as extension for shared libraries through AIX4.2
14784      # and later when we are not doing run time linking.
14785      library_names_spec='${libname}${release}.a $libname.a'
14786      soname_spec='${libname}${release}${shared_ext}$major'
14787    fi
14788    shlibpath_var=LIBPATH
14789  fi
14790  ;;
14791
14792amigaos*)
14793  case $host_cpu in
14794  powerpc)
14795    # Since July 2007 AmigaOS4 officially supports .so libraries.
14796    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14797    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798    ;;
14799  m68k)
14800    library_names_spec='$libname.ixlibrary $libname.a'
14801    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14802    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14803    ;;
14804  esac
14805  ;;
14806
14807beos*)
14808  library_names_spec='${libname}${shared_ext}'
14809  dynamic_linker="$host_os ld.so"
14810  shlibpath_var=LIBRARY_PATH
14811  ;;
14812
14813bsdi[45]*)
14814  version_type=linux # correct to gnu/linux during the next big refactor
14815  need_version=no
14816  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14817  soname_spec='${libname}${release}${shared_ext}$major'
14818  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14819  shlibpath_var=LD_LIBRARY_PATH
14820  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14821  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14822  # the default ld.so.conf also contains /usr/contrib/lib and
14823  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14824  # libtool to hard-code these into programs
14825  ;;
14826
14827cygwin* | mingw* | pw32* | cegcc*)
14828  version_type=windows
14829  shrext_cmds=".dll"
14830  need_version=no
14831  need_lib_prefix=no
14832
14833  case $GCC,$cc_basename in
14834  yes,*)
14835    # gcc
14836    library_names_spec='$libname.dll.a'
14837    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14838    postinstall_cmds='base_file=`basename \${file}`~
14839      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14840      dldir=$destdir/`dirname \$dlpath`~
14841      test -d \$dldir || mkdir -p \$dldir~
14842      $install_prog $dir/$dlname \$dldir/$dlname~
14843      chmod a+x \$dldir/$dlname~
14844      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14845        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14846      fi'
14847    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14848      dlpath=$dir/\$dldll~
14849       $RM \$dlpath'
14850    shlibpath_overrides_runpath=yes
14851
14852    case $host_os in
14853    cygwin*)
14854      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14855      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14856
14857      ;;
14858    mingw* | cegcc*)
14859      # MinGW DLLs use traditional 'lib' prefix
14860      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14861      ;;
14862    pw32*)
14863      # pw32 DLLs use 'pw' prefix rather than 'lib'
14864      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14865      ;;
14866    esac
14867    dynamic_linker='Win32 ld.exe'
14868    ;;
14869
14870  *,cl*)
14871    # Native MSVC
14872    libname_spec='$name'
14873    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14874    library_names_spec='${libname}.dll.lib'
14875
14876    case $build_os in
14877    mingw*)
14878      sys_lib_search_path_spec=
14879      lt_save_ifs=$IFS
14880      IFS=';'
14881      for lt_path in $LIB
14882      do
14883        IFS=$lt_save_ifs
14884        # Let DOS variable expansion print the short 8.3 style file name.
14885        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14886        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14887      done
14888      IFS=$lt_save_ifs
14889      # Convert to MSYS style.
14890      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14891      ;;
14892    cygwin*)
14893      # Convert to unix form, then to dos form, then back to unix form
14894      # but this time dos style (no spaces!) so that the unix form looks
14895      # like /cygdrive/c/PROGRA~1:/cygdr...
14896      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14897      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14898      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14899      ;;
14900    *)
14901      sys_lib_search_path_spec="$LIB"
14902      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14903        # It is most probably a Windows format PATH.
14904        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14905      else
14906        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14907      fi
14908      # FIXME: find the short name or the path components, as spaces are
14909      # common. (e.g. "Program Files" -> "PROGRA~1")
14910      ;;
14911    esac
14912
14913    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14914    postinstall_cmds='base_file=`basename \${file}`~
14915      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14916      dldir=$destdir/`dirname \$dlpath`~
14917      test -d \$dldir || mkdir -p \$dldir~
14918      $install_prog $dir/$dlname \$dldir/$dlname'
14919    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14920      dlpath=$dir/\$dldll~
14921       $RM \$dlpath'
14922    shlibpath_overrides_runpath=yes
14923    dynamic_linker='Win32 link.exe'
14924    ;;
14925
14926  *)
14927    # Assume MSVC wrapper
14928    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14929    dynamic_linker='Win32 ld.exe'
14930    ;;
14931  esac
14932  # FIXME: first we should search . and the directory the executable is in
14933  shlibpath_var=PATH
14934  ;;
14935
14936darwin* | rhapsody*)
14937  dynamic_linker="$host_os dyld"
14938  version_type=darwin
14939  need_lib_prefix=no
14940  need_version=no
14941  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14942  soname_spec='${libname}${release}${major}$shared_ext'
14943  shlibpath_overrides_runpath=yes
14944  shlibpath_var=DYLD_LIBRARY_PATH
14945  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14946
14947  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14948  ;;
14949
14950dgux*)
14951  version_type=linux # correct to gnu/linux during the next big refactor
14952  need_lib_prefix=no
14953  need_version=no
14954  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14955  soname_spec='${libname}${release}${shared_ext}$major'
14956  shlibpath_var=LD_LIBRARY_PATH
14957  ;;
14958
14959freebsd* | dragonfly*)
14960  # DragonFly does not have aout.  When/if they implement a new
14961  # versioning mechanism, adjust this.
14962  if test -x /usr/bin/objformat; then
14963    objformat=`/usr/bin/objformat`
14964  else
14965    case $host_os in
14966    freebsd[23].*) objformat=aout ;;
14967    *) objformat=elf ;;
14968    esac
14969  fi
14970  version_type=freebsd-$objformat
14971  case $version_type in
14972    freebsd-elf*)
14973      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14974      need_version=no
14975      need_lib_prefix=no
14976      ;;
14977    freebsd-*)
14978      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14979      need_version=yes
14980      ;;
14981  esac
14982  shlibpath_var=LD_LIBRARY_PATH
14983  case $host_os in
14984  freebsd2.*)
14985    shlibpath_overrides_runpath=yes
14986    ;;
14987  freebsd3.[01]* | freebsdelf3.[01]*)
14988    shlibpath_overrides_runpath=yes
14989    hardcode_into_libs=yes
14990    ;;
14991  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14992  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14993    shlibpath_overrides_runpath=no
14994    hardcode_into_libs=yes
14995    ;;
14996  *) # from 4.6 on, and DragonFly
14997    shlibpath_overrides_runpath=yes
14998    hardcode_into_libs=yes
14999    ;;
15000  esac
15001  ;;
15002
15003gnu*)
15004  version_type=linux # correct to gnu/linux during the next big refactor
15005  need_lib_prefix=no
15006  need_version=no
15007  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15008  soname_spec='${libname}${release}${shared_ext}$major'
15009  shlibpath_var=LD_LIBRARY_PATH
15010  shlibpath_overrides_runpath=no
15011  hardcode_into_libs=yes
15012  ;;
15013
15014haiku*)
15015  version_type=linux # correct to gnu/linux during the next big refactor
15016  need_lib_prefix=no
15017  need_version=no
15018  dynamic_linker="$host_os runtime_loader"
15019  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15020  soname_spec='${libname}${release}${shared_ext}$major'
15021  shlibpath_var=LIBRARY_PATH
15022  shlibpath_overrides_runpath=yes
15023  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15024  hardcode_into_libs=yes
15025  ;;
15026
15027hpux9* | hpux10* | hpux11*)
15028  # Give a soname corresponding to the major version so that dld.sl refuses to
15029  # link against other versions.
15030  version_type=sunos
15031  need_lib_prefix=no
15032  need_version=no
15033  case $host_cpu in
15034  ia64*)
15035    shrext_cmds='.so'
15036    hardcode_into_libs=yes
15037    dynamic_linker="$host_os dld.so"
15038    shlibpath_var=LD_LIBRARY_PATH
15039    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15040    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15041    soname_spec='${libname}${release}${shared_ext}$major'
15042    if test "X$HPUX_IA64_MODE" = X32; then
15043      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15044    else
15045      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15046    fi
15047    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15048    ;;
15049  hppa*64*)
15050    shrext_cmds='.sl'
15051    hardcode_into_libs=yes
15052    dynamic_linker="$host_os dld.sl"
15053    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15054    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15055    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056    soname_spec='${libname}${release}${shared_ext}$major'
15057    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15058    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15059    ;;
15060  *)
15061    shrext_cmds='.sl'
15062    dynamic_linker="$host_os dld.sl"
15063    shlibpath_var=SHLIB_PATH
15064    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15065    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15066    soname_spec='${libname}${release}${shared_ext}$major'
15067    ;;
15068  esac
15069  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15070  postinstall_cmds='chmod 555 $lib'
15071  # or fails outright, so override atomically:
15072  install_override_mode=555
15073  ;;
15074
15075interix[3-9]*)
15076  version_type=linux # correct to gnu/linux during the next big refactor
15077  need_lib_prefix=no
15078  need_version=no
15079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15080  soname_spec='${libname}${release}${shared_ext}$major'
15081  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15082  shlibpath_var=LD_LIBRARY_PATH
15083  shlibpath_overrides_runpath=no
15084  hardcode_into_libs=yes
15085  ;;
15086
15087irix5* | irix6* | nonstopux*)
15088  case $host_os in
15089    nonstopux*) version_type=nonstopux ;;
15090    *)
15091	if test "$lt_cv_prog_gnu_ld" = yes; then
15092		version_type=linux # correct to gnu/linux during the next big refactor
15093	else
15094		version_type=irix
15095	fi ;;
15096  esac
15097  need_lib_prefix=no
15098  need_version=no
15099  soname_spec='${libname}${release}${shared_ext}$major'
15100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15101  case $host_os in
15102  irix5* | nonstopux*)
15103    libsuff= shlibsuff=
15104    ;;
15105  *)
15106    case $LD in # libtool.m4 will add one of these switches to LD
15107    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15108      libsuff= shlibsuff= libmagic=32-bit;;
15109    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15110      libsuff=32 shlibsuff=N32 libmagic=N32;;
15111    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15112      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15113    *) libsuff= shlibsuff= libmagic=never-match;;
15114    esac
15115    ;;
15116  esac
15117  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15118  shlibpath_overrides_runpath=no
15119  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15120  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15121  hardcode_into_libs=yes
15122  ;;
15123
15124# No shared lib support for Linux oldld, aout, or coff.
15125linux*oldld* | linux*aout* | linux*coff*)
15126  dynamic_linker=no
15127  ;;
15128
15129# This must be glibc/ELF.
15130linux* | k*bsd*-gnu | kopensolaris*-gnu)
15131  version_type=linux # correct to gnu/linux during the next big refactor
15132  need_lib_prefix=no
15133  need_version=no
15134  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15135  soname_spec='${libname}${release}${shared_ext}$major'
15136  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15137  shlibpath_var=LD_LIBRARY_PATH
15138  shlibpath_overrides_runpath=no
15139
15140  # Some binutils ld are patched to set DT_RUNPATH
15141  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15142  $as_echo_n "(cached) " >&6
15143else
15144  lt_cv_shlibpath_overrides_runpath=no
15145    save_LDFLAGS=$LDFLAGS
15146    save_libdir=$libdir
15147    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
15148	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
15149    cat > conftest.$ac_ext <<_ACEOF
15150      program main
15151
15152      end
15153_ACEOF
15154if ac_fn_f77_try_link "$LINENO"; then :
15155  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15156  lt_cv_shlibpath_overrides_runpath=yes
15157fi
15158fi
15159rm -f core conftest.err conftest.$ac_objext \
15160    conftest$ac_exeext conftest.$ac_ext
15161    LDFLAGS=$save_LDFLAGS
15162    libdir=$save_libdir
15163
15164fi
15165
15166  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15167
15168  # This implies no fast_install, which is unacceptable.
15169  # Some rework will be needed to allow for fast_install
15170  # before this can be enabled.
15171  hardcode_into_libs=yes
15172
15173  # Append ld.so.conf contents to the search path
15174  if test -f /etc/ld.so.conf; then
15175    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' ' '`
15176    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15177  fi
15178
15179  # We used to test for /lib/ld.so.1 and disable shared libraries on
15180  # powerpc, because MkLinux only supported shared libraries with the
15181  # GNU dynamic linker.  Since this was broken with cross compilers,
15182  # most powerpc-linux boxes support dynamic linking these days and
15183  # people can always --disable-shared, the test was removed, and we
15184  # assume the GNU/Linux dynamic linker is in use.
15185  dynamic_linker='GNU/Linux ld.so'
15186  ;;
15187
15188netbsd*)
15189  version_type=sunos
15190  need_lib_prefix=no
15191  need_version=no
15192  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15193    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15194    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15195    dynamic_linker='NetBSD (a.out) ld.so'
15196  else
15197    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15198    soname_spec='${libname}${release}${shared_ext}$major'
15199    dynamic_linker='NetBSD ld.elf_so'
15200  fi
15201  shlibpath_var=LD_LIBRARY_PATH
15202  shlibpath_overrides_runpath=yes
15203  hardcode_into_libs=yes
15204  ;;
15205
15206newsos6)
15207  version_type=linux # correct to gnu/linux during the next big refactor
15208  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15209  shlibpath_var=LD_LIBRARY_PATH
15210  shlibpath_overrides_runpath=yes
15211  ;;
15212
15213*nto* | *qnx*)
15214  version_type=qnx
15215  need_lib_prefix=no
15216  need_version=no
15217  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15218  soname_spec='${libname}${release}${shared_ext}$major'
15219  shlibpath_var=LD_LIBRARY_PATH
15220  shlibpath_overrides_runpath=no
15221  hardcode_into_libs=yes
15222  dynamic_linker='ldqnx.so'
15223  ;;
15224
15225openbsd*)
15226  version_type=sunos
15227  sys_lib_dlsearch_path_spec="/usr/lib"
15228  need_lib_prefix=no
15229  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15230  case $host_os in
15231    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15232    *)				need_version=no  ;;
15233  esac
15234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15235  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15236  shlibpath_var=LD_LIBRARY_PATH
15237  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15238    case $host_os in
15239      openbsd2.[89] | openbsd2.[89].*)
15240	shlibpath_overrides_runpath=no
15241	;;
15242      *)
15243	shlibpath_overrides_runpath=yes
15244	;;
15245      esac
15246  else
15247    shlibpath_overrides_runpath=yes
15248  fi
15249  ;;
15250
15251os2*)
15252  libname_spec='$name'
15253  shrext_cmds=".dll"
15254  need_lib_prefix=no
15255  library_names_spec='$libname${shared_ext} $libname.a'
15256  dynamic_linker='OS/2 ld.exe'
15257  shlibpath_var=LIBPATH
15258  ;;
15259
15260osf3* | osf4* | osf5*)
15261  version_type=osf
15262  need_lib_prefix=no
15263  need_version=no
15264  soname_spec='${libname}${release}${shared_ext}$major'
15265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266  shlibpath_var=LD_LIBRARY_PATH
15267  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15268  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15269  ;;
15270
15271rdos*)
15272  dynamic_linker=no
15273  ;;
15274
15275solaris*)
15276  version_type=linux # correct to gnu/linux during the next big refactor
15277  need_lib_prefix=no
15278  need_version=no
15279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280  soname_spec='${libname}${release}${shared_ext}$major'
15281  shlibpath_var=LD_LIBRARY_PATH
15282  shlibpath_overrides_runpath=yes
15283  hardcode_into_libs=yes
15284  # ldd complains unless libraries are executable
15285  postinstall_cmds='chmod +x $lib'
15286  ;;
15287
15288sunos4*)
15289  version_type=sunos
15290  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15291  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15292  shlibpath_var=LD_LIBRARY_PATH
15293  shlibpath_overrides_runpath=yes
15294  if test "$with_gnu_ld" = yes; then
15295    need_lib_prefix=no
15296  fi
15297  need_version=yes
15298  ;;
15299
15300sysv4 | sysv4.3*)
15301  version_type=linux # correct to gnu/linux during the next big refactor
15302  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15303  soname_spec='${libname}${release}${shared_ext}$major'
15304  shlibpath_var=LD_LIBRARY_PATH
15305  case $host_vendor in
15306    sni)
15307      shlibpath_overrides_runpath=no
15308      need_lib_prefix=no
15309      runpath_var=LD_RUN_PATH
15310      ;;
15311    siemens)
15312      need_lib_prefix=no
15313      ;;
15314    motorola)
15315      need_lib_prefix=no
15316      need_version=no
15317      shlibpath_overrides_runpath=no
15318      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15319      ;;
15320  esac
15321  ;;
15322
15323sysv4*MP*)
15324  if test -d /usr/nec ;then
15325    version_type=linux # correct to gnu/linux during the next big refactor
15326    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15327    soname_spec='$libname${shared_ext}.$major'
15328    shlibpath_var=LD_LIBRARY_PATH
15329  fi
15330  ;;
15331
15332sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15333  version_type=freebsd-elf
15334  need_lib_prefix=no
15335  need_version=no
15336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15337  soname_spec='${libname}${release}${shared_ext}$major'
15338  shlibpath_var=LD_LIBRARY_PATH
15339  shlibpath_overrides_runpath=yes
15340  hardcode_into_libs=yes
15341  if test "$with_gnu_ld" = yes; then
15342    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15343  else
15344    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15345    case $host_os in
15346      sco3.2v5*)
15347        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15348	;;
15349    esac
15350  fi
15351  sys_lib_dlsearch_path_spec='/usr/lib'
15352  ;;
15353
15354tpf*)
15355  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15356  version_type=linux # correct to gnu/linux during the next big refactor
15357  need_lib_prefix=no
15358  need_version=no
15359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15360  shlibpath_var=LD_LIBRARY_PATH
15361  shlibpath_overrides_runpath=no
15362  hardcode_into_libs=yes
15363  ;;
15364
15365uts4*)
15366  version_type=linux # correct to gnu/linux during the next big refactor
15367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368  soname_spec='${libname}${release}${shared_ext}$major'
15369  shlibpath_var=LD_LIBRARY_PATH
15370  ;;
15371
15372*)
15373  dynamic_linker=no
15374  ;;
15375esac
15376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15377$as_echo "$dynamic_linker" >&6; }
15378test "$dynamic_linker" = no && can_build_shared=no
15379
15380variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15381if test "$GCC" = yes; then
15382  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15383fi
15384
15385if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15386  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15387fi
15388if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15389  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15390fi
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15430$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15431hardcode_action_F77=
15432if test -n "$hardcode_libdir_flag_spec_F77" ||
15433   test -n "$runpath_var_F77" ||
15434   test "X$hardcode_automatic_F77" = "Xyes" ; then
15435
15436  # We can hardcode non-existent directories.
15437  if test "$hardcode_direct_F77" != no &&
15438     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15439     # have to relink, otherwise we might link with an installed library
15440     # when we should be linking with a yet-to-be-installed one
15441     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15442     test "$hardcode_minus_L_F77" != no; then
15443    # Linking always hardcodes the temporary library directory.
15444    hardcode_action_F77=relink
15445  else
15446    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15447    hardcode_action_F77=immediate
15448  fi
15449else
15450  # We cannot hardcode anything, or else we can only hardcode existing
15451  # directories.
15452  hardcode_action_F77=unsupported
15453fi
15454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15455$as_echo "$hardcode_action_F77" >&6; }
15456
15457if test "$hardcode_action_F77" = relink ||
15458   test "$inherit_rpath_F77" = yes; then
15459  # Fast installation is not supported
15460  enable_fast_install=no
15461elif test "$shlibpath_overrides_runpath" = yes ||
15462     test "$enable_shared" = no; then
15463  # Fast installation is not necessary
15464  enable_fast_install=needless
15465fi
15466
15467
15468
15469
15470
15471
15472
15473  fi # test -n "$compiler"
15474
15475  GCC=$lt_save_GCC
15476  CC="$lt_save_CC"
15477  CFLAGS="$lt_save_CFLAGS"
15478fi # test "$_lt_disable_F77" != yes
15479
15480ac_ext=c
15481ac_cpp='$CPP $CPPFLAGS'
15482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15484ac_compiler_gnu=$ac_cv_c_compiler_gnu
15485
15486
15487ac_ext=${ac_fc_srcext-f}
15488ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15489ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15490ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15491if test -n "$ac_tool_prefix"; then
15492  for ac_prog in pgf90 xlf90 gfortran f90 ifort
15493  do
15494    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15497$as_echo_n "checking for $ac_word... " >&6; }
15498if ${ac_cv_prog_FC+:} false; then :
15499  $as_echo_n "(cached) " >&6
15500else
15501  if test -n "$FC"; then
15502  ac_cv_prog_FC="$FC" # Let the user override the test.
15503else
15504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15505for as_dir in $PATH
15506do
15507  IFS=$as_save_IFS
15508  test -z "$as_dir" && as_dir=.
15509    for ac_exec_ext in '' $ac_executable_extensions; do
15510  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15511    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
15512    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15513    break 2
15514  fi
15515done
15516  done
15517IFS=$as_save_IFS
15518
15519fi
15520fi
15521FC=$ac_cv_prog_FC
15522if test -n "$FC"; then
15523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
15524$as_echo "$FC" >&6; }
15525else
15526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15527$as_echo "no" >&6; }
15528fi
15529
15530
15531    test -n "$FC" && break
15532  done
15533fi
15534if test -z "$FC"; then
15535  ac_ct_FC=$FC
15536  for ac_prog in pgf90 xlf90 gfortran f90 ifort
15537do
15538  # Extract the first word of "$ac_prog", so it can be a program name with args.
15539set dummy $ac_prog; ac_word=$2
15540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15541$as_echo_n "checking for $ac_word... " >&6; }
15542if ${ac_cv_prog_ac_ct_FC+:} false; then :
15543  $as_echo_n "(cached) " >&6
15544else
15545  if test -n "$ac_ct_FC"; then
15546  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
15547else
15548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549for as_dir in $PATH
15550do
15551  IFS=$as_save_IFS
15552  test -z "$as_dir" && as_dir=.
15553    for ac_exec_ext in '' $ac_executable_extensions; do
15554  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15555    ac_cv_prog_ac_ct_FC="$ac_prog"
15556    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15557    break 2
15558  fi
15559done
15560  done
15561IFS=$as_save_IFS
15562
15563fi
15564fi
15565ac_ct_FC=$ac_cv_prog_ac_ct_FC
15566if test -n "$ac_ct_FC"; then
15567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
15568$as_echo "$ac_ct_FC" >&6; }
15569else
15570  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15571$as_echo "no" >&6; }
15572fi
15573
15574
15575  test -n "$ac_ct_FC" && break
15576done
15577
15578  if test "x$ac_ct_FC" = x; then
15579    FC=""
15580  else
15581    case $cross_compiling:$ac_tool_warned in
15582yes:)
15583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15585ac_tool_warned=yes ;;
15586esac
15587    FC=$ac_ct_FC
15588  fi
15589fi
15590
15591
15592# Provide some information about the compiler.
15593$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
15594set X $ac_compile
15595ac_compiler=$2
15596for ac_option in --version -v -V -qversion; do
15597  { { ac_try="$ac_compiler $ac_option >&5"
15598case "(($ac_try" in
15599  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15600  *) ac_try_echo=$ac_try;;
15601esac
15602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15603$as_echo "$ac_try_echo"; } >&5
15604  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15605  ac_status=$?
15606  if test -s conftest.err; then
15607    sed '10a\
15608... rest of stderr output deleted ...
15609         10q' conftest.err >conftest.er1
15610    cat conftest.er1 >&5
15611  fi
15612  rm -f conftest.er1 conftest.err
15613  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15614  test $ac_status = 0; }
15615done
15616rm -f a.out
15617
15618# If we don't use `.F' as extension, the preprocessor is not run on the
15619# input file.  (Note that this only needs to work for GNU compilers.)
15620ac_save_ext=$ac_ext
15621ac_ext=F
15622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
15623$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
15624if ${ac_cv_fc_compiler_gnu+:} false; then :
15625  $as_echo_n "(cached) " >&6
15626else
15627  cat > conftest.$ac_ext <<_ACEOF
15628      program main
15629#ifndef __GNUC__
15630       choke me
15631#endif
15632
15633      end
15634_ACEOF
15635if ac_fn_fc_try_compile "$LINENO"; then :
15636  ac_compiler_gnu=yes
15637else
15638  ac_compiler_gnu=no
15639fi
15640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15641ac_cv_fc_compiler_gnu=$ac_compiler_gnu
15642
15643fi
15644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
15645$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
15646ac_ext=$ac_save_ext
15647ac_test_FCFLAGS=${FCFLAGS+set}
15648ac_save_FCFLAGS=$FCFLAGS
15649FCFLAGS=
15650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
15651$as_echo_n "checking whether $FC accepts -g... " >&6; }
15652if ${ac_cv_prog_fc_g+:} false; then :
15653  $as_echo_n "(cached) " >&6
15654else
15655  FCFLAGS=-g
15656cat > conftest.$ac_ext <<_ACEOF
15657      program main
15658
15659      end
15660_ACEOF
15661if ac_fn_fc_try_compile "$LINENO"; then :
15662  ac_cv_prog_fc_g=yes
15663else
15664  ac_cv_prog_fc_g=no
15665fi
15666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667
15668fi
15669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
15670$as_echo "$ac_cv_prog_fc_g" >&6; }
15671if test "$ac_test_FCFLAGS" = set; then
15672  FCFLAGS=$ac_save_FCFLAGS
15673elif test $ac_cv_prog_fc_g = yes; then
15674  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
15675    FCFLAGS="-g -O2"
15676  else
15677    FCFLAGS="-g"
15678  fi
15679else
15680  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
15681    FCFLAGS="-O2"
15682  else
15683    FCFLAGS=
15684  fi
15685fi
15686
15687if test $ac_compiler_gnu = yes; then
15688  GFC=yes
15689else
15690  GFC=
15691fi
15692ac_ext=c
15693ac_cpp='$CPP $CPPFLAGS'
15694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15696ac_compiler_gnu=$ac_cv_c_compiler_gnu
15697
15698
15699func_stripname_cnf ()
15700{
15701  case ${2} in
15702  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15703  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15704  esac
15705} # func_stripname_cnf
15706
15707
15708      ac_ext=${ac_fc_srcext-f}
15709ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15710ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15711ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15712
15713
15714if test -z "$FC" || test "X$FC" = "Xno"; then
15715  _lt_disable_FC=yes
15716fi
15717
15718archive_cmds_need_lc_FC=no
15719allow_undefined_flag_FC=
15720always_export_symbols_FC=no
15721archive_expsym_cmds_FC=
15722export_dynamic_flag_spec_FC=
15723hardcode_direct_FC=no
15724hardcode_direct_absolute_FC=no
15725hardcode_libdir_flag_spec_FC=
15726hardcode_libdir_separator_FC=
15727hardcode_minus_L_FC=no
15728hardcode_automatic_FC=no
15729inherit_rpath_FC=no
15730module_cmds_FC=
15731module_expsym_cmds_FC=
15732link_all_deplibs_FC=unknown
15733old_archive_cmds_FC=$old_archive_cmds
15734reload_flag_FC=$reload_flag
15735reload_cmds_FC=$reload_cmds
15736no_undefined_flag_FC=
15737whole_archive_flag_spec_FC=
15738enable_shared_with_static_runtimes_FC=no
15739
15740# Source file extension for fc test sources.
15741ac_ext=${ac_fc_srcext-f}
15742
15743# Object file extension for compiled fc test sources.
15744objext=o
15745objext_FC=$objext
15746
15747# No sense in running all these tests if we already determined that
15748# the FC compiler isn't working.  Some variables (like enable_shared)
15749# are currently assumed to apply to all compilers on this platform,
15750# and will be corrupted by setting them based on a non-working compiler.
15751if test "$_lt_disable_FC" != yes; then
15752  # Code to be used in simple compile tests
15753  lt_simple_compile_test_code="\
15754      subroutine t
15755      return
15756      end
15757"
15758
15759  # Code to be used in simple link tests
15760  lt_simple_link_test_code="\
15761      program t
15762      end
15763"
15764
15765  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15766
15767
15768
15769
15770
15771
15772# If no C compiler was specified, use CC.
15773LTCC=${LTCC-"$CC"}
15774
15775# If no C compiler flags were specified, use CFLAGS.
15776LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15777
15778# Allow CC to be a program name with arguments.
15779compiler=$CC
15780
15781
15782  # save warnings/boilerplate of simple test code
15783  ac_outfile=conftest.$ac_objext
15784echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15785eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15786_lt_compiler_boilerplate=`cat conftest.err`
15787$RM conftest*
15788
15789  ac_outfile=conftest.$ac_objext
15790echo "$lt_simple_link_test_code" >conftest.$ac_ext
15791eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15792_lt_linker_boilerplate=`cat conftest.err`
15793$RM -r conftest*
15794
15795
15796  # Allow CC to be a program name with arguments.
15797  lt_save_CC="$CC"
15798  lt_save_GCC=$GCC
15799  lt_save_CFLAGS=$CFLAGS
15800  CC=${FC-"f95"}
15801  CFLAGS=$FCFLAGS
15802  compiler=$CC
15803  GCC=$ac_cv_fc_compiler_gnu
15804
15805  compiler_FC=$CC
15806  for cc_temp in $compiler""; do
15807  case $cc_temp in
15808    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15809    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15810    \-*) ;;
15811    *) break;;
15812  esac
15813done
15814cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15815
15816
15817  if test -n "$compiler"; then
15818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15819$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15821$as_echo "$can_build_shared" >&6; }
15822
15823    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15824$as_echo_n "checking whether to build shared libraries... " >&6; }
15825    test "$can_build_shared" = "no" && enable_shared=no
15826
15827    # On AIX, shared libraries and static libraries use the same namespace, and
15828    # are all built from PIC.
15829    case $host_os in
15830      aix3*)
15831        test "$enable_shared" = yes && enable_static=no
15832        if test -n "$RANLIB"; then
15833          archive_cmds="$archive_cmds~\$RANLIB \$lib"
15834          postinstall_cmds='$RANLIB $lib'
15835        fi
15836        ;;
15837      aix[4-9]*)
15838	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15839	  test "$enable_shared" = yes && enable_static=no
15840	fi
15841        ;;
15842    esac
15843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15844$as_echo "$enable_shared" >&6; }
15845
15846    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15847$as_echo_n "checking whether to build static libraries... " >&6; }
15848    # Make sure either enable_shared or enable_static is yes.
15849    test "$enable_shared" = yes || enable_static=yes
15850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15851$as_echo "$enable_static" >&6; }
15852
15853    GCC_FC="$ac_cv_fc_compiler_gnu"
15854    LD_FC="$LD"
15855
15856    ## CAVEAT EMPTOR:
15857    ## There is no encapsulation within the following macros, do not change
15858    ## the running order or otherwise move them around unless you know exactly
15859    ## what you are doing...
15860    # Dependencies to place before and after the object being linked:
15861predep_objects_FC=
15862postdep_objects_FC=
15863predeps_FC=
15864postdeps_FC=
15865compiler_lib_search_path_FC=
15866
15867cat > conftest.$ac_ext <<_LT_EOF
15868      subroutine foo
15869      implicit none
15870      integer a
15871      a=0
15872      return
15873      end
15874_LT_EOF
15875
15876
15877_lt_libdeps_save_CFLAGS=$CFLAGS
15878case "$CC $CFLAGS " in #(
15879*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15880*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15881*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15882esac
15883
15884if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15885  (eval $ac_compile) 2>&5
15886  ac_status=$?
15887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15888  test $ac_status = 0; }; then
15889  # Parse the compiler output and extract the necessary
15890  # objects, libraries and library flags.
15891
15892  # Sentinel used to keep track of whether or not we are before
15893  # the conftest object file.
15894  pre_test_object_deps_done=no
15895
15896  for p in `eval "$output_verbose_link_cmd"`; do
15897    case ${prev}${p} in
15898
15899    -L* | -R* | -l*)
15900       # Some compilers place space between "-{L,R}" and the path.
15901       # Remove the space.
15902       if test $p = "-L" ||
15903          test $p = "-R"; then
15904	 prev=$p
15905	 continue
15906       fi
15907
15908       # Expand the sysroot to ease extracting the directories later.
15909       if test -z "$prev"; then
15910         case $p in
15911         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15912         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15913         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15914         esac
15915       fi
15916       case $p in
15917       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
15918       esac
15919       if test "$pre_test_object_deps_done" = no; then
15920	 case ${prev} in
15921	 -L | -R)
15922	   # Internal compiler library paths should come after those
15923	   # provided the user.  The postdeps already come after the
15924	   # user supplied libs so there is no need to process them.
15925	   if test -z "$compiler_lib_search_path_FC"; then
15926	     compiler_lib_search_path_FC="${prev}${p}"
15927	   else
15928	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
15929	   fi
15930	   ;;
15931	 # The "-l" case would never come before the object being
15932	 # linked, so don't bother handling this case.
15933	 esac
15934       else
15935	 if test -z "$postdeps_FC"; then
15936	   postdeps_FC="${prev}${p}"
15937	 else
15938	   postdeps_FC="${postdeps_FC} ${prev}${p}"
15939	 fi
15940       fi
15941       prev=
15942       ;;
15943
15944    *.lto.$objext) ;; # Ignore GCC LTO objects
15945    *.$objext)
15946       # This assumes that the test object file only shows up
15947       # once in the compiler output.
15948       if test "$p" = "conftest.$objext"; then
15949	 pre_test_object_deps_done=yes
15950	 continue
15951       fi
15952
15953       if test "$pre_test_object_deps_done" = no; then
15954	 if test -z "$predep_objects_FC"; then
15955	   predep_objects_FC="$p"
15956	 else
15957	   predep_objects_FC="$predep_objects_FC $p"
15958	 fi
15959       else
15960	 if test -z "$postdep_objects_FC"; then
15961	   postdep_objects_FC="$p"
15962	 else
15963	   postdep_objects_FC="$postdep_objects_FC $p"
15964	 fi
15965       fi
15966       ;;
15967
15968    *) ;; # Ignore the rest.
15969
15970    esac
15971  done
15972
15973  # Clean up.
15974  rm -f a.out a.exe
15975else
15976  echo "libtool.m4: error: problem compiling FC test program"
15977fi
15978
15979$RM -f confest.$objext
15980CFLAGS=$_lt_libdeps_save_CFLAGS
15981
15982# PORTME: override above test on systems where it is broken
15983
15984
15985case " $postdeps_FC " in
15986*" -lc "*) archive_cmds_need_lc_FC=no ;;
15987esac
15988 compiler_lib_search_dirs_FC=
15989if test -n "${compiler_lib_search_path_FC}"; then
15990 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15991fi
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023    lt_prog_compiler_wl_FC=
16024lt_prog_compiler_pic_FC=
16025lt_prog_compiler_static_FC=
16026
16027
16028  if test "$GCC" = yes; then
16029    lt_prog_compiler_wl_FC='-Wl,'
16030    lt_prog_compiler_static_FC='-static'
16031
16032    case $host_os in
16033      aix*)
16034      # All AIX code is PIC.
16035      if test "$host_cpu" = ia64; then
16036	# AIX 5 now supports IA64 processor
16037	lt_prog_compiler_static_FC='-Bstatic'
16038      fi
16039      ;;
16040
16041    amigaos*)
16042      case $host_cpu in
16043      powerpc)
16044            # see comment about AmigaOS4 .so support
16045            lt_prog_compiler_pic_FC='-fPIC'
16046        ;;
16047      m68k)
16048            # FIXME: we need at least 68020 code to build shared libraries, but
16049            # adding the `-m68020' flag to GCC prevents building anything better,
16050            # like `-m68040'.
16051            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
16052        ;;
16053      esac
16054      ;;
16055
16056    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16057      # PIC is the default for these OSes.
16058      ;;
16059
16060    mingw* | cygwin* | pw32* | os2* | cegcc*)
16061      # This hack is so that the source file can tell whether it is being
16062      # built for inclusion in a dll (and should export symbols for example).
16063      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16064      # (--disable-auto-import) libraries
16065      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
16066      ;;
16067
16068    darwin* | rhapsody*)
16069      # PIC is the default on this platform
16070      # Common symbols not allowed in MH_DYLIB files
16071      lt_prog_compiler_pic_FC='-fno-common'
16072      ;;
16073
16074    haiku*)
16075      # PIC is the default for Haiku.
16076      # The "-static" flag exists, but is broken.
16077      lt_prog_compiler_static_FC=
16078      ;;
16079
16080    hpux*)
16081      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16082      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16083      # sets the default TLS model and affects inlining.
16084      case $host_cpu in
16085      hppa*64*)
16086	# +Z the default
16087	;;
16088      *)
16089	lt_prog_compiler_pic_FC='-fPIC'
16090	;;
16091      esac
16092      ;;
16093
16094    interix[3-9]*)
16095      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16096      # Instead, we relocate shared libraries at runtime.
16097      ;;
16098
16099    msdosdjgpp*)
16100      # Just because we use GCC doesn't mean we suddenly get shared libraries
16101      # on systems that don't support them.
16102      lt_prog_compiler_can_build_shared_FC=no
16103      enable_shared=no
16104      ;;
16105
16106    *nto* | *qnx*)
16107      # QNX uses GNU C++, but need to define -shared option too, otherwise
16108      # it will coredump.
16109      lt_prog_compiler_pic_FC='-fPIC -shared'
16110      ;;
16111
16112    sysv4*MP*)
16113      if test -d /usr/nec; then
16114	lt_prog_compiler_pic_FC=-Kconform_pic
16115      fi
16116      ;;
16117
16118    *)
16119      lt_prog_compiler_pic_FC='-fPIC'
16120      ;;
16121    esac
16122
16123    case $cc_basename in
16124    nvcc*) # Cuda Compiler Driver 2.2
16125      lt_prog_compiler_wl_FC='-Xlinker '
16126      if test -n "$lt_prog_compiler_pic_FC"; then
16127        lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
16128      fi
16129      ;;
16130    esac
16131  else
16132    # PORTME Check for flag to pass linker flags through the system compiler.
16133    case $host_os in
16134    aix*)
16135      lt_prog_compiler_wl_FC='-Wl,'
16136      if test "$host_cpu" = ia64; then
16137	# AIX 5 now supports IA64 processor
16138	lt_prog_compiler_static_FC='-Bstatic'
16139      else
16140	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
16141      fi
16142      ;;
16143
16144    mingw* | cygwin* | pw32* | os2* | cegcc*)
16145      # This hack is so that the source file can tell whether it is being
16146      # built for inclusion in a dll (and should export symbols for example).
16147      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
16148      ;;
16149
16150    hpux9* | hpux10* | hpux11*)
16151      lt_prog_compiler_wl_FC='-Wl,'
16152      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16153      # not for PA HP-UX.
16154      case $host_cpu in
16155      hppa*64*|ia64*)
16156	# +Z the default
16157	;;
16158      *)
16159	lt_prog_compiler_pic_FC='+Z'
16160	;;
16161      esac
16162      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16163      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
16164      ;;
16165
16166    irix5* | irix6* | nonstopux*)
16167      lt_prog_compiler_wl_FC='-Wl,'
16168      # PIC (with -KPIC) is the default.
16169      lt_prog_compiler_static_FC='-non_shared'
16170      ;;
16171
16172    linux* | k*bsd*-gnu | kopensolaris*-gnu)
16173      case $cc_basename in
16174      # old Intel for x86_64 which still supported -KPIC.
16175      ecc*)
16176	lt_prog_compiler_wl_FC='-Wl,'
16177	lt_prog_compiler_pic_FC='-KPIC'
16178	lt_prog_compiler_static_FC='-static'
16179        ;;
16180      # icc used to be incompatible with GCC.
16181      # ICC 10 doesn't accept -KPIC any more.
16182      icc* | ifort*)
16183	lt_prog_compiler_wl_FC='-Wl,'
16184	lt_prog_compiler_pic_FC='-fPIC'
16185	lt_prog_compiler_static_FC='-static'
16186        ;;
16187      # Lahey Fortran 8.1.
16188      lf95*)
16189	lt_prog_compiler_wl_FC='-Wl,'
16190	lt_prog_compiler_pic_FC='--shared'
16191	lt_prog_compiler_static_FC='--static'
16192	;;
16193      nagfor*)
16194	# NAG Fortran compiler
16195	lt_prog_compiler_wl_FC='-Wl,-Wl,,'
16196	lt_prog_compiler_pic_FC='-PIC'
16197	lt_prog_compiler_static_FC='-Bstatic'
16198	;;
16199      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16200        # Portland Group compilers (*not* the Pentium gcc compiler,
16201	# which looks to be a dead project)
16202	lt_prog_compiler_wl_FC='-Wl,'
16203	lt_prog_compiler_pic_FC='-fpic'
16204	lt_prog_compiler_static_FC='-Bstatic'
16205        ;;
16206      ccc*)
16207        lt_prog_compiler_wl_FC='-Wl,'
16208        # All Alpha code is PIC.
16209        lt_prog_compiler_static_FC='-non_shared'
16210        ;;
16211      xl* | bgxl* | bgf* | mpixl*)
16212	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16213	lt_prog_compiler_wl_FC='-Wl,'
16214	lt_prog_compiler_pic_FC='-qpic'
16215	lt_prog_compiler_static_FC='-qstaticlink'
16216	;;
16217      *)
16218	case `$CC -V 2>&1 | sed 5q` in
16219	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16220	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16221	  lt_prog_compiler_pic_FC='-KPIC'
16222	  lt_prog_compiler_static_FC='-Bstatic'
16223	  lt_prog_compiler_wl_FC=''
16224	  ;;
16225	*Sun\ F* | *Sun*Fortran*)
16226	  lt_prog_compiler_pic_FC='-KPIC'
16227	  lt_prog_compiler_static_FC='-Bstatic'
16228	  lt_prog_compiler_wl_FC='-Qoption ld '
16229	  ;;
16230	*Sun\ C*)
16231	  # Sun C 5.9
16232	  lt_prog_compiler_pic_FC='-KPIC'
16233	  lt_prog_compiler_static_FC='-Bstatic'
16234	  lt_prog_compiler_wl_FC='-Wl,'
16235	  ;;
16236        *Intel*\ [CF]*Compiler*)
16237	  lt_prog_compiler_wl_FC='-Wl,'
16238	  lt_prog_compiler_pic_FC='-fPIC'
16239	  lt_prog_compiler_static_FC='-static'
16240	  ;;
16241	*Portland\ Group*)
16242	  lt_prog_compiler_wl_FC='-Wl,'
16243	  lt_prog_compiler_pic_FC='-fpic'
16244	  lt_prog_compiler_static_FC='-Bstatic'
16245	  ;;
16246	esac
16247	;;
16248      esac
16249      ;;
16250
16251    newsos6)
16252      lt_prog_compiler_pic_FC='-KPIC'
16253      lt_prog_compiler_static_FC='-Bstatic'
16254      ;;
16255
16256    *nto* | *qnx*)
16257      # QNX uses GNU C++, but need to define -shared option too, otherwise
16258      # it will coredump.
16259      lt_prog_compiler_pic_FC='-fPIC -shared'
16260      ;;
16261
16262    osf3* | osf4* | osf5*)
16263      lt_prog_compiler_wl_FC='-Wl,'
16264      # All OSF/1 code is PIC.
16265      lt_prog_compiler_static_FC='-non_shared'
16266      ;;
16267
16268    rdos*)
16269      lt_prog_compiler_static_FC='-non_shared'
16270      ;;
16271
16272    solaris*)
16273      lt_prog_compiler_pic_FC='-KPIC'
16274      lt_prog_compiler_static_FC='-Bstatic'
16275      case $cc_basename in
16276      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16277	lt_prog_compiler_wl_FC='-Qoption ld ';;
16278      *)
16279	lt_prog_compiler_wl_FC='-Wl,';;
16280      esac
16281      ;;
16282
16283    sunos4*)
16284      lt_prog_compiler_wl_FC='-Qoption ld '
16285      lt_prog_compiler_pic_FC='-PIC'
16286      lt_prog_compiler_static_FC='-Bstatic'
16287      ;;
16288
16289    sysv4 | sysv4.2uw2* | sysv4.3*)
16290      lt_prog_compiler_wl_FC='-Wl,'
16291      lt_prog_compiler_pic_FC='-KPIC'
16292      lt_prog_compiler_static_FC='-Bstatic'
16293      ;;
16294
16295    sysv4*MP*)
16296      if test -d /usr/nec ;then
16297	lt_prog_compiler_pic_FC='-Kconform_pic'
16298	lt_prog_compiler_static_FC='-Bstatic'
16299      fi
16300      ;;
16301
16302    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16303      lt_prog_compiler_wl_FC='-Wl,'
16304      lt_prog_compiler_pic_FC='-KPIC'
16305      lt_prog_compiler_static_FC='-Bstatic'
16306      ;;
16307
16308    unicos*)
16309      lt_prog_compiler_wl_FC='-Wl,'
16310      lt_prog_compiler_can_build_shared_FC=no
16311      ;;
16312
16313    uts4*)
16314      lt_prog_compiler_pic_FC='-pic'
16315      lt_prog_compiler_static_FC='-Bstatic'
16316      ;;
16317
16318    *)
16319      lt_prog_compiler_can_build_shared_FC=no
16320      ;;
16321    esac
16322  fi
16323
16324case $host_os in
16325  # For platforms which do not support PIC, -DPIC is meaningless:
16326  *djgpp*)
16327    lt_prog_compiler_pic_FC=
16328    ;;
16329  *)
16330    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
16331    ;;
16332esac
16333
16334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16335$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16336if ${lt_cv_prog_compiler_pic_FC+:} false; then :
16337  $as_echo_n "(cached) " >&6
16338else
16339  lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
16340fi
16341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
16342$as_echo "$lt_cv_prog_compiler_pic_FC" >&6; }
16343lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
16344
16345#
16346# Check to make sure the PIC flag actually works.
16347#
16348if test -n "$lt_prog_compiler_pic_FC"; then
16349  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
16350$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
16351if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
16352  $as_echo_n "(cached) " >&6
16353else
16354  lt_cv_prog_compiler_pic_works_FC=no
16355   ac_outfile=conftest.$ac_objext
16356   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16357   lt_compiler_flag="$lt_prog_compiler_pic_FC"
16358   # Insert the option either (1) after the last *FLAGS variable, or
16359   # (2) before a word containing "conftest.", or (3) at the end.
16360   # Note that $ac_compile itself does not contain backslashes and begins
16361   # with a dollar sign (not a hyphen), so the echo should work correctly.
16362   # The option is referenced via a variable to avoid confusing sed.
16363   lt_compile=`echo "$ac_compile" | $SED \
16364   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16365   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16366   -e 's:$: $lt_compiler_flag:'`
16367   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16368   (eval "$lt_compile" 2>conftest.err)
16369   ac_status=$?
16370   cat conftest.err >&5
16371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372   if (exit $ac_status) && test -s "$ac_outfile"; then
16373     # The compiler can only warn and ignore the option if not recognized
16374     # So say no if there are warnings other than the usual output.
16375     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16376     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16377     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16378       lt_cv_prog_compiler_pic_works_FC=yes
16379     fi
16380   fi
16381   $RM conftest*
16382
16383fi
16384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
16385$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
16386
16387if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
16388    case $lt_prog_compiler_pic_FC in
16389     "" | " "*) ;;
16390     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
16391     esac
16392else
16393    lt_prog_compiler_pic_FC=
16394     lt_prog_compiler_can_build_shared_FC=no
16395fi
16396
16397fi
16398
16399
16400
16401
16402
16403#
16404# Check to make sure the static flag actually works.
16405#
16406wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
16407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16408$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16409if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
16410  $as_echo_n "(cached) " >&6
16411else
16412  lt_cv_prog_compiler_static_works_FC=no
16413   save_LDFLAGS="$LDFLAGS"
16414   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16415   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16416   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16417     # The linker can only warn and ignore the option if not recognized
16418     # So say no if there are warnings
16419     if test -s conftest.err; then
16420       # Append any errors to the config.log.
16421       cat conftest.err 1>&5
16422       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16423       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16424       if diff conftest.exp conftest.er2 >/dev/null; then
16425         lt_cv_prog_compiler_static_works_FC=yes
16426       fi
16427     else
16428       lt_cv_prog_compiler_static_works_FC=yes
16429     fi
16430   fi
16431   $RM -r conftest*
16432   LDFLAGS="$save_LDFLAGS"
16433
16434fi
16435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
16436$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
16437
16438if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
16439    :
16440else
16441    lt_prog_compiler_static_FC=
16442fi
16443
16444
16445
16446
16447    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16448$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16449if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
16450  $as_echo_n "(cached) " >&6
16451else
16452  lt_cv_prog_compiler_c_o_FC=no
16453   $RM -r conftest 2>/dev/null
16454   mkdir conftest
16455   cd conftest
16456   mkdir out
16457   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16458
16459   lt_compiler_flag="-o out/conftest2.$ac_objext"
16460   # Insert the option either (1) after the last *FLAGS variable, or
16461   # (2) before a word containing "conftest.", or (3) at the end.
16462   # Note that $ac_compile itself does not contain backslashes and begins
16463   # with a dollar sign (not a hyphen), so the echo should work correctly.
16464   lt_compile=`echo "$ac_compile" | $SED \
16465   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16466   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16467   -e 's:$: $lt_compiler_flag:'`
16468   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16469   (eval "$lt_compile" 2>out/conftest.err)
16470   ac_status=$?
16471   cat out/conftest.err >&5
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16474   then
16475     # The compiler can only warn and ignore the option if not recognized
16476     # So say no if there are warnings
16477     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16478     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16479     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16480       lt_cv_prog_compiler_c_o_FC=yes
16481     fi
16482   fi
16483   chmod u+w . 2>&5
16484   $RM conftest*
16485   # SGI C++ compiler will create directory out/ii_files/ for
16486   # template instantiation
16487   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16488   $RM out/* && rmdir out
16489   cd ..
16490   $RM -r conftest
16491   $RM conftest*
16492
16493fi
16494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
16495$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
16496
16497
16498
16499    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16500$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16501if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
16502  $as_echo_n "(cached) " >&6
16503else
16504  lt_cv_prog_compiler_c_o_FC=no
16505   $RM -r conftest 2>/dev/null
16506   mkdir conftest
16507   cd conftest
16508   mkdir out
16509   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16510
16511   lt_compiler_flag="-o out/conftest2.$ac_objext"
16512   # Insert the option either (1) after the last *FLAGS variable, or
16513   # (2) before a word containing "conftest.", or (3) at the end.
16514   # Note that $ac_compile itself does not contain backslashes and begins
16515   # with a dollar sign (not a hyphen), so the echo should work correctly.
16516   lt_compile=`echo "$ac_compile" | $SED \
16517   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16518   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16519   -e 's:$: $lt_compiler_flag:'`
16520   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16521   (eval "$lt_compile" 2>out/conftest.err)
16522   ac_status=$?
16523   cat out/conftest.err >&5
16524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16526   then
16527     # The compiler can only warn and ignore the option if not recognized
16528     # So say no if there are warnings
16529     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16530     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16531     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16532       lt_cv_prog_compiler_c_o_FC=yes
16533     fi
16534   fi
16535   chmod u+w . 2>&5
16536   $RM conftest*
16537   # SGI C++ compiler will create directory out/ii_files/ for
16538   # template instantiation
16539   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16540   $RM out/* && rmdir out
16541   cd ..
16542   $RM -r conftest
16543   $RM conftest*
16544
16545fi
16546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
16547$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
16548
16549
16550
16551
16552hard_links="nottested"
16553if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
16554  # do not overwrite the value of need_locks provided by the user
16555  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16556$as_echo_n "checking if we can lock with hard links... " >&6; }
16557  hard_links=yes
16558  $RM conftest*
16559  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16560  touch conftest.a
16561  ln conftest.a conftest.b 2>&5 || hard_links=no
16562  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16564$as_echo "$hard_links" >&6; }
16565  if test "$hard_links" = no; then
16566    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16567$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16568    need_locks=warn
16569  fi
16570else
16571  need_locks=no
16572fi
16573
16574
16575
16576    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16577$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16578
16579  runpath_var=
16580  allow_undefined_flag_FC=
16581  always_export_symbols_FC=no
16582  archive_cmds_FC=
16583  archive_expsym_cmds_FC=
16584  compiler_needs_object_FC=no
16585  enable_shared_with_static_runtimes_FC=no
16586  export_dynamic_flag_spec_FC=
16587  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16588  hardcode_automatic_FC=no
16589  hardcode_direct_FC=no
16590  hardcode_direct_absolute_FC=no
16591  hardcode_libdir_flag_spec_FC=
16592  hardcode_libdir_separator_FC=
16593  hardcode_minus_L_FC=no
16594  hardcode_shlibpath_var_FC=unsupported
16595  inherit_rpath_FC=no
16596  link_all_deplibs_FC=unknown
16597  module_cmds_FC=
16598  module_expsym_cmds_FC=
16599  old_archive_from_new_cmds_FC=
16600  old_archive_from_expsyms_cmds_FC=
16601  thread_safe_flag_spec_FC=
16602  whole_archive_flag_spec_FC=
16603  # include_expsyms should be a list of space-separated symbols to be *always*
16604  # included in the symbol list
16605  include_expsyms_FC=
16606  # exclude_expsyms can be an extended regexp of symbols to exclude
16607  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16608  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16609  # as well as any symbol that contains `d'.
16610  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16611  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16612  # platforms (ab)use it in PIC code, but their linkers get confused if
16613  # the symbol is explicitly referenced.  Since portable code cannot
16614  # rely on this symbol name, it's probably fine to never include it in
16615  # preloaded symbol tables.
16616  # Exclude shared library initialization/finalization symbols.
16617  extract_expsyms_cmds=
16618
16619  case $host_os in
16620  cygwin* | mingw* | pw32* | cegcc*)
16621    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16622    # When not using gcc, we currently assume that we are using
16623    # Microsoft Visual C++.
16624    if test "$GCC" != yes; then
16625      with_gnu_ld=no
16626    fi
16627    ;;
16628  interix*)
16629    # we just hope/assume this is gcc and not c89 (= MSVC++)
16630    with_gnu_ld=yes
16631    ;;
16632  openbsd*)
16633    with_gnu_ld=no
16634    ;;
16635  esac
16636
16637  ld_shlibs_FC=yes
16638
16639  # On some targets, GNU ld is compatible enough with the native linker
16640  # that we're better off using the native interface for both.
16641  lt_use_gnu_ld_interface=no
16642  if test "$with_gnu_ld" = yes; then
16643    case $host_os in
16644      aix*)
16645	# The AIX port of GNU ld has always aspired to compatibility
16646	# with the native linker.  However, as the warning in the GNU ld
16647	# block says, versions before 2.19.5* couldn't really create working
16648	# shared libraries, regardless of the interface used.
16649	case `$LD -v 2>&1` in
16650	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16651	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16652	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16653	  *)
16654	    lt_use_gnu_ld_interface=yes
16655	    ;;
16656	esac
16657	;;
16658      *)
16659	lt_use_gnu_ld_interface=yes
16660	;;
16661    esac
16662  fi
16663
16664  if test "$lt_use_gnu_ld_interface" = yes; then
16665    # If archive_cmds runs LD, not CC, wlarc should be empty
16666    wlarc='${wl}'
16667
16668    # Set some defaults for GNU ld with shared library support. These
16669    # are reset later if shared libraries are not supported. Putting them
16670    # here allows them to be overridden if necessary.
16671    runpath_var=LD_RUN_PATH
16672    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
16673    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
16674    # ancient GNU ld didn't support --whole-archive et. al.
16675    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16676      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16677    else
16678      whole_archive_flag_spec_FC=
16679    fi
16680    supports_anon_versioning=no
16681    case `$LD -v 2>&1` in
16682      *GNU\ gold*) supports_anon_versioning=yes ;;
16683      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16684      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16685      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16686      *\ 2.11.*) ;; # other 2.11 versions
16687      *) supports_anon_versioning=yes ;;
16688    esac
16689
16690    # See if GNU ld supports shared libraries.
16691    case $host_os in
16692    aix[3-9]*)
16693      # On AIX/PPC, the GNU linker is very broken
16694      if test "$host_cpu" != ia64; then
16695	ld_shlibs_FC=no
16696	cat <<_LT_EOF 1>&2
16697
16698*** Warning: the GNU linker, at least up to release 2.19, is reported
16699*** to be unable to reliably create shared libraries on AIX.
16700*** Therefore, libtool is disabling shared libraries support.  If you
16701*** really care for shared libraries, you may want to install binutils
16702*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16703*** You will then need to restart the configuration process.
16704
16705_LT_EOF
16706      fi
16707      ;;
16708
16709    amigaos*)
16710      case $host_cpu in
16711      powerpc)
16712            # see comment about AmigaOS4 .so support
16713            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16714            archive_expsym_cmds_FC=''
16715        ;;
16716      m68k)
16717            archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16718            hardcode_libdir_flag_spec_FC='-L$libdir'
16719            hardcode_minus_L_FC=yes
16720        ;;
16721      esac
16722      ;;
16723
16724    beos*)
16725      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16726	allow_undefined_flag_FC=unsupported
16727	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16728	# support --undefined.  This deserves some investigation.  FIXME
16729	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16730      else
16731	ld_shlibs_FC=no
16732      fi
16733      ;;
16734
16735    cygwin* | mingw* | pw32* | cegcc*)
16736      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
16737      # as there is no search path for DLLs.
16738      hardcode_libdir_flag_spec_FC='-L$libdir'
16739      export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
16740      allow_undefined_flag_FC=unsupported
16741      always_export_symbols_FC=no
16742      enable_shared_with_static_runtimes_FC=yes
16743      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16744      exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16745
16746      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16747        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16748	# If the export-symbols file already is a .def file (1st line
16749	# is EXPORTS), use it as is; otherwise, prepend...
16750	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16751	  cp $export_symbols $output_objdir/$soname.def;
16752	else
16753	  echo EXPORTS > $output_objdir/$soname.def;
16754	  cat $export_symbols >> $output_objdir/$soname.def;
16755	fi~
16756	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16757      else
16758	ld_shlibs_FC=no
16759      fi
16760      ;;
16761
16762    haiku*)
16763      archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16764      link_all_deplibs_FC=yes
16765      ;;
16766
16767    interix[3-9]*)
16768      hardcode_direct_FC=no
16769      hardcode_shlibpath_var_FC=no
16770      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
16771      export_dynamic_flag_spec_FC='${wl}-E'
16772      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16773      # Instead, shared libraries are loaded at an image base (0x10000000 by
16774      # default) and relocated if they conflict, which is a slow very memory
16775      # consuming and fragmenting process.  To avoid this, we pick a random,
16776      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16777      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16778      archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16779      archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16780      ;;
16781
16782    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16783      tmp_diet=no
16784      if test "$host_os" = linux-dietlibc; then
16785	case $cc_basename in
16786	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16787	esac
16788      fi
16789      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16790	 && test "$tmp_diet" = no
16791      then
16792	tmp_addflag=' $pic_flag'
16793	tmp_sharedflag='-shared'
16794	case $cc_basename,$host_cpu in
16795        pgcc*)				# Portland Group C compiler
16796	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16797	  tmp_addflag=' $pic_flag'
16798	  ;;
16799	pgf77* | pgf90* | pgf95* | pgfortran*)
16800					# Portland Group f77 and f90 compilers
16801	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16802	  tmp_addflag=' $pic_flag -Mnomain' ;;
16803	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16804	  tmp_addflag=' -i_dynamic' ;;
16805	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16806	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16807	ifc* | ifort*)			# Intel Fortran compiler
16808	  tmp_addflag=' -nofor_main' ;;
16809	lf95*)				# Lahey Fortran 8.1
16810	  whole_archive_flag_spec_FC=
16811	  tmp_sharedflag='--shared' ;;
16812	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16813	  tmp_sharedflag='-qmkshrobj'
16814	  tmp_addflag= ;;
16815	nvcc*)	# Cuda Compiler Driver 2.2
16816	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16817	  compiler_needs_object_FC=yes
16818	  ;;
16819	esac
16820	case `$CC -V 2>&1 | sed 5q` in
16821	*Sun\ C*)			# Sun C 5.9
16822	  whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16823	  compiler_needs_object_FC=yes
16824	  tmp_sharedflag='-G' ;;
16825	*Sun\ F*)			# Sun Fortran 8.3
16826	  tmp_sharedflag='-G' ;;
16827	esac
16828	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16829
16830        if test "x$supports_anon_versioning" = xyes; then
16831          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
16832	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16833	    echo "local: *; };" >> $output_objdir/$libname.ver~
16834	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16835        fi
16836
16837	case $cc_basename in
16838	xlf* | bgf* | bgxlf* | mpixlf*)
16839	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16840	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
16841	  hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
16842	  archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16843	  if test "x$supports_anon_versioning" = xyes; then
16844	    archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
16845	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16846	      echo "local: *; };" >> $output_objdir/$libname.ver~
16847	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16848	  fi
16849	  ;;
16850	esac
16851      else
16852        ld_shlibs_FC=no
16853      fi
16854      ;;
16855
16856    netbsd*)
16857      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16858	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16859	wlarc=
16860      else
16861	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16862	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16863      fi
16864      ;;
16865
16866    solaris*)
16867      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16868	ld_shlibs_FC=no
16869	cat <<_LT_EOF 1>&2
16870
16871*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16872*** create shared libraries on Solaris systems.  Therefore, libtool
16873*** is disabling shared libraries support.  We urge you to upgrade GNU
16874*** binutils to release 2.9.1 or newer.  Another option is to modify
16875*** your PATH or compiler configuration so that the native linker is
16876*** used, and then restart.
16877
16878_LT_EOF
16879      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16880	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16881	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16882      else
16883	ld_shlibs_FC=no
16884      fi
16885      ;;
16886
16887    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16888      case `$LD -v 2>&1` in
16889        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16890	ld_shlibs_FC=no
16891	cat <<_LT_EOF 1>&2
16892
16893*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16894*** reliably create shared libraries on SCO systems.  Therefore, libtool
16895*** is disabling shared libraries support.  We urge you to upgrade GNU
16896*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16897*** your PATH or compiler configuration so that the native linker is
16898*** used, and then restart.
16899
16900_LT_EOF
16901	;;
16902	*)
16903	  # For security reasons, it is highly recommended that you always
16904	  # use absolute paths for naming shared libraries, and exclude the
16905	  # DT_RUNPATH tag from executables and libraries.  But doing so
16906	  # requires that you compile everything twice, which is a pain.
16907	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16908	    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
16909	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16910	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16911	  else
16912	    ld_shlibs_FC=no
16913	  fi
16914	;;
16915      esac
16916      ;;
16917
16918    sunos4*)
16919      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16920      wlarc=
16921      hardcode_direct_FC=yes
16922      hardcode_shlibpath_var_FC=no
16923      ;;
16924
16925    *)
16926      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16927	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16928	archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16929      else
16930	ld_shlibs_FC=no
16931      fi
16932      ;;
16933    esac
16934
16935    if test "$ld_shlibs_FC" = no; then
16936      runpath_var=
16937      hardcode_libdir_flag_spec_FC=
16938      export_dynamic_flag_spec_FC=
16939      whole_archive_flag_spec_FC=
16940    fi
16941  else
16942    # PORTME fill in a description of your system's linker (not GNU ld)
16943    case $host_os in
16944    aix3*)
16945      allow_undefined_flag_FC=unsupported
16946      always_export_symbols_FC=yes
16947      archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16948      # Note: this linker hardcodes the directories in LIBPATH if there
16949      # are no directories specified by -L.
16950      hardcode_minus_L_FC=yes
16951      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16952	# Neither direct hardcoding nor static linking is supported with a
16953	# broken collect2.
16954	hardcode_direct_FC=unsupported
16955      fi
16956      ;;
16957
16958    aix[4-9]*)
16959      if test "$host_cpu" = ia64; then
16960	# On IA64, the linker does run time linking by default, so we don't
16961	# have to do anything special.
16962	aix_use_runtimelinking=no
16963	exp_sym_flag='-Bexport'
16964	no_entry_flag=""
16965      else
16966	# If we're using GNU nm, then we don't want the "-C" option.
16967	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16968	# Also, AIX nm treats weak defined symbols like other global
16969	# defined symbols, whereas GNU nm marks them as "W".
16970	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16971	  export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16972	else
16973	  export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16974	fi
16975	aix_use_runtimelinking=no
16976
16977	# Test if we are trying to use run time linking or normal
16978	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16979	# need to do runtime linking.
16980	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16981	  for ld_flag in $LDFLAGS; do
16982	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16983	    aix_use_runtimelinking=yes
16984	    break
16985	  fi
16986	  done
16987	  ;;
16988	esac
16989
16990	exp_sym_flag='-bexport'
16991	no_entry_flag='-bnoentry'
16992      fi
16993
16994      # When large executables or shared objects are built, AIX ld can
16995      # have problems creating the table of contents.  If linking a library
16996      # or program results in "error TOC overflow" add -mminimal-toc to
16997      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16998      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16999
17000      archive_cmds_FC=''
17001      hardcode_direct_FC=yes
17002      hardcode_direct_absolute_FC=yes
17003      hardcode_libdir_separator_FC=':'
17004      link_all_deplibs_FC=yes
17005      file_list_spec_FC='${wl}-f,'
17006
17007      if test "$GCC" = yes; then
17008	case $host_os in aix4.[012]|aix4.[012].*)
17009	# We only want to do this on AIX 4.2 and lower, the check
17010	# below for broken collect2 doesn't work under 4.3+
17011	  collect2name=`${CC} -print-prog-name=collect2`
17012	  if test -f "$collect2name" &&
17013	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17014	  then
17015	  # We have reworked collect2
17016	  :
17017	  else
17018	  # We have old collect2
17019	  hardcode_direct_FC=unsupported
17020	  # It fails to find uninstalled libraries when the uninstalled
17021	  # path is not listed in the libpath.  Setting hardcode_minus_L
17022	  # to unsupported forces relinking
17023	  hardcode_minus_L_FC=yes
17024	  hardcode_libdir_flag_spec_FC='-L$libdir'
17025	  hardcode_libdir_separator_FC=
17026	  fi
17027	  ;;
17028	esac
17029	shared_flag='-shared'
17030	if test "$aix_use_runtimelinking" = yes; then
17031	  shared_flag="$shared_flag "'${wl}-G'
17032	fi
17033      else
17034	# not using gcc
17035	if test "$host_cpu" = ia64; then
17036	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17037	# chokes on -Wl,-G. The following line is correct:
17038	  shared_flag='-G'
17039	else
17040	  if test "$aix_use_runtimelinking" = yes; then
17041	    shared_flag='${wl}-G'
17042	  else
17043	    shared_flag='${wl}-bM:SRE'
17044	  fi
17045	fi
17046      fi
17047
17048      export_dynamic_flag_spec_FC='${wl}-bexpall'
17049      # It seems that -bexpall does not export symbols beginning with
17050      # underscore (_), so it is better to generate a list of symbols to export.
17051      always_export_symbols_FC=yes
17052      if test "$aix_use_runtimelinking" = yes; then
17053	# Warning - without using the other runtime loading flags (-brtl),
17054	# -berok will link without error, but may produce a broken library.
17055	allow_undefined_flag_FC='-berok'
17056        # Determine the default libpath from the value encoded in an
17057        # empty executable.
17058        if test "${lt_cv_aix_libpath+set}" = set; then
17059  aix_libpath=$lt_cv_aix_libpath
17060else
17061  if ${lt_cv_aix_libpath__FC+:} false; then :
17062  $as_echo_n "(cached) " >&6
17063else
17064  cat > conftest.$ac_ext <<_ACEOF
17065      program main
17066
17067      end
17068_ACEOF
17069if ac_fn_fc_try_link "$LINENO"; then :
17070
17071  lt_aix_libpath_sed='
17072      /Import File Strings/,/^$/ {
17073	  /^0/ {
17074	      s/^0  *\([^ ]*\) *$/\1/
17075	      p
17076	  }
17077      }'
17078  lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17079  # Check for a 64-bit object if we didn't find anything.
17080  if test -z "$lt_cv_aix_libpath__FC"; then
17081    lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17082  fi
17083fi
17084rm -f core conftest.err conftest.$ac_objext \
17085    conftest$ac_exeext conftest.$ac_ext
17086  if test -z "$lt_cv_aix_libpath__FC"; then
17087    lt_cv_aix_libpath__FC="/usr/lib:/lib"
17088  fi
17089
17090fi
17091
17092  aix_libpath=$lt_cv_aix_libpath__FC
17093fi
17094
17095        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
17096        archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17097      else
17098	if test "$host_cpu" = ia64; then
17099	  hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
17100	  allow_undefined_flag_FC="-z nodefs"
17101	  archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17102	else
17103	 # Determine the default libpath from the value encoded in an
17104	 # empty executable.
17105	 if test "${lt_cv_aix_libpath+set}" = set; then
17106  aix_libpath=$lt_cv_aix_libpath
17107else
17108  if ${lt_cv_aix_libpath__FC+:} false; then :
17109  $as_echo_n "(cached) " >&6
17110else
17111  cat > conftest.$ac_ext <<_ACEOF
17112      program main
17113
17114      end
17115_ACEOF
17116if ac_fn_fc_try_link "$LINENO"; then :
17117
17118  lt_aix_libpath_sed='
17119      /Import File Strings/,/^$/ {
17120	  /^0/ {
17121	      s/^0  *\([^ ]*\) *$/\1/
17122	      p
17123	  }
17124      }'
17125  lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17126  # Check for a 64-bit object if we didn't find anything.
17127  if test -z "$lt_cv_aix_libpath__FC"; then
17128    lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17129  fi
17130fi
17131rm -f core conftest.err conftest.$ac_objext \
17132    conftest$ac_exeext conftest.$ac_ext
17133  if test -z "$lt_cv_aix_libpath__FC"; then
17134    lt_cv_aix_libpath__FC="/usr/lib:/lib"
17135  fi
17136
17137fi
17138
17139  aix_libpath=$lt_cv_aix_libpath__FC
17140fi
17141
17142	 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
17143	  # Warning - without using the other run time loading flags,
17144	  # -berok will link without error, but may produce a broken library.
17145	  no_undefined_flag_FC=' ${wl}-bernotok'
17146	  allow_undefined_flag_FC=' ${wl}-berok'
17147	  if test "$with_gnu_ld" = yes; then
17148	    # We only use this code for GNU lds that support --whole-archive.
17149	    whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17150	  else
17151	    # Exported symbols can be pulled into shared objects from archives
17152	    whole_archive_flag_spec_FC='$convenience'
17153	  fi
17154	  archive_cmds_need_lc_FC=yes
17155	  # This is similar to how AIX traditionally builds its shared libraries.
17156	  archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17157	fi
17158      fi
17159      ;;
17160
17161    amigaos*)
17162      case $host_cpu in
17163      powerpc)
17164            # see comment about AmigaOS4 .so support
17165            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17166            archive_expsym_cmds_FC=''
17167        ;;
17168      m68k)
17169            archive_cmds_FC='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17170            hardcode_libdir_flag_spec_FC='-L$libdir'
17171            hardcode_minus_L_FC=yes
17172        ;;
17173      esac
17174      ;;
17175
17176    bsdi[45]*)
17177      export_dynamic_flag_spec_FC=-rdynamic
17178      ;;
17179
17180    cygwin* | mingw* | pw32* | cegcc*)
17181      # When not using gcc, we currently assume that we are using
17182      # Microsoft Visual C++.
17183      # hardcode_libdir_flag_spec is actually meaningless, as there is
17184      # no search path for DLLs.
17185      case $cc_basename in
17186      cl*)
17187	# Native MSVC
17188	hardcode_libdir_flag_spec_FC=' '
17189	allow_undefined_flag_FC=unsupported
17190	always_export_symbols_FC=yes
17191	file_list_spec_FC='@'
17192	# Tell ltmain to make .lib files, not .a files.
17193	libext=lib
17194	# Tell ltmain to make .dll files, not .so files.
17195	shrext_cmds=".dll"
17196	# FIXME: Setting linknames here is a bad hack.
17197	archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17198	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17199	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17200	  else
17201	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17202	  fi~
17203	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17204	  linknames='
17205	# The linker will not automatically build a static lib if we build a DLL.
17206	# _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
17207	enable_shared_with_static_runtimes_FC=yes
17208	exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17209	export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17210	# Don't use ranlib
17211	old_postinstall_cmds_FC='chmod 644 $oldlib'
17212	postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
17213	  lt_tool_outputfile="@TOOL_OUTPUT@"~
17214	  case $lt_outputfile in
17215	    *.exe|*.EXE) ;;
17216	    *)
17217	      lt_outputfile="$lt_outputfile.exe"
17218	      lt_tool_outputfile="$lt_tool_outputfile.exe"
17219	      ;;
17220	  esac~
17221	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17222	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17223	    $RM "$lt_outputfile.manifest";
17224	  fi'
17225	;;
17226      *)
17227	# Assume MSVC wrapper
17228	hardcode_libdir_flag_spec_FC=' '
17229	allow_undefined_flag_FC=unsupported
17230	# Tell ltmain to make .lib files, not .a files.
17231	libext=lib
17232	# Tell ltmain to make .dll files, not .so files.
17233	shrext_cmds=".dll"
17234	# FIXME: Setting linknames here is a bad hack.
17235	archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17236	# The linker will automatically build a .lib file if we build a DLL.
17237	old_archive_from_new_cmds_FC='true'
17238	# FIXME: Should let the user specify the lib program.
17239	old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
17240	enable_shared_with_static_runtimes_FC=yes
17241	;;
17242      esac
17243      ;;
17244
17245    darwin* | rhapsody*)
17246
17247
17248  archive_cmds_need_lc_FC=no
17249  hardcode_direct_FC=no
17250  hardcode_automatic_FC=yes
17251  hardcode_shlibpath_var_FC=unsupported
17252  if test "$lt_cv_ld_force_load" = "yes"; then
17253    whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17254    compiler_needs_object_FC=yes
17255  else
17256    whole_archive_flag_spec_FC=''
17257  fi
17258  link_all_deplibs_FC=yes
17259  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
17260  case $cc_basename in
17261     ifort*) _lt_dar_can_shared=yes ;;
17262     *) _lt_dar_can_shared=$GCC ;;
17263  esac
17264  if test "$_lt_dar_can_shared" = "yes"; then
17265    output_verbose_link_cmd=func_echo_all
17266    archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17267    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17268    archive_expsym_cmds_FC="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17269    module_expsym_cmds_FC="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17270
17271  else
17272  ld_shlibs_FC=no
17273  fi
17274
17275      ;;
17276
17277    dgux*)
17278      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17279      hardcode_libdir_flag_spec_FC='-L$libdir'
17280      hardcode_shlibpath_var_FC=no
17281      ;;
17282
17283    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17284    # support.  Future versions do this automatically, but an explicit c++rt0.o
17285    # does not break anything, and helps significantly (at the cost of a little
17286    # extra space).
17287    freebsd2.2*)
17288      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17289      hardcode_libdir_flag_spec_FC='-R$libdir'
17290      hardcode_direct_FC=yes
17291      hardcode_shlibpath_var_FC=no
17292      ;;
17293
17294    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17295    freebsd2.*)
17296      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17297      hardcode_direct_FC=yes
17298      hardcode_minus_L_FC=yes
17299      hardcode_shlibpath_var_FC=no
17300      ;;
17301
17302    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17303    freebsd* | dragonfly*)
17304      archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17305      hardcode_libdir_flag_spec_FC='-R$libdir'
17306      hardcode_direct_FC=yes
17307      hardcode_shlibpath_var_FC=no
17308      ;;
17309
17310    hpux9*)
17311      if test "$GCC" = yes; then
17312	archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17313      else
17314	archive_cmds_FC='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17315      fi
17316      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
17317      hardcode_libdir_separator_FC=:
17318      hardcode_direct_FC=yes
17319
17320      # hardcode_minus_L: Not really in the search PATH,
17321      # but as the default location of the library.
17322      hardcode_minus_L_FC=yes
17323      export_dynamic_flag_spec_FC='${wl}-E'
17324      ;;
17325
17326    hpux10*)
17327      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17328	archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17329      else
17330	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17331      fi
17332      if test "$with_gnu_ld" = no; then
17333	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
17334	hardcode_libdir_separator_FC=:
17335	hardcode_direct_FC=yes
17336	hardcode_direct_absolute_FC=yes
17337	export_dynamic_flag_spec_FC='${wl}-E'
17338	# hardcode_minus_L: Not really in the search PATH,
17339	# but as the default location of the library.
17340	hardcode_minus_L_FC=yes
17341      fi
17342      ;;
17343
17344    hpux11*)
17345      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17346	case $host_cpu in
17347	hppa*64*)
17348	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17349	  ;;
17350	ia64*)
17351	  archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17352	  ;;
17353	*)
17354	  archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17355	  ;;
17356	esac
17357      else
17358	case $host_cpu in
17359	hppa*64*)
17360	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17361	  ;;
17362	ia64*)
17363	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17364	  ;;
17365	*)
17366	archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17367	  ;;
17368	esac
17369      fi
17370      if test "$with_gnu_ld" = no; then
17371	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
17372	hardcode_libdir_separator_FC=:
17373
17374	case $host_cpu in
17375	hppa*64*|ia64*)
17376	  hardcode_direct_FC=no
17377	  hardcode_shlibpath_var_FC=no
17378	  ;;
17379	*)
17380	  hardcode_direct_FC=yes
17381	  hardcode_direct_absolute_FC=yes
17382	  export_dynamic_flag_spec_FC='${wl}-E'
17383
17384	  # hardcode_minus_L: Not really in the search PATH,
17385	  # but as the default location of the library.
17386	  hardcode_minus_L_FC=yes
17387	  ;;
17388	esac
17389      fi
17390      ;;
17391
17392    irix5* | irix6* | nonstopux*)
17393      if test "$GCC" = yes; then
17394	archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17395	# Try to use the -exported_symbol ld option, if it does not
17396	# work, assume that -exports_file does not work either and
17397	# implicitly export all symbols.
17398	# This should be the same for all languages, so no per-tag cache variable.
17399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17400$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17401if ${lt_cv_irix_exported_symbol+:} false; then :
17402  $as_echo_n "(cached) " >&6
17403else
17404  save_LDFLAGS="$LDFLAGS"
17405	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17406	   cat > conftest.$ac_ext <<_ACEOF
17407
17408      subroutine foo
17409      end
17410_ACEOF
17411if ac_fn_fc_try_link "$LINENO"; then :
17412  lt_cv_irix_exported_symbol=yes
17413else
17414  lt_cv_irix_exported_symbol=no
17415fi
17416rm -f core conftest.err conftest.$ac_objext \
17417    conftest$ac_exeext conftest.$ac_ext
17418           LDFLAGS="$save_LDFLAGS"
17419fi
17420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17421$as_echo "$lt_cv_irix_exported_symbol" >&6; }
17422	if test "$lt_cv_irix_exported_symbol" = yes; then
17423          archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
17424	fi
17425      else
17426	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17427	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
17428      fi
17429      archive_cmds_need_lc_FC='no'
17430      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
17431      hardcode_libdir_separator_FC=:
17432      inherit_rpath_FC=yes
17433      link_all_deplibs_FC=yes
17434      ;;
17435
17436    netbsd*)
17437      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17438	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17439      else
17440	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17441      fi
17442      hardcode_libdir_flag_spec_FC='-R$libdir'
17443      hardcode_direct_FC=yes
17444      hardcode_shlibpath_var_FC=no
17445      ;;
17446
17447    newsos6)
17448      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17449      hardcode_direct_FC=yes
17450      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
17451      hardcode_libdir_separator_FC=:
17452      hardcode_shlibpath_var_FC=no
17453      ;;
17454
17455    *nto* | *qnx*)
17456      ;;
17457
17458    openbsd*)
17459      if test -f /usr/libexec/ld.so; then
17460	hardcode_direct_FC=yes
17461	hardcode_shlibpath_var_FC=no
17462	hardcode_direct_absolute_FC=yes
17463	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17464	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17465	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17466	  hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
17467	  export_dynamic_flag_spec_FC='${wl}-E'
17468	else
17469	  case $host_os in
17470	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17471	     archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17472	     hardcode_libdir_flag_spec_FC='-R$libdir'
17473	     ;;
17474	   *)
17475	     archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17476	     hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
17477	     ;;
17478	  esac
17479	fi
17480      else
17481	ld_shlibs_FC=no
17482      fi
17483      ;;
17484
17485    os2*)
17486      hardcode_libdir_flag_spec_FC='-L$libdir'
17487      hardcode_minus_L_FC=yes
17488      allow_undefined_flag_FC=unsupported
17489      archive_cmds_FC='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17490      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17491      ;;
17492
17493    osf3*)
17494      if test "$GCC" = yes; then
17495	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
17496	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17497      else
17498	allow_undefined_flag_FC=' -expect_unresolved \*'
17499	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17500      fi
17501      archive_cmds_need_lc_FC='no'
17502      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
17503      hardcode_libdir_separator_FC=:
17504      ;;
17505
17506    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17507      if test "$GCC" = yes; then
17508	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
17509	archive_cmds_FC='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17510	hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
17511      else
17512	allow_undefined_flag_FC=' -expect_unresolved \*'
17513	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17514	archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
17515	$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'
17516
17517	# Both c and cxx compiler support -rpath directly
17518	hardcode_libdir_flag_spec_FC='-rpath $libdir'
17519      fi
17520      archive_cmds_need_lc_FC='no'
17521      hardcode_libdir_separator_FC=:
17522      ;;
17523
17524    solaris*)
17525      no_undefined_flag_FC=' -z defs'
17526      if test "$GCC" = yes; then
17527	wlarc='${wl}'
17528	archive_cmds_FC='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17529	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17530	  $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'
17531      else
17532	case `$CC -V 2>&1` in
17533	*"Compilers 5.0"*)
17534	  wlarc=''
17535	  archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17536	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17537	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17538	  ;;
17539	*)
17540	  wlarc='${wl}'
17541	  archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17542	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17543	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17544	  ;;
17545	esac
17546      fi
17547      hardcode_libdir_flag_spec_FC='-R$libdir'
17548      hardcode_shlibpath_var_FC=no
17549      case $host_os in
17550      solaris2.[0-5] | solaris2.[0-5].*) ;;
17551      *)
17552	# The compiler driver will combine and reorder linker options,
17553	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17554	# but is careful enough not to reorder.
17555	# Supported since Solaris 2.6 (maybe 2.5.1?)
17556	if test "$GCC" = yes; then
17557	  whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17558	else
17559	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
17560	fi
17561	;;
17562      esac
17563      link_all_deplibs_FC=yes
17564      ;;
17565
17566    sunos4*)
17567      if test "x$host_vendor" = xsequent; then
17568	# Use $CC to link under sequent, because it throws in some extra .o
17569	# files that make .init and .fini sections work.
17570	archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17571      else
17572	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17573      fi
17574      hardcode_libdir_flag_spec_FC='-L$libdir'
17575      hardcode_direct_FC=yes
17576      hardcode_minus_L_FC=yes
17577      hardcode_shlibpath_var_FC=no
17578      ;;
17579
17580    sysv4)
17581      case $host_vendor in
17582	sni)
17583	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17584	  hardcode_direct_FC=yes # is this really true???
17585	;;
17586	siemens)
17587	  ## LD is ld it makes a PLAMLIB
17588	  ## CC just makes a GrossModule.
17589	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17590	  reload_cmds_FC='$CC -r -o $output$reload_objs'
17591	  hardcode_direct_FC=no
17592        ;;
17593	motorola)
17594	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17595	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
17596	;;
17597      esac
17598      runpath_var='LD_RUN_PATH'
17599      hardcode_shlibpath_var_FC=no
17600      ;;
17601
17602    sysv4.3*)
17603      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17604      hardcode_shlibpath_var_FC=no
17605      export_dynamic_flag_spec_FC='-Bexport'
17606      ;;
17607
17608    sysv4*MP*)
17609      if test -d /usr/nec; then
17610	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17611	hardcode_shlibpath_var_FC=no
17612	runpath_var=LD_RUN_PATH
17613	hardcode_runpath_var=yes
17614	ld_shlibs_FC=yes
17615      fi
17616      ;;
17617
17618    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17619      no_undefined_flag_FC='${wl}-z,text'
17620      archive_cmds_need_lc_FC=no
17621      hardcode_shlibpath_var_FC=no
17622      runpath_var='LD_RUN_PATH'
17623
17624      if test "$GCC" = yes; then
17625	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17626	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17627      else
17628	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17629	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17630      fi
17631      ;;
17632
17633    sysv5* | sco3.2v5* | sco5v6*)
17634      # Note: We can NOT use -z defs as we might desire, because we do not
17635      # link with -lc, and that would cause any symbols used from libc to
17636      # always be unresolved, which means just about no library would
17637      # ever link correctly.  If we're not using GNU ld we use -z text
17638      # though, which does catch some bad symbols but isn't as heavy-handed
17639      # as -z defs.
17640      no_undefined_flag_FC='${wl}-z,text'
17641      allow_undefined_flag_FC='${wl}-z,nodefs'
17642      archive_cmds_need_lc_FC=no
17643      hardcode_shlibpath_var_FC=no
17644      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
17645      hardcode_libdir_separator_FC=':'
17646      link_all_deplibs_FC=yes
17647      export_dynamic_flag_spec_FC='${wl}-Bexport'
17648      runpath_var='LD_RUN_PATH'
17649
17650      if test "$GCC" = yes; then
17651	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17652	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17653      else
17654	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17655	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17656      fi
17657      ;;
17658
17659    uts4*)
17660      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17661      hardcode_libdir_flag_spec_FC='-L$libdir'
17662      hardcode_shlibpath_var_FC=no
17663      ;;
17664
17665    *)
17666      ld_shlibs_FC=no
17667      ;;
17668    esac
17669
17670    if test x$host_vendor = xsni; then
17671      case $host in
17672      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17673	export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
17674	;;
17675      esac
17676    fi
17677  fi
17678
17679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
17680$as_echo "$ld_shlibs_FC" >&6; }
17681test "$ld_shlibs_FC" = no && can_build_shared=no
17682
17683with_gnu_ld_FC=$with_gnu_ld
17684
17685
17686
17687
17688
17689
17690#
17691# Do we need to explicitly link libc?
17692#
17693case "x$archive_cmds_need_lc_FC" in
17694x|xyes)
17695  # Assume -lc should be added
17696  archive_cmds_need_lc_FC=yes
17697
17698  if test "$enable_shared" = yes && test "$GCC" = yes; then
17699    case $archive_cmds_FC in
17700    *'~'*)
17701      # FIXME: we may have to deal with multi-command sequences.
17702      ;;
17703    '$CC '*)
17704      # Test whether the compiler implicitly links with -lc since on some
17705      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17706      # to ld, don't add -lc before -lgcc.
17707      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17708$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17709if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
17710  $as_echo_n "(cached) " >&6
17711else
17712  $RM conftest*
17713	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17714
17715	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17716  (eval $ac_compile) 2>&5
17717  ac_status=$?
17718  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17719  test $ac_status = 0; } 2>conftest.err; then
17720	  soname=conftest
17721	  lib=conftest
17722	  libobjs=conftest.$ac_objext
17723	  deplibs=
17724	  wl=$lt_prog_compiler_wl_FC
17725	  pic_flag=$lt_prog_compiler_pic_FC
17726	  compiler_flags=-v
17727	  linker_flags=-v
17728	  verstring=
17729	  output_objdir=.
17730	  libname=conftest
17731	  lt_save_allow_undefined_flag=$allow_undefined_flag_FC
17732	  allow_undefined_flag_FC=
17733	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17734  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17735  ac_status=$?
17736  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17737  test $ac_status = 0; }
17738	  then
17739	    lt_cv_archive_cmds_need_lc_FC=no
17740	  else
17741	    lt_cv_archive_cmds_need_lc_FC=yes
17742	  fi
17743	  allow_undefined_flag_FC=$lt_save_allow_undefined_flag
17744	else
17745	  cat conftest.err 1>&5
17746	fi
17747	$RM conftest*
17748
17749fi
17750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
17751$as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
17752      archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
17753      ;;
17754    esac
17755  fi
17756  ;;
17757esac
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17821$as_echo_n "checking dynamic linker characteristics... " >&6; }
17822
17823library_names_spec=
17824libname_spec='lib$name'
17825soname_spec=
17826shrext_cmds=".so"
17827postinstall_cmds=
17828postuninstall_cmds=
17829finish_cmds=
17830finish_eval=
17831shlibpath_var=
17832shlibpath_overrides_runpath=unknown
17833version_type=none
17834dynamic_linker="$host_os ld.so"
17835sys_lib_dlsearch_path_spec="/lib /usr/lib"
17836need_lib_prefix=unknown
17837hardcode_into_libs=no
17838
17839# when you set need_version to no, make sure it does not cause -set_version
17840# flags to be left without arguments
17841need_version=unknown
17842
17843case $host_os in
17844aix3*)
17845  version_type=linux # correct to gnu/linux during the next big refactor
17846  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17847  shlibpath_var=LIBPATH
17848
17849  # AIX 3 has no versioning support, so we append a major version to the name.
17850  soname_spec='${libname}${release}${shared_ext}$major'
17851  ;;
17852
17853aix[4-9]*)
17854  version_type=linux # correct to gnu/linux during the next big refactor
17855  need_lib_prefix=no
17856  need_version=no
17857  hardcode_into_libs=yes
17858  if test "$host_cpu" = ia64; then
17859    # AIX 5 supports IA64
17860    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17861    shlibpath_var=LD_LIBRARY_PATH
17862  else
17863    # With GCC up to 2.95.x, collect2 would create an import file
17864    # for dependence libraries.  The import file would start with
17865    # the line `#! .'.  This would cause the generated library to
17866    # depend on `.', always an invalid library.  This was fixed in
17867    # development snapshots of GCC prior to 3.0.
17868    case $host_os in
17869      aix4 | aix4.[01] | aix4.[01].*)
17870      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17871	   echo ' yes '
17872	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17873	:
17874      else
17875	can_build_shared=no
17876      fi
17877      ;;
17878    esac
17879    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17880    # soname into executable. Probably we can add versioning support to
17881    # collect2, so additional links can be useful in future.
17882    if test "$aix_use_runtimelinking" = yes; then
17883      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17884      # instead of lib<name>.a to let people know that these are not
17885      # typical AIX shared libraries.
17886      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17887    else
17888      # We preserve .a as extension for shared libraries through AIX4.2
17889      # and later when we are not doing run time linking.
17890      library_names_spec='${libname}${release}.a $libname.a'
17891      soname_spec='${libname}${release}${shared_ext}$major'
17892    fi
17893    shlibpath_var=LIBPATH
17894  fi
17895  ;;
17896
17897amigaos*)
17898  case $host_cpu in
17899  powerpc)
17900    # Since July 2007 AmigaOS4 officially supports .so libraries.
17901    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17902    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17903    ;;
17904  m68k)
17905    library_names_spec='$libname.ixlibrary $libname.a'
17906    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17907    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
17908    ;;
17909  esac
17910  ;;
17911
17912beos*)
17913  library_names_spec='${libname}${shared_ext}'
17914  dynamic_linker="$host_os ld.so"
17915  shlibpath_var=LIBRARY_PATH
17916  ;;
17917
17918bsdi[45]*)
17919  version_type=linux # correct to gnu/linux during the next big refactor
17920  need_version=no
17921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17922  soname_spec='${libname}${release}${shared_ext}$major'
17923  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17924  shlibpath_var=LD_LIBRARY_PATH
17925  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17926  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17927  # the default ld.so.conf also contains /usr/contrib/lib and
17928  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17929  # libtool to hard-code these into programs
17930  ;;
17931
17932cygwin* | mingw* | pw32* | cegcc*)
17933  version_type=windows
17934  shrext_cmds=".dll"
17935  need_version=no
17936  need_lib_prefix=no
17937
17938  case $GCC,$cc_basename in
17939  yes,*)
17940    # gcc
17941    library_names_spec='$libname.dll.a'
17942    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17943    postinstall_cmds='base_file=`basename \${file}`~
17944      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17945      dldir=$destdir/`dirname \$dlpath`~
17946      test -d \$dldir || mkdir -p \$dldir~
17947      $install_prog $dir/$dlname \$dldir/$dlname~
17948      chmod a+x \$dldir/$dlname~
17949      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17950        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17951      fi'
17952    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17953      dlpath=$dir/\$dldll~
17954       $RM \$dlpath'
17955    shlibpath_overrides_runpath=yes
17956
17957    case $host_os in
17958    cygwin*)
17959      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17960      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17961
17962      ;;
17963    mingw* | cegcc*)
17964      # MinGW DLLs use traditional 'lib' prefix
17965      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17966      ;;
17967    pw32*)
17968      # pw32 DLLs use 'pw' prefix rather than 'lib'
17969      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17970      ;;
17971    esac
17972    dynamic_linker='Win32 ld.exe'
17973    ;;
17974
17975  *,cl*)
17976    # Native MSVC
17977    libname_spec='$name'
17978    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17979    library_names_spec='${libname}.dll.lib'
17980
17981    case $build_os in
17982    mingw*)
17983      sys_lib_search_path_spec=
17984      lt_save_ifs=$IFS
17985      IFS=';'
17986      for lt_path in $LIB
17987      do
17988        IFS=$lt_save_ifs
17989        # Let DOS variable expansion print the short 8.3 style file name.
17990        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17991        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17992      done
17993      IFS=$lt_save_ifs
17994      # Convert to MSYS style.
17995      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17996      ;;
17997    cygwin*)
17998      # Convert to unix form, then to dos form, then back to unix form
17999      # but this time dos style (no spaces!) so that the unix form looks
18000      # like /cygdrive/c/PROGRA~1:/cygdr...
18001      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18002      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18003      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18004      ;;
18005    *)
18006      sys_lib_search_path_spec="$LIB"
18007      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18008        # It is most probably a Windows format PATH.
18009        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18010      else
18011        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18012      fi
18013      # FIXME: find the short name or the path components, as spaces are
18014      # common. (e.g. "Program Files" -> "PROGRA~1")
18015      ;;
18016    esac
18017
18018    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18019    postinstall_cmds='base_file=`basename \${file}`~
18020      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18021      dldir=$destdir/`dirname \$dlpath`~
18022      test -d \$dldir || mkdir -p \$dldir~
18023      $install_prog $dir/$dlname \$dldir/$dlname'
18024    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18025      dlpath=$dir/\$dldll~
18026       $RM \$dlpath'
18027    shlibpath_overrides_runpath=yes
18028    dynamic_linker='Win32 link.exe'
18029    ;;
18030
18031  *)
18032    # Assume MSVC wrapper
18033    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18034    dynamic_linker='Win32 ld.exe'
18035    ;;
18036  esac
18037  # FIXME: first we should search . and the directory the executable is in
18038  shlibpath_var=PATH
18039  ;;
18040
18041darwin* | rhapsody*)
18042  dynamic_linker="$host_os dyld"
18043  version_type=darwin
18044  need_lib_prefix=no
18045  need_version=no
18046  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18047  soname_spec='${libname}${release}${major}$shared_ext'
18048  shlibpath_overrides_runpath=yes
18049  shlibpath_var=DYLD_LIBRARY_PATH
18050  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18051
18052  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18053  ;;
18054
18055dgux*)
18056  version_type=linux # correct to gnu/linux during the next big refactor
18057  need_lib_prefix=no
18058  need_version=no
18059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18060  soname_spec='${libname}${release}${shared_ext}$major'
18061  shlibpath_var=LD_LIBRARY_PATH
18062  ;;
18063
18064freebsd* | dragonfly*)
18065  # DragonFly does not have aout.  When/if they implement a new
18066  # versioning mechanism, adjust this.
18067  if test -x /usr/bin/objformat; then
18068    objformat=`/usr/bin/objformat`
18069  else
18070    case $host_os in
18071    freebsd[23].*) objformat=aout ;;
18072    *) objformat=elf ;;
18073    esac
18074  fi
18075  version_type=freebsd-$objformat
18076  case $version_type in
18077    freebsd-elf*)
18078      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18079      need_version=no
18080      need_lib_prefix=no
18081      ;;
18082    freebsd-*)
18083      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18084      need_version=yes
18085      ;;
18086  esac
18087  shlibpath_var=LD_LIBRARY_PATH
18088  case $host_os in
18089  freebsd2.*)
18090    shlibpath_overrides_runpath=yes
18091    ;;
18092  freebsd3.[01]* | freebsdelf3.[01]*)
18093    shlibpath_overrides_runpath=yes
18094    hardcode_into_libs=yes
18095    ;;
18096  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18097  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18098    shlibpath_overrides_runpath=no
18099    hardcode_into_libs=yes
18100    ;;
18101  *) # from 4.6 on, and DragonFly
18102    shlibpath_overrides_runpath=yes
18103    hardcode_into_libs=yes
18104    ;;
18105  esac
18106  ;;
18107
18108gnu*)
18109  version_type=linux # correct to gnu/linux during the next big refactor
18110  need_lib_prefix=no
18111  need_version=no
18112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18113  soname_spec='${libname}${release}${shared_ext}$major'
18114  shlibpath_var=LD_LIBRARY_PATH
18115  shlibpath_overrides_runpath=no
18116  hardcode_into_libs=yes
18117  ;;
18118
18119haiku*)
18120  version_type=linux # correct to gnu/linux during the next big refactor
18121  need_lib_prefix=no
18122  need_version=no
18123  dynamic_linker="$host_os runtime_loader"
18124  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18125  soname_spec='${libname}${release}${shared_ext}$major'
18126  shlibpath_var=LIBRARY_PATH
18127  shlibpath_overrides_runpath=yes
18128  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18129  hardcode_into_libs=yes
18130  ;;
18131
18132hpux9* | hpux10* | hpux11*)
18133  # Give a soname corresponding to the major version so that dld.sl refuses to
18134  # link against other versions.
18135  version_type=sunos
18136  need_lib_prefix=no
18137  need_version=no
18138  case $host_cpu in
18139  ia64*)
18140    shrext_cmds='.so'
18141    hardcode_into_libs=yes
18142    dynamic_linker="$host_os dld.so"
18143    shlibpath_var=LD_LIBRARY_PATH
18144    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18145    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146    soname_spec='${libname}${release}${shared_ext}$major'
18147    if test "X$HPUX_IA64_MODE" = X32; then
18148      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18149    else
18150      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18151    fi
18152    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18153    ;;
18154  hppa*64*)
18155    shrext_cmds='.sl'
18156    hardcode_into_libs=yes
18157    dynamic_linker="$host_os dld.sl"
18158    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18159    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18160    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161    soname_spec='${libname}${release}${shared_ext}$major'
18162    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18163    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18164    ;;
18165  *)
18166    shrext_cmds='.sl'
18167    dynamic_linker="$host_os dld.sl"
18168    shlibpath_var=SHLIB_PATH
18169    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18170    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18171    soname_spec='${libname}${release}${shared_ext}$major'
18172    ;;
18173  esac
18174  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18175  postinstall_cmds='chmod 555 $lib'
18176  # or fails outright, so override atomically:
18177  install_override_mode=555
18178  ;;
18179
18180interix[3-9]*)
18181  version_type=linux # correct to gnu/linux during the next big refactor
18182  need_lib_prefix=no
18183  need_version=no
18184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18185  soname_spec='${libname}${release}${shared_ext}$major'
18186  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18187  shlibpath_var=LD_LIBRARY_PATH
18188  shlibpath_overrides_runpath=no
18189  hardcode_into_libs=yes
18190  ;;
18191
18192irix5* | irix6* | nonstopux*)
18193  case $host_os in
18194    nonstopux*) version_type=nonstopux ;;
18195    *)
18196	if test "$lt_cv_prog_gnu_ld" = yes; then
18197		version_type=linux # correct to gnu/linux during the next big refactor
18198	else
18199		version_type=irix
18200	fi ;;
18201  esac
18202  need_lib_prefix=no
18203  need_version=no
18204  soname_spec='${libname}${release}${shared_ext}$major'
18205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18206  case $host_os in
18207  irix5* | nonstopux*)
18208    libsuff= shlibsuff=
18209    ;;
18210  *)
18211    case $LD in # libtool.m4 will add one of these switches to LD
18212    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18213      libsuff= shlibsuff= libmagic=32-bit;;
18214    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18215      libsuff=32 shlibsuff=N32 libmagic=N32;;
18216    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18217      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18218    *) libsuff= shlibsuff= libmagic=never-match;;
18219    esac
18220    ;;
18221  esac
18222  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18223  shlibpath_overrides_runpath=no
18224  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18225  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18226  hardcode_into_libs=yes
18227  ;;
18228
18229# No shared lib support for Linux oldld, aout, or coff.
18230linux*oldld* | linux*aout* | linux*coff*)
18231  dynamic_linker=no
18232  ;;
18233
18234# This must be glibc/ELF.
18235linux* | k*bsd*-gnu | kopensolaris*-gnu)
18236  version_type=linux # correct to gnu/linux during the next big refactor
18237  need_lib_prefix=no
18238  need_version=no
18239  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18240  soname_spec='${libname}${release}${shared_ext}$major'
18241  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18242  shlibpath_var=LD_LIBRARY_PATH
18243  shlibpath_overrides_runpath=no
18244
18245  # Some binutils ld are patched to set DT_RUNPATH
18246  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18247  $as_echo_n "(cached) " >&6
18248else
18249  lt_cv_shlibpath_overrides_runpath=no
18250    save_LDFLAGS=$LDFLAGS
18251    save_libdir=$libdir
18252    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
18253	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
18254    cat > conftest.$ac_ext <<_ACEOF
18255      program main
18256
18257      end
18258_ACEOF
18259if ac_fn_fc_try_link "$LINENO"; then :
18260  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18261  lt_cv_shlibpath_overrides_runpath=yes
18262fi
18263fi
18264rm -f core conftest.err conftest.$ac_objext \
18265    conftest$ac_exeext conftest.$ac_ext
18266    LDFLAGS=$save_LDFLAGS
18267    libdir=$save_libdir
18268
18269fi
18270
18271  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18272
18273  # This implies no fast_install, which is unacceptable.
18274  # Some rework will be needed to allow for fast_install
18275  # before this can be enabled.
18276  hardcode_into_libs=yes
18277
18278  # Append ld.so.conf contents to the search path
18279  if test -f /etc/ld.so.conf; then
18280    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' ' '`
18281    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18282  fi
18283
18284  # We used to test for /lib/ld.so.1 and disable shared libraries on
18285  # powerpc, because MkLinux only supported shared libraries with the
18286  # GNU dynamic linker.  Since this was broken with cross compilers,
18287  # most powerpc-linux boxes support dynamic linking these days and
18288  # people can always --disable-shared, the test was removed, and we
18289  # assume the GNU/Linux dynamic linker is in use.
18290  dynamic_linker='GNU/Linux ld.so'
18291  ;;
18292
18293netbsd*)
18294  version_type=sunos
18295  need_lib_prefix=no
18296  need_version=no
18297  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18298    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18299    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18300    dynamic_linker='NetBSD (a.out) ld.so'
18301  else
18302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18303    soname_spec='${libname}${release}${shared_ext}$major'
18304    dynamic_linker='NetBSD ld.elf_so'
18305  fi
18306  shlibpath_var=LD_LIBRARY_PATH
18307  shlibpath_overrides_runpath=yes
18308  hardcode_into_libs=yes
18309  ;;
18310
18311newsos6)
18312  version_type=linux # correct to gnu/linux during the next big refactor
18313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18314  shlibpath_var=LD_LIBRARY_PATH
18315  shlibpath_overrides_runpath=yes
18316  ;;
18317
18318*nto* | *qnx*)
18319  version_type=qnx
18320  need_lib_prefix=no
18321  need_version=no
18322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18323  soname_spec='${libname}${release}${shared_ext}$major'
18324  shlibpath_var=LD_LIBRARY_PATH
18325  shlibpath_overrides_runpath=no
18326  hardcode_into_libs=yes
18327  dynamic_linker='ldqnx.so'
18328  ;;
18329
18330openbsd*)
18331  version_type=sunos
18332  sys_lib_dlsearch_path_spec="/usr/lib"
18333  need_lib_prefix=no
18334  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18335  case $host_os in
18336    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18337    *)				need_version=no  ;;
18338  esac
18339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18340  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18341  shlibpath_var=LD_LIBRARY_PATH
18342  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18343    case $host_os in
18344      openbsd2.[89] | openbsd2.[89].*)
18345	shlibpath_overrides_runpath=no
18346	;;
18347      *)
18348	shlibpath_overrides_runpath=yes
18349	;;
18350      esac
18351  else
18352    shlibpath_overrides_runpath=yes
18353  fi
18354  ;;
18355
18356os2*)
18357  libname_spec='$name'
18358  shrext_cmds=".dll"
18359  need_lib_prefix=no
18360  library_names_spec='$libname${shared_ext} $libname.a'
18361  dynamic_linker='OS/2 ld.exe'
18362  shlibpath_var=LIBPATH
18363  ;;
18364
18365osf3* | osf4* | osf5*)
18366  version_type=osf
18367  need_lib_prefix=no
18368  need_version=no
18369  soname_spec='${libname}${release}${shared_ext}$major'
18370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18371  shlibpath_var=LD_LIBRARY_PATH
18372  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18373  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18374  ;;
18375
18376rdos*)
18377  dynamic_linker=no
18378  ;;
18379
18380solaris*)
18381  version_type=linux # correct to gnu/linux during the next big refactor
18382  need_lib_prefix=no
18383  need_version=no
18384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18385  soname_spec='${libname}${release}${shared_ext}$major'
18386  shlibpath_var=LD_LIBRARY_PATH
18387  shlibpath_overrides_runpath=yes
18388  hardcode_into_libs=yes
18389  # ldd complains unless libraries are executable
18390  postinstall_cmds='chmod +x $lib'
18391  ;;
18392
18393sunos4*)
18394  version_type=sunos
18395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18396  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18397  shlibpath_var=LD_LIBRARY_PATH
18398  shlibpath_overrides_runpath=yes
18399  if test "$with_gnu_ld" = yes; then
18400    need_lib_prefix=no
18401  fi
18402  need_version=yes
18403  ;;
18404
18405sysv4 | sysv4.3*)
18406  version_type=linux # correct to gnu/linux during the next big refactor
18407  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18408  soname_spec='${libname}${release}${shared_ext}$major'
18409  shlibpath_var=LD_LIBRARY_PATH
18410  case $host_vendor in
18411    sni)
18412      shlibpath_overrides_runpath=no
18413      need_lib_prefix=no
18414      runpath_var=LD_RUN_PATH
18415      ;;
18416    siemens)
18417      need_lib_prefix=no
18418      ;;
18419    motorola)
18420      need_lib_prefix=no
18421      need_version=no
18422      shlibpath_overrides_runpath=no
18423      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18424      ;;
18425  esac
18426  ;;
18427
18428sysv4*MP*)
18429  if test -d /usr/nec ;then
18430    version_type=linux # correct to gnu/linux during the next big refactor
18431    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18432    soname_spec='$libname${shared_ext}.$major'
18433    shlibpath_var=LD_LIBRARY_PATH
18434  fi
18435  ;;
18436
18437sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18438  version_type=freebsd-elf
18439  need_lib_prefix=no
18440  need_version=no
18441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18442  soname_spec='${libname}${release}${shared_ext}$major'
18443  shlibpath_var=LD_LIBRARY_PATH
18444  shlibpath_overrides_runpath=yes
18445  hardcode_into_libs=yes
18446  if test "$with_gnu_ld" = yes; then
18447    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18448  else
18449    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18450    case $host_os in
18451      sco3.2v5*)
18452        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18453	;;
18454    esac
18455  fi
18456  sys_lib_dlsearch_path_spec='/usr/lib'
18457  ;;
18458
18459tpf*)
18460  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18461  version_type=linux # correct to gnu/linux during the next big refactor
18462  need_lib_prefix=no
18463  need_version=no
18464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18465  shlibpath_var=LD_LIBRARY_PATH
18466  shlibpath_overrides_runpath=no
18467  hardcode_into_libs=yes
18468  ;;
18469
18470uts4*)
18471  version_type=linux # correct to gnu/linux during the next big refactor
18472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18473  soname_spec='${libname}${release}${shared_ext}$major'
18474  shlibpath_var=LD_LIBRARY_PATH
18475  ;;
18476
18477*)
18478  dynamic_linker=no
18479  ;;
18480esac
18481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18482$as_echo "$dynamic_linker" >&6; }
18483test "$dynamic_linker" = no && can_build_shared=no
18484
18485variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18486if test "$GCC" = yes; then
18487  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18488fi
18489
18490if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18491  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18492fi
18493if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18494  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18495fi
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18535$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18536hardcode_action_FC=
18537if test -n "$hardcode_libdir_flag_spec_FC" ||
18538   test -n "$runpath_var_FC" ||
18539   test "X$hardcode_automatic_FC" = "Xyes" ; then
18540
18541  # We can hardcode non-existent directories.
18542  if test "$hardcode_direct_FC" != no &&
18543     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18544     # have to relink, otherwise we might link with an installed library
18545     # when we should be linking with a yet-to-be-installed one
18546     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
18547     test "$hardcode_minus_L_FC" != no; then
18548    # Linking always hardcodes the temporary library directory.
18549    hardcode_action_FC=relink
18550  else
18551    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18552    hardcode_action_FC=immediate
18553  fi
18554else
18555  # We cannot hardcode anything, or else we can only hardcode existing
18556  # directories.
18557  hardcode_action_FC=unsupported
18558fi
18559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
18560$as_echo "$hardcode_action_FC" >&6; }
18561
18562if test "$hardcode_action_FC" = relink ||
18563   test "$inherit_rpath_FC" = yes; then
18564  # Fast installation is not supported
18565  enable_fast_install=no
18566elif test "$shlibpath_overrides_runpath" = yes ||
18567     test "$enable_shared" = no; then
18568  # Fast installation is not necessary
18569  enable_fast_install=needless
18570fi
18571
18572
18573
18574
18575
18576
18577
18578  fi # test -n "$compiler"
18579
18580  GCC=$lt_save_GCC
18581  CC=$lt_save_CC
18582  CFLAGS=$lt_save_CFLAGS
18583fi # test "$_lt_disable_FC" != yes
18584
18585ac_ext=c
18586ac_cpp='$CPP $CPPFLAGS'
18587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18589ac_compiler_gnu=$ac_cv_c_compiler_gnu
18590
18591
18592
18593# Check whether --enable-pthread was given.
18594if test "${enable_pthread+set}" = set; then :
18595  enableval=$enable_pthread; pthreads=${enableval}
18596else
18597  pthreads=no
18598
18599fi
18600
18601if test "x${pthreads}" = xyes; then
18602   GRIB_PTHREADS=1
18603else
18604   GRIB_PTHREADS=0
18605fi
18606
18607if test $GRIB_PTHREADS -eq 1
18608then
18609
18610  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if pthreads available" >&5
18611$as_echo_n "checking if pthreads available... " >&6; }
18612  ac_ext=c
18613ac_cpp='$CPP $CPPFLAGS'
18614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616ac_compiler_gnu=$ac_cv_c_compiler_gnu
18617
18618  OLDLIBS=$LIBS
18619  LIBS="$LIBS -lpthread"
18620  if test "$cross_compiling" = yes; then :
18621  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18623as_fn_error $? "cannot run test program while cross compiling
18624See \`config.log' for more details" "$LINENO" 5; }
18625else
18626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627/* end confdefs.h.  */
18628
18629
18630       #include <pthread.h>
18631       #include <stdio.h>
18632
18633       #define NUMTHRDS 4
18634       static int count;
18635
18636       static pthread_once_t once  = PTHREAD_ONCE_INIT;
18637       static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
18638       static pthread_t callThd[NUMTHRDS];
18639
18640       static void init() {
18641         pthread_mutexattr_t attr;
18642
18643         pthread_mutexattr_init(&attr);
18644         pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_RECURSIVE);
18645         pthread_mutex_init(&mutex,&attr);
18646         pthread_mutexattr_destroy(&attr);
18647       }
18648
18649       void* increment(void* arg);
18650
18651       int main(int argc,char** argv){
18652         long i;
18653         void* status=0;
18654         pthread_attr_t attr;
18655         pthread_attr_init(&attr);
18656         count=0;
18657         pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
18658         for (i=0;i<NUMTHRDS;i++) {
18659           pthread_create( &callThd[i], &attr, increment, (void *)i);
18660         }
18661         pthread_attr_destroy(&attr);
18662         for(i=0; i<NUMTHRDS; i++)
18663             pthread_join( callThd[i], &status);
18664         return 0;
18665       }
18666
18667       void* increment(void* arg) {
18668         int i=(long)arg;
18669         pthread_once(&once,&init);
18670         pthread_mutex_lock(&mutex);
18671         count+=i;
18672         pthread_mutex_unlock(&mutex);
18673		 pthread_exit((void*) 0);
18674       }
18675
18676
18677_ACEOF
18678if ac_fn_c_try_run "$LINENO"; then :
18679  GRIB_PTHREADS=1
18680else
18681  GRIB_PTHREADS=0
18682fi
18683rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18684  conftest.$ac_objext conftest.beam conftest.$ac_ext
18685fi
18686
18687  if test $GRIB_PTHREADS = 0
18688  then
18689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18690$as_echo "no" >&6; }
18691	LIBS=$OLDLIBS
18692  else
18693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18694$as_echo "yes" >&6; }
18695  fi
18696
18697
18698
18699  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Linux pthreads available" >&5
18700$as_echo_n "checking if Linux pthreads available... " >&6; }
18701  ac_ext=c
18702ac_cpp='$CPP $CPPFLAGS'
18703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705ac_compiler_gnu=$ac_cv_c_compiler_gnu
18706
18707  OLDLIBS=$LIBS
18708  LIBS="$LIBS -lpthread"
18709  if test "$cross_compiling" = yes; then :
18710  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18711$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18712as_fn_error $? "cannot run test program while cross compiling
18713See \`config.log' for more details" "$LINENO" 5; }
18714else
18715  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18716/* end confdefs.h.  */
18717
18718
18719       #include <pthread.h>
18720       #include <stdio.h>
18721
18722       #define NUMTHRDS 4
18723       static int count;
18724	   #define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
18725	   extern int pthread_mutexattr_settype(pthread_mutexattr_t* attr,int type);
18726
18727       static pthread_once_t once  = PTHREAD_ONCE_INIT;
18728       static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
18729       static pthread_t callThd[NUMTHRDS];
18730
18731       static void init() {
18732         pthread_mutexattr_t attr;
18733		 pthread_mutexattr_init(&attr);
18734		 pthread_mutexattr_settype(&attr,PTHREAD_MUTEX_RECURSIVE);
18735         pthread_mutex_init(&mutex,&attr);
18736         pthread_mutexattr_destroy(&attr);
18737       }
18738
18739       void* increment(void* arg);
18740
18741       int main(int argc,char** argv){
18742         long i;
18743         void* status=0;
18744         pthread_attr_t attr;
18745         pthread_attr_init(&attr);
18746         count=0;
18747         pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
18748         for (i=0;i<NUMTHRDS;i++) {
18749           pthread_create( &callThd[i], &attr, increment, (void *)i);
18750         }
18751         pthread_attr_destroy(&attr);
18752         for(i=0; i<NUMTHRDS; i++)
18753             pthread_join( callThd[i], &status);
18754         return 0;
18755       }
18756
18757       void* increment(void* arg) {
18758         int i=(long)arg;
18759         pthread_once(&once,&init);
18760         pthread_mutex_lock(&mutex);
18761         count+=i;
18762         pthread_mutex_unlock(&mutex);
18763		 pthread_exit((void*) 0);
18764       }
18765
18766
18767_ACEOF
18768if ac_fn_c_try_run "$LINENO"; then :
18769  GRIB_LINUX_PTHREADS=1
18770   GRIB_PTHREADS=1
18771else
18772  GRIB_LINUX_PTHREADS=0
18773fi
18774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18775  conftest.$ac_objext conftest.beam conftest.$ac_ext
18776fi
18777
18778  if test $GRIB_LINUX_PTHREADS = 0
18779  then
18780    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18781$as_echo "no" >&6; }
18782	LIBS=$OLDLIBS
18783  else
18784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18785$as_echo "yes" >&6; }
18786  fi
18787
18788
18789else
18790   GRIB_LINUX_PTHREADS=0
18791fi
18792
18793
18794cat >>confdefs.h <<_ACEOF
18795#define GRIB_PTHREADS $GRIB_PTHREADS
18796_ACEOF
18797
18798
18799cat >>confdefs.h <<_ACEOF
18800#define GRIB_LINUX_PTHREADS $GRIB_LINUX_PTHREADS
18801_ACEOF
18802
18803
18804# Check whether --enable-ibmpower67_opt was given.
18805if test "${enable_ibmpower67_opt+set}" = set; then :
18806  enableval=$enable_ibmpower67_opt; ibmpower67_opts=${enableval}
18807else
18808  ibmpower67_opts=no
18809
18810fi
18811
18812if test "x${ibmpower67_opts}" = xyes; then
18813   GRIB_IBMPOWER67_OPT=1
18814else
18815   GRIB_IBMPOWER67_OPT=0
18816fi
18817
18818cat >>confdefs.h <<_ACEOF
18819#define GRIB_IBMPOWER67_OPT $GRIB_IBMPOWER67_OPT
18820_ACEOF
18821
18822
18823
18824ac_cv_prog_f90_uppercase_mod=no
18825
18826ac_ext=${ac_fc_srcext-f}
18827ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
18828ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
18829ac_compiler_gnu=$ac_cv_fc_compiler_gnu
18830
18831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler capitalizes .mod filenames" >&5
18832$as_echo_n "checking if Fortran 90 compiler capitalizes .mod filenames... " >&6; }
18833cat <<EOF >conftest.f90
18834    module conftest
18835    end module conftest
18836EOF
18837
18838ac_try='$FC $FCFLAGS -c conftest.f90 >&5'
18839if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18840  (eval $ac_try) 2>&5
18841  ac_status=$?
18842  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18843  test $ac_status = 0; } && test -f CONFTEST.mod ; then
18844   ac_cv_prog_f90_uppercase_mod=yes
18845   rm -f CONFTEST.mod
18846else
18847   ac_cv_prog_f90_uppercase_mod=no
18848fi
18849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f90_uppercase_mod" >&5
18850$as_echo "$ac_cv_prog_f90_uppercase_mod" >&6; }
18851#rm -f conftest*
18852ac_ext=c
18853ac_cpp='$CPP $CPPFLAGS'
18854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18856ac_compiler_gnu=$ac_cv_c_compiler_gnu
18857
18858
18859 if test "x$ac_cv_prog_f90_uppercase_mod" = xyes; then
18860  UPPER_CASE_MOD_TRUE=
18861  UPPER_CASE_MOD_FALSE='#'
18862else
18863  UPPER_CASE_MOD_TRUE='#'
18864  UPPER_CASE_MOD_FALSE=
18865fi
18866
18867
18868
18869  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if double and float are ieee big endian" >&5
18870$as_echo_n "checking if double and float are ieee big endian... " >&6; }
18871  ac_ext=c
18872ac_cpp='$CPP $CPPFLAGS'
18873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18875ac_compiler_gnu=$ac_cv_c_compiler_gnu
18876
18877  if test "$cross_compiling" = yes; then :
18878  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18879$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18880as_fn_error $? "cannot run test program while cross compiling
18881See \`config.log' for more details" "$LINENO" 5; }
18882else
18883  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18884/* end confdefs.h.  */
18885
18886
18887     int compare(unsigned char* a,unsigned char* b) {
18888       while(*a != 0) if (*(b++)!=*(a++)) return 1;
18889       return 0;
18890     }
18891     int main(int argc,char** argv) {
18892       unsigned char dc[]={0x30,0x61,0xDE,0x80,0x93,0x67,0xCC,0xD9,0};
18893       double da=1.23456789e-75;
18894       unsigned char* ca;
18895
18896       unsigned char fc[]={0x05,0x83,0x48,0x22,0};
18897       float fa=1.23456789e-35;
18898
18899       if (sizeof(double)!=8) return 1;
18900
18901       ca=(unsigned char*)&da;
18902       if (compare(dc,ca)) return 1;
18903
18904       if (sizeof(float)!=4) return 1;
18905
18906       ca=(unsigned char*)&fa;
18907       if (compare(fc,ca)) return 1;
18908
18909       return 0;
18910     }
18911
18912
18913_ACEOF
18914if ac_fn_c_try_run "$LINENO"; then :
18915  IS_IEEE_BE=1
18916else
18917  IS_IEEE_BE=0
18918fi
18919rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18920  conftest.$ac_objext conftest.beam conftest.$ac_ext
18921fi
18922
18923  if test $IS_IEEE_BE = 0
18924  then
18925    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18926$as_echo "no" >&6; }
18927  else
18928    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18929$as_echo "yes" >&6; }
18930  fi
18931
18932
18933
18934cat >>confdefs.h <<_ACEOF
18935#define IEEE_BE $IS_IEEE_BE
18936_ACEOF
18937
18938
18939
18940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if double and float are ieee little endian" >&5
18941$as_echo_n "checking if double and float are ieee little endian... " >&6; }
18942  ac_ext=c
18943ac_cpp='$CPP $CPPFLAGS'
18944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18946ac_compiler_gnu=$ac_cv_c_compiler_gnu
18947
18948  if test "$cross_compiling" = yes; then :
18949  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18950$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18951as_fn_error $? "cannot run test program while cross compiling
18952See \`config.log' for more details" "$LINENO" 5; }
18953else
18954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955/* end confdefs.h.  */
18956
18957
18958     int compare(unsigned char* a,unsigned char* b) {
18959       while(*a != 0) if (*(b++)!=*(a++)) return 1;
18960       return 0;
18961     }
18962     int main(int argc,char** argv) {
18963       unsigned char dc[]={0xD9,0xCC,0x67,0x93,0x80,0xDE,0x61,0x30,0};
18964       double da=1.23456789e-75;
18965       unsigned char* ca;
18966
18967       unsigned char fc[]={0x22,0x48,0x83,0x05,0};
18968       float fa=1.23456789e-35;
18969
18970       if (sizeof(double)!=8) return 1;
18971
18972       ca=(unsigned char*)&da;
18973       if (compare(dc,ca)) return 1;
18974
18975       if (sizeof(float)!=4) return 1;
18976
18977       ca=(unsigned char*)&fa;
18978       if (compare(fc,ca)) return 1;
18979
18980       return 0;
18981     }
18982
18983
18984_ACEOF
18985if ac_fn_c_try_run "$LINENO"; then :
18986  IS_IEEE_LE=1
18987else
18988  IS_IEEE_LE=0
18989fi
18990rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18991  conftest.$ac_objext conftest.beam conftest.$ac_ext
18992fi
18993
18994  if test $IS_IEEE_LE = 0
18995  then
18996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18997$as_echo "no" >&6; }
18998  else
18999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19000$as_echo "yes" >&6; }
19001  fi
19002
19003
19004
19005cat >>confdefs.h <<_ACEOF
19006#define IEEE_LE $IS_IEEE_LE
19007_ACEOF
19008
19009
19010# Check whether --enable-ieee-native was given.
19011if test "${enable_ieee_native+set}" = set; then :
19012  enableval=$enable_ieee_native; without_ieee=1
19013else
19014  without_ieee=0
19015fi
19016
19017
19018if test $without_ieee -eq 1
19019then
19020
19021cat >>confdefs.h <<_ACEOF
19022#define IEEE_LE 0
19023_ACEOF
19024
19025
19026cat >>confdefs.h <<_ACEOF
19027#define IEEE_BE 0
19028_ACEOF
19029
19030fi
19031
19032
19033  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Big Endian" >&5
19034$as_echo_n "checking if Big Endian... " >&6; }
19035  ac_ext=c
19036ac_cpp='$CPP $CPPFLAGS'
19037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19039ac_compiler_gnu=$ac_cv_c_compiler_gnu
19040
19041  if test "$cross_compiling" = yes; then :
19042  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19044as_fn_error $? "cannot run test program while cross compiling
19045See \`config.log' for more details" "$LINENO" 5; }
19046else
19047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048/* end confdefs.h.  */
19049
19050
19051      int main(int argc,char** argv){
19052        long one= 1;
19053        return !(*((char *)(&one)));
19054      }
19055
19056
19057_ACEOF
19058if ac_fn_c_try_run "$LINENO"; then :
19059  IS_BIG_ENDIAN=0
19060else
19061  IS_BIG_ENDIAN=1
19062fi
19063rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19064  conftest.$ac_objext conftest.beam conftest.$ac_ext
19065fi
19066
19067  if test $IS_BIG_ENDIAN = 0
19068  then
19069    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19070$as_echo "no" >&6; }
19071  else
19072    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19073$as_echo "yes" >&6; }
19074  fi
19075
19076
19077
19078cat >>confdefs.h <<_ACEOF
19079#define IS_BIG_ENDIAN $IS_BIG_ENDIAN
19080_ACEOF
19081
19082
19083
19084  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inline in C" >&5
19085$as_echo_n "checking if inline in C... " >&6; }
19086  ac_ext=c
19087ac_cpp='$CPP $CPPFLAGS'
19088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19090ac_compiler_gnu=$ac_cv_c_compiler_gnu
19091
19092  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19093/* end confdefs.h.  */
19094
19095
19096	  inline int x(int a) {return a;}
19097      int main(int argc,char** argv){
19098	    int a=1;
19099        return x(a);
19100      }
19101
19102
19103_ACEOF
19104if ac_fn_c_try_compile "$LINENO"; then :
19105  HAS_INLINE=inline
19106else
19107  HAS_INLINE=
19108fi
19109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19110  if test x$HAS_INLINE = "x"
19111  then
19112    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19113$as_echo "no" >&6; }
19114  else
19115    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19116$as_echo "yes" >&6; }
19117  fi
19118
19119
19120
19121cat >>confdefs.h <<_ACEOF
19122#define GRIB_INLINE $HAS_INLINE
19123_ACEOF
19124
19125
19126
19127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bus error on unaligned pointers" >&5
19128$as_echo_n "checking if bus error on unaligned pointers... " >&6; }
19129  ac_ext=c
19130ac_cpp='$CPP $CPPFLAGS'
19131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19133ac_compiler_gnu=$ac_cv_c_compiler_gnu
19134
19135  if test "$cross_compiling" = yes; then :
19136  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19137$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19138as_fn_error $? "cannot run test program while cross compiling
19139See \`config.log' for more details" "$LINENO" 5; }
19140else
19141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19142/* end confdefs.h.  */
19143
19144
19145	  void foo(char* p) {long x=*((long*)p)+1;}
19146	  int main(int argc,char** argv) {char* p="xxxxxxxxx";foo(++p);return 0;}
19147
19148
19149_ACEOF
19150if ac_fn_c_try_run "$LINENO"; then :
19151  MEM_ALIGN=0
19152else
19153  MEM_ALIGN=1
19154fi
19155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19156  conftest.$ac_objext conftest.beam conftest.$ac_ext
19157fi
19158
19159  if test $MEM_ALIGN = "0"
19160  then
19161    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19162$as_echo "no" >&6; }
19163  else
19164    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165$as_echo "yes" >&6; }
19166  fi
19167
19168
19169
19170cat >>confdefs.h <<_ACEOF
19171#define GRIB_MEM_ALIGN $MEM_ALIGN
19172_ACEOF
19173
19174
19175ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
19176if test "x$ac_cv_func_posix_memalign" = xyes; then :
19177
19178cat >>confdefs.h <<_ACEOF
19179#define POSIX_MEMALIGN 1
19180_ACEOF
19181
19182fi
19183
19184
19185# Check whether --enable-align-memory was given.
19186if test "${enable_align_memory+set}" = set; then :
19187  enableval=$enable_align_memory;
19188cat >>confdefs.h <<_ACEOF
19189#define GRIB_MEM_ALIGN 1
19190_ACEOF
19191
19192fi
19193
19194
19195# Check whether --enable-vector was given.
19196if test "${enable_vector+set}" = set; then :
19197  enableval=$enable_vector; vectorise=${enableval}
19198else
19199  vectorise=no
19200fi
19201
19202if test "x${vectorise}" = xyes
19203then
19204   vectorise=1
19205else
19206   vectorise=0
19207fi
19208
19209cat >>confdefs.h <<_ACEOF
19210#define VECTOR $vectorise
19211_ACEOF
19212
19213
19214# Check whether --enable-memory-management was given.
19215if test "${enable_memory_management+set}" = set; then :
19216  enableval=$enable_memory_management;
19217cat >>confdefs.h <<_ACEOF
19218#define MANAGE_MEM 1
19219_ACEOF
19220
19221else
19222
19223cat >>confdefs.h <<_ACEOF
19224#define MANAGE_MEM 0
19225_ACEOF
19226
19227
19228fi
19229
19230
19231DEVEL_RULES=''
19232# Check whether --enable-development was given.
19233if test "${enable_development+set}" = set; then :
19234  enableval=$enable_development; GRIB_DEVEL=${enableval}
19235else
19236  GRIB_DEVEL=no
19237
19238fi
19239
19240if test "x${GRIB_DEVEL}" = xyes
19241then
19242   GRIB_DEVEL=1
19243   DEVEL_RULES='extrules.am'
19244else
19245   GRIB_DEVEL=0
19246   DEVEL_RULES='dummy.am'
19247fi
19248
19249
19250
19251 if test $GRIB_DEVEL -eq 1; then
19252  WITH_MARS_TESTS_TRUE=
19253  WITH_MARS_TESTS_FALSE='#'
19254else
19255  WITH_MARS_TESTS_TRUE='#'
19256  WITH_MARS_TESTS_FALSE=
19257fi
19258
19259
19260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19261$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
19262if ${ac_cv_sys_largefile_source+:} false; then :
19263  $as_echo_n "(cached) " >&6
19264else
19265  while :; do
19266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19267/* end confdefs.h.  */
19268#include <sys/types.h> /* for off_t */
19269     #include <stdio.h>
19270int
19271main ()
19272{
19273int (*fp) (FILE *, off_t, int) = fseeko;
19274     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19275  ;
19276  return 0;
19277}
19278_ACEOF
19279if ac_fn_c_try_link "$LINENO"; then :
19280  ac_cv_sys_largefile_source=no; break
19281fi
19282rm -f core conftest.err conftest.$ac_objext \
19283    conftest$ac_exeext conftest.$ac_ext
19284  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285/* end confdefs.h.  */
19286#define _LARGEFILE_SOURCE 1
19287#include <sys/types.h> /* for off_t */
19288     #include <stdio.h>
19289int
19290main ()
19291{
19292int (*fp) (FILE *, off_t, int) = fseeko;
19293     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
19294  ;
19295  return 0;
19296}
19297_ACEOF
19298if ac_fn_c_try_link "$LINENO"; then :
19299  ac_cv_sys_largefile_source=1; break
19300fi
19301rm -f core conftest.err conftest.$ac_objext \
19302    conftest$ac_exeext conftest.$ac_ext
19303  ac_cv_sys_largefile_source=unknown
19304  break
19305done
19306fi
19307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
19308$as_echo "$ac_cv_sys_largefile_source" >&6; }
19309case $ac_cv_sys_largefile_source in #(
19310  no | unknown) ;;
19311  *)
19312cat >>confdefs.h <<_ACEOF
19313#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19314_ACEOF
19315;;
19316esac
19317rm -rf conftest*
19318
19319# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19320# in glibc 2.1.3, but that breaks too many other things.
19321# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19322if test $ac_cv_sys_largefile_source != unknown; then
19323
19324$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
19325
19326fi
19327
19328CREATE_H=''
19329if test x"$ac_cv_func_fseeko" != xyes ; then
19330	CREATE_H='./create_h.sh 1'
19331else
19332	CREATE_H='./create_h.sh 0'
19333fi
19334
19335# Check whether --enable-largefile was given.
19336if test "${enable_largefile+set}" = set; then :
19337  enableval=$enable_largefile;
19338fi
19339
19340if test "$enable_largefile" != no; then
19341
19342  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19343$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
19344if ${ac_cv_sys_largefile_CC+:} false; then :
19345  $as_echo_n "(cached) " >&6
19346else
19347  ac_cv_sys_largefile_CC=no
19348     if test "$GCC" != yes; then
19349       ac_save_CC=$CC
19350       while :; do
19351	 # IRIX 6.2 and later do not support large files by default,
19352	 # so use the C compiler's -n32 option if that helps.
19353	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19354/* end confdefs.h.  */
19355#include <sys/types.h>
19356 /* Check that off_t can represent 2**63 - 1 correctly.
19357    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19358    since some C++ compilers masquerading as C compilers
19359    incorrectly reject 9223372036854775807.  */
19360#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19361  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19362		       && LARGE_OFF_T % 2147483647 == 1)
19363		      ? 1 : -1];
19364int
19365main ()
19366{
19367
19368  ;
19369  return 0;
19370}
19371_ACEOF
19372	 if ac_fn_c_try_compile "$LINENO"; then :
19373  break
19374fi
19375rm -f core conftest.err conftest.$ac_objext
19376	 CC="$CC -n32"
19377	 if ac_fn_c_try_compile "$LINENO"; then :
19378  ac_cv_sys_largefile_CC=' -n32'; break
19379fi
19380rm -f core conftest.err conftest.$ac_objext
19381	 break
19382       done
19383       CC=$ac_save_CC
19384       rm -f conftest.$ac_ext
19385    fi
19386fi
19387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19388$as_echo "$ac_cv_sys_largefile_CC" >&6; }
19389  if test "$ac_cv_sys_largefile_CC" != no; then
19390    CC=$CC$ac_cv_sys_largefile_CC
19391  fi
19392
19393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19394$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19395if ${ac_cv_sys_file_offset_bits+:} false; then :
19396  $as_echo_n "(cached) " >&6
19397else
19398  while :; do
19399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400/* end confdefs.h.  */
19401#include <sys/types.h>
19402 /* Check that off_t can represent 2**63 - 1 correctly.
19403    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19404    since some C++ compilers masquerading as C compilers
19405    incorrectly reject 9223372036854775807.  */
19406#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19407  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19408		       && LARGE_OFF_T % 2147483647 == 1)
19409		      ? 1 : -1];
19410int
19411main ()
19412{
19413
19414  ;
19415  return 0;
19416}
19417_ACEOF
19418if ac_fn_c_try_compile "$LINENO"; then :
19419  ac_cv_sys_file_offset_bits=no; break
19420fi
19421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19423/* end confdefs.h.  */
19424#define _FILE_OFFSET_BITS 64
19425#include <sys/types.h>
19426 /* Check that off_t can represent 2**63 - 1 correctly.
19427    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19428    since some C++ compilers masquerading as C compilers
19429    incorrectly reject 9223372036854775807.  */
19430#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19431  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19432		       && LARGE_OFF_T % 2147483647 == 1)
19433		      ? 1 : -1];
19434int
19435main ()
19436{
19437
19438  ;
19439  return 0;
19440}
19441_ACEOF
19442if ac_fn_c_try_compile "$LINENO"; then :
19443  ac_cv_sys_file_offset_bits=64; break
19444fi
19445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446  ac_cv_sys_file_offset_bits=unknown
19447  break
19448done
19449fi
19450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19451$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
19452case $ac_cv_sys_file_offset_bits in #(
19453  no | unknown) ;;
19454  *)
19455cat >>confdefs.h <<_ACEOF
19456#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19457_ACEOF
19458;;
19459esac
19460rm -rf conftest*
19461  if test $ac_cv_sys_file_offset_bits = unknown; then
19462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19463$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
19464if ${ac_cv_sys_large_files+:} false; then :
19465  $as_echo_n "(cached) " >&6
19466else
19467  while :; do
19468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469/* end confdefs.h.  */
19470#include <sys/types.h>
19471 /* Check that off_t can represent 2**63 - 1 correctly.
19472    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19473    since some C++ compilers masquerading as C compilers
19474    incorrectly reject 9223372036854775807.  */
19475#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19476  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19477		       && LARGE_OFF_T % 2147483647 == 1)
19478		      ? 1 : -1];
19479int
19480main ()
19481{
19482
19483  ;
19484  return 0;
19485}
19486_ACEOF
19487if ac_fn_c_try_compile "$LINENO"; then :
19488  ac_cv_sys_large_files=no; break
19489fi
19490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19492/* end confdefs.h.  */
19493#define _LARGE_FILES 1
19494#include <sys/types.h>
19495 /* Check that off_t can represent 2**63 - 1 correctly.
19496    We can't simply define LARGE_OFF_T to be 9223372036854775807,
19497    since some C++ compilers masquerading as C compilers
19498    incorrectly reject 9223372036854775807.  */
19499#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19500  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19501		       && LARGE_OFF_T % 2147483647 == 1)
19502		      ? 1 : -1];
19503int
19504main ()
19505{
19506
19507  ;
19508  return 0;
19509}
19510_ACEOF
19511if ac_fn_c_try_compile "$LINENO"; then :
19512  ac_cv_sys_large_files=1; break
19513fi
19514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19515  ac_cv_sys_large_files=unknown
19516  break
19517done
19518fi
19519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19520$as_echo "$ac_cv_sys_large_files" >&6; }
19521case $ac_cv_sys_large_files in #(
19522  no | unknown) ;;
19523  *)
19524cat >>confdefs.h <<_ACEOF
19525#define _LARGE_FILES $ac_cv_sys_large_files
19526_ACEOF
19527;;
19528esac
19529rm -rf conftest*
19530  fi
19531
19532
19533fi
19534
19535
19536
19537
19538RPM_HOST_CPU=${host_cpu}
19539RPM_HOST_VENDOR=${host_vendor}
19540RPM_HOST_OS=${host_os}
19541RPM_CONFIGURE_ARGS=${ac_configure_args}
19542
19543
19544
19545
19546
19547# Check whether --with-rpm-release was given.
19548if test "${with_rpm_release+set}" = set; then :
19549  withval=$with_rpm_release; RPM_RELEASE="$withval"
19550else
19551  RPM_RELEASE=1
19552fi
19553
19554
19555
19556
19557GRIB_SAMPLES_PATH=$samples_files_path
19558GRIB_TEMPLATES_PATH=$samples_files_path
19559GRIB_DEFINITION_PATH=$definition_files_path
19560
19561
19562
19563
19564
19565# Check whether --enable-fortran was given.
19566if test "${enable_fortran+set}" = set; then :
19567  enableval=$enable_fortran; with_fortran=${enableval}
19568else
19569  with_fortran=yes
19570fi
19571
19572
19573if test "x${with_fortran}" = xyes; then
19574   without_fortran=0
19575else
19576   without_fortran=1
19577fi
19578
19579if test "x$FC" = "x"
19580then
19581  without_fortran=1
19582fi
19583
19584ac_cv_prog_f90_uppercase_mod=no
19585
19586ac_ext=${ac_fc_srcext-f}
19587ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19588ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19589ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19590
19591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 compiler capitalizes .mod filenames" >&5
19592$as_echo_n "checking if Fortran 90 compiler capitalizes .mod filenames... " >&6; }
19593cat <<EOF >conftest.f90
19594    module conftest
19595    end module conftest
19596EOF
19597
19598ac_try='$FC $FCFLAGS -c conftest.f90 >&5'
19599if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19600  (eval $ac_try) 2>&5
19601  ac_status=$?
19602  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19603  test $ac_status = 0; } && test -f CONFTEST.mod ; then
19604   ac_cv_prog_f90_uppercase_mod=yes
19605   rm -f CONFTEST.mod
19606else
19607   ac_cv_prog_f90_uppercase_mod=no
19608fi
19609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f90_uppercase_mod" >&5
19610$as_echo "$ac_cv_prog_f90_uppercase_mod" >&6; }
19611#rm -f conftest*
19612ac_ext=c
19613ac_cpp='$CPP $CPPFLAGS'
19614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19616ac_compiler_gnu=$ac_cv_c_compiler_gnu
19617
19618
19619 if test "x$ac_cv_prog_f90_uppercase_mod" = xyes; then
19620  UPPER_CASE_MOD_TRUE=
19621  UPPER_CASE_MOD_FALSE='#'
19622else
19623  UPPER_CASE_MOD_TRUE='#'
19624  UPPER_CASE_MOD_FALSE=
19625fi
19626
19627
19628
19629ac_ext=${ac_fc_srcext-f}
19630ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19631ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19632ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19633
19634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if Fortran 90 can resolve debug symbols in modules" >&5
19635$as_echo_n "checking if Fortran 90 can resolve debug symbols in modules... " >&6; }
19636cat <<EOF >conftest-module.f90
19637    module conftest
19638    end module conftest
19639EOF
19640cat <<EOF >conftest.f90
19641	program f90usemodule
19642	use CONFTEST
19643	end program f90usemodule
19644EOF
19645
19646ac_compile_module='$FC -g -c conftest-module.f90 >&5'
19647ac_link_program='$FC -g -o conftest -I. conftest.f90 >&5'
19648
19649if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile_module\""; } >&5
19650  (eval $ac_compile_module) 2>&5
19651  ac_status=$?
19652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19653  test $ac_status = 0; } && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link_program\""; } >&5
19654  (eval $ac_link_program) 2>&5
19655  ac_status=$?
19656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19657  test $ac_status = 0; } && test -f conftest ; then
19658   ac_cv_prog_f90_debug_in_module=yes
19659   rm -f conftest
19660else
19661   ac_cv_prog_f90_debug_in_module=no
19662fi
19663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f90_debug_in_module" >&5
19664$as_echo "$ac_cv_prog_f90_debug_in_module" >&6; }
19665#rm -f conftest*
19666ac_ext=c
19667ac_cpp='$CPP $CPPFLAGS'
19668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19670ac_compiler_gnu=$ac_cv_c_compiler_gnu
19671
19672
19673 if test "x$ac_cv_prog_f90_debug_in_module" = xyes; then
19674  DEBUG_IN_MOD_TRUE=
19675  DEBUG_IN_MOD_FALSE='#'
19676else
19677  DEBUG_IN_MOD_TRUE='#'
19678  DEBUG_IN_MOD_FALSE=
19679fi
19680
19681
19682if test $without_fortran -ne 1 && test "x$ac_cv_prog_f90_debug_in_module" != xyes \
19683		&& test "x$enable_shared" = xyes && test "x$FCFLAGS" = "x-g"
19684then
19685	without_fortran=1
19686	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
19687
19688  Your Fortran compiler ($FC) does not support linking to dynamic library modules when debug is enabled. This is a known
19689problem with Portland compilers versions 7 and 8, for example. Possible workarounds are:
19690
19691  - Use a Portland compiler version 10 or higher or a different compiler.
19692  - Disable shared libraries (e.g. configure --disable-shared)
19693  - Disable debug (e.g. configure FCFLAGS=\"\")
19694
19695  Compilation of the Fortran module has been disabled
19696
19697" >&5
19698$as_echo "$as_me: WARNING:
19699
19700  Your Fortran compiler ($FC) does not support linking to dynamic library modules when debug is enabled. This is a known
19701problem with Portland compilers versions 7 and 8, for example. Possible workarounds are:
19702
19703  - Use a Portland compiler version 10 or higher or a different compiler.
19704  - Disable shared libraries (e.g. configure --disable-shared)
19705  - Disable debug (e.g. configure FCFLAGS=\"\")
19706
19707  Compilation of the Fortran module has been disabled
19708
19709" >&2;}
19710fi
19711
19712
19713if test $without_fortran -ne 1
19714then
19715  FORTRAN_MOD=fortran
19716
19717  F90_CHECK="examples/F90"
19718
19719
19720
19721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran 90 modules inclusion flag" >&5
19722$as_echo_n "checking fortran 90 modules inclusion flag... " >&6; }
19723if ${ax_cv_f90_modflag+:} false; then :
19724  $as_echo_n "(cached) " >&6
19725else
19726  ac_ext=${ac_fc_srcext-f}
19727ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19728ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19729ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19730
19731i=0
19732while test \( -f tmpdir_$i \) -o \( -d tmpdir_$i \) ; do
19733  i=`expr $i + 1`
19734done
19735mkdir tmpdir_$i
19736cd tmpdir_$i
19737cat > conftest.$ac_ext <<_ACEOF
19738
19739!234567
19740      module conftest_module
19741      contains
19742      subroutine conftest_routine
19743      write(*,'(a)') 'gotcha!'
19744      end subroutine conftest_routine
19745      end module conftest_module
19746
19747_ACEOF
19748if ac_fn_fc_try_compile "$LINENO"; then :
19749
19750fi
19751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19752cd ..
19753ax_cv_f90_modflag="not found"
19754for ax_flag in "-I" "-M" "-p"; do
19755  if test "$ax_cv_f90_modflag" = "not found" ; then
19756    ax_save_FCFLAGS="$FCFLAGS"
19757    FCFLAGS="$ax_save_FCFLAGS ${ax_flag}tmpdir_$i"
19758    cat > conftest.$ac_ext <<_ACEOF
19759
19760!234567
19761      program conftest_program
19762      use conftest_module
19763      call conftest_routine
19764      end program conftest_program
19765
19766_ACEOF
19767if ac_fn_fc_try_compile "$LINENO"; then :
19768  ax_cv_f90_modflag="$ax_flag"
19769fi
19770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19771    FCFLAGS="$ax_save_FCFLAGS"
19772  fi
19773done
19774rm -fr tmpdir_$i
19775#if test "$ax_cv_f90_modflag" = "not found" ; then
19776#  AC_MSG_ERROR([unable to find compiler flag for modules inclusion])
19777#fi
19778ac_ext=c
19779ac_cpp='$CPP $CPPFLAGS'
19780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19782ac_compiler_gnu=$ac_cv_c_compiler_gnu
19783
19784
19785fi
19786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_f90_modflag" >&5
19787$as_echo "$ax_cv_f90_modflag" >&6; }
19788  if test "$ax_cv_f90_modflag" = "not found" ; then
19789    as_fn_error $? "unable to find compiler flag for modules inclusion" "$LINENO" 5
19790  fi
19791  F90_MODULE_FLAG=$ax_cv_f90_modflag
19792
19793fi
19794
19795
19796# Check whether --with-ifs-samples was given.
19797if test "${with_ifs_samples+set}" = set; then :
19798  withval=$with_ifs_samples; ifs_samples=$withval
19799else
19800  ifs_samples='none'
19801fi
19802
19803IFS_SAMPLES_DIR=""
19804
19805if test $ifs_samples != 'none'
19806then
19807	IFS_SAMPLES_DIR=$ifs_samples
19808else
19809	IFS_SAMPLES_DIR=$ifs_samples_files_path
19810fi
19811
19812
19813
19814
19815# Check whether --with-emos was given.
19816if test "${with_emos+set}" = set; then :
19817  withval=$with_emos; emos=$withval
19818else
19819  emos='none'
19820fi
19821
19822
19823EMOS_LIB=""
19824if test "$emos" != 'none'
19825then
19826  EMOS_LIB=$emos
19827
19828$as_echo "#define HAVE_LIBEMOS 1" >>confdefs.h
19829
19830fi
19831
19832
19833
19834# Check whether --with-fortranlibdir was given.
19835if test "${with_fortranlibdir+set}" = set; then :
19836  withval=$with_fortranlibdir; fortranlibdir=$withval
19837else
19838  fortranlibdir=''
19839fi
19840
19841
19842
19843# Check whether --with-fortranlibs was given.
19844if test "${with_fortranlibs+set}" = set; then :
19845  withval=$with_fortranlibs; fortranlibs=$withval
19846else
19847  fortranlibs='none'
19848fi
19849
19850
19851if test "$fortranlibs" != 'none'
19852then
19853   EMOS_LIB="$emos -L$fortranlibdir $fortranlibs -Wl,-rpath $fortranlibdir"
19854fi
19855
19856
19857
19858# Check whether --enable-timer was given.
19859if test "${enable_timer+set}" = set; then :
19860  enableval=$enable_timer; with_timer=${enableval}
19861else
19862  with_timer=no
19863fi
19864
19865if test "x${with_timer}" = xyes; then
19866
19867$as_echo "#define GRIB_TIMER 1" >>confdefs.h
19868
19869else
19870
19871$as_echo "#define GRIB_TIMER 0" >>confdefs.h
19872
19873fi
19874
19875
19876# Check whether --enable-omp-packing was given.
19877if test "${enable_omp_packing+set}" = set; then :
19878  enableval=$enable_omp_packing; with_omp=${enableval}
19879else
19880  with_omp=no
19881fi
19882
19883if test "x${with_omp}" = xyes; then
19884
19885$as_echo "#define OMP_PACKING 1" >>confdefs.h
19886
19887else
19888
19889$as_echo "#define OMP_PACKING 0" >>confdefs.h
19890
19891fi
19892
19893
19894# Check whether --with-netcdf was given.
19895if test "${with_netcdf+set}" = set; then :
19896  withval=$with_netcdf; netcdf_dir=$withval
19897else
19898  netcdf_dir='none'
19899fi
19900
19901with_netcdf=0
19902if test $netcdf_dir != 'none'
19903then
19904	with_netcdf=1
19905	CFLAGS="$CFLAGS -I${netcdf_dir}/include"
19906    NETCDF_LDFLAGS="-L${netcdf_dir}/lib -lnetcdf"
19907    ORIG_LDFLAGS=$LDFLAGS
19908    LDFLAGS="$LDFLAGS $NETCDF_LDFLAGS"
19909    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nc_open in -lnetcdf" >&5
19910$as_echo_n "checking for nc_open in -lnetcdf... " >&6; }
19911if ${ac_cv_lib_netcdf_nc_open+:} false; then :
19912  $as_echo_n "(cached) " >&6
19913else
19914  ac_check_lib_save_LIBS=$LIBS
19915LIBS="-lnetcdf  $LIBS"
19916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917/* end confdefs.h.  */
19918
19919/* Override any GCC internal prototype to avoid an error.
19920   Use char because int might match the return type of a GCC
19921   builtin and then its argument prototype would still apply.  */
19922#ifdef __cplusplus
19923extern "C"
19924#endif
19925char nc_open ();
19926int
19927main ()
19928{
19929return nc_open ();
19930  ;
19931  return 0;
19932}
19933_ACEOF
19934if ac_fn_c_try_link "$LINENO"; then :
19935  ac_cv_lib_netcdf_nc_open=yes
19936else
19937  ac_cv_lib_netcdf_nc_open=no
19938fi
19939rm -f core conftest.err conftest.$ac_objext \
19940    conftest$ac_exeext conftest.$ac_ext
19941LIBS=$ac_check_lib_save_LIBS
19942fi
19943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netcdf_nc_open" >&5
19944$as_echo "$ac_cv_lib_netcdf_nc_open" >&6; }
19945if test "x$ac_cv_lib_netcdf_nc_open" = xyes; then :
19946  netcdf_ok=1
19947else
19948  netcdf_ok=0
19949fi
19950
19951    LDFLAGS=$ORIG_LDFLAGS
19952	if test $netcdf_ok -eq 0
19953	then
19954      { $as_echo "$as_me:${as_lineno-$LINENO}:
19955!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
19956  CONFIGURATION ERROR: netcdf test not passed.
19957  Please check that the path to the netcdf library given in --with-netcdf=PATH_TO_NETCDF
19958  is correct. Otherwise build without netcdf.
19959!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
19960	  " >&5
19961$as_echo "$as_me:
19962!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
19963  CONFIGURATION ERROR: netcdf test not passed.
19964  Please check that the path to the netcdf library given in --with-netcdf=PATH_TO_NETCDF
19965  is correct. Otherwise build without netcdf.
19966!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
19967	  " >&6;}
19968	  test 0 -eq 1
19969	  exit
19970    fi
19971
19972
19973$as_echo "#define HAVE_NETCDF 1" >>confdefs.h
19974
19975fi
19976
19977# Check whether --enable-jpeg was given.
19978if test "${enable_jpeg+set}" = set; then :
19979  enableval=$enable_jpeg; without_jpeg=1
19980else
19981  without_jpeg=0
19982fi
19983
19984
19985
19986# Check whether --with-jasper was given.
19987if test "${with_jasper+set}" = set; then :
19988  withval=$with_jasper; jasper_dir=$withval
19989else
19990  jasper_dir='system'
19991fi
19992
19993
19994JASPER_DIR=$jasper_dir
19995
19996
19997if test $jasper_dir != 'system'
19998then
19999  CFLAGS="$CFLAGS -I${jasper_dir}/include"
20000  LDFLAGS="$LDFLAGS -L${jasper_dir}/lib"
20001fi
20002
20003
20004# Check whether --with-openjpeg was given.
20005if test "${with_openjpeg+set}" = set; then :
20006  withval=$with_openjpeg; openjpeg_dir=$withval
20007else
20008  openjpeg_dir='system'
20009fi
20010
20011
20012OPENJPEG_DIR=$openjpeg_dir
20013
20014
20015if test $openjpeg_dir != 'system'
20016then
20017  CFLAGS="$CFLAGS -I${openjpeg_dir}/include"
20018  LDFLAGS="$LDFLAGS -L${openjpeg_dir}/lib"
20019fi
20020
20021if test $without_jpeg -ne 1
20022then
20023
20024$as_echo "#define HAVE_JPEG 1" >>confdefs.h
20025
20026    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_memopen in -ljasper" >&5
20027$as_echo_n "checking for jas_stream_memopen in -ljasper... " >&6; }
20028if ${ac_cv_lib_jasper_jas_stream_memopen+:} false; then :
20029  $as_echo_n "(cached) " >&6
20030else
20031  ac_check_lib_save_LIBS=$LIBS
20032LIBS="-ljasper  $LIBS"
20033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20034/* end confdefs.h.  */
20035
20036/* Override any GCC internal prototype to avoid an error.
20037   Use char because int might match the return type of a GCC
20038   builtin and then its argument prototype would still apply.  */
20039#ifdef __cplusplus
20040extern "C"
20041#endif
20042char jas_stream_memopen ();
20043int
20044main ()
20045{
20046return jas_stream_memopen ();
20047  ;
20048  return 0;
20049}
20050_ACEOF
20051if ac_fn_c_try_link "$LINENO"; then :
20052  ac_cv_lib_jasper_jas_stream_memopen=yes
20053else
20054  ac_cv_lib_jasper_jas_stream_memopen=no
20055fi
20056rm -f core conftest.err conftest.$ac_objext \
20057    conftest$ac_exeext conftest.$ac_ext
20058LIBS=$ac_check_lib_save_LIBS
20059fi
20060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_memopen" >&5
20061$as_echo "$ac_cv_lib_jasper_jas_stream_memopen" >&6; }
20062if test "x$ac_cv_lib_jasper_jas_stream_memopen" = xyes; then :
20063  jasper_ok=1
20064else
20065  jasper_ok=0
20066fi
20067
20068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for opj_image_create in -lopenjpeg" >&5
20069$as_echo_n "checking for opj_image_create in -lopenjpeg... " >&6; }
20070if ${ac_cv_lib_openjpeg_opj_image_create+:} false; then :
20071  $as_echo_n "(cached) " >&6
20072else
20073  ac_check_lib_save_LIBS=$LIBS
20074LIBS="-lopenjpeg  $LIBS"
20075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20076/* end confdefs.h.  */
20077
20078/* Override any GCC internal prototype to avoid an error.
20079   Use char because int might match the return type of a GCC
20080   builtin and then its argument prototype would still apply.  */
20081#ifdef __cplusplus
20082extern "C"
20083#endif
20084char opj_image_create ();
20085int
20086main ()
20087{
20088return opj_image_create ();
20089  ;
20090  return 0;
20091}
20092_ACEOF
20093if ac_fn_c_try_link "$LINENO"; then :
20094  ac_cv_lib_openjpeg_opj_image_create=yes
20095else
20096  ac_cv_lib_openjpeg_opj_image_create=no
20097fi
20098rm -f core conftest.err conftest.$ac_objext \
20099    conftest$ac_exeext conftest.$ac_ext
20100LIBS=$ac_check_lib_save_LIBS
20101fi
20102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openjpeg_opj_image_create" >&5
20103$as_echo "$ac_cv_lib_openjpeg_opj_image_create" >&6; }
20104if test "x$ac_cv_lib_openjpeg_opj_image_create" = xyes; then :
20105  openjpeg_ok=1
20106else
20107  openjpeg_ok=0
20108fi
20109
20110
20111    jpeg_ok=0
20112
20113    # prefer openjpeg over jasper
20114	if test $openjpeg_ok -eq 1
20115	then
20116	  jpeg_ok=1
20117      LIB_OPENJPEG='-lopenjpeg -lm'
20118      LIBS="$LIB_OPENJPEG $LIBS"
20119
20120$as_echo "#define HAVE_LIBOPENJPEG 1" >>confdefs.h
20121
20122
20123    elif test $jasper_ok -eq 1
20124    then
20125	  jpeg_ok=1
20126      LIB_JASPER='-ljasper'
20127      LIBS="$LIB_JASPER $LIBS"
20128
20129$as_echo "#define HAVE_LIBJASPER 1" >>confdefs.h
20130
20131
20132	fi
20133
20134	if test $jpeg_ok -eq 0
20135	then
20136      { $as_echo "$as_me:${as_lineno-$LINENO}:
20137!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20138!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20139  CONFIGURATION ERROR: jpeg library (jasper or openjpeg) required.
20140  jpeg library installation is not working or missing.
20141
20142  To fix this problem you have the following options.
20143  1) Install without jpeg support enabled (--disable-jpeg), but you will not be able to
20144     decode grib2 data encoded in jpeg.
20145  2) Check if you have a jpeg library installed in a path different from your system path.
20146     In this case you can provide your jpeg library installation path to the configure
20147     through the options:
20148        --with-jasper=\"jasper_lib_path\"
20149        --with-openjpeg=\"openjpeg_lib_path\"
20150  3) Download and install one of the supported jpeg libraries.
20151!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20152!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20153	  " >&5
20154$as_echo "$as_me:
20155!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20156!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20157  CONFIGURATION ERROR: jpeg library (jasper or openjpeg) required.
20158  jpeg library installation is not working or missing.
20159
20160  To fix this problem you have the following options.
20161  1) Install without jpeg support enabled (--disable-jpeg), but you will not be able to
20162     decode grib2 data encoded in jpeg.
20163  2) Check if you have a jpeg library installed in a path different from your system path.
20164     In this case you can provide your jpeg library installation path to the configure
20165     through the options:
20166        --with-jasper=\"jasper_lib_path\"
20167        --with-openjpeg=\"openjpeg_lib_path\"
20168  3) Download and install one of the supported jpeg libraries.
20169!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20170!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
20171	  " >&6;}
20172	   0 -eq 1
20173	  exit
20174    fi
20175  JPEG_TEST="jpeg.sh"
20176
20177fi
20178
20179CCSDS_TEST=""
20180
20181# Check whether --with-aec was given.
20182if test "${with_aec+set}" = set; then :
20183  withval=$with_aec;
20184else
20185  with_aec=no
20186fi
20187
20188
20189if test "x$with_aec" != xno ; then
20190  if test "x$with_aec" != xyes ; then
20191    LDFLAGS="$LDFLAGS -L$with_aec/lib"
20192    CPPFLAGS="$CPPFLAGS -I$with_aec/include"
20193  fi
20194  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for aec_encode in -laec" >&5
20195$as_echo_n "checking for aec_encode in -laec... " >&6; }
20196if ${ac_cv_lib_aec_aec_encode+:} false; then :
20197  $as_echo_n "(cached) " >&6
20198else
20199  ac_check_lib_save_LIBS=$LIBS
20200LIBS="-laec  $LIBS"
20201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20202/* end confdefs.h.  */
20203
20204/* Override any GCC internal prototype to avoid an error.
20205   Use char because int might match the return type of a GCC
20206   builtin and then its argument prototype would still apply.  */
20207#ifdef __cplusplus
20208extern "C"
20209#endif
20210char aec_encode ();
20211int
20212main ()
20213{
20214return aec_encode ();
20215  ;
20216  return 0;
20217}
20218_ACEOF
20219if ac_fn_c_try_link "$LINENO"; then :
20220  ac_cv_lib_aec_aec_encode=yes
20221else
20222  ac_cv_lib_aec_aec_encode=no
20223fi
20224rm -f core conftest.err conftest.$ac_objext \
20225    conftest$ac_exeext conftest.$ac_ext
20226LIBS=$ac_check_lib_save_LIBS
20227fi
20228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aec_aec_encode" >&5
20229$as_echo "$ac_cv_lib_aec_aec_encode" >&6; }
20230if test "x$ac_cv_lib_aec_aec_encode" = xyes; then :
20231  cat >>confdefs.h <<_ACEOF
20232#define HAVE_LIBAEC 1
20233_ACEOF
20234
20235  LIBS="-laec $LIBS"
20236
20237else
20238  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20240as_fn_error $? "aec test failed (--without-aec to disable)
20241See \`config.log' for more details" "$LINENO" 5; }
20242fi
20243
20244  CCSDS_TEST="ccsds.sh"
20245  LIB_AEC='-laec'
20246
20247  AEC_DIR="$with_aec"
20248
20249
20250fi
20251
20252
20253
20254# Check whether --with-png-support was given.
20255if test "${with_png_support+set}" = set; then :
20256  withval=$with_png_support; with_png=1
20257else
20258  with_png=0
20259fi
20260
20261
20262if test $with_png -gt 0
20263then
20264    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG " >&5
20265$as_echo_n "checking for PNG ... " >&6; }
20266    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20267$as_echo "" >&6; }
20268    ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
20269if test "x$ac_cv_header_png_h" = xyes; then :
20270  passed=1
20271else
20272  passed=0
20273fi
20274
20275
20276     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_read_png in -lpng" >&5
20277$as_echo_n "checking for png_read_png in -lpng... " >&6; }
20278if ${ac_cv_lib_png_png_read_png+:} false; then :
20279  $as_echo_n "(cached) " >&6
20280else
20281  ac_check_lib_save_LIBS=$LIBS
20282LIBS="-lpng  $LIBS"
20283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20284/* end confdefs.h.  */
20285
20286/* Override any GCC internal prototype to avoid an error.
20287   Use char because int might match the return type of a GCC
20288   builtin and then its argument prototype would still apply.  */
20289#ifdef __cplusplus
20290extern "C"
20291#endif
20292char png_read_png ();
20293int
20294main ()
20295{
20296return png_read_png ();
20297  ;
20298  return 0;
20299}
20300_ACEOF
20301if ac_fn_c_try_link "$LINENO"; then :
20302  ac_cv_lib_png_png_read_png=yes
20303else
20304  ac_cv_lib_png_png_read_png=no
20305fi
20306rm -f core conftest.err conftest.$ac_objext \
20307    conftest$ac_exeext conftest.$ac_ext
20308LIBS=$ac_check_lib_save_LIBS
20309fi
20310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_read_png" >&5
20311$as_echo "$ac_cv_lib_png_png_read_png" >&6; }
20312if test "x$ac_cv_lib_png_png_read_png" = xyes; then :
20313  passed=1
20314else
20315  passed=0
20316fi
20317
20318    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG support package is complete" >&5
20319$as_echo_n "checking if PNG support package is complete... " >&6; }
20320
20321    if test $passed -gt 0
20322    then
20323      LIB_PNG='-lpng'
20324      LIBS="$LIB_PNG $LIBS"
20325
20326$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
20327
20328
20329      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20330$as_echo "yes" >&6; }
20331    else
20332      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
20333$as_echo "no -- some components failed test" >&6; }
20334    fi
20335fi
20336
20337
20338#PERL_INSTALL_OPTIONS="PREFIX=$prefix INSTALLDIRS=perl"
20339PERL_INSTALL_OPTIONS="LIB=$default_perl_install"
20340
20341# Check whether --enable-install-system-perl was given.
20342if test "${enable_install_system_perl+set}" = set; then :
20343  enableval=$enable_install_system_perl; enable_perl_install='yes'
20344else
20345  enable_perl_install='no'
20346fi
20347
20348
20349if test "$enable_perl_install" = 'yes'
20350then
20351    PERL_INSTALL_OPTIONS=""
20352fi
20353
20354
20355
20356
20357# Check whether --with-perl was given.
20358if test "${with_perl+set}" = set; then :
20359  withval=$with_perl; with_perl=$withval
20360else
20361  with_perl='no'
20362fi
20363
20364
20365if test "$with_perl" != 'no'
20366then
20367  if test "$with_perl" != 'yes'
20368  then
20369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
20370$as_echo_n "checking for perl... " >&6; }
20371if ${ac_cv_path_PERL+:} false; then :
20372  $as_echo_n "(cached) " >&6
20373else
20374  ac_cv_path_PERL="$with_perl"
20375fi
20376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
20377$as_echo "$ac_cv_path_PERL" >&6; };
20378    PERL=$ac_cv_path_PERL
20379      else
20380    for ac_prog in perl perl5
20381do
20382  # Extract the first word of "$ac_prog", so it can be a program name with args.
20383set dummy $ac_prog; ac_word=$2
20384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20385$as_echo_n "checking for $ac_word... " >&6; }
20386if ${ac_cv_path_PERL+:} false; then :
20387  $as_echo_n "(cached) " >&6
20388else
20389  case $PERL in
20390  [\\/]* | ?:[\\/]*)
20391  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
20392  ;;
20393  *)
20394  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20395for as_dir in $PATH
20396do
20397  IFS=$as_save_IFS
20398  test -z "$as_dir" && as_dir=.
20399    for ac_exec_ext in '' $ac_executable_extensions; do
20400  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20401    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
20402    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20403    break 2
20404  fi
20405done
20406  done
20407IFS=$as_save_IFS
20408
20409  ;;
20410esac
20411fi
20412PERL=$ac_cv_path_PERL
20413if test -n "$PERL"; then
20414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
20415$as_echo "$PERL" >&6; }
20416else
20417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20418$as_echo "no" >&6; }
20419fi
20420
20421
20422  test -n "$PERL" && break
20423done
20424test -n "$PERL" || PERL="perl"
20425  fi
20426fi
20427
20428builddir=`pwd`
20429
20430GRIB_API_LIB="${builddir}/src/grib_api.a"
20431GRIB_API_INC="${builddir}/src"
20432
20433# Check whether --with-perl-options was given.
20434if test "${with_perl_options+set}" = set; then :
20435  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20436fi
20437
20438
20439
20440
20441
20442 if test $with_perl != no; then
20443  WITH_PERL_TRUE=
20444  WITH_PERL_FALSE='#'
20445else
20446  WITH_PERL_TRUE='#'
20447  WITH_PERL_FALSE=
20448fi
20449
20450
20451# Check whether --enable-python was given.
20452if test "${enable_python+set}" = set; then :
20453  enableval=$enable_python;
20454fi
20455
20456
20457# Check whether --enable-numpy was given.
20458if test "${enable_numpy+set}" = set; then :
20459  enableval=$enable_numpy;
20460fi
20461
20462
20463if test "x$enable_python" = "xyes"
20464then
20465
20466
20467
20468
20469
20470
20471        if test -n "$PYTHON"; then
20472      # If the user set $PYTHON, use it and don't search something else.
20473      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.5" >&5
20474$as_echo_n "checking whether $PYTHON version is >= 2.5... " >&6; }
20475      prog="import sys
20476# split strings by '.' and convert to numeric.  Append some zeros
20477# because we need at least 4 digits for the hex conversion.
20478# map returns an iterator in Python 3.0 and a list in 2.x
20479minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
20480minverhex = 0
20481# xrange is not present in Python 3.0 and range returns an iterator
20482for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20483sys.exit(sys.hexversion < minverhex)"
20484  if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
20485   ($PYTHON -c "$prog") >&5 2>&5
20486   ac_status=$?
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); }; then :
20489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20490$as_echo "yes" >&6; }
20491else
20492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20493$as_echo "no" >&6; }
20494			       as_fn_error $? "Python interpreter is too old" "$LINENO" 5
20495fi
20496      am_display_PYTHON=$PYTHON
20497    else
20498      # Otherwise, try each interpreter until we find one that satisfies
20499      # VERSION.
20500      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
20501$as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
20502if ${am_cv_pathless_PYTHON+:} false; then :
20503  $as_echo_n "(cached) " >&6
20504else
20505
20506	for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
20507	  test "$am_cv_pathless_PYTHON" = none && break
20508	  prog="import sys
20509# split strings by '.' and convert to numeric.  Append some zeros
20510# because we need at least 4 digits for the hex conversion.
20511# map returns an iterator in Python 3.0 and a list in 2.x
20512minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
20513minverhex = 0
20514# xrange is not present in Python 3.0 and range returns an iterator
20515for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
20516sys.exit(sys.hexversion < minverhex)"
20517  if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
20518   ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
20519   ac_status=$?
20520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521   (exit $ac_status); }; then :
20522  break
20523fi
20524	done
20525fi
20526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
20527$as_echo "$am_cv_pathless_PYTHON" >&6; }
20528      # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
20529      if test "$am_cv_pathless_PYTHON" = none; then
20530	PYTHON=:
20531      else
20532        # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
20533set dummy $am_cv_pathless_PYTHON; ac_word=$2
20534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20535$as_echo_n "checking for $ac_word... " >&6; }
20536if ${ac_cv_path_PYTHON+:} false; then :
20537  $as_echo_n "(cached) " >&6
20538else
20539  case $PYTHON in
20540  [\\/]* | ?:[\\/]*)
20541  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
20542  ;;
20543  *)
20544  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20545for as_dir in $PATH
20546do
20547  IFS=$as_save_IFS
20548  test -z "$as_dir" && as_dir=.
20549    for ac_exec_ext in '' $ac_executable_extensions; do
20550  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20551    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
20552    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20553    break 2
20554  fi
20555done
20556  done
20557IFS=$as_save_IFS
20558
20559  ;;
20560esac
20561fi
20562PYTHON=$ac_cv_path_PYTHON
20563if test -n "$PYTHON"; then
20564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
20565$as_echo "$PYTHON" >&6; }
20566else
20567  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20568$as_echo "no" >&6; }
20569fi
20570
20571
20572      fi
20573      am_display_PYTHON=$am_cv_pathless_PYTHON
20574    fi
20575
20576
20577  if test "$PYTHON" = :; then
20578      as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
20579  else
20580
20581
20582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
20583$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
20584if ${am_cv_python_version+:} false; then :
20585  $as_echo_n "(cached) " >&6
20586else
20587  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
20588fi
20589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
20590$as_echo "$am_cv_python_version" >&6; }
20591  PYTHON_VERSION=$am_cv_python_version
20592
20593
20594
20595  PYTHON_PREFIX='${prefix}'
20596
20597  PYTHON_EXEC_PREFIX='${exec_prefix}'
20598
20599
20600
20601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
20602$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
20603if ${am_cv_python_platform+:} false; then :
20604  $as_echo_n "(cached) " >&6
20605else
20606  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
20607fi
20608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
20609$as_echo "$am_cv_python_platform" >&6; }
20610  PYTHON_PLATFORM=$am_cv_python_platform
20611
20612
20613  # Just factor out some code duplication.
20614  am_python_setup_sysconfig="\
20615import sys
20616# Prefer sysconfig over distutils.sysconfig, for better compatibility
20617# with python 3.x.  See automake bug#10227.
20618try:
20619    import sysconfig
20620except ImportError:
20621    can_use_sysconfig = 0
20622else:
20623    can_use_sysconfig = 1
20624# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
20625# <https://github.com/pypa/virtualenv/issues/118>
20626try:
20627    from platform import python_implementation
20628    if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
20629        can_use_sysconfig = 0
20630except ImportError:
20631    pass"
20632
20633
20634            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
20635$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
20636if ${am_cv_python_pythondir+:} false; then :
20637  $as_echo_n "(cached) " >&6
20638else
20639  if test "x$prefix" = xNONE
20640     then
20641       am_py_prefix=$ac_default_prefix
20642     else
20643       am_py_prefix=$prefix
20644     fi
20645     am_cv_python_pythondir=`$PYTHON -c "
20646$am_python_setup_sysconfig
20647if can_use_sysconfig:
20648    sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
20649else:
20650    from distutils import sysconfig
20651    sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
20652sys.stdout.write(sitedir)"`
20653     case $am_cv_python_pythondir in
20654     $am_py_prefix*)
20655       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
20656       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
20657       ;;
20658     *)
20659       case $am_py_prefix in
20660         /usr|/System*) ;;
20661         *)
20662	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
20663	  ;;
20664       esac
20665       ;;
20666     esac
20667
20668fi
20669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
20670$as_echo "$am_cv_python_pythondir" >&6; }
20671  pythondir=$am_cv_python_pythondir
20672
20673
20674
20675  pkgpythondir=\${pythondir}/$PACKAGE
20676
20677
20678        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
20679$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
20680if ${am_cv_python_pyexecdir+:} false; then :
20681  $as_echo_n "(cached) " >&6
20682else
20683  if test "x$exec_prefix" = xNONE
20684     then
20685       am_py_exec_prefix=$am_py_prefix
20686     else
20687       am_py_exec_prefix=$exec_prefix
20688     fi
20689     am_cv_python_pyexecdir=`$PYTHON -c "
20690$am_python_setup_sysconfig
20691if can_use_sysconfig:
20692    sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
20693else:
20694    from distutils import sysconfig
20695    sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
20696sys.stdout.write(sitedir)"`
20697     case $am_cv_python_pyexecdir in
20698     $am_py_exec_prefix*)
20699       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
20700       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
20701       ;;
20702     *)
20703       case $am_py_exec_prefix in
20704         /usr|/System*) ;;
20705         *)
20706	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
20707	   ;;
20708       esac
20709       ;;
20710     esac
20711
20712fi
20713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
20714$as_echo "$am_cv_python_pyexecdir" >&6; }
20715  pyexecdir=$am_cv_python_pyexecdir
20716
20717
20718
20719  pkgpyexecdir=\${pyexecdir}/$PACKAGE
20720
20721
20722
20723  fi
20724
20725
20726
20727
20728
20729
20730
20731
20732
20733  for ac_prog in python$PYTHON_VERSION-config python-config
20734do
20735  # Extract the first word of "$ac_prog", so it can be a program name with args.
20736set dummy $ac_prog; ac_word=$2
20737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20738$as_echo_n "checking for $ac_word... " >&6; }
20739if ${ac_cv_path_PYTHON_CONFIG+:} false; then :
20740  $as_echo_n "(cached) " >&6
20741else
20742  case $PYTHON_CONFIG in
20743  [\\/]* | ?:[\\/]*)
20744  ac_cv_path_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test with a path.
20745  ;;
20746  *)
20747  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20748for as_dir in `dirname $PYTHON`
20749do
20750  IFS=$as_save_IFS
20751  test -z "$as_dir" && as_dir=.
20752    for ac_exec_ext in '' $ac_executable_extensions; do
20753  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20754    ac_cv_path_PYTHON_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20755    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20756    break 2
20757  fi
20758done
20759  done
20760IFS=$as_save_IFS
20761
20762  ;;
20763esac
20764fi
20765PYTHON_CONFIG=$ac_cv_path_PYTHON_CONFIG
20766if test -n "$PYTHON_CONFIG"; then
20767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5
20768$as_echo "$PYTHON_CONFIG" >&6; }
20769else
20770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20771$as_echo "no" >&6; }
20772fi
20773
20774
20775  test -n "$PYTHON_CONFIG" && break
20776done
20777test -n "$PYTHON_CONFIG" || PYTHON_CONFIG="no"
20778
20779  if test "$PYTHON_CONFIG" = no; then :
20780  as_fn_error $? "cannot find python-config for $PYTHON." "$LINENO" 5
20781fi
20782
20783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking python include flags" >&5
20784$as_echo_n "checking python include flags... " >&6; }
20785  PYTHON_INCLUDES=`$PYTHON_CONFIG --includes`
20786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5
20787$as_echo "$PYTHON_INCLUDES" >&6; }
20788
20789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking python link flags" >&5
20790$as_echo_n "checking python link flags... " >&6; }
20791  PYTHON_LDFLAGS=`$PYTHON_CONFIG --ldflags`
20792  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
20793$as_echo "$PYTHON_LDFLAGS" >&6; }
20794
20795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking python C flags" >&5
20796$as_echo_n "checking python C flags... " >&6; }
20797  PYTHON_CFLAGS=`$PYTHON_CONFIG --cflags`
20798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CFLAGS" >&5
20799$as_echo "$PYTHON_CFLAGS" >&6; }
20800
20801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking python libraries" >&5
20802$as_echo_n "checking python libraries... " >&6; }
20803  PYTHON_LIBS=`$PYTHON_CONFIG --libs`
20804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LIBS" >&5
20805$as_echo "$PYTHON_LIBS" >&6; }
20806
20807  # macro that gets the include path for Python.h which is used to build
20808  # the shared library corresponding to the GRIB API Python module.
20809  # AX_PYTHON_DEVEL
20810
20811  # enable testing scripts if building with Python
20812  PYTHON_CHECK='examples/python'
20813
20814
20815  data_handler=numpy
20816  if test "x$enable_numpy" != "xno"
20817  then
20818    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether numpy is installed" >&5
20819$as_echo_n "checking whether numpy is installed... " >&6; }
20820
20821    has_numpy=`$PYTHON -c "import numpy;print numpy" 2> /dev/null`
20822    if test "x$has_numpy" = "x"
20823    then
20824       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20825$as_echo "no" >&6; }
20826       as_fn_error $? "NumPy is not installed. Use --disable-numpy if you want to disable Numpy from the build." "$LINENO" 5
20827    else
20828       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20829$as_echo "yes" >&6; }
20830       NUMPY_INCLUDE=`$PYTHON -c "import numpy;print numpy.get_include()"`
20831
20832    fi
20833  else
20834    data_handler=array
20835  fi
20836
20837  PYTHON_DATA_HANDLER=$data_handler
20838
20839fi
20840
20841 if test x$PYTHON != x; then
20842  WITH_PYTHON_TRUE=
20843  WITH_PYTHON_FALSE='#'
20844else
20845  WITH_PYTHON_TRUE='#'
20846  WITH_PYTHON_FALSE=
20847fi
20848
20849 if test x$FORTRAN_MOD != x; then
20850  WITH_FORTRAN_TRUE=
20851  WITH_FORTRAN_FALSE='#'
20852else
20853  WITH_FORTRAN_TRUE='#'
20854  WITH_FORTRAN_FALSE=
20855fi
20856
20857 if test "x$enable_shared" = xyes; then
20858  CREATING_SHARED_LIBS_TRUE=
20859  CREATING_SHARED_LIBS_FALSE='#'
20860else
20861  CREATING_SHARED_LIBS_TRUE='#'
20862  CREATING_SHARED_LIBS_FALSE=
20863fi
20864
20865
20866
20867
20868# Extract the first word of "rm", so it can be a program name with args.
20869set dummy rm; ac_word=$2
20870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20871$as_echo_n "checking for $ac_word... " >&6; }
20872if ${ac_cv_prog_RM+:} false; then :
20873  $as_echo_n "(cached) " >&6
20874else
20875  if test -n "$RM"; then
20876  ac_cv_prog_RM="$RM" # Let the user override the test.
20877else
20878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20879for as_dir in $PATH
20880do
20881  IFS=$as_save_IFS
20882  test -z "$as_dir" && as_dir=.
20883    for ac_exec_ext in '' $ac_executable_extensions; do
20884  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20885    ac_cv_prog_RM="rm"
20886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20887    break 2
20888  fi
20889done
20890  done
20891IFS=$as_save_IFS
20892
20893fi
20894fi
20895RM=$ac_cv_prog_RM
20896if test -n "$RM"; then
20897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
20898$as_echo "$RM" >&6; }
20899else
20900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20901$as_echo "no" >&6; }
20902fi
20903
20904
20905if test -n "$ac_tool_prefix"; then
20906  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20907set dummy ${ac_tool_prefix}ar; ac_word=$2
20908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20909$as_echo_n "checking for $ac_word... " >&6; }
20910if ${ac_cv_prog_AR+:} false; then :
20911  $as_echo_n "(cached) " >&6
20912else
20913  if test -n "$AR"; then
20914  ac_cv_prog_AR="$AR" # Let the user override the test.
20915else
20916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20917for as_dir in $PATH
20918do
20919  IFS=$as_save_IFS
20920  test -z "$as_dir" && as_dir=.
20921    for ac_exec_ext in '' $ac_executable_extensions; do
20922  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20923    ac_cv_prog_AR="${ac_tool_prefix}ar"
20924    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20925    break 2
20926  fi
20927done
20928  done
20929IFS=$as_save_IFS
20930
20931fi
20932fi
20933AR=$ac_cv_prog_AR
20934if test -n "$AR"; then
20935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
20936$as_echo "$AR" >&6; }
20937else
20938  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20939$as_echo "no" >&6; }
20940fi
20941
20942
20943fi
20944if test -z "$ac_cv_prog_AR"; then
20945  ac_ct_AR=$AR
20946  # Extract the first word of "ar", so it can be a program name with args.
20947set dummy ar; ac_word=$2
20948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20949$as_echo_n "checking for $ac_word... " >&6; }
20950if ${ac_cv_prog_ac_ct_AR+:} false; then :
20951  $as_echo_n "(cached) " >&6
20952else
20953  if test -n "$ac_ct_AR"; then
20954  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20955else
20956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20957for as_dir in $PATH
20958do
20959  IFS=$as_save_IFS
20960  test -z "$as_dir" && as_dir=.
20961    for ac_exec_ext in '' $ac_executable_extensions; do
20962  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20963    ac_cv_prog_ac_ct_AR="ar"
20964    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20965    break 2
20966  fi
20967done
20968  done
20969IFS=$as_save_IFS
20970
20971fi
20972fi
20973ac_ct_AR=$ac_cv_prog_ac_ct_AR
20974if test -n "$ac_ct_AR"; then
20975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
20976$as_echo "$ac_ct_AR" >&6; }
20977else
20978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20979$as_echo "no" >&6; }
20980fi
20981
20982  if test "x$ac_ct_AR" = x; then
20983    AR="ar"
20984  else
20985    case $cross_compiling:$ac_tool_warned in
20986yes:)
20987{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20988$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20989ac_tool_warned=yes ;;
20990esac
20991    AR=$ac_ct_AR
20992  fi
20993else
20994  AR="$ac_cv_prog_AR"
20995fi
20996
20997
20998WARN_PEDANTIC=
20999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -pedantic -Wall" >&5
21000$as_echo_n "checking whether $CC supports -pedantic -Wall... " >&6; }
21001if ${grib_api_cv_prog_cc_pedantic__Wall+:} false; then :
21002  $as_echo_n "(cached) " >&6
21003else
21004  save_CFLAGS="$CFLAGS"
21005CFLAGS="-pedantic -Wall"
21006cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007/* end confdefs.h.  */
21008
21009int
21010main ()
21011{
21012
21013  ;
21014  return 0;
21015}
21016_ACEOF
21017if ac_fn_c_try_compile "$LINENO"; then :
21018  grib_api_cv_prog_cc_pedantic__Wall=yes
21019else
21020  grib_api_cv_prog_cc_pedantic__Wall=no
21021fi
21022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21023CFLAGS="$save_CFLAGS"
21024fi
21025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $grib_api_cv_prog_cc_pedantic__Wall" >&5
21026$as_echo "$grib_api_cv_prog_cc_pedantic__Wall" >&6; }
21027if test $grib_api_cv_prog_cc_pedantic__Wall = yes; then :
21028  WARN_PEDANTIC="-pedantic -Wall"
21029fi
21030
21031
21032WERROR=
21033# Check whether --enable-werror-always was given.
21034if test "${enable_werror_always+set}" = set; then :
21035  enableval=$enable_werror_always;
21036else
21037  enable_werror_always=no
21038fi
21039
21040if test $enable_werror_always = yes; then :
21041  WERROR=-Werror
21042fi
21043
21044
21045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
21046$as_echo_n "checking for pow in -lm... " >&6; }
21047if ${ac_cv_lib_m_pow+:} false; then :
21048  $as_echo_n "(cached) " >&6
21049else
21050  ac_check_lib_save_LIBS=$LIBS
21051LIBS="-lm  $LIBS"
21052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21053/* end confdefs.h.  */
21054
21055/* Override any GCC internal prototype to avoid an error.
21056   Use char because int might match the return type of a GCC
21057   builtin and then its argument prototype would still apply.  */
21058#ifdef __cplusplus
21059extern "C"
21060#endif
21061char pow ();
21062int
21063main ()
21064{
21065return pow ();
21066  ;
21067  return 0;
21068}
21069_ACEOF
21070if ac_fn_c_try_link "$LINENO"; then :
21071  ac_cv_lib_m_pow=yes
21072else
21073  ac_cv_lib_m_pow=no
21074fi
21075rm -f core conftest.err conftest.$ac_objext \
21076    conftest$ac_exeext conftest.$ac_ext
21077LIBS=$ac_check_lib_save_LIBS
21078fi
21079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
21080$as_echo "$ac_cv_lib_m_pow" >&6; }
21081if test "x$ac_cv_lib_m_pow" = xyes; then :
21082  cat >>confdefs.h <<_ACEOF
21083#define HAVE_LIBM 1
21084_ACEOF
21085
21086  LIBS="-lm $LIBS"
21087
21088fi
21089
21090
21091ac_header_dirent=no
21092for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21093  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21095$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21096if eval \${$as_ac_Header+:} false; then :
21097  $as_echo_n "(cached) " >&6
21098else
21099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21100/* end confdefs.h.  */
21101#include <sys/types.h>
21102#include <$ac_hdr>
21103
21104int
21105main ()
21106{
21107if ((DIR *) 0)
21108return 0;
21109  ;
21110  return 0;
21111}
21112_ACEOF
21113if ac_fn_c_try_compile "$LINENO"; then :
21114  eval "$as_ac_Header=yes"
21115else
21116  eval "$as_ac_Header=no"
21117fi
21118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21119fi
21120eval ac_res=\$$as_ac_Header
21121	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21122$as_echo "$ac_res" >&6; }
21123if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21124  cat >>confdefs.h <<_ACEOF
21125#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21126_ACEOF
21127
21128ac_header_dirent=$ac_hdr; break
21129fi
21130
21131done
21132# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21133if test $ac_header_dirent = dirent.h; then
21134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21135$as_echo_n "checking for library containing opendir... " >&6; }
21136if ${ac_cv_search_opendir+:} false; then :
21137  $as_echo_n "(cached) " >&6
21138else
21139  ac_func_search_save_LIBS=$LIBS
21140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21141/* end confdefs.h.  */
21142
21143/* Override any GCC internal prototype to avoid an error.
21144   Use char because int might match the return type of a GCC
21145   builtin and then its argument prototype would still apply.  */
21146#ifdef __cplusplus
21147extern "C"
21148#endif
21149char opendir ();
21150int
21151main ()
21152{
21153return opendir ();
21154  ;
21155  return 0;
21156}
21157_ACEOF
21158for ac_lib in '' dir; do
21159  if test -z "$ac_lib"; then
21160    ac_res="none required"
21161  else
21162    ac_res=-l$ac_lib
21163    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21164  fi
21165  if ac_fn_c_try_link "$LINENO"; then :
21166  ac_cv_search_opendir=$ac_res
21167fi
21168rm -f core conftest.err conftest.$ac_objext \
21169    conftest$ac_exeext
21170  if ${ac_cv_search_opendir+:} false; then :
21171  break
21172fi
21173done
21174if ${ac_cv_search_opendir+:} false; then :
21175
21176else
21177  ac_cv_search_opendir=no
21178fi
21179rm conftest.$ac_ext
21180LIBS=$ac_func_search_save_LIBS
21181fi
21182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21183$as_echo "$ac_cv_search_opendir" >&6; }
21184ac_res=$ac_cv_search_opendir
21185if test "$ac_res" != no; then :
21186  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21187
21188fi
21189
21190else
21191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21192$as_echo_n "checking for library containing opendir... " >&6; }
21193if ${ac_cv_search_opendir+:} false; then :
21194  $as_echo_n "(cached) " >&6
21195else
21196  ac_func_search_save_LIBS=$LIBS
21197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198/* end confdefs.h.  */
21199
21200/* Override any GCC internal prototype to avoid an error.
21201   Use char because int might match the return type of a GCC
21202   builtin and then its argument prototype would still apply.  */
21203#ifdef __cplusplus
21204extern "C"
21205#endif
21206char opendir ();
21207int
21208main ()
21209{
21210return opendir ();
21211  ;
21212  return 0;
21213}
21214_ACEOF
21215for ac_lib in '' x; do
21216  if test -z "$ac_lib"; then
21217    ac_res="none required"
21218  else
21219    ac_res=-l$ac_lib
21220    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21221  fi
21222  if ac_fn_c_try_link "$LINENO"; then :
21223  ac_cv_search_opendir=$ac_res
21224fi
21225rm -f core conftest.err conftest.$ac_objext \
21226    conftest$ac_exeext
21227  if ${ac_cv_search_opendir+:} false; then :
21228  break
21229fi
21230done
21231if ${ac_cv_search_opendir+:} false; then :
21232
21233else
21234  ac_cv_search_opendir=no
21235fi
21236rm conftest.$ac_ext
21237LIBS=$ac_func_search_save_LIBS
21238fi
21239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21240$as_echo "$ac_cv_search_opendir" >&6; }
21241ac_res=$ac_cv_search_opendir
21242if test "$ac_res" != no; then :
21243  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21244
21245fi
21246
21247fi
21248
21249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21250$as_echo_n "checking for ANSI C header files... " >&6; }
21251if ${ac_cv_header_stdc+:} false; then :
21252  $as_echo_n "(cached) " >&6
21253else
21254  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21255/* end confdefs.h.  */
21256#include <stdlib.h>
21257#include <stdarg.h>
21258#include <string.h>
21259#include <float.h>
21260
21261int
21262main ()
21263{
21264
21265  ;
21266  return 0;
21267}
21268_ACEOF
21269if ac_fn_c_try_compile "$LINENO"; then :
21270  ac_cv_header_stdc=yes
21271else
21272  ac_cv_header_stdc=no
21273fi
21274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21275
21276if test $ac_cv_header_stdc = yes; then
21277  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21279/* end confdefs.h.  */
21280#include <string.h>
21281
21282_ACEOF
21283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21284  $EGREP "memchr" >/dev/null 2>&1; then :
21285
21286else
21287  ac_cv_header_stdc=no
21288fi
21289rm -f conftest*
21290
21291fi
21292
21293if test $ac_cv_header_stdc = yes; then
21294  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21295  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21296/* end confdefs.h.  */
21297#include <stdlib.h>
21298
21299_ACEOF
21300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21301  $EGREP "free" >/dev/null 2>&1; then :
21302
21303else
21304  ac_cv_header_stdc=no
21305fi
21306rm -f conftest*
21307
21308fi
21309
21310if test $ac_cv_header_stdc = yes; then
21311  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21312  if test "$cross_compiling" = yes; then :
21313  :
21314else
21315  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21316/* end confdefs.h.  */
21317#include <ctype.h>
21318#include <stdlib.h>
21319#if ((' ' & 0x0FF) == 0x020)
21320# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21321# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21322#else
21323# define ISLOWER(c) \
21324		   (('a' <= (c) && (c) <= 'i') \
21325		     || ('j' <= (c) && (c) <= 'r') \
21326		     || ('s' <= (c) && (c) <= 'z'))
21327# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21328#endif
21329
21330#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21331int
21332main ()
21333{
21334  int i;
21335  for (i = 0; i < 256; i++)
21336    if (XOR (islower (i), ISLOWER (i))
21337	|| toupper (i) != TOUPPER (i))
21338      return 2;
21339  return 0;
21340}
21341_ACEOF
21342if ac_fn_c_try_run "$LINENO"; then :
21343
21344else
21345  ac_cv_header_stdc=no
21346fi
21347rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21348  conftest.$ac_objext conftest.beam conftest.$ac_ext
21349fi
21350
21351fi
21352fi
21353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21354$as_echo "$ac_cv_header_stdc" >&6; }
21355if test $ac_cv_header_stdc = yes; then
21356
21357$as_echo "#define STDC_HEADERS 1" >>confdefs.h
21358
21359fi
21360
21361for ac_header in stddef.h stdlib.h string.h sys/param.h sys/time.h unistd.h math.h stdarg.h assert.h ctype.h fcntl.h
21362do :
21363  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21364ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21365if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21366  cat >>confdefs.h <<_ACEOF
21367#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21368_ACEOF
21369
21370fi
21371
21372done
21373
21374
21375ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21376if test "x$ac_cv_type_size_t" = xyes; then :
21377
21378else
21379
21380cat >>confdefs.h <<_ACEOF
21381#define size_t unsigned int
21382_ACEOF
21383
21384fi
21385
21386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21387$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21388if ${ac_cv_header_time+:} false; then :
21389  $as_echo_n "(cached) " >&6
21390else
21391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21392/* end confdefs.h.  */
21393#include <sys/types.h>
21394#include <sys/time.h>
21395#include <time.h>
21396
21397int
21398main ()
21399{
21400if ((struct tm *) 0)
21401return 0;
21402  ;
21403  return 0;
21404}
21405_ACEOF
21406if ac_fn_c_try_compile "$LINENO"; then :
21407  ac_cv_header_time=yes
21408else
21409  ac_cv_header_time=no
21410fi
21411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21412fi
21413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21414$as_echo "$ac_cv_header_time" >&6; }
21415if test $ac_cv_header_time = yes; then
21416
21417$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21418
21419fi
21420
21421
21422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
21423$as_echo_n "checking whether closedir returns void... " >&6; }
21424if ${ac_cv_func_closedir_void+:} false; then :
21425  $as_echo_n "(cached) " >&6
21426else
21427  if test "$cross_compiling" = yes; then :
21428  ac_cv_func_closedir_void=yes
21429else
21430  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21431/* end confdefs.h.  */
21432$ac_includes_default
21433#include <$ac_header_dirent>
21434#ifndef __cplusplus
21435int closedir ();
21436#endif
21437
21438int
21439main ()
21440{
21441return closedir (opendir (".")) != 0;
21442  ;
21443  return 0;
21444}
21445_ACEOF
21446if ac_fn_c_try_run "$LINENO"; then :
21447  ac_cv_func_closedir_void=no
21448else
21449  ac_cv_func_closedir_void=yes
21450fi
21451rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21452  conftest.$ac_objext conftest.beam conftest.$ac_ext
21453fi
21454
21455fi
21456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
21457$as_echo "$ac_cv_func_closedir_void" >&6; }
21458if test $ac_cv_func_closedir_void = yes; then
21459
21460$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
21461
21462fi
21463
21464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21465$as_echo_n "checking return type of signal handlers... " >&6; }
21466if ${ac_cv_type_signal+:} false; then :
21467  $as_echo_n "(cached) " >&6
21468else
21469  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21470/* end confdefs.h.  */
21471#include <sys/types.h>
21472#include <signal.h>
21473
21474int
21475main ()
21476{
21477return *(signal (0, 0)) (0) == 1;
21478  ;
21479  return 0;
21480}
21481_ACEOF
21482if ac_fn_c_try_compile "$LINENO"; then :
21483  ac_cv_type_signal=int
21484else
21485  ac_cv_type_signal=void
21486fi
21487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21488fi
21489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21490$as_echo "$ac_cv_type_signal" >&6; }
21491
21492cat >>confdefs.h <<_ACEOF
21493#define RETSIGTYPE $ac_cv_type_signal
21494_ACEOF
21495
21496
21497for ac_func in vprintf
21498do :
21499  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21500if test "x$ac_cv_func_vprintf" = xyes; then :
21501  cat >>confdefs.h <<_ACEOF
21502#define HAVE_VPRINTF 1
21503_ACEOF
21504
21505ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21506if test "x$ac_cv_func__doprnt" = xyes; then :
21507
21508$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21509
21510fi
21511
21512fi
21513done
21514
21515
21516for ac_func in bzero gettimeofday
21517do :
21518  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21519ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21520if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21521  cat >>confdefs.h <<_ACEOF
21522#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21523_ACEOF
21524
21525fi
21526done
21527
21528
21529
21530HOST_CPU=${host_cpu}
21531HOST_VENDOR=${host_vendor}
21532HOST_OS=${host_os}
21533
21534if test x$HOST_OS = "xlinux-gnu"
21535then
21536	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux distribution " >&5
21537$as_echo_n "checking for Linux distribution ... " >&6; }
21538
21539	# This works for Fedora, RedHat and Slackware
21540	for f in /etc/fedora-release /etc/redhat-release /etc/slackware-release
21541	do
21542		if test -f $f; then
21543			distro=`cat $f`
21544			break
21545		fi
21546	done
21547
21548	# This works in Ubuntu (11 at least)
21549	if test -f /etc/lsb-release; then
21550		distro=`cat /etc/lsb-release | grep DISTRIB_ID | awk -F= '{print }' `
21551		distro_version=`cat /etc/lsb-release | grep DISTRIB_RELEASE | awk -F= '{print }' `
21552	fi
21553
21554	# For SuSE
21555	if test -f /etc/SuSE-release; then
21556		distro=`cat /etc/SuSE-release | head -1`
21557		#distro_version=`cat /etc/SuSE-release | tail -1 | awk -F= '{print }' `
21558	fi
21559
21560	# At least Debian has this
21561	if test -f /etc/issue.net -a "x$distro" = x; then
21562		distro=`cat /etc/issue.net | head -1`
21563	fi
21564
21565	# Everything else
21566	if test "x$distro" = x; then
21567		distro="Unknown Linux"
21568	fi
21569
21570	LINUX_DISTRIBUTION_NAME=$distro
21571	LINUX_DISTRIBUTION_VERSION=$distro_version
21572    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_DISTRIBUTION_NAME $LINUX_DISTRIBUTION_VERSION" >&5
21573$as_echo "$LINUX_DISTRIBUTION_NAME $LINUX_DISTRIBUTION_VERSION" >&6; }
21574
21575else
21576	LINUX_DISTRIBUTION_NAME=$HOST_OS
21577	LINUX_DISTRIBUTION_VERSION=""
21578	{ $as_echo "$as_me:${as_lineno-$LINENO}: OS is non-Linux UNIX $HOST_OS." >&5
21579$as_echo "$as_me: OS is non-Linux UNIX $HOST_OS." >&6;}
21580fi
21581
21582
21583
21584
21585
21586ac_config_files="$ac_config_files Makefile src/Makefile fortran/Makefile tools/Makefile data/Makefile definitions/Makefile samples/Makefile ifs_samples/grib1/Makefile ifs_samples/grib1_mlgrib2/Makefile ifs_samples/grib1_mlgrib2_ieee64/Makefile tests/Makefile examples/C/Makefile examples/F90/Makefile tigge/Makefile perl/GRIB-API/Makefile.PL perl/Makefile python/Makefile examples/python/Makefile"
21587
21588cat >confcache <<\_ACEOF
21589# This file is a shell script that caches the results of configure
21590# tests run on this system so they can be shared between configure
21591# scripts and configure runs, see configure's option --config-cache.
21592# It is not useful on other systems.  If it contains results you don't
21593# want to keep, you may remove or edit it.
21594#
21595# config.status only pays attention to the cache file if you give it
21596# the --recheck option to rerun configure.
21597#
21598# `ac_cv_env_foo' variables (set or unset) will be overridden when
21599# loading this file, other *unset* `ac_cv_foo' will be assigned the
21600# following values.
21601
21602_ACEOF
21603
21604# The following way of writing the cache mishandles newlines in values,
21605# but we know of no workaround that is simple, portable, and efficient.
21606# So, we kill variables containing newlines.
21607# Ultrix sh set writes to stderr and can't be redirected directly,
21608# and sets the high bit in the cache file unless we assign to the vars.
21609(
21610  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21611    eval ac_val=\$$ac_var
21612    case $ac_val in #(
21613    *${as_nl}*)
21614      case $ac_var in #(
21615      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21616$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21617      esac
21618      case $ac_var in #(
21619      _ | IFS | as_nl) ;; #(
21620      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21621      *) { eval $ac_var=; unset $ac_var;} ;;
21622      esac ;;
21623    esac
21624  done
21625
21626  (set) 2>&1 |
21627    case $as_nl`(ac_space=' '; set) 2>&1` in #(
21628    *${as_nl}ac_space=\ *)
21629      # `set' does not quote correctly, so add quotes: double-quote
21630      # substitution turns \\\\ into \\, and sed turns \\ into \.
21631      sed -n \
21632	"s/'/'\\\\''/g;
21633	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21634      ;; #(
21635    *)
21636      # `set' quotes correctly as required by POSIX, so do not add quotes.
21637      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21638      ;;
21639    esac |
21640    sort
21641) |
21642  sed '
21643     /^ac_cv_env_/b end
21644     t clear
21645     :clear
21646     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21647     t end
21648     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21649     :end' >>confcache
21650if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21651  if test -w "$cache_file"; then
21652    if test "x$cache_file" != "x/dev/null"; then
21653      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21654$as_echo "$as_me: updating cache $cache_file" >&6;}
21655      if test ! -f "$cache_file" || test -h "$cache_file"; then
21656	cat confcache >"$cache_file"
21657      else
21658        case $cache_file in #(
21659        */* | ?:*)
21660	  mv -f confcache "$cache_file"$$ &&
21661	  mv -f "$cache_file"$$ "$cache_file" ;; #(
21662        *)
21663	  mv -f confcache "$cache_file" ;;
21664	esac
21665      fi
21666    fi
21667  else
21668    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21669$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21670  fi
21671fi
21672rm -f confcache
21673
21674test "x$prefix" = xNONE && prefix=$ac_default_prefix
21675# Let make expand exec_prefix.
21676test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21677
21678DEFS=-DHAVE_CONFIG_H
21679
21680ac_libobjs=
21681ac_ltlibobjs=
21682U=
21683for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21684  # 1. Remove the extension, and $U if already installed.
21685  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21686  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21687  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
21688  #    will be set to the directory where LIBOBJS objects are built.
21689  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21690  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21691done
21692LIBOBJS=$ac_libobjs
21693
21694LTLIBOBJS=$ac_ltlibobjs
21695
21696
21697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21698$as_echo_n "checking that generated files are newer than configure... " >&6; }
21699   if test -n "$am_sleep_pid"; then
21700     # Hide warnings about reused PIDs.
21701     wait $am_sleep_pid 2>/dev/null
21702   fi
21703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
21704$as_echo "done" >&6; }
21705if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21706  as_fn_error $? "conditional \"AMDEP\" was never defined.
21707Usually this means the macro was only invoked conditionally." "$LINENO" 5
21708fi
21709if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21710  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21711Usually this means the macro was only invoked conditionally." "$LINENO" 5
21712fi
21713 if test -n "$EXEEXT"; then
21714  am__EXEEXT_TRUE=
21715  am__EXEEXT_FALSE='#'
21716else
21717  am__EXEEXT_TRUE='#'
21718  am__EXEEXT_FALSE=
21719fi
21720
21721if test -z "${UPPER_CASE_MOD_TRUE}" && test -z "${UPPER_CASE_MOD_FALSE}"; then
21722  as_fn_error $? "conditional \"UPPER_CASE_MOD\" was never defined.
21723Usually this means the macro was only invoked conditionally." "$LINENO" 5
21724fi
21725if test -z "${WITH_MARS_TESTS_TRUE}" && test -z "${WITH_MARS_TESTS_FALSE}"; then
21726  as_fn_error $? "conditional \"WITH_MARS_TESTS\" was never defined.
21727Usually this means the macro was only invoked conditionally." "$LINENO" 5
21728fi
21729if test -z "${UPPER_CASE_MOD_TRUE}" && test -z "${UPPER_CASE_MOD_FALSE}"; then
21730  as_fn_error $? "conditional \"UPPER_CASE_MOD\" was never defined.
21731Usually this means the macro was only invoked conditionally." "$LINENO" 5
21732fi
21733if test -z "${DEBUG_IN_MOD_TRUE}" && test -z "${DEBUG_IN_MOD_FALSE}"; then
21734  as_fn_error $? "conditional \"DEBUG_IN_MOD\" was never defined.
21735Usually this means the macro was only invoked conditionally." "$LINENO" 5
21736fi
21737if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
21738  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
21739Usually this means the macro was only invoked conditionally." "$LINENO" 5
21740fi
21741if test -z "${WITH_PYTHON_TRUE}" && test -z "${WITH_PYTHON_FALSE}"; then
21742  as_fn_error $? "conditional \"WITH_PYTHON\" was never defined.
21743Usually this means the macro was only invoked conditionally." "$LINENO" 5
21744fi
21745if test -z "${WITH_FORTRAN_TRUE}" && test -z "${WITH_FORTRAN_FALSE}"; then
21746  as_fn_error $? "conditional \"WITH_FORTRAN\" was never defined.
21747Usually this means the macro was only invoked conditionally." "$LINENO" 5
21748fi
21749if test -z "${CREATING_SHARED_LIBS_TRUE}" && test -z "${CREATING_SHARED_LIBS_FALSE}"; then
21750  as_fn_error $? "conditional \"CREATING_SHARED_LIBS\" was never defined.
21751Usually this means the macro was only invoked conditionally." "$LINENO" 5
21752fi
21753
21754: "${CONFIG_STATUS=./config.status}"
21755ac_write_fail=0
21756ac_clean_files_save=$ac_clean_files
21757ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21758{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21759$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21760as_write_fail=0
21761cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21762#! $SHELL
21763# Generated by $as_me.
21764# Run this file to recreate the current configuration.
21765# Compiler output produced by configure, useful for debugging
21766# configure, is in config.log if it exists.
21767
21768debug=false
21769ac_cs_recheck=false
21770ac_cs_silent=false
21771
21772SHELL=\${CONFIG_SHELL-$SHELL}
21773export SHELL
21774_ASEOF
21775cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21776## -------------------- ##
21777## M4sh Initialization. ##
21778## -------------------- ##
21779
21780# Be more Bourne compatible
21781DUALCASE=1; export DUALCASE # for MKS sh
21782if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21783  emulate sh
21784  NULLCMD=:
21785  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21786  # is contrary to our usage.  Disable this feature.
21787  alias -g '${1+"$@"}'='"$@"'
21788  setopt NO_GLOB_SUBST
21789else
21790  case `(set -o) 2>/dev/null` in #(
21791  *posix*) :
21792    set -o posix ;; #(
21793  *) :
21794     ;;
21795esac
21796fi
21797
21798
21799as_nl='
21800'
21801export as_nl
21802# Printing a long string crashes Solaris 7 /usr/bin/printf.
21803as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21804as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21805as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21806# Prefer a ksh shell builtin over an external printf program on Solaris,
21807# but without wasting forks for bash or zsh.
21808if test -z "$BASH_VERSION$ZSH_VERSION" \
21809    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21810  as_echo='print -r --'
21811  as_echo_n='print -rn --'
21812elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21813  as_echo='printf %s\n'
21814  as_echo_n='printf %s'
21815else
21816  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21817    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21818    as_echo_n='/usr/ucb/echo -n'
21819  else
21820    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21821    as_echo_n_body='eval
21822      arg=$1;
21823      case $arg in #(
21824      *"$as_nl"*)
21825	expr "X$arg" : "X\\(.*\\)$as_nl";
21826	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21827      esac;
21828      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21829    '
21830    export as_echo_n_body
21831    as_echo_n='sh -c $as_echo_n_body as_echo'
21832  fi
21833  export as_echo_body
21834  as_echo='sh -c $as_echo_body as_echo'
21835fi
21836
21837# The user is always right.
21838if test "${PATH_SEPARATOR+set}" != set; then
21839  PATH_SEPARATOR=:
21840  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21841    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21842      PATH_SEPARATOR=';'
21843  }
21844fi
21845
21846
21847# IFS
21848# We need space, tab and new line, in precisely that order.  Quoting is
21849# there to prevent editors from complaining about space-tab.
21850# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21851# splitting by setting IFS to empty value.)
21852IFS=" ""	$as_nl"
21853
21854# Find who we are.  Look in the path if we contain no directory separator.
21855as_myself=
21856case $0 in #((
21857  *[\\/]* ) as_myself=$0 ;;
21858  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21859for as_dir in $PATH
21860do
21861  IFS=$as_save_IFS
21862  test -z "$as_dir" && as_dir=.
21863    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21864  done
21865IFS=$as_save_IFS
21866
21867     ;;
21868esac
21869# We did not find ourselves, most probably we were run as `sh COMMAND'
21870# in which case we are not to be found in the path.
21871if test "x$as_myself" = x; then
21872  as_myself=$0
21873fi
21874if test ! -f "$as_myself"; then
21875  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21876  exit 1
21877fi
21878
21879# Unset variables that we do not need and which cause bugs (e.g. in
21880# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21881# suppresses any "Segmentation fault" message there.  '((' could
21882# trigger a bug in pdksh 5.2.14.
21883for as_var in BASH_ENV ENV MAIL MAILPATH
21884do eval test x\${$as_var+set} = xset \
21885  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21886done
21887PS1='$ '
21888PS2='> '
21889PS4='+ '
21890
21891# NLS nuisances.
21892LC_ALL=C
21893export LC_ALL
21894LANGUAGE=C
21895export LANGUAGE
21896
21897# CDPATH.
21898(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21899
21900
21901# as_fn_error STATUS ERROR [LINENO LOG_FD]
21902# ----------------------------------------
21903# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21904# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21905# script with STATUS, using 1 if that was 0.
21906as_fn_error ()
21907{
21908  as_status=$1; test $as_status -eq 0 && as_status=1
21909  if test "$4"; then
21910    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21911    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21912  fi
21913  $as_echo "$as_me: error: $2" >&2
21914  as_fn_exit $as_status
21915} # as_fn_error
21916
21917
21918# as_fn_set_status STATUS
21919# -----------------------
21920# Set $? to STATUS, without forking.
21921as_fn_set_status ()
21922{
21923  return $1
21924} # as_fn_set_status
21925
21926# as_fn_exit STATUS
21927# -----------------
21928# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21929as_fn_exit ()
21930{
21931  set +e
21932  as_fn_set_status $1
21933  exit $1
21934} # as_fn_exit
21935
21936# as_fn_unset VAR
21937# ---------------
21938# Portably unset VAR.
21939as_fn_unset ()
21940{
21941  { eval $1=; unset $1;}
21942}
21943as_unset=as_fn_unset
21944# as_fn_append VAR VALUE
21945# ----------------------
21946# Append the text in VALUE to the end of the definition contained in VAR. Take
21947# advantage of any shell optimizations that allow amortized linear growth over
21948# repeated appends, instead of the typical quadratic growth present in naive
21949# implementations.
21950if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21951  eval 'as_fn_append ()
21952  {
21953    eval $1+=\$2
21954  }'
21955else
21956  as_fn_append ()
21957  {
21958    eval $1=\$$1\$2
21959  }
21960fi # as_fn_append
21961
21962# as_fn_arith ARG...
21963# ------------------
21964# Perform arithmetic evaluation on the ARGs, and store the result in the
21965# global $as_val. Take advantage of shells that can avoid forks. The arguments
21966# must be portable across $(()) and expr.
21967if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21968  eval 'as_fn_arith ()
21969  {
21970    as_val=$(( $* ))
21971  }'
21972else
21973  as_fn_arith ()
21974  {
21975    as_val=`expr "$@" || test $? -eq 1`
21976  }
21977fi # as_fn_arith
21978
21979
21980if expr a : '\(a\)' >/dev/null 2>&1 &&
21981   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21982  as_expr=expr
21983else
21984  as_expr=false
21985fi
21986
21987if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21988  as_basename=basename
21989else
21990  as_basename=false
21991fi
21992
21993if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21994  as_dirname=dirname
21995else
21996  as_dirname=false
21997fi
21998
21999as_me=`$as_basename -- "$0" ||
22000$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22001	 X"$0" : 'X\(//\)$' \| \
22002	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22003$as_echo X/"$0" |
22004    sed '/^.*\/\([^/][^/]*\)\/*$/{
22005	    s//\1/
22006	    q
22007	  }
22008	  /^X\/\(\/\/\)$/{
22009	    s//\1/
22010	    q
22011	  }
22012	  /^X\/\(\/\).*/{
22013	    s//\1/
22014	    q
22015	  }
22016	  s/.*/./; q'`
22017
22018# Avoid depending upon Character Ranges.
22019as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22020as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22021as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22022as_cr_digits='0123456789'
22023as_cr_alnum=$as_cr_Letters$as_cr_digits
22024
22025ECHO_C= ECHO_N= ECHO_T=
22026case `echo -n x` in #(((((
22027-n*)
22028  case `echo 'xy\c'` in
22029  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
22030  xy)  ECHO_C='\c';;
22031  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
22032       ECHO_T='	';;
22033  esac;;
22034*)
22035  ECHO_N='-n';;
22036esac
22037
22038rm -f conf$$ conf$$.exe conf$$.file
22039if test -d conf$$.dir; then
22040  rm -f conf$$.dir/conf$$.file
22041else
22042  rm -f conf$$.dir
22043  mkdir conf$$.dir 2>/dev/null
22044fi
22045if (echo >conf$$.file) 2>/dev/null; then
22046  if ln -s conf$$.file conf$$ 2>/dev/null; then
22047    as_ln_s='ln -s'
22048    # ... but there are two gotchas:
22049    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22050    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22051    # In both cases, we have to default to `cp -pR'.
22052    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22053      as_ln_s='cp -pR'
22054  elif ln conf$$.file conf$$ 2>/dev/null; then
22055    as_ln_s=ln
22056  else
22057    as_ln_s='cp -pR'
22058  fi
22059else
22060  as_ln_s='cp -pR'
22061fi
22062rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22063rmdir conf$$.dir 2>/dev/null
22064
22065
22066# as_fn_mkdir_p
22067# -------------
22068# Create "$as_dir" as a directory, including parents if necessary.
22069as_fn_mkdir_p ()
22070{
22071
22072  case $as_dir in #(
22073  -*) as_dir=./$as_dir;;
22074  esac
22075  test -d "$as_dir" || eval $as_mkdir_p || {
22076    as_dirs=
22077    while :; do
22078      case $as_dir in #(
22079      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22080      *) as_qdir=$as_dir;;
22081      esac
22082      as_dirs="'$as_qdir' $as_dirs"
22083      as_dir=`$as_dirname -- "$as_dir" ||
22084$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22085	 X"$as_dir" : 'X\(//\)[^/]' \| \
22086	 X"$as_dir" : 'X\(//\)$' \| \
22087	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22088$as_echo X"$as_dir" |
22089    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22090	    s//\1/
22091	    q
22092	  }
22093	  /^X\(\/\/\)[^/].*/{
22094	    s//\1/
22095	    q
22096	  }
22097	  /^X\(\/\/\)$/{
22098	    s//\1/
22099	    q
22100	  }
22101	  /^X\(\/\).*/{
22102	    s//\1/
22103	    q
22104	  }
22105	  s/.*/./; q'`
22106      test -d "$as_dir" && break
22107    done
22108    test -z "$as_dirs" || eval "mkdir $as_dirs"
22109  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22110
22111
22112} # as_fn_mkdir_p
22113if mkdir -p . 2>/dev/null; then
22114  as_mkdir_p='mkdir -p "$as_dir"'
22115else
22116  test -d ./-p && rmdir ./-p
22117  as_mkdir_p=false
22118fi
22119
22120
22121# as_fn_executable_p FILE
22122# -----------------------
22123# Test if FILE is an executable regular file.
22124as_fn_executable_p ()
22125{
22126  test -f "$1" && test -x "$1"
22127} # as_fn_executable_p
22128as_test_x='test -x'
22129as_executable_p=as_fn_executable_p
22130
22131# Sed expression to map a string onto a valid CPP name.
22132as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22133
22134# Sed expression to map a string onto a valid variable name.
22135as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22136
22137
22138exec 6>&1
22139## ----------------------------------- ##
22140## Main body of $CONFIG_STATUS script. ##
22141## ----------------------------------- ##
22142_ASEOF
22143test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22144
22145cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22146# Save the log message, to keep $0 and so on meaningful, and to
22147# report actual input values of CONFIG_FILES etc. instead of their
22148# values after options handling.
22149ac_log="
22150This file was extended by grib_api $as_me  , which was
22151generated by GNU Autoconf 2.69.  Invocation command line was
22152
22153  CONFIG_FILES    = $CONFIG_FILES
22154  CONFIG_HEADERS  = $CONFIG_HEADERS
22155  CONFIG_LINKS    = $CONFIG_LINKS
22156  CONFIG_COMMANDS = $CONFIG_COMMANDS
22157  $ $0 $@
22158
22159on `(hostname || uname -n) 2>/dev/null | sed 1q`
22160"
22161
22162_ACEOF
22163
22164case $ac_config_files in *"
22165"*) set x $ac_config_files; shift; ac_config_files=$*;;
22166esac
22167
22168case $ac_config_headers in *"
22169"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22170esac
22171
22172
22173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22174# Files that config.status was made for.
22175config_files="$ac_config_files"
22176config_headers="$ac_config_headers"
22177config_commands="$ac_config_commands"
22178
22179_ACEOF
22180
22181cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22182ac_cs_usage="\
22183\`$as_me' instantiates files and other configuration actions
22184from templates according to the current configuration.  Unless the files
22185and actions are specified as TAGs, all are instantiated by default.
22186
22187Usage: $0 [OPTION]... [TAG]...
22188
22189  -h, --help       print this help, then exit
22190  -V, --version    print version number and configuration settings, then exit
22191      --config     print configuration, then exit
22192  -q, --quiet, --silent
22193                   do not print progress messages
22194  -d, --debug      don't remove temporary files
22195      --recheck    update $as_me by reconfiguring in the same conditions
22196      --file=FILE[:TEMPLATE]
22197                   instantiate the configuration file FILE
22198      --header=FILE[:TEMPLATE]
22199                   instantiate the configuration header FILE
22200
22201Configuration files:
22202$config_files
22203
22204Configuration headers:
22205$config_headers
22206
22207Configuration commands:
22208$config_commands
22209
22210Report bugs to <Software.Support@ecmwf.int>."
22211
22212_ACEOF
22213cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22214ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22215ac_cs_version="\\
22216grib_api config.status
22217configured by $0, generated by GNU Autoconf 2.69,
22218  with options \\"\$ac_cs_config\\"
22219
22220Copyright (C) 2012 Free Software Foundation, Inc.
22221This config.status script is free software; the Free Software Foundation
22222gives unlimited permission to copy, distribute and modify it."
22223
22224ac_pwd='$ac_pwd'
22225srcdir='$srcdir'
22226INSTALL='$INSTALL'
22227MKDIR_P='$MKDIR_P'
22228AWK='$AWK'
22229test -n "\$AWK" || AWK=awk
22230_ACEOF
22231
22232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22233# The default lists apply if the user does not specify any file.
22234ac_need_defaults=:
22235while test $# != 0
22236do
22237  case $1 in
22238  --*=?*)
22239    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22240    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22241    ac_shift=:
22242    ;;
22243  --*=)
22244    ac_option=`expr "X$1" : 'X\([^=]*\)='`
22245    ac_optarg=
22246    ac_shift=:
22247    ;;
22248  *)
22249    ac_option=$1
22250    ac_optarg=$2
22251    ac_shift=shift
22252    ;;
22253  esac
22254
22255  case $ac_option in
22256  # Handling of the options.
22257  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22258    ac_cs_recheck=: ;;
22259  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22260    $as_echo "$ac_cs_version"; exit ;;
22261  --config | --confi | --conf | --con | --co | --c )
22262    $as_echo "$ac_cs_config"; exit ;;
22263  --debug | --debu | --deb | --de | --d | -d )
22264    debug=: ;;
22265  --file | --fil | --fi | --f )
22266    $ac_shift
22267    case $ac_optarg in
22268    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22269    '') as_fn_error $? "missing file argument" ;;
22270    esac
22271    as_fn_append CONFIG_FILES " '$ac_optarg'"
22272    ac_need_defaults=false;;
22273  --header | --heade | --head | --hea )
22274    $ac_shift
22275    case $ac_optarg in
22276    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22277    esac
22278    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22279    ac_need_defaults=false;;
22280  --he | --h)
22281    # Conflict between --help and --header
22282    as_fn_error $? "ambiguous option: \`$1'
22283Try \`$0 --help' for more information.";;
22284  --help | --hel | -h )
22285    $as_echo "$ac_cs_usage"; exit ;;
22286  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22287  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22288    ac_cs_silent=: ;;
22289
22290  # This is an error.
22291  -*) as_fn_error $? "unrecognized option: \`$1'
22292Try \`$0 --help' for more information." ;;
22293
22294  *) as_fn_append ac_config_targets " $1"
22295     ac_need_defaults=false ;;
22296
22297  esac
22298  shift
22299done
22300
22301ac_configure_extra_args=
22302
22303if $ac_cs_silent; then
22304  exec 6>/dev/null
22305  ac_configure_extra_args="$ac_configure_extra_args --silent"
22306fi
22307
22308_ACEOF
22309cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22310if \$ac_cs_recheck; then
22311  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22312  shift
22313  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22314  CONFIG_SHELL='$SHELL'
22315  export CONFIG_SHELL
22316  exec "\$@"
22317fi
22318
22319_ACEOF
22320cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22321exec 5>>config.log
22322{
22323  echo
22324  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22325## Running $as_me. ##
22326_ASBOX
22327  $as_echo "$ac_log"
22328} >&5
22329
22330_ACEOF
22331cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22332#
22333# INIT-COMMANDS
22334#
22335
22336
22337# The HP-UX ksh and POSIX shell print the target directory to stdout
22338# if CDPATH is set.
22339(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22340
22341sed_quote_subst='$sed_quote_subst'
22342double_quote_subst='$double_quote_subst'
22343delay_variable_subst='$delay_variable_subst'
22344macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22345macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22346enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22347enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22348pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22349enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22350SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22351ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22352PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22353host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22354host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22355host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22356build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22357build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22358build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22359SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22360Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22361GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22362EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22363FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22364LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22365NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22366LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22367max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22368ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22369exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22370lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22371lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22372lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22373lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22374lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22375reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22376reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22377OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22378deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22379file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22380file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22381want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22382DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22383sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22384AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22385AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22386archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22387STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22388RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22389old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22390old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22391old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22392lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22393CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22394CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22395compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22396GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22397lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22398lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22399lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22400lt_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"`'
22401nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22402lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22403objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22404MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22405lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22406lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22407lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22408lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22409lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22410need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22411MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22412DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22413NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22414LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22415OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22416OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22417libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22418shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22419extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22420archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22421enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22422export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22423whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22424compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22425old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22426old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22427archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22428archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22429module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22430module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22431with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22432allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22433no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22434hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22435hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22436hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22437hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22438hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22439hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22440hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22441inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22442link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22443always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22444export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22445exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22446include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22447prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22448postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22449file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22450variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22451need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22452need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22453version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22454runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22455shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22456shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22457libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22458library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22459soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22460install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22461postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22462postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22463finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22464finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22465hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22466sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22467sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22468hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22469enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22470enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22471enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22472old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22473striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22474compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22475predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22476postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22477predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22478postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22479compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22480LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
22481LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
22482reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
22483reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
22484reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
22485reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
22486old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
22487old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
22488compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
22489compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
22490GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
22491GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
22492lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
22493lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
22494lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
22495lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
22496lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
22497lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
22498lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
22499lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
22500lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
22501lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
22502archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
22503archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
22504enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
22505enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
22506export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
22507export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
22508whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
22509whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
22510compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
22511compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
22512old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
22513old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
22514old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
22515old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
22516archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
22517archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
22518archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
22519archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
22520module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
22521module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
22522module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
22523module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
22524with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
22525with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
22526allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
22527allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
22528no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
22529no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
22530hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
22531hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
22532hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
22533hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
22534hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
22535hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
22536hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
22537hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
22538hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
22539hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
22540hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
22541hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
22542hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
22543hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
22544inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
22545inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
22546link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
22547link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
22548always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
22549always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
22550export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
22551export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
22552exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
22553exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
22554include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
22555include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
22556prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
22557prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
22558postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
22559postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
22560file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
22561file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
22562hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
22563hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
22564compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
22565compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
22566predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
22567predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
22568postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
22569postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
22570predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
22571predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
22572postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
22573postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
22574compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
22575compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
22576
22577LTCC='$LTCC'
22578LTCFLAGS='$LTCFLAGS'
22579compiler='$compiler_DEFAULT'
22580
22581# A function that is used when there is no print builtin or printf.
22582func_fallback_echo ()
22583{
22584  eval 'cat <<_LTECHO_EOF
22585\$1
22586_LTECHO_EOF'
22587}
22588
22589# Quote evaled strings.
22590for var in SHELL \
22591ECHO \
22592PATH_SEPARATOR \
22593SED \
22594GREP \
22595EGREP \
22596FGREP \
22597LD \
22598NM \
22599LN_S \
22600lt_SP2NL \
22601lt_NL2SP \
22602reload_flag \
22603OBJDUMP \
22604deplibs_check_method \
22605file_magic_cmd \
22606file_magic_glob \
22607want_nocaseglob \
22608DLLTOOL \
22609sharedlib_from_linklib_cmd \
22610AR \
22611AR_FLAGS \
22612archiver_list_spec \
22613STRIP \
22614RANLIB \
22615CC \
22616CFLAGS \
22617compiler \
22618lt_cv_sys_global_symbol_pipe \
22619lt_cv_sys_global_symbol_to_cdecl \
22620lt_cv_sys_global_symbol_to_c_name_address \
22621lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22622nm_file_list_spec \
22623lt_prog_compiler_no_builtin_flag \
22624lt_prog_compiler_pic \
22625lt_prog_compiler_wl \
22626lt_prog_compiler_static \
22627lt_cv_prog_compiler_c_o \
22628need_locks \
22629MANIFEST_TOOL \
22630DSYMUTIL \
22631NMEDIT \
22632LIPO \
22633OTOOL \
22634OTOOL64 \
22635shrext_cmds \
22636export_dynamic_flag_spec \
22637whole_archive_flag_spec \
22638compiler_needs_object \
22639with_gnu_ld \
22640allow_undefined_flag \
22641no_undefined_flag \
22642hardcode_libdir_flag_spec \
22643hardcode_libdir_separator \
22644exclude_expsyms \
22645include_expsyms \
22646file_list_spec \
22647variables_saved_for_relink \
22648libname_spec \
22649library_names_spec \
22650soname_spec \
22651install_override_mode \
22652finish_eval \
22653old_striplib \
22654striplib \
22655compiler_lib_search_dirs \
22656predep_objects \
22657postdep_objects \
22658predeps \
22659postdeps \
22660compiler_lib_search_path \
22661LD_F77 \
22662LD_FC \
22663reload_flag_F77 \
22664reload_flag_FC \
22665compiler_F77 \
22666compiler_FC \
22667lt_prog_compiler_no_builtin_flag_F77 \
22668lt_prog_compiler_no_builtin_flag_FC \
22669lt_prog_compiler_pic_F77 \
22670lt_prog_compiler_pic_FC \
22671lt_prog_compiler_wl_F77 \
22672lt_prog_compiler_wl_FC \
22673lt_prog_compiler_static_F77 \
22674lt_prog_compiler_static_FC \
22675lt_cv_prog_compiler_c_o_F77 \
22676lt_cv_prog_compiler_c_o_FC \
22677export_dynamic_flag_spec_F77 \
22678export_dynamic_flag_spec_FC \
22679whole_archive_flag_spec_F77 \
22680whole_archive_flag_spec_FC \
22681compiler_needs_object_F77 \
22682compiler_needs_object_FC \
22683with_gnu_ld_F77 \
22684with_gnu_ld_FC \
22685allow_undefined_flag_F77 \
22686allow_undefined_flag_FC \
22687no_undefined_flag_F77 \
22688no_undefined_flag_FC \
22689hardcode_libdir_flag_spec_F77 \
22690hardcode_libdir_flag_spec_FC \
22691hardcode_libdir_separator_F77 \
22692hardcode_libdir_separator_FC \
22693exclude_expsyms_F77 \
22694exclude_expsyms_FC \
22695include_expsyms_F77 \
22696include_expsyms_FC \
22697file_list_spec_F77 \
22698file_list_spec_FC \
22699compiler_lib_search_dirs_F77 \
22700compiler_lib_search_dirs_FC \
22701predep_objects_F77 \
22702predep_objects_FC \
22703postdep_objects_F77 \
22704postdep_objects_FC \
22705predeps_F77 \
22706predeps_FC \
22707postdeps_F77 \
22708postdeps_FC \
22709compiler_lib_search_path_F77 \
22710compiler_lib_search_path_FC; do
22711    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22712    *[\\\\\\\`\\"\\\$]*)
22713      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22714      ;;
22715    *)
22716      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22717      ;;
22718    esac
22719done
22720
22721# Double-quote double-evaled strings.
22722for var in reload_cmds \
22723old_postinstall_cmds \
22724old_postuninstall_cmds \
22725old_archive_cmds \
22726extract_expsyms_cmds \
22727old_archive_from_new_cmds \
22728old_archive_from_expsyms_cmds \
22729archive_cmds \
22730archive_expsym_cmds \
22731module_cmds \
22732module_expsym_cmds \
22733export_symbols_cmds \
22734prelink_cmds \
22735postlink_cmds \
22736postinstall_cmds \
22737postuninstall_cmds \
22738finish_cmds \
22739sys_lib_search_path_spec \
22740sys_lib_dlsearch_path_spec \
22741reload_cmds_F77 \
22742reload_cmds_FC \
22743old_archive_cmds_F77 \
22744old_archive_cmds_FC \
22745old_archive_from_new_cmds_F77 \
22746old_archive_from_new_cmds_FC \
22747old_archive_from_expsyms_cmds_F77 \
22748old_archive_from_expsyms_cmds_FC \
22749archive_cmds_F77 \
22750archive_cmds_FC \
22751archive_expsym_cmds_F77 \
22752archive_expsym_cmds_FC \
22753module_cmds_F77 \
22754module_cmds_FC \
22755module_expsym_cmds_F77 \
22756module_expsym_cmds_FC \
22757export_symbols_cmds_F77 \
22758export_symbols_cmds_FC \
22759prelink_cmds_F77 \
22760prelink_cmds_FC \
22761postlink_cmds_F77 \
22762postlink_cmds_FC; do
22763    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22764    *[\\\\\\\`\\"\\\$]*)
22765      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22766      ;;
22767    *)
22768      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22769      ;;
22770    esac
22771done
22772
22773ac_aux_dir='$ac_aux_dir'
22774xsi_shell='$xsi_shell'
22775lt_shell_append='$lt_shell_append'
22776
22777# See if we are running on zsh, and set the options which allow our
22778# commands through without removal of \ escapes INIT.
22779if test -n "\${ZSH_VERSION+set}" ; then
22780   setopt NO_GLOB_SUBST
22781fi
22782
22783
22784    PACKAGE='$PACKAGE'
22785    VERSION='$VERSION'
22786    TIMESTAMP='$TIMESTAMP'
22787    RM='$RM'
22788    ofile='$ofile'
22789
22790
22791
22792
22793
22794
22795
22796AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22797
22798_ACEOF
22799
22800cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22801
22802# Handling of arguments.
22803for ac_config_target in $ac_config_targets
22804do
22805  case $ac_config_target in
22806    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22807    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
22808    "src/grib_api_version.h") CONFIG_FILES="$CONFIG_FILES src/grib_api_version.h" ;;
22809    "rpms/grib_api.pc") CONFIG_FILES="$CONFIG_FILES rpms/grib_api.pc" ;;
22810    "rpms/grib_api.spec") CONFIG_FILES="$CONFIG_FILES rpms/grib_api.spec" ;;
22811    "rpms/grib_api_f90.pc") CONFIG_FILES="$CONFIG_FILES rpms/grib_api_f90.pc" ;;
22812    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22813    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22814    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22815    "fortran/Makefile") CONFIG_FILES="$CONFIG_FILES fortran/Makefile" ;;
22816    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
22817    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
22818    "definitions/Makefile") CONFIG_FILES="$CONFIG_FILES definitions/Makefile" ;;
22819    "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
22820    "ifs_samples/grib1/Makefile") CONFIG_FILES="$CONFIG_FILES ifs_samples/grib1/Makefile" ;;
22821    "ifs_samples/grib1_mlgrib2/Makefile") CONFIG_FILES="$CONFIG_FILES ifs_samples/grib1_mlgrib2/Makefile" ;;
22822    "ifs_samples/grib1_mlgrib2_ieee64/Makefile") CONFIG_FILES="$CONFIG_FILES ifs_samples/grib1_mlgrib2_ieee64/Makefile" ;;
22823    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22824    "examples/C/Makefile") CONFIG_FILES="$CONFIG_FILES examples/C/Makefile" ;;
22825    "examples/F90/Makefile") CONFIG_FILES="$CONFIG_FILES examples/F90/Makefile" ;;
22826    "tigge/Makefile") CONFIG_FILES="$CONFIG_FILES tigge/Makefile" ;;
22827    "perl/GRIB-API/Makefile.PL") CONFIG_FILES="$CONFIG_FILES perl/GRIB-API/Makefile.PL" ;;
22828    "perl/Makefile") CONFIG_FILES="$CONFIG_FILES perl/Makefile" ;;
22829    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
22830    "examples/python/Makefile") CONFIG_FILES="$CONFIG_FILES examples/python/Makefile" ;;
22831
22832  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22833  esac
22834done
22835
22836
22837# If the user did not use the arguments to specify the items to instantiate,
22838# then the envvar interface is used.  Set only those that are not.
22839# We use the long form for the default assignment because of an extremely
22840# bizarre bug on SunOS 4.1.3.
22841if $ac_need_defaults; then
22842  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22843  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22844  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22845fi
22846
22847# Have a temporary directory for convenience.  Make it in the build tree
22848# simply because there is no reason against having it here, and in addition,
22849# creating and moving files from /tmp can sometimes cause problems.
22850# Hook for its removal unless debugging.
22851# Note that there is a small window in which the directory will not be cleaned:
22852# after its creation but before its name has been assigned to `$tmp'.
22853$debug ||
22854{
22855  tmp= ac_tmp=
22856  trap 'exit_status=$?
22857  : "${ac_tmp:=$tmp}"
22858  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22859' 0
22860  trap 'as_fn_exit 1' 1 2 13 15
22861}
22862# Create a (secure) tmp directory for tmp files.
22863
22864{
22865  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22866  test -d "$tmp"
22867}  ||
22868{
22869  tmp=./conf$$-$RANDOM
22870  (umask 077 && mkdir "$tmp")
22871} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22872ac_tmp=$tmp
22873
22874# Set up the scripts for CONFIG_FILES section.
22875# No need to generate them if there are no CONFIG_FILES.
22876# This happens for instance with `./config.status config.h'.
22877if test -n "$CONFIG_FILES"; then
22878
22879
22880ac_cr=`echo X | tr X '\015'`
22881# On cygwin, bash can eat \r inside `` if the user requested igncr.
22882# But we know of no other shell where ac_cr would be empty at this
22883# point, so we can use a bashism as a fallback.
22884if test "x$ac_cr" = x; then
22885  eval ac_cr=\$\'\\r\'
22886fi
22887ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22888if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22889  ac_cs_awk_cr='\\r'
22890else
22891  ac_cs_awk_cr=$ac_cr
22892fi
22893
22894echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22895_ACEOF
22896
22897
22898{
22899  echo "cat >conf$$subs.awk <<_ACEOF" &&
22900  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22901  echo "_ACEOF"
22902} >conf$$subs.sh ||
22903  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22904ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22905ac_delim='%!_!# '
22906for ac_last_try in false false false false false :; do
22907  . ./conf$$subs.sh ||
22908    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22909
22910  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22911  if test $ac_delim_n = $ac_delim_num; then
22912    break
22913  elif $ac_last_try; then
22914    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22915  else
22916    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22917  fi
22918done
22919rm -f conf$$subs.sh
22920
22921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22922cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22923_ACEOF
22924sed -n '
22925h
22926s/^/S["/; s/!.*/"]=/
22927p
22928g
22929s/^[^!]*!//
22930:repl
22931t repl
22932s/'"$ac_delim"'$//
22933t delim
22934:nl
22935h
22936s/\(.\{148\}\)..*/\1/
22937t more1
22938s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22939p
22940n
22941b repl
22942:more1
22943s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22944p
22945g
22946s/.\{148\}//
22947t nl
22948:delim
22949h
22950s/\(.\{148\}\)..*/\1/
22951t more2
22952s/["\\]/\\&/g; s/^/"/; s/$/"/
22953p
22954b
22955:more2
22956s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22957p
22958g
22959s/.\{148\}//
22960t delim
22961' <conf$$subs.awk | sed '
22962/^[^""]/{
22963  N
22964  s/\n//
22965}
22966' >>$CONFIG_STATUS || ac_write_fail=1
22967rm -f conf$$subs.awk
22968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22969_ACAWK
22970cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22971  for (key in S) S_is_set[key] = 1
22972  FS = ""
22973
22974}
22975{
22976  line = $ 0
22977  nfields = split(line, field, "@")
22978  substed = 0
22979  len = length(field[1])
22980  for (i = 2; i < nfields; i++) {
22981    key = field[i]
22982    keylen = length(key)
22983    if (S_is_set[key]) {
22984      value = S[key]
22985      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22986      len += length(value) + length(field[++i])
22987      substed = 1
22988    } else
22989      len += 1 + keylen
22990  }
22991
22992  print line
22993}
22994
22995_ACAWK
22996_ACEOF
22997cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22998if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22999  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23000else
23001  cat
23002fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23003  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23004_ACEOF
23005
23006# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23007# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23008# trailing colons and then remove the whole line if VPATH becomes empty
23009# (actually we leave an empty line to preserve line numbers).
23010if test "x$srcdir" = x.; then
23011  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
23012h
23013s///
23014s/^/:/
23015s/[	 ]*$/:/
23016s/:\$(srcdir):/:/g
23017s/:\${srcdir}:/:/g
23018s/:@srcdir@:/:/g
23019s/^:*//
23020s/:*$//
23021x
23022s/\(=[	 ]*\).*/\1/
23023G
23024s/\n//
23025s/^[^=]*=[	 ]*$//
23026}'
23027fi
23028
23029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23030fi # test -n "$CONFIG_FILES"
23031
23032# Set up the scripts for CONFIG_HEADERS section.
23033# No need to generate them if there are no CONFIG_HEADERS.
23034# This happens for instance with `./config.status Makefile'.
23035if test -n "$CONFIG_HEADERS"; then
23036cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23037BEGIN {
23038_ACEOF
23039
23040# Transform confdefs.h into an awk script `defines.awk', embedded as
23041# here-document in config.status, that substitutes the proper values into
23042# config.h.in to produce config.h.
23043
23044# Create a delimiter string that does not exist in confdefs.h, to ease
23045# handling of long lines.
23046ac_delim='%!_!# '
23047for ac_last_try in false false :; do
23048  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23049  if test -z "$ac_tt"; then
23050    break
23051  elif $ac_last_try; then
23052    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23053  else
23054    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23055  fi
23056done
23057
23058# For the awk script, D is an array of macro values keyed by name,
23059# likewise P contains macro parameters if any.  Preserve backslash
23060# newline sequences.
23061
23062ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23063sed -n '
23064s/.\{148\}/&'"$ac_delim"'/g
23065t rset
23066:rset
23067s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
23068t def
23069d
23070:def
23071s/\\$//
23072t bsnl
23073s/["\\]/\\&/g
23074s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23075D["\1"]=" \3"/p
23076s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
23077d
23078:bsnl
23079s/["\\]/\\&/g
23080s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
23081D["\1"]=" \3\\\\\\n"\\/p
23082t cont
23083s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23084t cont
23085d
23086:cont
23087n
23088s/.\{148\}/&'"$ac_delim"'/g
23089t clear
23090:clear
23091s/\\$//
23092t bsnlc
23093s/["\\]/\\&/g; s/^/"/; s/$/"/p
23094d
23095:bsnlc
23096s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23097b cont
23098' <confdefs.h | sed '
23099s/'"$ac_delim"'/"\\\
23100"/g' >>$CONFIG_STATUS || ac_write_fail=1
23101
23102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23103  for (key in D) D_is_set[key] = 1
23104  FS = ""
23105}
23106/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23107  line = \$ 0
23108  split(line, arg, " ")
23109  if (arg[1] == "#") {
23110    defundef = arg[2]
23111    mac1 = arg[3]
23112  } else {
23113    defundef = substr(arg[1], 2)
23114    mac1 = arg[2]
23115  }
23116  split(mac1, mac2, "(") #)
23117  macro = mac2[1]
23118  prefix = substr(line, 1, index(line, defundef) - 1)
23119  if (D_is_set[macro]) {
23120    # Preserve the white space surrounding the "#".
23121    print prefix "define", macro P[macro] D[macro]
23122    next
23123  } else {
23124    # Replace #undef with comments.  This is necessary, for example,
23125    # in the case of _POSIX_SOURCE, which is predefined and required
23126    # on some systems where configure will not decide to define it.
23127    if (defundef == "undef") {
23128      print "/*", prefix defundef, macro, "*/"
23129      next
23130    }
23131  }
23132}
23133{ print }
23134_ACAWK
23135_ACEOF
23136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23137  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23138fi # test -n "$CONFIG_HEADERS"
23139
23140
23141eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
23142shift
23143for ac_tag
23144do
23145  case $ac_tag in
23146  :[FHLC]) ac_mode=$ac_tag; continue;;
23147  esac
23148  case $ac_mode$ac_tag in
23149  :[FHL]*:*);;
23150  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23151  :[FH]-) ac_tag=-:-;;
23152  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23153  esac
23154  ac_save_IFS=$IFS
23155  IFS=:
23156  set x $ac_tag
23157  IFS=$ac_save_IFS
23158  shift
23159  ac_file=$1
23160  shift
23161
23162  case $ac_mode in
23163  :L) ac_source=$1;;
23164  :[FH])
23165    ac_file_inputs=
23166    for ac_f
23167    do
23168      case $ac_f in
23169      -) ac_f="$ac_tmp/stdin";;
23170      *) # Look for the file first in the build tree, then in the source tree
23171	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
23172	 # because $ac_f cannot contain `:'.
23173	 test -f "$ac_f" ||
23174	   case $ac_f in
23175	   [\\/$]*) false;;
23176	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23177	   esac ||
23178	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23179      esac
23180      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23181      as_fn_append ac_file_inputs " '$ac_f'"
23182    done
23183
23184    # Let's still pretend it is `configure' which instantiates (i.e., don't
23185    # use $as_me), people would be surprised to read:
23186    #    /* config.h.  Generated by config.status.  */
23187    configure_input='Generated from '`
23188	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23189	`' by configure.'
23190    if test x"$ac_file" != x-; then
23191      configure_input="$ac_file.  $configure_input"
23192      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23193$as_echo "$as_me: creating $ac_file" >&6;}
23194    fi
23195    # Neutralize special characters interpreted by sed in replacement strings.
23196    case $configure_input in #(
23197    *\&* | *\|* | *\\* )
23198       ac_sed_conf_input=`$as_echo "$configure_input" |
23199       sed 's/[\\\\&|]/\\\\&/g'`;; #(
23200    *) ac_sed_conf_input=$configure_input;;
23201    esac
23202
23203    case $ac_tag in
23204    *:-:* | *:-) cat >"$ac_tmp/stdin" \
23205      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23206    esac
23207    ;;
23208  esac
23209
23210  ac_dir=`$as_dirname -- "$ac_file" ||
23211$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23212	 X"$ac_file" : 'X\(//\)[^/]' \| \
23213	 X"$ac_file" : 'X\(//\)$' \| \
23214	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23215$as_echo X"$ac_file" |
23216    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23217	    s//\1/
23218	    q
23219	  }
23220	  /^X\(\/\/\)[^/].*/{
23221	    s//\1/
23222	    q
23223	  }
23224	  /^X\(\/\/\)$/{
23225	    s//\1/
23226	    q
23227	  }
23228	  /^X\(\/\).*/{
23229	    s//\1/
23230	    q
23231	  }
23232	  s/.*/./; q'`
23233  as_dir="$ac_dir"; as_fn_mkdir_p
23234  ac_builddir=.
23235
23236case "$ac_dir" in
23237.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23238*)
23239  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23240  # A ".." for each directory in $ac_dir_suffix.
23241  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23242  case $ac_top_builddir_sub in
23243  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23244  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23245  esac ;;
23246esac
23247ac_abs_top_builddir=$ac_pwd
23248ac_abs_builddir=$ac_pwd$ac_dir_suffix
23249# for backward compatibility:
23250ac_top_builddir=$ac_top_build_prefix
23251
23252case $srcdir in
23253  .)  # We are building in place.
23254    ac_srcdir=.
23255    ac_top_srcdir=$ac_top_builddir_sub
23256    ac_abs_top_srcdir=$ac_pwd ;;
23257  [\\/]* | ?:[\\/]* )  # Absolute name.
23258    ac_srcdir=$srcdir$ac_dir_suffix;
23259    ac_top_srcdir=$srcdir
23260    ac_abs_top_srcdir=$srcdir ;;
23261  *) # Relative name.
23262    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23263    ac_top_srcdir=$ac_top_build_prefix$srcdir
23264    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23265esac
23266ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23267
23268
23269  case $ac_mode in
23270  :F)
23271  #
23272  # CONFIG_FILE
23273  #
23274
23275  case $INSTALL in
23276  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23277  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23278  esac
23279  ac_MKDIR_P=$MKDIR_P
23280  case $MKDIR_P in
23281  [\\/$]* | ?:[\\/]* ) ;;
23282  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23283  esac
23284_ACEOF
23285
23286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23287# If the template does not know about datarootdir, expand it.
23288# FIXME: This hack should be removed a few years after 2.60.
23289ac_datarootdir_hack=; ac_datarootdir_seen=
23290ac_sed_dataroot='
23291/datarootdir/ {
23292  p
23293  q
23294}
23295/@datadir@/p
23296/@docdir@/p
23297/@infodir@/p
23298/@localedir@/p
23299/@mandir@/p'
23300case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23301*datarootdir*) ac_datarootdir_seen=yes;;
23302*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23303  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23304$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23305_ACEOF
23306cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23307  ac_datarootdir_hack='
23308  s&@datadir@&$datadir&g
23309  s&@docdir@&$docdir&g
23310  s&@infodir@&$infodir&g
23311  s&@localedir@&$localedir&g
23312  s&@mandir@&$mandir&g
23313  s&\\\${datarootdir}&$datarootdir&g' ;;
23314esac
23315_ACEOF
23316
23317# Neutralize VPATH when `$srcdir' = `.'.
23318# Shell code in configure.ac might set extrasub.
23319# FIXME: do we really want to maintain this feature?
23320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23321ac_sed_extra="$ac_vpsub
23322$extrasub
23323_ACEOF
23324cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23325:t
23326/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23327s|@configure_input@|$ac_sed_conf_input|;t t
23328s&@top_builddir@&$ac_top_builddir_sub&;t t
23329s&@top_build_prefix@&$ac_top_build_prefix&;t t
23330s&@srcdir@&$ac_srcdir&;t t
23331s&@abs_srcdir@&$ac_abs_srcdir&;t t
23332s&@top_srcdir@&$ac_top_srcdir&;t t
23333s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23334s&@builddir@&$ac_builddir&;t t
23335s&@abs_builddir@&$ac_abs_builddir&;t t
23336s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23337s&@INSTALL@&$ac_INSTALL&;t t
23338s&@MKDIR_P@&$ac_MKDIR_P&;t t
23339$ac_datarootdir_hack
23340"
23341eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23342  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23343
23344test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23345  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23346  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
23347      "$ac_tmp/out"`; test -z "$ac_out"; } &&
23348  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23349which seems to be undefined.  Please make sure it is defined" >&5
23350$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23351which seems to be undefined.  Please make sure it is defined" >&2;}
23352
23353  rm -f "$ac_tmp/stdin"
23354  case $ac_file in
23355  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23356  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23357  esac \
23358  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23359 ;;
23360  :H)
23361  #
23362  # CONFIG_HEADER
23363  #
23364  if test x"$ac_file" != x-; then
23365    {
23366      $as_echo "/* $configure_input  */" \
23367      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23368    } >"$ac_tmp/config.h" \
23369      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23370    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23371      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23372$as_echo "$as_me: $ac_file is unchanged" >&6;}
23373    else
23374      rm -f "$ac_file"
23375      mv "$ac_tmp/config.h" "$ac_file" \
23376	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
23377    fi
23378  else
23379    $as_echo "/* $configure_input  */" \
23380      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23381      || as_fn_error $? "could not create -" "$LINENO" 5
23382  fi
23383# Compute "$ac_file"'s index in $config_headers.
23384_am_arg="$ac_file"
23385_am_stamp_count=1
23386for _am_header in $config_headers :; do
23387  case $_am_header in
23388    $_am_arg | $_am_arg:* )
23389      break ;;
23390    * )
23391      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23392  esac
23393done
23394echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23395$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23396	 X"$_am_arg" : 'X\(//\)[^/]' \| \
23397	 X"$_am_arg" : 'X\(//\)$' \| \
23398	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23399$as_echo X"$_am_arg" |
23400    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23401	    s//\1/
23402	    q
23403	  }
23404	  /^X\(\/\/\)[^/].*/{
23405	    s//\1/
23406	    q
23407	  }
23408	  /^X\(\/\/\)$/{
23409	    s//\1/
23410	    q
23411	  }
23412	  /^X\(\/\).*/{
23413	    s//\1/
23414	    q
23415	  }
23416	  s/.*/./; q'`/stamp-h$_am_stamp_count
23417 ;;
23418
23419  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23420$as_echo "$as_me: executing $ac_file commands" >&6;}
23421 ;;
23422  esac
23423
23424
23425  case $ac_file$ac_mode in
23426    "libtool":C)
23427
23428    # See if we are running on zsh, and set the options which allow our
23429    # commands through without removal of \ escapes.
23430    if test -n "${ZSH_VERSION+set}" ; then
23431      setopt NO_GLOB_SUBST
23432    fi
23433
23434    cfgfile="${ofile}T"
23435    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23436    $RM "$cfgfile"
23437
23438    cat <<_LT_EOF >> "$cfgfile"
23439#! $SHELL
23440
23441# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23442# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23443# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23444# NOTE: Changes made to this file will be lost: look at ltmain.sh.
23445#
23446#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23447#                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23448#                 Foundation, Inc.
23449#   Written by Gordon Matzigkeit, 1996
23450#
23451#   This file is part of GNU Libtool.
23452#
23453# GNU Libtool is free software; you can redistribute it and/or
23454# modify it under the terms of the GNU General Public License as
23455# published by the Free Software Foundation; either version 2 of
23456# the License, or (at your option) any later version.
23457#
23458# As a special exception to the GNU General Public License,
23459# if you distribute this file as part of a program or library that
23460# is built using GNU Libtool, you may include this file under the
23461# same distribution terms that you use for the rest of that program.
23462#
23463# GNU Libtool is distributed in the hope that it will be useful,
23464# but WITHOUT ANY WARRANTY; without even the implied warranty of
23465# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23466# GNU General Public License for more details.
23467#
23468# You should have received a copy of the GNU General Public License
23469# along with GNU Libtool; see the file COPYING.  If not, a copy
23470# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23471# obtained by writing to the Free Software Foundation, Inc.,
23472# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23473
23474
23475# The names of the tagged configurations supported by this script.
23476available_tags="F77 FC "
23477
23478# ### BEGIN LIBTOOL CONFIG
23479
23480# Which release of libtool.m4 was used?
23481macro_version=$macro_version
23482macro_revision=$macro_revision
23483
23484# Whether or not to build shared libraries.
23485build_libtool_libs=$enable_shared
23486
23487# Whether or not to build static libraries.
23488build_old_libs=$enable_static
23489
23490# What type of objects to build.
23491pic_mode=$pic_mode
23492
23493# Whether or not to optimize for fast installation.
23494fast_install=$enable_fast_install
23495
23496# Shell to use when invoking shell scripts.
23497SHELL=$lt_SHELL
23498
23499# An echo program that protects backslashes.
23500ECHO=$lt_ECHO
23501
23502# The PATH separator for the build system.
23503PATH_SEPARATOR=$lt_PATH_SEPARATOR
23504
23505# The host system.
23506host_alias=$host_alias
23507host=$host
23508host_os=$host_os
23509
23510# The build system.
23511build_alias=$build_alias
23512build=$build
23513build_os=$build_os
23514
23515# A sed program that does not truncate output.
23516SED=$lt_SED
23517
23518# Sed that helps us avoid accidentally triggering echo(1) options like -n.
23519Xsed="\$SED -e 1s/^X//"
23520
23521# A grep program that handles long lines.
23522GREP=$lt_GREP
23523
23524# An ERE matcher.
23525EGREP=$lt_EGREP
23526
23527# A literal string matcher.
23528FGREP=$lt_FGREP
23529
23530# A BSD- or MS-compatible name lister.
23531NM=$lt_NM
23532
23533# Whether we need soft or hard links.
23534LN_S=$lt_LN_S
23535
23536# What is the maximum length of a command?
23537max_cmd_len=$max_cmd_len
23538
23539# Object file suffix (normally "o").
23540objext=$ac_objext
23541
23542# Executable file suffix (normally "").
23543exeext=$exeext
23544
23545# whether the shell understands "unset".
23546lt_unset=$lt_unset
23547
23548# turn spaces into newlines.
23549SP2NL=$lt_lt_SP2NL
23550
23551# turn newlines into spaces.
23552NL2SP=$lt_lt_NL2SP
23553
23554# convert \$build file names to \$host format.
23555to_host_file_cmd=$lt_cv_to_host_file_cmd
23556
23557# convert \$build files to toolchain format.
23558to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23559
23560# An object symbol dumper.
23561OBJDUMP=$lt_OBJDUMP
23562
23563# Method to check whether dependent libraries are shared objects.
23564deplibs_check_method=$lt_deplibs_check_method
23565
23566# Command to use when deplibs_check_method = "file_magic".
23567file_magic_cmd=$lt_file_magic_cmd
23568
23569# How to find potential files when deplibs_check_method = "file_magic".
23570file_magic_glob=$lt_file_magic_glob
23571
23572# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23573want_nocaseglob=$lt_want_nocaseglob
23574
23575# DLL creation program.
23576DLLTOOL=$lt_DLLTOOL
23577
23578# Command to associate shared and link libraries.
23579sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23580
23581# The archiver.
23582AR=$lt_AR
23583
23584# Flags to create an archive.
23585AR_FLAGS=$lt_AR_FLAGS
23586
23587# How to feed a file listing to the archiver.
23588archiver_list_spec=$lt_archiver_list_spec
23589
23590# A symbol stripping program.
23591STRIP=$lt_STRIP
23592
23593# Commands used to install an old-style archive.
23594RANLIB=$lt_RANLIB
23595old_postinstall_cmds=$lt_old_postinstall_cmds
23596old_postuninstall_cmds=$lt_old_postuninstall_cmds
23597
23598# Whether to use a lock for old archive extraction.
23599lock_old_archive_extraction=$lock_old_archive_extraction
23600
23601# A C compiler.
23602LTCC=$lt_CC
23603
23604# LTCC compiler flags.
23605LTCFLAGS=$lt_CFLAGS
23606
23607# Take the output of nm and produce a listing of raw symbols and C names.
23608global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23609
23610# Transform the output of nm in a proper C declaration.
23611global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23612
23613# Transform the output of nm in a C name address pair.
23614global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23615
23616# Transform the output of nm in a C name address pair when lib prefix is needed.
23617global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23618
23619# Specify filename containing input files for \$NM.
23620nm_file_list_spec=$lt_nm_file_list_spec
23621
23622# The root where to search for dependent libraries,and in which our libraries should be installed.
23623lt_sysroot=$lt_sysroot
23624
23625# The name of the directory that contains temporary libtool files.
23626objdir=$objdir
23627
23628# Used to examine libraries when file_magic_cmd begins with "file".
23629MAGIC_CMD=$MAGIC_CMD
23630
23631# Must we lock files when doing compilation?
23632need_locks=$lt_need_locks
23633
23634# Manifest tool.
23635MANIFEST_TOOL=$lt_MANIFEST_TOOL
23636
23637# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23638DSYMUTIL=$lt_DSYMUTIL
23639
23640# Tool to change global to local symbols on Mac OS X.
23641NMEDIT=$lt_NMEDIT
23642
23643# Tool to manipulate fat objects and archives on Mac OS X.
23644LIPO=$lt_LIPO
23645
23646# ldd/readelf like tool for Mach-O binaries on Mac OS X.
23647OTOOL=$lt_OTOOL
23648
23649# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23650OTOOL64=$lt_OTOOL64
23651
23652# Old archive suffix (normally "a").
23653libext=$libext
23654
23655# Shared library suffix (normally ".so").
23656shrext_cmds=$lt_shrext_cmds
23657
23658# The commands to extract the exported symbol list from a shared archive.
23659extract_expsyms_cmds=$lt_extract_expsyms_cmds
23660
23661# Variables whose values should be saved in libtool wrapper scripts and
23662# restored at link time.
23663variables_saved_for_relink=$lt_variables_saved_for_relink
23664
23665# Do we need the "lib" prefix for modules?
23666need_lib_prefix=$need_lib_prefix
23667
23668# Do we need a version for libraries?
23669need_version=$need_version
23670
23671# Library versioning type.
23672version_type=$version_type
23673
23674# Shared library runtime path variable.
23675runpath_var=$runpath_var
23676
23677# Shared library path variable.
23678shlibpath_var=$shlibpath_var
23679
23680# Is shlibpath searched before the hard-coded library search path?
23681shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23682
23683# Format of library name prefix.
23684libname_spec=$lt_libname_spec
23685
23686# List of archive names.  First name is the real one, the rest are links.
23687# The last name is the one that the linker finds with -lNAME
23688library_names_spec=$lt_library_names_spec
23689
23690# The coded name of the library, if different from the real name.
23691soname_spec=$lt_soname_spec
23692
23693# Permission mode override for installation of shared libraries.
23694install_override_mode=$lt_install_override_mode
23695
23696# Command to use after installation of a shared archive.
23697postinstall_cmds=$lt_postinstall_cmds
23698
23699# Command to use after uninstallation of a shared archive.
23700postuninstall_cmds=$lt_postuninstall_cmds
23701
23702# Commands used to finish a libtool library installation in a directory.
23703finish_cmds=$lt_finish_cmds
23704
23705# As "finish_cmds", except a single script fragment to be evaled but
23706# not shown.
23707finish_eval=$lt_finish_eval
23708
23709# Whether we should hardcode library paths into libraries.
23710hardcode_into_libs=$hardcode_into_libs
23711
23712# Compile-time system search path for libraries.
23713sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23714
23715# Run-time system search path for libraries.
23716sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23717
23718# Whether dlopen is supported.
23719dlopen_support=$enable_dlopen
23720
23721# Whether dlopen of programs is supported.
23722dlopen_self=$enable_dlopen_self
23723
23724# Whether dlopen of statically linked programs is supported.
23725dlopen_self_static=$enable_dlopen_self_static
23726
23727# Commands to strip libraries.
23728old_striplib=$lt_old_striplib
23729striplib=$lt_striplib
23730
23731
23732# The linker used to build libraries.
23733LD=$lt_LD
23734
23735# How to create reloadable object files.
23736reload_flag=$lt_reload_flag
23737reload_cmds=$lt_reload_cmds
23738
23739# Commands used to build an old-style archive.
23740old_archive_cmds=$lt_old_archive_cmds
23741
23742# A language specific compiler.
23743CC=$lt_compiler
23744
23745# Is the compiler the GNU compiler?
23746with_gcc=$GCC
23747
23748# Compiler flag to turn off builtin functions.
23749no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23750
23751# Additional compiler flags for building library objects.
23752pic_flag=$lt_lt_prog_compiler_pic
23753
23754# How to pass a linker flag through the compiler.
23755wl=$lt_lt_prog_compiler_wl
23756
23757# Compiler flag to prevent dynamic linking.
23758link_static_flag=$lt_lt_prog_compiler_static
23759
23760# Does compiler simultaneously support -c and -o options?
23761compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23762
23763# Whether or not to add -lc for building shared libraries.
23764build_libtool_need_lc=$archive_cmds_need_lc
23765
23766# Whether or not to disallow shared libs when runtime libs are static.
23767allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23768
23769# Compiler flag to allow reflexive dlopens.
23770export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23771
23772# Compiler flag to generate shared objects directly from archives.
23773whole_archive_flag_spec=$lt_whole_archive_flag_spec
23774
23775# Whether the compiler copes with passing no objects directly.
23776compiler_needs_object=$lt_compiler_needs_object
23777
23778# Create an old-style archive from a shared archive.
23779old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23780
23781# Create a temporary old-style archive to link instead of a shared archive.
23782old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23783
23784# Commands used to build a shared archive.
23785archive_cmds=$lt_archive_cmds
23786archive_expsym_cmds=$lt_archive_expsym_cmds
23787
23788# Commands used to build a loadable module if different from building
23789# a shared archive.
23790module_cmds=$lt_module_cmds
23791module_expsym_cmds=$lt_module_expsym_cmds
23792
23793# Whether we are building with GNU ld or not.
23794with_gnu_ld=$lt_with_gnu_ld
23795
23796# Flag that allows shared libraries with undefined symbols to be built.
23797allow_undefined_flag=$lt_allow_undefined_flag
23798
23799# Flag that enforces no undefined symbols.
23800no_undefined_flag=$lt_no_undefined_flag
23801
23802# Flag to hardcode \$libdir into a binary during linking.
23803# This must work even if \$libdir does not exist
23804hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23805
23806# Whether we need a single "-rpath" flag with a separated argument.
23807hardcode_libdir_separator=$lt_hardcode_libdir_separator
23808
23809# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23810# DIR into the resulting binary.
23811hardcode_direct=$hardcode_direct
23812
23813# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23814# DIR into the resulting binary and the resulting library dependency is
23815# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23816# library is relocated.
23817hardcode_direct_absolute=$hardcode_direct_absolute
23818
23819# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23820# into the resulting binary.
23821hardcode_minus_L=$hardcode_minus_L
23822
23823# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23824# into the resulting binary.
23825hardcode_shlibpath_var=$hardcode_shlibpath_var
23826
23827# Set to "yes" if building a shared library automatically hardcodes DIR
23828# into the library and all subsequent libraries and executables linked
23829# against it.
23830hardcode_automatic=$hardcode_automatic
23831
23832# Set to yes if linker adds runtime paths of dependent libraries
23833# to runtime path list.
23834inherit_rpath=$inherit_rpath
23835
23836# Whether libtool must link a program against all its dependency libraries.
23837link_all_deplibs=$link_all_deplibs
23838
23839# Set to "yes" if exported symbols are required.
23840always_export_symbols=$always_export_symbols
23841
23842# The commands to list exported symbols.
23843export_symbols_cmds=$lt_export_symbols_cmds
23844
23845# Symbols that should not be listed in the preloaded symbols.
23846exclude_expsyms=$lt_exclude_expsyms
23847
23848# Symbols that must always be exported.
23849include_expsyms=$lt_include_expsyms
23850
23851# Commands necessary for linking programs (against libraries) with templates.
23852prelink_cmds=$lt_prelink_cmds
23853
23854# Commands necessary for finishing linking programs.
23855postlink_cmds=$lt_postlink_cmds
23856
23857# Specify filename containing input files.
23858file_list_spec=$lt_file_list_spec
23859
23860# How to hardcode a shared library path into an executable.
23861hardcode_action=$hardcode_action
23862
23863# The directories searched by this compiler when creating a shared library.
23864compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23865
23866# Dependencies to place before and after the objects being linked to
23867# create a shared library.
23868predep_objects=$lt_predep_objects
23869postdep_objects=$lt_postdep_objects
23870predeps=$lt_predeps
23871postdeps=$lt_postdeps
23872
23873# The library search path used internally by the compiler when linking
23874# a shared library.
23875compiler_lib_search_path=$lt_compiler_lib_search_path
23876
23877# ### END LIBTOOL CONFIG
23878
23879_LT_EOF
23880
23881  case $host_os in
23882  aix3*)
23883    cat <<\_LT_EOF >> "$cfgfile"
23884# AIX sometimes has problems with the GCC collect2 program.  For some
23885# reason, if we set the COLLECT_NAMES environment variable, the problems
23886# vanish in a puff of smoke.
23887if test "X${COLLECT_NAMES+set}" != Xset; then
23888  COLLECT_NAMES=
23889  export COLLECT_NAMES
23890fi
23891_LT_EOF
23892    ;;
23893  esac
23894
23895
23896ltmain="$ac_aux_dir/ltmain.sh"
23897
23898
23899  # We use sed instead of cat because bash on DJGPP gets confused if
23900  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23901  # text mode, it properly converts lines to CR/LF.  This bash problem
23902  # is reportedly fixed, but why not run on old versions too?
23903  sed '$q' "$ltmain" >> "$cfgfile" \
23904     || (rm -f "$cfgfile"; exit 1)
23905
23906  if test x"$xsi_shell" = xyes; then
23907  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23908func_dirname ()\
23909{\
23910\    case ${1} in\
23911\      */*) func_dirname_result="${1%/*}${2}" ;;\
23912\      *  ) func_dirname_result="${3}" ;;\
23913\    esac\
23914} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23915  && mv -f "$cfgfile.tmp" "$cfgfile" \
23916    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23917test 0 -eq $? || _lt_function_replace_fail=:
23918
23919
23920  sed -e '/^func_basename ()$/,/^} # func_basename /c\
23921func_basename ()\
23922{\
23923\    func_basename_result="${1##*/}"\
23924} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23925  && mv -f "$cfgfile.tmp" "$cfgfile" \
23926    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23927test 0 -eq $? || _lt_function_replace_fail=:
23928
23929
23930  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23931func_dirname_and_basename ()\
23932{\
23933\    case ${1} in\
23934\      */*) func_dirname_result="${1%/*}${2}" ;;\
23935\      *  ) func_dirname_result="${3}" ;;\
23936\    esac\
23937\    func_basename_result="${1##*/}"\
23938} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23939  && mv -f "$cfgfile.tmp" "$cfgfile" \
23940    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23941test 0 -eq $? || _lt_function_replace_fail=:
23942
23943
23944  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23945func_stripname ()\
23946{\
23947\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23948\    # positional parameters, so assign one to ordinary parameter first.\
23949\    func_stripname_result=${3}\
23950\    func_stripname_result=${func_stripname_result#"${1}"}\
23951\    func_stripname_result=${func_stripname_result%"${2}"}\
23952} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23953  && mv -f "$cfgfile.tmp" "$cfgfile" \
23954    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23955test 0 -eq $? || _lt_function_replace_fail=:
23956
23957
23958  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23959func_split_long_opt ()\
23960{\
23961\    func_split_long_opt_name=${1%%=*}\
23962\    func_split_long_opt_arg=${1#*=}\
23963} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23964  && mv -f "$cfgfile.tmp" "$cfgfile" \
23965    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23966test 0 -eq $? || _lt_function_replace_fail=:
23967
23968
23969  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23970func_split_short_opt ()\
23971{\
23972\    func_split_short_opt_arg=${1#??}\
23973\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23974} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23975  && mv -f "$cfgfile.tmp" "$cfgfile" \
23976    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23977test 0 -eq $? || _lt_function_replace_fail=:
23978
23979
23980  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23981func_lo2o ()\
23982{\
23983\    case ${1} in\
23984\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23985\      *)    func_lo2o_result=${1} ;;\
23986\    esac\
23987} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23988  && mv -f "$cfgfile.tmp" "$cfgfile" \
23989    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23990test 0 -eq $? || _lt_function_replace_fail=:
23991
23992
23993  sed -e '/^func_xform ()$/,/^} # func_xform /c\
23994func_xform ()\
23995{\
23996    func_xform_result=${1%.*}.lo\
23997} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23998  && mv -f "$cfgfile.tmp" "$cfgfile" \
23999    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24000test 0 -eq $? || _lt_function_replace_fail=:
24001
24002
24003  sed -e '/^func_arith ()$/,/^} # func_arith /c\
24004func_arith ()\
24005{\
24006    func_arith_result=$(( $* ))\
24007} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24008  && mv -f "$cfgfile.tmp" "$cfgfile" \
24009    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24010test 0 -eq $? || _lt_function_replace_fail=:
24011
24012
24013  sed -e '/^func_len ()$/,/^} # func_len /c\
24014func_len ()\
24015{\
24016    func_len_result=${#1}\
24017} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24018  && mv -f "$cfgfile.tmp" "$cfgfile" \
24019    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24020test 0 -eq $? || _lt_function_replace_fail=:
24021
24022fi
24023
24024if test x"$lt_shell_append" = xyes; then
24025  sed -e '/^func_append ()$/,/^} # func_append /c\
24026func_append ()\
24027{\
24028    eval "${1}+=\\${2}"\
24029} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24030  && mv -f "$cfgfile.tmp" "$cfgfile" \
24031    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24032test 0 -eq $? || _lt_function_replace_fail=:
24033
24034
24035  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24036func_append_quoted ()\
24037{\
24038\    func_quote_for_eval "${2}"\
24039\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24040} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24041  && mv -f "$cfgfile.tmp" "$cfgfile" \
24042    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24043test 0 -eq $? || _lt_function_replace_fail=:
24044
24045
24046  # Save a `func_append' function call where possible by direct use of '+='
24047  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24048    && mv -f "$cfgfile.tmp" "$cfgfile" \
24049      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24050  test 0 -eq $? || _lt_function_replace_fail=:
24051else
24052  # Save a `func_append' function call even when '+=' is not available
24053  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24054    && mv -f "$cfgfile.tmp" "$cfgfile" \
24055      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24056  test 0 -eq $? || _lt_function_replace_fail=:
24057fi
24058
24059if test x"$_lt_function_replace_fail" = x":"; then
24060  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24061$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24062fi
24063
24064
24065   mv -f "$cfgfile" "$ofile" ||
24066    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24067  chmod +x "$ofile"
24068
24069
24070    cat <<_LT_EOF >> "$ofile"
24071
24072# ### BEGIN LIBTOOL TAG CONFIG: F77
24073
24074# The linker used to build libraries.
24075LD=$lt_LD_F77
24076
24077# How to create reloadable object files.
24078reload_flag=$lt_reload_flag_F77
24079reload_cmds=$lt_reload_cmds_F77
24080
24081# Commands used to build an old-style archive.
24082old_archive_cmds=$lt_old_archive_cmds_F77
24083
24084# A language specific compiler.
24085CC=$lt_compiler_F77
24086
24087# Is the compiler the GNU compiler?
24088with_gcc=$GCC_F77
24089
24090# Compiler flag to turn off builtin functions.
24091no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24092
24093# Additional compiler flags for building library objects.
24094pic_flag=$lt_lt_prog_compiler_pic_F77
24095
24096# How to pass a linker flag through the compiler.
24097wl=$lt_lt_prog_compiler_wl_F77
24098
24099# Compiler flag to prevent dynamic linking.
24100link_static_flag=$lt_lt_prog_compiler_static_F77
24101
24102# Does compiler simultaneously support -c and -o options?
24103compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24104
24105# Whether or not to add -lc for building shared libraries.
24106build_libtool_need_lc=$archive_cmds_need_lc_F77
24107
24108# Whether or not to disallow shared libs when runtime libs are static.
24109allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24110
24111# Compiler flag to allow reflexive dlopens.
24112export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24113
24114# Compiler flag to generate shared objects directly from archives.
24115whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24116
24117# Whether the compiler copes with passing no objects directly.
24118compiler_needs_object=$lt_compiler_needs_object_F77
24119
24120# Create an old-style archive from a shared archive.
24121old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24122
24123# Create a temporary old-style archive to link instead of a shared archive.
24124old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24125
24126# Commands used to build a shared archive.
24127archive_cmds=$lt_archive_cmds_F77
24128archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24129
24130# Commands used to build a loadable module if different from building
24131# a shared archive.
24132module_cmds=$lt_module_cmds_F77
24133module_expsym_cmds=$lt_module_expsym_cmds_F77
24134
24135# Whether we are building with GNU ld or not.
24136with_gnu_ld=$lt_with_gnu_ld_F77
24137
24138# Flag that allows shared libraries with undefined symbols to be built.
24139allow_undefined_flag=$lt_allow_undefined_flag_F77
24140
24141# Flag that enforces no undefined symbols.
24142no_undefined_flag=$lt_no_undefined_flag_F77
24143
24144# Flag to hardcode \$libdir into a binary during linking.
24145# This must work even if \$libdir does not exist
24146hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24147
24148# Whether we need a single "-rpath" flag with a separated argument.
24149hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24150
24151# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24152# DIR into the resulting binary.
24153hardcode_direct=$hardcode_direct_F77
24154
24155# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24156# DIR into the resulting binary and the resulting library dependency is
24157# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24158# library is relocated.
24159hardcode_direct_absolute=$hardcode_direct_absolute_F77
24160
24161# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24162# into the resulting binary.
24163hardcode_minus_L=$hardcode_minus_L_F77
24164
24165# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24166# into the resulting binary.
24167hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24168
24169# Set to "yes" if building a shared library automatically hardcodes DIR
24170# into the library and all subsequent libraries and executables linked
24171# against it.
24172hardcode_automatic=$hardcode_automatic_F77
24173
24174# Set to yes if linker adds runtime paths of dependent libraries
24175# to runtime path list.
24176inherit_rpath=$inherit_rpath_F77
24177
24178# Whether libtool must link a program against all its dependency libraries.
24179link_all_deplibs=$link_all_deplibs_F77
24180
24181# Set to "yes" if exported symbols are required.
24182always_export_symbols=$always_export_symbols_F77
24183
24184# The commands to list exported symbols.
24185export_symbols_cmds=$lt_export_symbols_cmds_F77
24186
24187# Symbols that should not be listed in the preloaded symbols.
24188exclude_expsyms=$lt_exclude_expsyms_F77
24189
24190# Symbols that must always be exported.
24191include_expsyms=$lt_include_expsyms_F77
24192
24193# Commands necessary for linking programs (against libraries) with templates.
24194prelink_cmds=$lt_prelink_cmds_F77
24195
24196# Commands necessary for finishing linking programs.
24197postlink_cmds=$lt_postlink_cmds_F77
24198
24199# Specify filename containing input files.
24200file_list_spec=$lt_file_list_spec_F77
24201
24202# How to hardcode a shared library path into an executable.
24203hardcode_action=$hardcode_action_F77
24204
24205# The directories searched by this compiler when creating a shared library.
24206compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
24207
24208# Dependencies to place before and after the objects being linked to
24209# create a shared library.
24210predep_objects=$lt_predep_objects_F77
24211postdep_objects=$lt_postdep_objects_F77
24212predeps=$lt_predeps_F77
24213postdeps=$lt_postdeps_F77
24214
24215# The library search path used internally by the compiler when linking
24216# a shared library.
24217compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24218
24219# ### END LIBTOOL TAG CONFIG: F77
24220_LT_EOF
24221
24222
24223    cat <<_LT_EOF >> "$ofile"
24224
24225# ### BEGIN LIBTOOL TAG CONFIG: FC
24226
24227# The linker used to build libraries.
24228LD=$lt_LD_FC
24229
24230# How to create reloadable object files.
24231reload_flag=$lt_reload_flag_FC
24232reload_cmds=$lt_reload_cmds_FC
24233
24234# Commands used to build an old-style archive.
24235old_archive_cmds=$lt_old_archive_cmds_FC
24236
24237# A language specific compiler.
24238CC=$lt_compiler_FC
24239
24240# Is the compiler the GNU compiler?
24241with_gcc=$GCC_FC
24242
24243# Compiler flag to turn off builtin functions.
24244no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
24245
24246# Additional compiler flags for building library objects.
24247pic_flag=$lt_lt_prog_compiler_pic_FC
24248
24249# How to pass a linker flag through the compiler.
24250wl=$lt_lt_prog_compiler_wl_FC
24251
24252# Compiler flag to prevent dynamic linking.
24253link_static_flag=$lt_lt_prog_compiler_static_FC
24254
24255# Does compiler simultaneously support -c and -o options?
24256compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
24257
24258# Whether or not to add -lc for building shared libraries.
24259build_libtool_need_lc=$archive_cmds_need_lc_FC
24260
24261# Whether or not to disallow shared libs when runtime libs are static.
24262allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
24263
24264# Compiler flag to allow reflexive dlopens.
24265export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
24266
24267# Compiler flag to generate shared objects directly from archives.
24268whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
24269
24270# Whether the compiler copes with passing no objects directly.
24271compiler_needs_object=$lt_compiler_needs_object_FC
24272
24273# Create an old-style archive from a shared archive.
24274old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
24275
24276# Create a temporary old-style archive to link instead of a shared archive.
24277old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
24278
24279# Commands used to build a shared archive.
24280archive_cmds=$lt_archive_cmds_FC
24281archive_expsym_cmds=$lt_archive_expsym_cmds_FC
24282
24283# Commands used to build a loadable module if different from building
24284# a shared archive.
24285module_cmds=$lt_module_cmds_FC
24286module_expsym_cmds=$lt_module_expsym_cmds_FC
24287
24288# Whether we are building with GNU ld or not.
24289with_gnu_ld=$lt_with_gnu_ld_FC
24290
24291# Flag that allows shared libraries with undefined symbols to be built.
24292allow_undefined_flag=$lt_allow_undefined_flag_FC
24293
24294# Flag that enforces no undefined symbols.
24295no_undefined_flag=$lt_no_undefined_flag_FC
24296
24297# Flag to hardcode \$libdir into a binary during linking.
24298# This must work even if \$libdir does not exist
24299hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
24300
24301# Whether we need a single "-rpath" flag with a separated argument.
24302hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
24303
24304# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24305# DIR into the resulting binary.
24306hardcode_direct=$hardcode_direct_FC
24307
24308# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24309# DIR into the resulting binary and the resulting library dependency is
24310# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24311# library is relocated.
24312hardcode_direct_absolute=$hardcode_direct_absolute_FC
24313
24314# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24315# into the resulting binary.
24316hardcode_minus_L=$hardcode_minus_L_FC
24317
24318# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24319# into the resulting binary.
24320hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
24321
24322# Set to "yes" if building a shared library automatically hardcodes DIR
24323# into the library and all subsequent libraries and executables linked
24324# against it.
24325hardcode_automatic=$hardcode_automatic_FC
24326
24327# Set to yes if linker adds runtime paths of dependent libraries
24328# to runtime path list.
24329inherit_rpath=$inherit_rpath_FC
24330
24331# Whether libtool must link a program against all its dependency libraries.
24332link_all_deplibs=$link_all_deplibs_FC
24333
24334# Set to "yes" if exported symbols are required.
24335always_export_symbols=$always_export_symbols_FC
24336
24337# The commands to list exported symbols.
24338export_symbols_cmds=$lt_export_symbols_cmds_FC
24339
24340# Symbols that should not be listed in the preloaded symbols.
24341exclude_expsyms=$lt_exclude_expsyms_FC
24342
24343# Symbols that must always be exported.
24344include_expsyms=$lt_include_expsyms_FC
24345
24346# Commands necessary for linking programs (against libraries) with templates.
24347prelink_cmds=$lt_prelink_cmds_FC
24348
24349# Commands necessary for finishing linking programs.
24350postlink_cmds=$lt_postlink_cmds_FC
24351
24352# Specify filename containing input files.
24353file_list_spec=$lt_file_list_spec_FC
24354
24355# How to hardcode a shared library path into an executable.
24356hardcode_action=$hardcode_action_FC
24357
24358# The directories searched by this compiler when creating a shared library.
24359compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
24360
24361# Dependencies to place before and after the objects being linked to
24362# create a shared library.
24363predep_objects=$lt_predep_objects_FC
24364postdep_objects=$lt_postdep_objects_FC
24365predeps=$lt_predeps_FC
24366postdeps=$lt_postdeps_FC
24367
24368# The library search path used internally by the compiler when linking
24369# a shared library.
24370compiler_lib_search_path=$lt_compiler_lib_search_path_FC
24371
24372# ### END LIBTOOL TAG CONFIG: FC
24373_LT_EOF
24374
24375 ;;
24376    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24377  # Older Autoconf quotes --file arguments for eval, but not when files
24378  # are listed without --file.  Let's play safe and only enable the eval
24379  # if we detect the quoting.
24380  case $CONFIG_FILES in
24381  *\'*) eval set x "$CONFIG_FILES" ;;
24382  *)   set x $CONFIG_FILES ;;
24383  esac
24384  shift
24385  for mf
24386  do
24387    # Strip MF so we end up with the name of the file.
24388    mf=`echo "$mf" | sed -e 's/:.*$//'`
24389    # Check whether this is an Automake generated Makefile or not.
24390    # We used to match only the files named 'Makefile.in', but
24391    # some people rename them; so instead we look at the file content.
24392    # Grep'ing the first line is not enough: some people post-process
24393    # each Makefile.in and add a new line on top of each file to say so.
24394    # Grep'ing the whole file is not good either: AIX grep has a line
24395    # limit of 2048, but all sed's we know have understand at least 4000.
24396    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24397      dirpart=`$as_dirname -- "$mf" ||
24398$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24399	 X"$mf" : 'X\(//\)[^/]' \| \
24400	 X"$mf" : 'X\(//\)$' \| \
24401	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24402$as_echo X"$mf" |
24403    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24404	    s//\1/
24405	    q
24406	  }
24407	  /^X\(\/\/\)[^/].*/{
24408	    s//\1/
24409	    q
24410	  }
24411	  /^X\(\/\/\)$/{
24412	    s//\1/
24413	    q
24414	  }
24415	  /^X\(\/\).*/{
24416	    s//\1/
24417	    q
24418	  }
24419	  s/.*/./; q'`
24420    else
24421      continue
24422    fi
24423    # Extract the definition of DEPDIR, am__include, and am__quote
24424    # from the Makefile without running 'make'.
24425    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24426    test -z "$DEPDIR" && continue
24427    am__include=`sed -n 's/^am__include = //p' < "$mf"`
24428    test -z "$am__include" && continue
24429    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24430    # Find all dependency output files, they are included files with
24431    # $(DEPDIR) in their names.  We invoke sed twice because it is the
24432    # simplest approach to changing $(DEPDIR) to its actual value in the
24433    # expansion.
24434    for file in `sed -n "
24435      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24436	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24437      # Make sure the directory exists.
24438      test -f "$dirpart/$file" && continue
24439      fdir=`$as_dirname -- "$file" ||
24440$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24441	 X"$file" : 'X\(//\)[^/]' \| \
24442	 X"$file" : 'X\(//\)$' \| \
24443	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24444$as_echo X"$file" |
24445    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24446	    s//\1/
24447	    q
24448	  }
24449	  /^X\(\/\/\)[^/].*/{
24450	    s//\1/
24451	    q
24452	  }
24453	  /^X\(\/\/\)$/{
24454	    s//\1/
24455	    q
24456	  }
24457	  /^X\(\/\).*/{
24458	    s//\1/
24459	    q
24460	  }
24461	  s/.*/./; q'`
24462      as_dir=$dirpart/$fdir; as_fn_mkdir_p
24463      # echo "creating $dirpart/$file"
24464      echo '# dummy' > "$dirpart/$file"
24465    done
24466  done
24467}
24468 ;;
24469
24470  esac
24471done # for ac_tag
24472
24473
24474as_fn_exit 0
24475_ACEOF
24476ac_clean_files=$ac_clean_files_save
24477
24478test $ac_write_fail = 0 ||
24479  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24480
24481
24482# configure is writing to config.log, and then calls config.status.
24483# config.status does its own redirection, appending to config.log.
24484# Unfortunately, on DOS this fails, as config.log is still kept open
24485# by configure, so config.status won't be able to write to it; its
24486# output is simply discarded.  So we exec the FD to /dev/null,
24487# effectively closing config.log, so it can be properly (re)opened and
24488# appended to by config.status.  When coming back to configure, we
24489# need to make the FD available again.
24490if test "$no_create" != yes; then
24491  ac_cs_success=:
24492  ac_config_status_args=
24493  test "$silent" = yes &&
24494    ac_config_status_args="$ac_config_status_args --quiet"
24495  exec 5>/dev/null
24496  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24497  exec 5>>config.log
24498  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24499  # would make configure fail if this is the last instruction.
24500  $ac_cs_success || as_fn_exit 1
24501fi
24502if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24503  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24504$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24505fi
24506
24507
24508{ $as_echo "$as_me:${as_lineno-$LINENO}:
24509
24510  Configuration completed.
24511
24512  You can now say 'make' to compile the grib_api package, 'make check' to
24513  test it  and 'make install' to install it afterwards.
24514
24515  +------------------+
24516  | IMPORTANT NOTICE |
24517  +---------------------------------------------------------------------------------------------+
24518  | Please note that 'ecCodes' is now the primary GRIB encoding/decoding package used at ECMWF. |
24519  | Replacing GRIB API with ecCodes is expected to be transparent for current GRIB API users.   |
24520  | In particular the 'grib_' functions are included in the ecCodes library.                    |
24521  |                                                                                             |
24522  | GRIB API support is being discontinued at the end of 2018.                                  |
24523  | You are strongly advised to start the migration process.                                    |
24524  |                                                                                             |
24525  | For more details, please see:                                                               |
24526  |   https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home                                  |
24527  +---------------------------------------------------------------------------------------------+
24528
24529     " >&5
24530$as_echo "$as_me:
24531
24532  Configuration completed.
24533
24534  You can now say 'make' to compile the grib_api package, 'make check' to
24535  test it  and 'make install' to install it afterwards.
24536
24537  +------------------+
24538  | IMPORTANT NOTICE |
24539  +---------------------------------------------------------------------------------------------+
24540  | Please note that 'ecCodes' is now the primary GRIB encoding/decoding package used at ECMWF. |
24541  | Replacing GRIB API with ecCodes is expected to be transparent for current GRIB API users.   |
24542  | In particular the 'grib_' functions are included in the ecCodes library.                    |
24543  |                                                                                             |
24544  | GRIB API support is being discontinued at the end of 2018.                                  |
24545  | You are strongly advised to start the migration process.                                    |
24546  |                                                                                             |
24547  | For more details, please see:                                                               |
24548  |   https://software.ecmwf.int/wiki/display/ECC/ecCodes+Home                                  |
24549  +---------------------------------------------------------------------------------------------+
24550
24551     " >&6;}
24552