1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# 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.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175  if (eval "$as_required") 2>/dev/null; then :
176  as_have_required=yes
177else
178  as_have_required=no
179fi
180  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187  IFS=$as_save_IFS
188  test -z "$as_dir" && as_dir=.
189  as_found=:
190  case $as_dir in #(
191	 /*)
192	   for as_base in sh bash ksh sh5; do
193	     # Try only shells that exist, to save several forks.
194	     as_shell=$as_dir/$as_base
195	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  CONFIG_SHELL=$as_shell as_have_required=yes
198		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  break 2
200fi
201fi
202	   done;;
203       esac
204  as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208  CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213      if test "x$CONFIG_SHELL" != x; then :
214  # We cannot yet assume a decent shell, so we have to provide a
215	# neutralization value for shells without unset; and this also
216	# works around shells that cannot unset nonexistent variables.
217	BASH_ENV=/dev/null
218	ENV=/dev/null
219	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220	export CONFIG_SHELL
221	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224    if test x$as_have_required = xno; then :
225  $as_echo "$0: This script requires a shell more modern than all"
226  $as_echo "$0: the shells that I found on your system."
227  if test x${ZSH_VERSION+set} = xset ; then
228    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230  else
231    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235  fi
236  exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254  { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263  return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271  set +e
272  as_fn_set_status $1
273  exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282  case $as_dir in #(
283  -*) as_dir=./$as_dir;;
284  esac
285  test -d "$as_dir" || eval $as_mkdir_p || {
286    as_dirs=
287    while :; do
288      case $as_dir in #(
289      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290      *) as_qdir=$as_dir;;
291      esac
292      as_dirs="'$as_qdir' $as_dirs"
293      as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295	 X"$as_dir" : 'X\(//\)[^/]' \| \
296	 X"$as_dir" : 'X\(//\)$' \| \
297	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300	    s//\1/
301	    q
302	  }
303	  /^X\(\/\/\)[^/].*/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\).*/{
312	    s//\1/
313	    q
314	  }
315	  s/.*/./; q'`
316      test -d "$as_dir" && break
317    done
318    test -z "$as_dirs" || eval "mkdir $as_dirs"
319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330  eval 'as_fn_append ()
331  {
332    eval $1+=\$2
333  }'
334else
335  as_fn_append ()
336  {
337    eval $1=\$$1\$2
338  }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347  eval 'as_fn_arith ()
348  {
349    as_val=$(( $* ))
350  }'
351else
352  as_fn_arith ()
353  {
354    as_val=`expr "$@" || test $? -eq 1`
355  }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366  as_status=$?; test $as_status -eq 0 && as_status=1
367  if test "$3"; then
368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370  fi
371  $as_echo "$as_me: error: $1" >&2
372  as_fn_exit $as_status
373} # as_fn_error
374
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376   test "X`expr 00001 : '.*\(...\)'`" = X001; then
377  as_expr=expr
378else
379  as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383  as_basename=basename
384else
385  as_basename=false
386fi
387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389  as_dirname=dirname
390else
391  as_dirname=false
392fi
393
394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396	 X"$0" : 'X\(//\)$' \| \
397	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398$as_echo X/"$0" |
399    sed '/^.*\/\([^/][^/]*\)\/*$/{
400	    s//\1/
401	    q
402	  }
403	  /^X\/\(\/\/\)$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\).*/{
408	    s//\1/
409	    q
410	  }
411	  s/.*/./; q'`
412
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421  as_lineno_1=$LINENO as_lineno_1a=$LINENO
422  as_lineno_2=$LINENO as_lineno_2a=$LINENO
423  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426  sed -n '
427    p
428    /[$]LINENO/=
429  ' <$as_myself |
430    sed '
431      s/[$]LINENO.*/&-/
432      t lineno
433      b
434      :lineno
435      N
436      :loop
437      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438      t loop
439      s/-\n.*//
440    ' >$as_me.lineno &&
441  chmod +x "$as_me.lineno" ||
442    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444  # Don't try to exec as it changes $[0], causing all sort of problems
445  # (the dirname of $[0] is not the place where we might find the
446  # original and so on.  Autoconf is especially sensitive to this).
447  . "./$as_me.lineno"
448  # Exit status is that of the last command.
449  exit
450}
451
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455  case `echo 'xy\c'` in
456  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
457  xy)  ECHO_C='\c';;
458  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459       ECHO_T='	';;
460  esac;;
461*)
462  ECHO_N='-n';;
463esac
464
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467  rm -f conf$$.dir/conf$$.file
468else
469  rm -f conf$$.dir
470  mkdir conf$$.dir 2>/dev/null
471fi
472if (echo >conf$$.file) 2>/dev/null; then
473  if ln -s conf$$.file conf$$ 2>/dev/null; then
474    as_ln_s='ln -s'
475    # ... but there are two gotchas:
476    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478    # In both cases, we have to default to `cp -p'.
479    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480      as_ln_s='cp -p'
481  elif ln conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s=ln
483  else
484    as_ln_s='cp -p'
485  fi
486else
487  as_ln_s='cp -p'
488fi
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
491
492if mkdir -p . 2>/dev/null; then
493  as_mkdir_p='mkdir -p "$as_dir"'
494else
495  test -d ./-p && rmdir ./-p
496  as_mkdir_p=false
497fi
498
499if test -x / >/dev/null 2>&1; then
500  as_test_x='test -x'
501else
502  if ls -dL / >/dev/null 2>&1; then
503    as_ls_L_option=L
504  else
505    as_ls_L_option=
506  fi
507  as_test_x='
508    eval sh -c '\''
509      if test -d "$1"; then
510	test -d "$1/.";
511      else
512	case $1 in #(
513	-*)set "./$1";;
514	esac;
515	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516	???[sx]*):;;*)false;;esac;fi
517    '\'' sh
518  '
519fi
520as_executable_p=$as_test_x
521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530# Check that we are running under the correct shell.
531SHELL=${CONFIG_SHELL-/bin/sh}
532
533case X$lt_ECHO in
534X*--fallback-echo)
535  # Remove one level of quotation (which was required for Make).
536  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537  ;;
538esac
539
540ECHO=${lt_ECHO-echo}
541if test "X$1" = X--no-reexec; then
542  # Discard the --no-reexec flag, and continue.
543  shift
544elif test "X$1" = X--fallback-echo; then
545  # Avoid inline document here, it may be left over
546  :
547elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548  # Yippee, $ECHO works!
549  :
550else
551  # Restart under the correct shell.
552  exec $SHELL "$0" --no-reexec ${1+"$@"}
553fi
554
555if test "X$1" = X--fallback-echo; then
556  # used as fallback echo
557  shift
558  cat <<_LT_EOF
559$*
560_LT_EOF
561  exit 0
562fi
563
564# The HP-UX ksh and POSIX shell print the target directory to stdout
565# if CDPATH is set.
566(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568if test -z "$lt_ECHO"; then
569  if test "X${echo_test_string+set}" != Xset; then
570    # find a string as large as possible, as long as the shell can cope with it
571    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575      then
576        break
577      fi
578    done
579  fi
580
581  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583     test "X$echo_testing_string" = "X$echo_test_string"; then
584    :
585  else
586    # The Solaris, AIX, and Digital Unix default echo programs unquote
587    # backslashes.  This makes it impossible to quote backslashes using
588    #   echo "$something" | sed 's/\\/\\\\/g'
589    #
590    # So, first we look for a working echo in the user's PATH.
591
592    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593    for dir in $PATH /usr/ucb; do
594      IFS="$lt_save_ifs"
595      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598         test "X$echo_testing_string" = "X$echo_test_string"; then
599        ECHO="$dir/echo"
600        break
601      fi
602    done
603    IFS="$lt_save_ifs"
604
605    if test "X$ECHO" = Xecho; then
606      # We didn't find a better echo, so look for alternatives.
607      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609         test "X$echo_testing_string" = "X$echo_test_string"; then
610        # This shell has a builtin print -r that does the trick.
611        ECHO='print -r'
612      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613	   test "X$CONFIG_SHELL" != X/bin/ksh; then
614        # If we have ksh, try running configure again with it.
615        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616        export ORIGINAL_CONFIG_SHELL
617        CONFIG_SHELL=/bin/ksh
618        export CONFIG_SHELL
619        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620      else
621        # Try using printf.
622        ECHO='printf %s\n'
623        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625	   test "X$echo_testing_string" = "X$echo_test_string"; then
626	  # Cool, printf works
627	  :
628        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629	     test "X$echo_testing_string" = 'X\t' &&
630	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631	     test "X$echo_testing_string" = "X$echo_test_string"; then
632	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633	  export CONFIG_SHELL
634	  SHELL="$CONFIG_SHELL"
635	  export SHELL
636	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
637        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638	     test "X$echo_testing_string" = 'X\t' &&
639	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640	     test "X$echo_testing_string" = "X$echo_test_string"; then
641	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
642        else
643	  # maybe with a smaller string...
644	  prev=:
645
646	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648	    then
649	      break
650	    fi
651	    prev="$cmd"
652	  done
653
654	  if test "$prev" != 'sed 50q "$0"'; then
655	    echo_test_string=`eval $prev`
656	    export echo_test_string
657	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658	  else
659	    # Oops.  We lost completely, so just stick with echo.
660	    ECHO=echo
661	  fi
662        fi
663      fi
664    fi
665  fi
666fi
667
668# Copy echo and quote the copy suitably for passing to libtool from
669# the Makefile, instead of quoting the original, which is used later.
670lt_ECHO=$ECHO
671if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673fi
674
675
676
677
678test -n "$DJDIR" || exec 7<&0 </dev/null
679exec 6>&1
680
681# Name of the host.
682# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683# so uname gets run too.
684ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686#
687# Initializations.
688#
689ac_default_prefix=/usr/local
690ac_clean_files=
691ac_config_libobj_dir=.
692LIBOBJS=
693cross_compiling=no
694subdirs=
695MFLAGS=
696MAKEFLAGS=
697
698# Identity of this package.
699PACKAGE_NAME=
700PACKAGE_TARNAME=
701PACKAGE_VERSION=
702PACKAGE_STRING=
703PACKAGE_BUGREPORT=
704PACKAGE_URL=
705
706ac_default_prefix=/usr/local
707# Factoring default headers for most tests.
708ac_includes_default="\
709#include <stdio.h>
710#ifdef HAVE_SYS_TYPES_H
711# include <sys/types.h>
712#endif
713#ifdef HAVE_SYS_STAT_H
714# include <sys/stat.h>
715#endif
716#ifdef STDC_HEADERS
717# include <stdlib.h>
718# include <stddef.h>
719#else
720# ifdef HAVE_STDLIB_H
721#  include <stdlib.h>
722# endif
723#endif
724#ifdef HAVE_STRING_H
725# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
726#  include <memory.h>
727# endif
728# include <string.h>
729#endif
730#ifdef HAVE_STRINGS_H
731# include <strings.h>
732#endif
733#ifdef HAVE_INTTYPES_H
734# include <inttypes.h>
735#endif
736#ifdef HAVE_STDINT_H
737# include <stdint.h>
738#endif
739#ifdef HAVE_UNISTD_H
740# include <unistd.h>
741#endif"
742
743ac_subst_vars='am__EXEEXT_FALSE
744am__EXEEXT_TRUE
745LTLIBOBJS
746LIBOBJS
747ISCC_WITHOUT_DLL
748ISCC_WITH_DLL
749all_libraries
750all_includes
751LAPACKPP_INTERNAL_LIBFILE
752LAPACKPP_LDFLAGS
753LAPACKPP_LIBS
754LAPACKPP_INCLUDES
755IS_WINDOWS_FALSE
756IS_WINDOWS_TRUE
757LAPACK_OS_WIN32
758HAVE_ZDOTC_WITH_RV
759LAPACK_LIBS
760BLAS_LIBS
761atlas_lib
762atlas_libraries
763FLIBS
764FCLIBS
765ac_ct_FC
766FCFLAGS
767FC
768ac_ct_F77
769FFLAGS
770F77
771WIN_PATH_SYSTEM_MINGW
772WIN_PATH_SYSTEM
773WIN_PATH_WINDOWS_MINGW
774WIN_PATH_WINDOWS
775WIN_PATH_HOME_MINGW
776WIN_PATH_HOME
777HAVE_BITS_CPP_TYPE_TRAITS_H
778CXXCPP
779OTOOL64
780OTOOL
781LIPO
782NMEDIT
783DSYMUTIL
784lt_ECHO
785RANLIB
786AR
787LN_S
788NM
789ac_ct_DUMPBIN
790DUMPBIN
791LD
792FGREP
793EGREP
794GREP
795LIBTOOL
796OBJDUMP
797DLLTOOL
798AS
799SED
800CPP
801am__fastdepCC_FALSE
802am__fastdepCC_TRUE
803CCDEPMODE
804ac_ct_CC
805CFLAGS
806CC
807am__fastdepCXX_FALSE
808am__fastdepCXX_TRUE
809CXXDEPMODE
810AMDEPBACKSLASH
811AMDEP_FALSE
812AMDEP_TRUE
813am__quote
814am__include
815DEPDIR
816OBJEXT
817EXEEXT
818ac_ct_CXX
819CPPFLAGS
820LDFLAGS
821CXXFLAGS
822CXX
823LAPACKPP_SO_AGE
824LAPACKPP_SO_REVISION
825LAPACKPP_SO_CURRENT
826rpm_release
827LAPACKPP_VERSION_STRING
828LAPACKPP_VERSION_PATCHLEVEL
829LAPACKPP_VERSION_MINOR
830LAPACKPP_VERSION_MAJOR
831am__untar
832am__tar
833AMTAR
834am__leading_dot
835SET_MAKE
836AWK
837mkdir_p
838MKDIR_P
839INSTALL_STRIP_PROGRAM
840STRIP
841install_sh
842MAKEINFO
843AUTOHEADER
844AUTOMAKE
845AUTOCONF
846ACLOCAL
847VERSION
848PACKAGE
849CYGPATH_W
850am__isrc
851INSTALL_DATA
852INSTALL_SCRIPT
853INSTALL_PROGRAM
854target_os
855target_vendor
856target_cpu
857target
858host_os
859host_vendor
860host_cpu
861host
862build_os
863build_vendor
864build_cpu
865build
866target_alias
867host_alias
868build_alias
869LIBS
870ECHO_T
871ECHO_N
872ECHO_C
873DEFS
874mandir
875localedir
876libdir
877psdir
878pdfdir
879dvidir
880htmldir
881infodir
882docdir
883oldincludedir
884includedir
885localstatedir
886sharedstatedir
887sysconfdir
888datadir
889datarootdir
890libexecdir
891sbindir
892bindir
893program_transform_name
894prefix
895exec_prefix
896PACKAGE_URL
897PACKAGE_BUGREPORT
898PACKAGE_STRING
899PACKAGE_VERSION
900PACKAGE_TARNAME
901PACKAGE_NAME
902PATH_SEPARATOR
903SHELL'
904ac_subst_files=''
905ac_user_opts='
906enable_option_checking
907enable_dependency_tracking
908enable_fast_install
909enable_static
910enable_shared
911with_pic
912with_gnu_ld
913enable_libtool_lock
914with_home_path
915with_system_path
916with_windows_path
917with_blas
918enable_atlas
919with_atlas_libs
920with_lapack
921with_lapack_libs
922enable_debug
923enable_warnings
924enable_error_on_warning
925with_msvc_dll
926'
927      ac_precious_vars='build_alias
928host_alias
929target_alias
930CXX
931CXXFLAGS
932LDFLAGS
933LIBS
934CPPFLAGS
935CCC
936CC
937CFLAGS
938CPP
939CXXCPP
940F77
941FFLAGS
942FC
943FCFLAGS'
944
945
946# Initialize some variables set by options.
947ac_init_help=
948ac_init_version=false
949ac_unrecognized_opts=
950ac_unrecognized_sep=
951# The variables have the same names as the options, with
952# dashes changed to underlines.
953cache_file=/dev/null
954exec_prefix=NONE
955no_create=
956no_recursion=
957prefix=NONE
958program_prefix=NONE
959program_suffix=NONE
960program_transform_name=s,x,x,
961silent=
962site=
963srcdir=
964verbose=
965x_includes=NONE
966x_libraries=NONE
967
968# Installation directory options.
969# These are left unexpanded so users can "make install exec_prefix=/foo"
970# and all the variables that are supposed to be based on exec_prefix
971# by default will actually change.
972# Use braces instead of parens because sh, perl, etc. also accept them.
973# (The list follows the same order as the GNU Coding Standards.)
974bindir='${exec_prefix}/bin'
975sbindir='${exec_prefix}/sbin'
976libexecdir='${exec_prefix}/libexec'
977datarootdir='${prefix}/share'
978datadir='${datarootdir}'
979sysconfdir='${prefix}/etc'
980sharedstatedir='${prefix}/com'
981localstatedir='${prefix}/var'
982includedir='${prefix}/include'
983oldincludedir='/usr/include'
984docdir='${datarootdir}/doc/${PACKAGE}'
985infodir='${datarootdir}/info'
986htmldir='${docdir}'
987dvidir='${docdir}'
988pdfdir='${docdir}'
989psdir='${docdir}'
990libdir='${exec_prefix}/lib'
991localedir='${datarootdir}/locale'
992mandir='${datarootdir}/man'
993
994ac_prev=
995ac_dashdash=
996for ac_option
997do
998  # If the previous option needs an argument, assign it.
999  if test -n "$ac_prev"; then
1000    eval $ac_prev=\$ac_option
1001    ac_prev=
1002    continue
1003  fi
1004
1005  case $ac_option in
1006  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1007  *)	ac_optarg=yes ;;
1008  esac
1009
1010  # Accept the important Cygnus configure options, so we can diagnose typos.
1011
1012  case $ac_dashdash$ac_option in
1013  --)
1014    ac_dashdash=yes ;;
1015
1016  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1017    ac_prev=bindir ;;
1018  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1019    bindir=$ac_optarg ;;
1020
1021  -build | --build | --buil | --bui | --bu)
1022    ac_prev=build_alias ;;
1023  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1024    build_alias=$ac_optarg ;;
1025
1026  -cache-file | --cache-file | --cache-fil | --cache-fi \
1027  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1028    ac_prev=cache_file ;;
1029  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1030  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1031    cache_file=$ac_optarg ;;
1032
1033  --config-cache | -C)
1034    cache_file=config.cache ;;
1035
1036  -datadir | --datadir | --datadi | --datad)
1037    ac_prev=datadir ;;
1038  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1039    datadir=$ac_optarg ;;
1040
1041  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1042  | --dataroo | --dataro | --datar)
1043    ac_prev=datarootdir ;;
1044  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1045  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1046    datarootdir=$ac_optarg ;;
1047
1048  -disable-* | --disable-*)
1049    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1050    # Reject names that are not valid shell variable names.
1051    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1052      as_fn_error "invalid feature name: $ac_useropt"
1053    ac_useropt_orig=$ac_useropt
1054    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055    case $ac_user_opts in
1056      *"
1057"enable_$ac_useropt"
1058"*) ;;
1059      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1060	 ac_unrecognized_sep=', ';;
1061    esac
1062    eval enable_$ac_useropt=no ;;
1063
1064  -docdir | --docdir | --docdi | --doc | --do)
1065    ac_prev=docdir ;;
1066  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1067    docdir=$ac_optarg ;;
1068
1069  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1070    ac_prev=dvidir ;;
1071  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1072    dvidir=$ac_optarg ;;
1073
1074  -enable-* | --enable-*)
1075    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1076    # Reject names that are not valid shell variable names.
1077    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078      as_fn_error "invalid feature name: $ac_useropt"
1079    ac_useropt_orig=$ac_useropt
1080    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1081    case $ac_user_opts in
1082      *"
1083"enable_$ac_useropt"
1084"*) ;;
1085      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1086	 ac_unrecognized_sep=', ';;
1087    esac
1088    eval enable_$ac_useropt=\$ac_optarg ;;
1089
1090  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1091  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1092  | --exec | --exe | --ex)
1093    ac_prev=exec_prefix ;;
1094  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1095  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1096  | --exec=* | --exe=* | --ex=*)
1097    exec_prefix=$ac_optarg ;;
1098
1099  -gas | --gas | --ga | --g)
1100    # Obsolete; use --with-gas.
1101    with_gas=yes ;;
1102
1103  -help | --help | --hel | --he | -h)
1104    ac_init_help=long ;;
1105  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1106    ac_init_help=recursive ;;
1107  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1108    ac_init_help=short ;;
1109
1110  -host | --host | --hos | --ho)
1111    ac_prev=host_alias ;;
1112  -host=* | --host=* | --hos=* | --ho=*)
1113    host_alias=$ac_optarg ;;
1114
1115  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1116    ac_prev=htmldir ;;
1117  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1118  | --ht=*)
1119    htmldir=$ac_optarg ;;
1120
1121  -includedir | --includedir | --includedi | --included | --include \
1122  | --includ | --inclu | --incl | --inc)
1123    ac_prev=includedir ;;
1124  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1125  | --includ=* | --inclu=* | --incl=* | --inc=*)
1126    includedir=$ac_optarg ;;
1127
1128  -infodir | --infodir | --infodi | --infod | --info | --inf)
1129    ac_prev=infodir ;;
1130  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1131    infodir=$ac_optarg ;;
1132
1133  -libdir | --libdir | --libdi | --libd)
1134    ac_prev=libdir ;;
1135  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1136    libdir=$ac_optarg ;;
1137
1138  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1139  | --libexe | --libex | --libe)
1140    ac_prev=libexecdir ;;
1141  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1142  | --libexe=* | --libex=* | --libe=*)
1143    libexecdir=$ac_optarg ;;
1144
1145  -localedir | --localedir | --localedi | --localed | --locale)
1146    ac_prev=localedir ;;
1147  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1148    localedir=$ac_optarg ;;
1149
1150  -localstatedir | --localstatedir | --localstatedi | --localstated \
1151  | --localstate | --localstat | --localsta | --localst | --locals)
1152    ac_prev=localstatedir ;;
1153  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1154  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1155    localstatedir=$ac_optarg ;;
1156
1157  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1158    ac_prev=mandir ;;
1159  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1160    mandir=$ac_optarg ;;
1161
1162  -nfp | --nfp | --nf)
1163    # Obsolete; use --without-fp.
1164    with_fp=no ;;
1165
1166  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1167  | --no-cr | --no-c | -n)
1168    no_create=yes ;;
1169
1170  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1171  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1172    no_recursion=yes ;;
1173
1174  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1175  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1176  | --oldin | --oldi | --old | --ol | --o)
1177    ac_prev=oldincludedir ;;
1178  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1179  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1180  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1181    oldincludedir=$ac_optarg ;;
1182
1183  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1184    ac_prev=prefix ;;
1185  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1186    prefix=$ac_optarg ;;
1187
1188  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1189  | --program-pre | --program-pr | --program-p)
1190    ac_prev=program_prefix ;;
1191  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1192  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1193    program_prefix=$ac_optarg ;;
1194
1195  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1196  | --program-suf | --program-su | --program-s)
1197    ac_prev=program_suffix ;;
1198  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1199  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1200    program_suffix=$ac_optarg ;;
1201
1202  -program-transform-name | --program-transform-name \
1203  | --program-transform-nam | --program-transform-na \
1204  | --program-transform-n | --program-transform- \
1205  | --program-transform | --program-transfor \
1206  | --program-transfo | --program-transf \
1207  | --program-trans | --program-tran \
1208  | --progr-tra | --program-tr | --program-t)
1209    ac_prev=program_transform_name ;;
1210  -program-transform-name=* | --program-transform-name=* \
1211  | --program-transform-nam=* | --program-transform-na=* \
1212  | --program-transform-n=* | --program-transform-=* \
1213  | --program-transform=* | --program-transfor=* \
1214  | --program-transfo=* | --program-transf=* \
1215  | --program-trans=* | --program-tran=* \
1216  | --progr-tra=* | --program-tr=* | --program-t=*)
1217    program_transform_name=$ac_optarg ;;
1218
1219  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1220    ac_prev=pdfdir ;;
1221  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1222    pdfdir=$ac_optarg ;;
1223
1224  -psdir | --psdir | --psdi | --psd | --ps)
1225    ac_prev=psdir ;;
1226  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1227    psdir=$ac_optarg ;;
1228
1229  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230  | -silent | --silent | --silen | --sile | --sil)
1231    silent=yes ;;
1232
1233  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234    ac_prev=sbindir ;;
1235  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236  | --sbi=* | --sb=*)
1237    sbindir=$ac_optarg ;;
1238
1239  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241  | --sharedst | --shareds | --shared | --share | --shar \
1242  | --sha | --sh)
1243    ac_prev=sharedstatedir ;;
1244  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247  | --sha=* | --sh=*)
1248    sharedstatedir=$ac_optarg ;;
1249
1250  -site | --site | --sit)
1251    ac_prev=site ;;
1252  -site=* | --site=* | --sit=*)
1253    site=$ac_optarg ;;
1254
1255  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256    ac_prev=srcdir ;;
1257  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1258    srcdir=$ac_optarg ;;
1259
1260  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261  | --syscon | --sysco | --sysc | --sys | --sy)
1262    ac_prev=sysconfdir ;;
1263  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1265    sysconfdir=$ac_optarg ;;
1266
1267  -target | --target | --targe | --targ | --tar | --ta | --t)
1268    ac_prev=target_alias ;;
1269  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1270    target_alias=$ac_optarg ;;
1271
1272  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273    verbose=yes ;;
1274
1275  -version | --version | --versio | --versi | --vers | -V)
1276    ac_init_version=: ;;
1277
1278  -with-* | --with-*)
1279    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282      as_fn_error "invalid package name: $ac_useropt"
1283    ac_useropt_orig=$ac_useropt
1284    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285    case $ac_user_opts in
1286      *"
1287"with_$ac_useropt"
1288"*) ;;
1289      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290	 ac_unrecognized_sep=', ';;
1291    esac
1292    eval with_$ac_useropt=\$ac_optarg ;;
1293
1294  -without-* | --without-*)
1295    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1296    # Reject names that are not valid shell variable names.
1297    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298      as_fn_error "invalid package name: $ac_useropt"
1299    ac_useropt_orig=$ac_useropt
1300    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301    case $ac_user_opts in
1302      *"
1303"with_$ac_useropt"
1304"*) ;;
1305      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306	 ac_unrecognized_sep=', ';;
1307    esac
1308    eval with_$ac_useropt=no ;;
1309
1310  --x)
1311    # Obsolete; use --with-x.
1312    with_x=yes ;;
1313
1314  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315  | --x-incl | --x-inc | --x-in | --x-i)
1316    ac_prev=x_includes ;;
1317  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319    x_includes=$ac_optarg ;;
1320
1321  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323    ac_prev=x_libraries ;;
1324  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326    x_libraries=$ac_optarg ;;
1327
1328  -*) as_fn_error "unrecognized option: \`$ac_option'
1329Try \`$0 --help' for more information."
1330    ;;
1331
1332  *=*)
1333    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334    # Reject names that are not valid shell variable names.
1335    case $ac_envvar in #(
1336      '' | [0-9]* | *[!_$as_cr_alnum]* )
1337      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1338    esac
1339    eval $ac_envvar=\$ac_optarg
1340    export $ac_envvar ;;
1341
1342  *)
1343    # FIXME: should be removed in autoconf 3.0.
1344    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348    ;;
1349
1350  esac
1351done
1352
1353if test -n "$ac_prev"; then
1354  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355  as_fn_error "missing argument to $ac_option"
1356fi
1357
1358if test -n "$ac_unrecognized_opts"; then
1359  case $enable_option_checking in
1360    no) ;;
1361    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1362    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363  esac
1364fi
1365
1366# Check all directory arguments for consistency.
1367for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368		datadir sysconfdir sharedstatedir localstatedir includedir \
1369		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1370		libdir localedir mandir
1371do
1372  eval ac_val=\$$ac_var
1373  # Remove trailing slashes.
1374  case $ac_val in
1375    */ )
1376      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377      eval $ac_var=\$ac_val;;
1378  esac
1379  # Be sure to have absolute directory names.
1380  case $ac_val in
1381    [\\/$]* | ?:[\\/]* )  continue;;
1382    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1383  esac
1384  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1385done
1386
1387# There might be people who depend on the old broken behavior: `$host'
1388# used to hold the argument of --host etc.
1389# FIXME: To remove some day.
1390build=$build_alias
1391host=$host_alias
1392target=$target_alias
1393
1394# FIXME: To remove some day.
1395if test "x$host_alias" != x; then
1396  if test "x$build_alias" = x; then
1397    cross_compiling=maybe
1398    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1399    If a cross compiler is detected then cross compile mode will be used." >&2
1400  elif test "x$build_alias" != "x$host_alias"; then
1401    cross_compiling=yes
1402  fi
1403fi
1404
1405ac_tool_prefix=
1406test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408test "$silent" = yes && exec 6>/dev/null
1409
1410
1411ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412ac_ls_di=`ls -di .` &&
1413ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414  as_fn_error "working directory cannot be determined"
1415test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416  as_fn_error "pwd does not report name of working directory"
1417
1418
1419# Find the source files, if location was not specified.
1420if test -z "$srcdir"; then
1421  ac_srcdir_defaulted=yes
1422  # Try the directory containing this script, then the parent directory.
1423  ac_confdir=`$as_dirname -- "$as_myself" ||
1424$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425	 X"$as_myself" : 'X\(//\)[^/]' \| \
1426	 X"$as_myself" : 'X\(//\)$' \| \
1427	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428$as_echo X"$as_myself" |
1429    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430	    s//\1/
1431	    q
1432	  }
1433	  /^X\(\/\/\)[^/].*/{
1434	    s//\1/
1435	    q
1436	  }
1437	  /^X\(\/\/\)$/{
1438	    s//\1/
1439	    q
1440	  }
1441	  /^X\(\/\).*/{
1442	    s//\1/
1443	    q
1444	  }
1445	  s/.*/./; q'`
1446  srcdir=$ac_confdir
1447  if test ! -r "$srcdir/$ac_unique_file"; then
1448    srcdir=..
1449  fi
1450else
1451  ac_srcdir_defaulted=no
1452fi
1453if test ! -r "$srcdir/$ac_unique_file"; then
1454  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1456fi
1457ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458ac_abs_confdir=`(
1459	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1460	pwd)`
1461# When building in place, set srcdir=.
1462if test "$ac_abs_confdir" = "$ac_pwd"; then
1463  srcdir=.
1464fi
1465# Remove unnecessary trailing slashes from srcdir.
1466# Double slashes in file names in object file debugging info
1467# mess up M-x gdb in Emacs.
1468case $srcdir in
1469*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470esac
1471for ac_var in $ac_precious_vars; do
1472  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473  eval ac_env_${ac_var}_value=\$${ac_var}
1474  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476done
1477
1478#
1479# Report the --help message.
1480#
1481if test "$ac_init_help" = "long"; then
1482  # Omit some internal or obsolete options to make the list less imposing.
1483  # This message is too long to be a string in the A/UX 3.1 sh.
1484  cat <<_ACEOF
1485\`configure' configures this package to adapt to many kinds of systems.
1486
1487Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490VAR=VALUE.  See below for descriptions of some of the useful variables.
1491
1492Defaults for the options are specified in brackets.
1493
1494Configuration:
1495  -h, --help              display this help and exit
1496      --help=short        display options specific to this package
1497      --help=recursive    display the short help of all the included packages
1498  -V, --version           display version information and exit
1499  -q, --quiet, --silent   do not print \`checking...' messages
1500      --cache-file=FILE   cache test results in FILE [disabled]
1501  -C, --config-cache      alias for \`--cache-file=config.cache'
1502  -n, --no-create         do not create output files
1503      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1504
1505Installation directories:
1506  --prefix=PREFIX         install architecture-independent files in PREFIX
1507                          [$ac_default_prefix]
1508  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1509                          [PREFIX]
1510
1511By default, \`make install' will install all the files in
1512\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1513an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514for instance \`--prefix=\$HOME'.
1515
1516For better control, use the options below.
1517
1518Fine tuning of the installation directories:
1519  --bindir=DIR            user executables [EPREFIX/bin]
1520  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1521  --libexecdir=DIR        program executables [EPREFIX/libexec]
1522  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1523  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1524  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1525  --libdir=DIR            object code libraries [EPREFIX/lib]
1526  --includedir=DIR        C header files [PREFIX/include]
1527  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1528  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1529  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1530  --infodir=DIR           info documentation [DATAROOTDIR/info]
1531  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1532  --mandir=DIR            man documentation [DATAROOTDIR/man]
1533  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1534  --htmldir=DIR           html documentation [DOCDIR]
1535  --dvidir=DIR            dvi documentation [DOCDIR]
1536  --pdfdir=DIR            pdf documentation [DOCDIR]
1537  --psdir=DIR             ps documentation [DOCDIR]
1538_ACEOF
1539
1540  cat <<\_ACEOF
1541
1542Program names:
1543  --program-prefix=PREFIX            prepend PREFIX to installed program names
1544  --program-suffix=SUFFIX            append SUFFIX to installed program names
1545  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1546
1547System types:
1548  --build=BUILD     configure for building on BUILD [guessed]
1549  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1550  --target=TARGET   configure for building compilers for TARGET [HOST]
1551_ACEOF
1552fi
1553
1554if test -n "$ac_init_help"; then
1555
1556  cat <<\_ACEOF
1557
1558Optional Features:
1559  --disable-option-checking  ignore unrecognized --enable/--with options
1560  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1561  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1562  --disable-dependency-tracking  speeds up one-time build
1563  --enable-dependency-tracking   do not reject slow dependency extractors
1564  --enable-fast-install[=PKGS]
1565                          optimize for fast installation [default=yes]
1566  --enable-static[=PKGS]  build static libraries [default=no]
1567  --enable-shared[=PKGS]  build shared libraries [default=yes]
1568  --disable-libtool-lock  avoid locking (might break parallel builds)
1569  --enable-atlas             enable ATLAS (default=yes)
1570  --enable-debug          enable compile arguments for debugging code
1571  --enable-warnings       enable compilation warnings, default=yes
1572  --enable-error-on-warning treat all compile warnings as errors, default=no
1573
1574Optional Packages:
1575  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1576  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1577  --with-pic              try to use only PIC/non-PIC objects [default=use
1578                          both]
1579  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1580  --with-home-path=DIR    specify the home directory for a user
1581  --with-system-path=DIR  specify the system directory
1582  --with-windows-path=DIR specify the windows directory
1583  --with-blas=<lib>   Use BLAS library <lib>
1584  --with-atlas-libs=DIR  adds ATLAS library path
1585--with-lapack=<lib>   Use LAPACK library <lib>
1586  --with-lapack-libs=DIR  adds lapack library path
1587  --with-msvc-dll         if the self-installing exe should include the msvc
1588                          DLL
1589
1590Some influential environment variables:
1591  CXX         C++ compiler command
1592  CXXFLAGS    C++ compiler flags
1593  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1594              nonstandard directory <lib dir>
1595  LIBS        libraries to pass to the linker, e.g. -l<library>
1596  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1597              you have headers in a nonstandard directory <include dir>
1598  CC          C compiler command
1599  CFLAGS      C compiler flags
1600  CPP         C preprocessor
1601  CXXCPP      C++ preprocessor
1602  F77         Fortran 77 compiler command
1603  FFLAGS      Fortran 77 compiler flags
1604  FC          Fortran compiler command
1605  FCFLAGS     Fortran compiler flags
1606
1607Use these variables to override the choices made by `configure' or to help
1608it to find libraries and programs with nonstandard names/locations.
1609
1610Report bugs to the package provider.
1611_ACEOF
1612ac_status=$?
1613fi
1614
1615if test "$ac_init_help" = "recursive"; then
1616  # If there are subdirs, report their specific --help.
1617  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1618    test -d "$ac_dir" ||
1619      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1620      continue
1621    ac_builddir=.
1622
1623case "$ac_dir" in
1624.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625*)
1626  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1627  # A ".." for each directory in $ac_dir_suffix.
1628  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1629  case $ac_top_builddir_sub in
1630  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1632  esac ;;
1633esac
1634ac_abs_top_builddir=$ac_pwd
1635ac_abs_builddir=$ac_pwd$ac_dir_suffix
1636# for backward compatibility:
1637ac_top_builddir=$ac_top_build_prefix
1638
1639case $srcdir in
1640  .)  # We are building in place.
1641    ac_srcdir=.
1642    ac_top_srcdir=$ac_top_builddir_sub
1643    ac_abs_top_srcdir=$ac_pwd ;;
1644  [\\/]* | ?:[\\/]* )  # Absolute name.
1645    ac_srcdir=$srcdir$ac_dir_suffix;
1646    ac_top_srcdir=$srcdir
1647    ac_abs_top_srcdir=$srcdir ;;
1648  *) # Relative name.
1649    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1650    ac_top_srcdir=$ac_top_build_prefix$srcdir
1651    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1652esac
1653ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1654
1655    cd "$ac_dir" || { ac_status=$?; continue; }
1656    # Check for guested configure.
1657    if test -f "$ac_srcdir/configure.gnu"; then
1658      echo &&
1659      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1660    elif test -f "$ac_srcdir/configure"; then
1661      echo &&
1662      $SHELL "$ac_srcdir/configure" --help=recursive
1663    else
1664      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1665    fi || ac_status=$?
1666    cd "$ac_pwd" || { ac_status=$?; break; }
1667  done
1668fi
1669
1670test -n "$ac_init_help" && exit $ac_status
1671if $ac_init_version; then
1672  cat <<\_ACEOF
1673configure
1674generated by GNU Autoconf 2.65
1675
1676Copyright (C) 2009 Free Software Foundation, Inc.
1677This configure script is free software; the Free Software Foundation
1678gives unlimited permission to copy, distribute and modify it.
1679_ACEOF
1680  exit
1681fi
1682
1683## ------------------------ ##
1684## Autoconf initialization. ##
1685## ------------------------ ##
1686
1687# ac_fn_cxx_try_compile LINENO
1688# ----------------------------
1689# Try to compile conftest.$ac_ext, and return whether this succeeded.
1690ac_fn_cxx_try_compile ()
1691{
1692  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693  rm -f conftest.$ac_objext
1694  if { { ac_try="$ac_compile"
1695case "(($ac_try" in
1696  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697  *) ac_try_echo=$ac_try;;
1698esac
1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700$as_echo "$ac_try_echo"; } >&5
1701  (eval "$ac_compile") 2>conftest.err
1702  ac_status=$?
1703  if test -s conftest.err; then
1704    grep -v '^ *+' conftest.err >conftest.er1
1705    cat conftest.er1 >&5
1706    mv -f conftest.er1 conftest.err
1707  fi
1708  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709  test $ac_status = 0; } && {
1710	 test -z "$ac_cxx_werror_flag" ||
1711	 test ! -s conftest.err
1712       } && test -s conftest.$ac_objext; then :
1713  ac_retval=0
1714else
1715  $as_echo "$as_me: failed program was:" >&5
1716sed 's/^/| /' conftest.$ac_ext >&5
1717
1718	ac_retval=1
1719fi
1720  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721  as_fn_set_status $ac_retval
1722
1723} # ac_fn_cxx_try_compile
1724
1725# ac_fn_c_try_compile LINENO
1726# --------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_compile ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  rm -f conftest.$ac_objext
1732  if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_compile") 2>conftest.err
1740  ac_status=$?
1741  if test -s conftest.err; then
1742    grep -v '^ *+' conftest.err >conftest.er1
1743    cat conftest.er1 >&5
1744    mv -f conftest.er1 conftest.err
1745  fi
1746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; } && {
1748	 test -z "$ac_c_werror_flag" ||
1749	 test ! -s conftest.err
1750       } && test -s conftest.$ac_objext; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756	ac_retval=1
1757fi
1758  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1759  as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_compile
1762
1763# ac_fn_c_try_cpp LINENO
1764# ----------------------
1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_cpp ()
1767{
1768  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769  if { { ac_try="$ac_cpp conftest.$ac_ext"
1770case "(($ac_try" in
1771  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772  *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777  ac_status=$?
1778  if test -s conftest.err; then
1779    grep -v '^ *+' conftest.err >conftest.er1
1780    cat conftest.er1 >&5
1781    mv -f conftest.er1 conftest.err
1782  fi
1783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784  test $ac_status = 0; } >/dev/null && {
1785	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786	 test ! -s conftest.err
1787       }; then :
1788  ac_retval=0
1789else
1790  $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793    ac_retval=1
1794fi
1795  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796  as_fn_set_status $ac_retval
1797
1798} # ac_fn_c_try_cpp
1799
1800# ac_fn_c_try_link LINENO
1801# -----------------------
1802# Try to link conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_c_try_link ()
1804{
1805  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806  rm -f conftest.$ac_objext conftest$ac_exeext
1807  if { { ac_try="$ac_link"
1808case "(($ac_try" in
1809  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810  *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814  (eval "$ac_link") 2>conftest.err
1815  ac_status=$?
1816  if test -s conftest.err; then
1817    grep -v '^ *+' conftest.err >conftest.er1
1818    cat conftest.er1 >&5
1819    mv -f conftest.er1 conftest.err
1820  fi
1821  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822  test $ac_status = 0; } && {
1823	 test -z "$ac_c_werror_flag" ||
1824	 test ! -s conftest.err
1825       } && test -s conftest$ac_exeext && {
1826	 test "$cross_compiling" = yes ||
1827	 $as_test_x conftest$ac_exeext
1828       }; then :
1829  ac_retval=0
1830else
1831  $as_echo "$as_me: failed program was:" >&5
1832sed 's/^/| /' conftest.$ac_ext >&5
1833
1834	ac_retval=1
1835fi
1836  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1837  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1838  # interfere with the next link command; also delete a directory that is
1839  # left behind by Apple's compiler.  We do this before executing the actions.
1840  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1841  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842  as_fn_set_status $ac_retval
1843
1844} # ac_fn_c_try_link
1845
1846# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1847# -------------------------------------------------------
1848# Tests whether HEADER exists and can be compiled using the include files in
1849# INCLUDES, setting the cache variable VAR accordingly.
1850ac_fn_c_check_header_compile ()
1851{
1852  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1856  $as_echo_n "(cached) " >&6
1857else
1858  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h.  */
1860$4
1861#include <$2>
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"; then :
1864  eval "$3=yes"
1865else
1866  eval "$3=no"
1867fi
1868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869fi
1870eval ac_res=\$$3
1871	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1872$as_echo "$ac_res" >&6; }
1873  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874
1875} # ac_fn_c_check_header_compile
1876
1877# ac_fn_c_try_run LINENO
1878# ----------------------
1879# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1880# that executables *can* be run.
1881ac_fn_c_try_run ()
1882{
1883  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884  if { { ac_try="$ac_link"
1885case "(($ac_try" in
1886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1887  *) ac_try_echo=$ac_try;;
1888esac
1889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890$as_echo "$ac_try_echo"; } >&5
1891  (eval "$ac_link") 2>&5
1892  ac_status=$?
1893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1895  { { case "(($ac_try" in
1896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897  *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901  (eval "$ac_try") 2>&5
1902  ac_status=$?
1903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904  test $ac_status = 0; }; }; then :
1905  ac_retval=0
1906else
1907  $as_echo "$as_me: program exited with status $ac_status" >&5
1908       $as_echo "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911       ac_retval=$ac_status
1912fi
1913  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915  as_fn_set_status $ac_retval
1916
1917} # ac_fn_c_try_run
1918
1919# ac_fn_c_check_func LINENO FUNC VAR
1920# ----------------------------------
1921# Tests whether FUNC exists, setting the cache variable VAR accordingly
1922ac_fn_c_check_func ()
1923{
1924  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926$as_echo_n "checking for $2... " >&6; }
1927if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1928  $as_echo_n "(cached) " >&6
1929else
1930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h.  */
1932/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1933   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1934#define $2 innocuous_$2
1935
1936/* System header to define __stub macros and hopefully few prototypes,
1937    which can conflict with char $2 (); below.
1938    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1939    <limits.h> exists even on freestanding compilers.  */
1940
1941#ifdef __STDC__
1942# include <limits.h>
1943#else
1944# include <assert.h>
1945#endif
1946
1947#undef $2
1948
1949/* Override any GCC internal prototype to avoid an error.
1950   Use char because int might match the return type of a GCC
1951   builtin and then its argument prototype would still apply.  */
1952#ifdef __cplusplus
1953extern "C"
1954#endif
1955char $2 ();
1956/* The GNU C library defines this for functions which it implements
1957    to always fail with ENOSYS.  Some functions are actually named
1958    something starting with __ and the normal name is an alias.  */
1959#if defined __stub_$2 || defined __stub___$2
1960choke me
1961#endif
1962
1963int
1964main ()
1965{
1966return $2 ();
1967  ;
1968  return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_link "$LINENO"; then :
1972  eval "$3=yes"
1973else
1974  eval "$3=no"
1975fi
1976rm -f core conftest.err conftest.$ac_objext \
1977    conftest$ac_exeext conftest.$ac_ext
1978fi
1979eval ac_res=\$$3
1980	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981$as_echo "$ac_res" >&6; }
1982  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1983
1984} # ac_fn_c_check_func
1985
1986# ac_fn_cxx_try_cpp LINENO
1987# ------------------------
1988# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1989ac_fn_cxx_try_cpp ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  if { { ac_try="$ac_cpp conftest.$ac_ext"
1993case "(($ac_try" in
1994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1995  *) ac_try_echo=$ac_try;;
1996esac
1997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1998$as_echo "$ac_try_echo"; } >&5
1999  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2000  ac_status=$?
2001  if test -s conftest.err; then
2002    grep -v '^ *+' conftest.err >conftest.er1
2003    cat conftest.er1 >&5
2004    mv -f conftest.er1 conftest.err
2005  fi
2006  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2007  test $ac_status = 0; } >/dev/null && {
2008	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2009	 test ! -s conftest.err
2010       }; then :
2011  ac_retval=0
2012else
2013  $as_echo "$as_me: failed program was:" >&5
2014sed 's/^/| /' conftest.$ac_ext >&5
2015
2016    ac_retval=1
2017fi
2018  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019  as_fn_set_status $ac_retval
2020
2021} # ac_fn_cxx_try_cpp
2022
2023# ac_fn_cxx_try_link LINENO
2024# -------------------------
2025# Try to link conftest.$ac_ext, and return whether this succeeded.
2026ac_fn_cxx_try_link ()
2027{
2028  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029  rm -f conftest.$ac_objext conftest$ac_exeext
2030  if { { ac_try="$ac_link"
2031case "(($ac_try" in
2032  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2033  *) ac_try_echo=$ac_try;;
2034esac
2035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2036$as_echo "$ac_try_echo"; } >&5
2037  (eval "$ac_link") 2>conftest.err
2038  ac_status=$?
2039  if test -s conftest.err; then
2040    grep -v '^ *+' conftest.err >conftest.er1
2041    cat conftest.er1 >&5
2042    mv -f conftest.er1 conftest.err
2043  fi
2044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2045  test $ac_status = 0; } && {
2046	 test -z "$ac_cxx_werror_flag" ||
2047	 test ! -s conftest.err
2048       } && test -s conftest$ac_exeext && {
2049	 test "$cross_compiling" = yes ||
2050	 $as_test_x conftest$ac_exeext
2051       }; then :
2052  ac_retval=0
2053else
2054  $as_echo "$as_me: failed program was:" >&5
2055sed 's/^/| /' conftest.$ac_ext >&5
2056
2057	ac_retval=1
2058fi
2059  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2060  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2061  # interfere with the next link command; also delete a directory that is
2062  # left behind by Apple's compiler.  We do this before executing the actions.
2063  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2064  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065  as_fn_set_status $ac_retval
2066
2067} # ac_fn_cxx_try_link
2068
2069# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2070# -------------------------------------------------------
2071# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2072# the include files in INCLUDES and setting the cache variable VAR
2073# accordingly.
2074ac_fn_c_check_header_mongrel ()
2075{
2076  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2078  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; }
2080if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2081  $as_echo_n "(cached) " >&6
2082fi
2083eval ac_res=\$$3
2084	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085$as_echo "$ac_res" >&6; }
2086else
2087  # Is the header compilable?
2088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2089$as_echo_n "checking $2 usability... " >&6; }
2090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h.  */
2092$4
2093#include <$2>
2094_ACEOF
2095if ac_fn_c_try_compile "$LINENO"; then :
2096  ac_header_compiler=yes
2097else
2098  ac_header_compiler=no
2099fi
2100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2102$as_echo "$ac_header_compiler" >&6; }
2103
2104# Is the header present?
2105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2106$as_echo_n "checking $2 presence... " >&6; }
2107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h.  */
2109#include <$2>
2110_ACEOF
2111if ac_fn_c_try_cpp "$LINENO"; then :
2112  ac_header_preproc=yes
2113else
2114  ac_header_preproc=no
2115fi
2116rm -f conftest.err conftest.$ac_ext
2117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2118$as_echo "$ac_header_preproc" >&6; }
2119
2120# So?  What about this header?
2121case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2122  yes:no: )
2123    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2124$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2125    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2126$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127    ;;
2128  no:yes:* )
2129    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2130$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2131    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2132$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2133    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2134$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2135    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2136$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2137    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2138$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2139    ;;
2140esac
2141  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142$as_echo_n "checking for $2... " >&6; }
2143if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2144  $as_echo_n "(cached) " >&6
2145else
2146  eval "$3=\$ac_header_compiler"
2147fi
2148eval ac_res=\$$3
2149	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150$as_echo "$ac_res" >&6; }
2151fi
2152  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153
2154} # ac_fn_c_check_header_mongrel
2155
2156# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2157# ---------------------------------------------------------
2158# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2159# the include files in INCLUDES and setting the cache variable VAR
2160# accordingly.
2161ac_fn_cxx_check_header_mongrel ()
2162{
2163  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2165  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2166$as_echo_n "checking for $2... " >&6; }
2167if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2168  $as_echo_n "(cached) " >&6
2169fi
2170eval ac_res=\$$3
2171	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172$as_echo "$ac_res" >&6; }
2173else
2174  # Is the header compilable?
2175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2176$as_echo_n "checking $2 usability... " >&6; }
2177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178/* end confdefs.h.  */
2179$4
2180#include <$2>
2181_ACEOF
2182if ac_fn_cxx_try_compile "$LINENO"; then :
2183  ac_header_compiler=yes
2184else
2185  ac_header_compiler=no
2186fi
2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2189$as_echo "$ac_header_compiler" >&6; }
2190
2191# Is the header present?
2192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2193$as_echo_n "checking $2 presence... " >&6; }
2194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195/* end confdefs.h.  */
2196#include <$2>
2197_ACEOF
2198if ac_fn_cxx_try_cpp "$LINENO"; then :
2199  ac_header_preproc=yes
2200else
2201  ac_header_preproc=no
2202fi
2203rm -f conftest.err conftest.$ac_ext
2204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2205$as_echo "$ac_header_preproc" >&6; }
2206
2207# So?  What about this header?
2208case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2209  yes:no: )
2210    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2211$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2212    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2213$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2214    ;;
2215  no:yes:* )
2216    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2217$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2218    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2219$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2220    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2221$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2222    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2223$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2224    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2225$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2226    ;;
2227esac
2228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2229$as_echo_n "checking for $2... " >&6; }
2230if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2231  $as_echo_n "(cached) " >&6
2232else
2233  eval "$3=\$ac_header_compiler"
2234fi
2235eval ac_res=\$$3
2236	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2237$as_echo "$ac_res" >&6; }
2238fi
2239  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2240
2241} # ac_fn_cxx_check_header_mongrel
2242
2243# ac_fn_f77_try_compile LINENO
2244# ----------------------------
2245# Try to compile conftest.$ac_ext, and return whether this succeeded.
2246ac_fn_f77_try_compile ()
2247{
2248  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2249  rm -f conftest.$ac_objext
2250  if { { ac_try="$ac_compile"
2251case "(($ac_try" in
2252  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2253  *) ac_try_echo=$ac_try;;
2254esac
2255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2256$as_echo "$ac_try_echo"; } >&5
2257  (eval "$ac_compile") 2>conftest.err
2258  ac_status=$?
2259  if test -s conftest.err; then
2260    grep -v '^ *+' conftest.err >conftest.er1
2261    cat conftest.er1 >&5
2262    mv -f conftest.er1 conftest.err
2263  fi
2264  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2265  test $ac_status = 0; } && {
2266	 test -z "$ac_f77_werror_flag" ||
2267	 test ! -s conftest.err
2268       } && test -s conftest.$ac_objext; then :
2269  ac_retval=0
2270else
2271  $as_echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274	ac_retval=1
2275fi
2276  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277  as_fn_set_status $ac_retval
2278
2279} # ac_fn_f77_try_compile
2280
2281# ac_fn_f77_try_link LINENO
2282# -------------------------
2283# Try to link conftest.$ac_ext, and return whether this succeeded.
2284ac_fn_f77_try_link ()
2285{
2286  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287  rm -f conftest.$ac_objext conftest$ac_exeext
2288  if { { ac_try="$ac_link"
2289case "(($ac_try" in
2290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291  *) ac_try_echo=$ac_try;;
2292esac
2293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2294$as_echo "$ac_try_echo"; } >&5
2295  (eval "$ac_link") 2>conftest.err
2296  ac_status=$?
2297  if test -s conftest.err; then
2298    grep -v '^ *+' conftest.err >conftest.er1
2299    cat conftest.er1 >&5
2300    mv -f conftest.er1 conftest.err
2301  fi
2302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303  test $ac_status = 0; } && {
2304	 test -z "$ac_f77_werror_flag" ||
2305	 test ! -s conftest.err
2306       } && test -s conftest$ac_exeext && {
2307	 test "$cross_compiling" = yes ||
2308	 $as_test_x conftest$ac_exeext
2309       }; then :
2310  ac_retval=0
2311else
2312  $as_echo "$as_me: failed program was:" >&5
2313sed 's/^/| /' conftest.$ac_ext >&5
2314
2315	ac_retval=1
2316fi
2317  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2318  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2319  # interfere with the next link command; also delete a directory that is
2320  # left behind by Apple's compiler.  We do this before executing the actions.
2321  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2322  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2323  as_fn_set_status $ac_retval
2324
2325} # ac_fn_f77_try_link
2326
2327# ac_fn_fc_try_compile LINENO
2328# ---------------------------
2329# Try to compile conftest.$ac_ext, and return whether this succeeded.
2330ac_fn_fc_try_compile ()
2331{
2332  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333  rm -f conftest.$ac_objext
2334  if { { ac_try="$ac_compile"
2335case "(($ac_try" in
2336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337  *) ac_try_echo=$ac_try;;
2338esac
2339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340$as_echo "$ac_try_echo"; } >&5
2341  (eval "$ac_compile") 2>conftest.err
2342  ac_status=$?
2343  if test -s conftest.err; then
2344    grep -v '^ *+' conftest.err >conftest.er1
2345    cat conftest.er1 >&5
2346    mv -f conftest.er1 conftest.err
2347  fi
2348  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2349  test $ac_status = 0; } && {
2350	 test -z "$ac_fc_werror_flag" ||
2351	 test ! -s conftest.err
2352       } && test -s conftest.$ac_objext; then :
2353  ac_retval=0
2354else
2355  $as_echo "$as_me: failed program was:" >&5
2356sed 's/^/| /' conftest.$ac_ext >&5
2357
2358	ac_retval=1
2359fi
2360  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361  as_fn_set_status $ac_retval
2362
2363} # ac_fn_fc_try_compile
2364
2365# ac_fn_fc_try_link LINENO
2366# ------------------------
2367# Try to link conftest.$ac_ext, and return whether this succeeded.
2368ac_fn_fc_try_link ()
2369{
2370  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2371  rm -f conftest.$ac_objext conftest$ac_exeext
2372  if { { ac_try="$ac_link"
2373case "(($ac_try" in
2374  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375  *) ac_try_echo=$ac_try;;
2376esac
2377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2378$as_echo "$ac_try_echo"; } >&5
2379  (eval "$ac_link") 2>conftest.err
2380  ac_status=$?
2381  if test -s conftest.err; then
2382    grep -v '^ *+' conftest.err >conftest.er1
2383    cat conftest.er1 >&5
2384    mv -f conftest.er1 conftest.err
2385  fi
2386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2387  test $ac_status = 0; } && {
2388	 test -z "$ac_fc_werror_flag" ||
2389	 test ! -s conftest.err
2390       } && test -s conftest$ac_exeext && {
2391	 test "$cross_compiling" = yes ||
2392	 $as_test_x conftest$ac_exeext
2393       }; then :
2394  ac_retval=0
2395else
2396  $as_echo "$as_me: failed program was:" >&5
2397sed 's/^/| /' conftest.$ac_ext >&5
2398
2399	ac_retval=1
2400fi
2401  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2402  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2403  # interfere with the next link command; also delete a directory that is
2404  # left behind by Apple's compiler.  We do this before executing the actions.
2405  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2406  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407  as_fn_set_status $ac_retval
2408
2409} # ac_fn_fc_try_link
2410cat >config.log <<_ACEOF
2411This file contains any messages produced by compilers while
2412running configure, to aid debugging if configure makes a mistake.
2413
2414It was created by $as_me, which was
2415generated by GNU Autoconf 2.65.  Invocation command line was
2416
2417  $ $0 $@
2418
2419_ACEOF
2420exec 5>>config.log
2421{
2422cat <<_ASUNAME
2423## --------- ##
2424## Platform. ##
2425## --------- ##
2426
2427hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2428uname -m = `(uname -m) 2>/dev/null || echo unknown`
2429uname -r = `(uname -r) 2>/dev/null || echo unknown`
2430uname -s = `(uname -s) 2>/dev/null || echo unknown`
2431uname -v = `(uname -v) 2>/dev/null || echo unknown`
2432
2433/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2434/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2435
2436/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2437/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2438/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2439/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2440/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2441/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2442/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2443
2444_ASUNAME
2445
2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447for as_dir in $PATH
2448do
2449  IFS=$as_save_IFS
2450  test -z "$as_dir" && as_dir=.
2451    $as_echo "PATH: $as_dir"
2452  done
2453IFS=$as_save_IFS
2454
2455} >&5
2456
2457cat >&5 <<_ACEOF
2458
2459
2460## ----------- ##
2461## Core tests. ##
2462## ----------- ##
2463
2464_ACEOF
2465
2466
2467# Keep a trace of the command line.
2468# Strip out --no-create and --no-recursion so they do not pile up.
2469# Strip out --silent because we don't want to record it for future runs.
2470# Also quote any args containing shell meta-characters.
2471# Make two passes to allow for proper duplicate-argument suppression.
2472ac_configure_args=
2473ac_configure_args0=
2474ac_configure_args1=
2475ac_must_keep_next=false
2476for ac_pass in 1 2
2477do
2478  for ac_arg
2479  do
2480    case $ac_arg in
2481    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2482    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2483    | -silent | --silent | --silen | --sile | --sil)
2484      continue ;;
2485    *\'*)
2486      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2487    esac
2488    case $ac_pass in
2489    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2490    2)
2491      as_fn_append ac_configure_args1 " '$ac_arg'"
2492      if test $ac_must_keep_next = true; then
2493	ac_must_keep_next=false # Got value, back to normal.
2494      else
2495	case $ac_arg in
2496	  *=* | --config-cache | -C | -disable-* | --disable-* \
2497	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2498	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2499	  | -with-* | --with-* | -without-* | --without-* | --x)
2500	    case "$ac_configure_args0 " in
2501	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2502	    esac
2503	    ;;
2504	  -* ) ac_must_keep_next=true ;;
2505	esac
2506      fi
2507      as_fn_append ac_configure_args " '$ac_arg'"
2508      ;;
2509    esac
2510  done
2511done
2512{ ac_configure_args0=; unset ac_configure_args0;}
2513{ ac_configure_args1=; unset ac_configure_args1;}
2514
2515# When interrupted or exit'd, cleanup temporary files, and complete
2516# config.log.  We remove comments because anyway the quotes in there
2517# would cause problems or look ugly.
2518# WARNING: Use '\'' to represent an apostrophe within the trap.
2519# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2520trap 'exit_status=$?
2521  # Save into config.log some information that might help in debugging.
2522  {
2523    echo
2524
2525    cat <<\_ASBOX
2526## ---------------- ##
2527## Cache variables. ##
2528## ---------------- ##
2529_ASBOX
2530    echo
2531    # The following way of writing the cache mishandles newlines in values,
2532(
2533  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2534    eval ac_val=\$$ac_var
2535    case $ac_val in #(
2536    *${as_nl}*)
2537      case $ac_var in #(
2538      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2539$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2540      esac
2541      case $ac_var in #(
2542      _ | IFS | as_nl) ;; #(
2543      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2544      *) { eval $ac_var=; unset $ac_var;} ;;
2545      esac ;;
2546    esac
2547  done
2548  (set) 2>&1 |
2549    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2550    *${as_nl}ac_space=\ *)
2551      sed -n \
2552	"s/'\''/'\''\\\\'\'''\''/g;
2553	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2554      ;; #(
2555    *)
2556      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2557      ;;
2558    esac |
2559    sort
2560)
2561    echo
2562
2563    cat <<\_ASBOX
2564## ----------------- ##
2565## Output variables. ##
2566## ----------------- ##
2567_ASBOX
2568    echo
2569    for ac_var in $ac_subst_vars
2570    do
2571      eval ac_val=\$$ac_var
2572      case $ac_val in
2573      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2574      esac
2575      $as_echo "$ac_var='\''$ac_val'\''"
2576    done | sort
2577    echo
2578
2579    if test -n "$ac_subst_files"; then
2580      cat <<\_ASBOX
2581## ------------------- ##
2582## File substitutions. ##
2583## ------------------- ##
2584_ASBOX
2585      echo
2586      for ac_var in $ac_subst_files
2587      do
2588	eval ac_val=\$$ac_var
2589	case $ac_val in
2590	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2591	esac
2592	$as_echo "$ac_var='\''$ac_val'\''"
2593      done | sort
2594      echo
2595    fi
2596
2597    if test -s confdefs.h; then
2598      cat <<\_ASBOX
2599## ----------- ##
2600## confdefs.h. ##
2601## ----------- ##
2602_ASBOX
2603      echo
2604      cat confdefs.h
2605      echo
2606    fi
2607    test "$ac_signal" != 0 &&
2608      $as_echo "$as_me: caught signal $ac_signal"
2609    $as_echo "$as_me: exit $exit_status"
2610  } >&5
2611  rm -f core *.core core.conftest.* &&
2612    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2613    exit $exit_status
2614' 0
2615for ac_signal in 1 2 13 15; do
2616  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2617done
2618ac_signal=0
2619
2620# confdefs.h avoids OS command line length limits that DEFS can exceed.
2621rm -f -r conftest* confdefs.h
2622
2623$as_echo "/* confdefs.h */" > confdefs.h
2624
2625# Predefined preprocessor variables.
2626
2627cat >>confdefs.h <<_ACEOF
2628#define PACKAGE_NAME "$PACKAGE_NAME"
2629_ACEOF
2630
2631cat >>confdefs.h <<_ACEOF
2632#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2633_ACEOF
2634
2635cat >>confdefs.h <<_ACEOF
2636#define PACKAGE_VERSION "$PACKAGE_VERSION"
2637_ACEOF
2638
2639cat >>confdefs.h <<_ACEOF
2640#define PACKAGE_STRING "$PACKAGE_STRING"
2641_ACEOF
2642
2643cat >>confdefs.h <<_ACEOF
2644#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2645_ACEOF
2646
2647cat >>confdefs.h <<_ACEOF
2648#define PACKAGE_URL "$PACKAGE_URL"
2649_ACEOF
2650
2651
2652# Let the site file select an alternate cache file if it wants to.
2653# Prefer an explicitly selected file to automatically selected ones.
2654ac_site_file1=NONE
2655ac_site_file2=NONE
2656if test -n "$CONFIG_SITE"; then
2657  ac_site_file1=$CONFIG_SITE
2658elif test "x$prefix" != xNONE; then
2659  ac_site_file1=$prefix/share/config.site
2660  ac_site_file2=$prefix/etc/config.site
2661else
2662  ac_site_file1=$ac_default_prefix/share/config.site
2663  ac_site_file2=$ac_default_prefix/etc/config.site
2664fi
2665for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2666do
2667  test "x$ac_site_file" = xNONE && continue
2668  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2669    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2670$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2671    sed 's/^/| /' "$ac_site_file" >&5
2672    . "$ac_site_file"
2673  fi
2674done
2675
2676if test -r "$cache_file"; then
2677  # Some versions of bash will fail to source /dev/null (special files
2678  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2679  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2680    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2681$as_echo "$as_me: loading cache $cache_file" >&6;}
2682    case $cache_file in
2683      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2684      *)                      . "./$cache_file";;
2685    esac
2686  fi
2687else
2688  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2689$as_echo "$as_me: creating cache $cache_file" >&6;}
2690  >$cache_file
2691fi
2692
2693# Check that the precious variables saved in the cache have kept the same
2694# value.
2695ac_cache_corrupted=false
2696for ac_var in $ac_precious_vars; do
2697  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2698  eval ac_new_set=\$ac_env_${ac_var}_set
2699  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2700  eval ac_new_val=\$ac_env_${ac_var}_value
2701  case $ac_old_set,$ac_new_set in
2702    set,)
2703      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2704$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2705      ac_cache_corrupted=: ;;
2706    ,set)
2707      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2708$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2709      ac_cache_corrupted=: ;;
2710    ,);;
2711    *)
2712      if test "x$ac_old_val" != "x$ac_new_val"; then
2713	# differences in whitespace do not lead to failure.
2714	ac_old_val_w=`echo x $ac_old_val`
2715	ac_new_val_w=`echo x $ac_new_val`
2716	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2717	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2718$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2719	  ac_cache_corrupted=:
2720	else
2721	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2722$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2723	  eval $ac_var=\$ac_old_val
2724	fi
2725	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2726$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2727	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2728$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2729      fi;;
2730  esac
2731  # Pass precious variables to config.status.
2732  if test "$ac_new_set" = set; then
2733    case $ac_new_val in
2734    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2735    *) ac_arg=$ac_var=$ac_new_val ;;
2736    esac
2737    case " $ac_configure_args " in
2738      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2739      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2740    esac
2741  fi
2742done
2743if $ac_cache_corrupted; then
2744  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2746  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2747$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2748  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2749fi
2750## -------------------- ##
2751## Main body of script. ##
2752## -------------------- ##
2753
2754ac_ext=c
2755ac_cpp='$CPP $CPPFLAGS'
2756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2758ac_compiler_gnu=$ac_cv_c_compiler_gnu
2759
2760
2761
2762ac_aux_dir=
2763for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2764  for ac_t in install-sh install.sh shtool; do
2765    if test -f "$ac_dir/$ac_t"; then
2766      ac_aux_dir=$ac_dir
2767      ac_install_sh="$ac_aux_dir/$ac_t -c"
2768      break 2
2769    fi
2770  done
2771done
2772if test -z "$ac_aux_dir"; then
2773  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2774fi
2775
2776# These three variables are undocumented and unsupported,
2777# and are intended to be withdrawn in a future Autoconf release.
2778# They can cause serious problems if a builder's source tree is in a directory
2779# whose full name contains unusual characters.
2780ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2781ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2782ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2783
2784
2785# Make sure we can run config.sub.
2786$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2787  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2788
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2790$as_echo_n "checking build system type... " >&6; }
2791if test "${ac_cv_build+set}" = set; then :
2792  $as_echo_n "(cached) " >&6
2793else
2794  ac_build_alias=$build_alias
2795test "x$ac_build_alias" = x &&
2796  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2797test "x$ac_build_alias" = x &&
2798  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2799ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2800  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2801
2802fi
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2804$as_echo "$ac_cv_build" >&6; }
2805case $ac_cv_build in
2806*-*-*) ;;
2807*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2808esac
2809build=$ac_cv_build
2810ac_save_IFS=$IFS; IFS='-'
2811set x $ac_cv_build
2812shift
2813build_cpu=$1
2814build_vendor=$2
2815shift; shift
2816# Remember, the first character of IFS is used to create $*,
2817# except with old shells:
2818build_os=$*
2819IFS=$ac_save_IFS
2820case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2821
2822
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2824$as_echo_n "checking host system type... " >&6; }
2825if test "${ac_cv_host+set}" = set; then :
2826  $as_echo_n "(cached) " >&6
2827else
2828  if test "x$host_alias" = x; then
2829  ac_cv_host=$ac_cv_build
2830else
2831  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2832    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2833fi
2834
2835fi
2836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2837$as_echo "$ac_cv_host" >&6; }
2838case $ac_cv_host in
2839*-*-*) ;;
2840*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2841esac
2842host=$ac_cv_host
2843ac_save_IFS=$IFS; IFS='-'
2844set x $ac_cv_host
2845shift
2846host_cpu=$1
2847host_vendor=$2
2848shift; shift
2849# Remember, the first character of IFS is used to create $*,
2850# except with old shells:
2851host_os=$*
2852IFS=$ac_save_IFS
2853case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2854
2855
2856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2857$as_echo_n "checking target system type... " >&6; }
2858if test "${ac_cv_target+set}" = set; then :
2859  $as_echo_n "(cached) " >&6
2860else
2861  if test "x$target_alias" = x; then
2862  ac_cv_target=$ac_cv_host
2863else
2864  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2865    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2866fi
2867
2868fi
2869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2870$as_echo "$ac_cv_target" >&6; }
2871case $ac_cv_target in
2872*-*-*) ;;
2873*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2874esac
2875target=$ac_cv_target
2876ac_save_IFS=$IFS; IFS='-'
2877set x $ac_cv_target
2878shift
2879target_cpu=$1
2880target_vendor=$2
2881shift; shift
2882# Remember, the first character of IFS is used to create $*,
2883# except with old shells:
2884target_os=$*
2885IFS=$ac_save_IFS
2886case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2887
2888
2889# The aliases save the names the user supplied, while $host etc.
2890# will get canonicalized.
2891test -n "$target_alias" &&
2892  test "$program_prefix$program_suffix$program_transform_name" = \
2893    NONENONEs,x,x, &&
2894  program_prefix=${target_alias}-
2895test "$program_prefix" != NONE &&
2896  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2897# Use a double $ so make ignores it.
2898test "$program_suffix" != NONE &&
2899  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2900# Double any \ or $.
2901# By default was `s,x,x', remove it if useless.
2902ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2903program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2904
2905
2906
2907#
2908# versions
2909#
2910LAPACKPP_VERSION_MAJOR=2
2911LAPACKPP_VERSION_MINOR=5
2912LAPACKPP_VERSION_PATCHLEVEL=4
2913rpm_release="1"
2914LAPACKPP_VERSION_STRING="$LAPACKPP_VERSION_MAJOR.$LAPACKPP_VERSION_MINOR.$LAPACKPP_VERSION_PATCHLEVEL"
2915
2916am__api_version='1.11'
2917
2918# Find a good install program.  We prefer a C program (faster),
2919# so one script is as good as another.  But avoid the broken or
2920# incompatible versions:
2921# SysV /etc/install, /usr/sbin/install
2922# SunOS /usr/etc/install
2923# IRIX /sbin/install
2924# AIX /bin/install
2925# AmigaOS /C/install, which installs bootblocks on floppy discs
2926# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2927# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2928# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2929# OS/2's system install, which has a completely different semantic
2930# ./install, which can be erroneously created by make from ./install.sh.
2931# Reject install programs that cannot install multiple files.
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2933$as_echo_n "checking for a BSD-compatible install... " >&6; }
2934if test -z "$INSTALL"; then
2935if test "${ac_cv_path_install+set}" = set; then :
2936  $as_echo_n "(cached) " >&6
2937else
2938  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941  IFS=$as_save_IFS
2942  test -z "$as_dir" && as_dir=.
2943    # Account for people who put trailing slashes in PATH elements.
2944case $as_dir/ in #((
2945  ./ | .// | /[cC]/* | \
2946  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2947  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2948  /usr/ucb/* ) ;;
2949  *)
2950    # OSF1 and SCO ODT 3.0 have their own names for install.
2951    # Don't use installbsd from OSF since it installs stuff as root
2952    # by default.
2953    for ac_prog in ginstall scoinst install; do
2954      for ac_exec_ext in '' $ac_executable_extensions; do
2955	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2956	  if test $ac_prog = install &&
2957	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2958	    # AIX install.  It has an incompatible calling convention.
2959	    :
2960	  elif test $ac_prog = install &&
2961	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2962	    # program-specific install script used by HP pwplus--don't use.
2963	    :
2964	  else
2965	    rm -rf conftest.one conftest.two conftest.dir
2966	    echo one > conftest.one
2967	    echo two > conftest.two
2968	    mkdir conftest.dir
2969	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2970	      test -s conftest.one && test -s conftest.two &&
2971	      test -s conftest.dir/conftest.one &&
2972	      test -s conftest.dir/conftest.two
2973	    then
2974	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2975	      break 3
2976	    fi
2977	  fi
2978	fi
2979      done
2980    done
2981    ;;
2982esac
2983
2984  done
2985IFS=$as_save_IFS
2986
2987rm -rf conftest.one conftest.two conftest.dir
2988
2989fi
2990  if test "${ac_cv_path_install+set}" = set; then
2991    INSTALL=$ac_cv_path_install
2992  else
2993    # As a last resort, use the slow shell script.  Don't cache a
2994    # value for INSTALL within a source directory, because that will
2995    # break other packages using the cache if that directory is
2996    # removed, or if the value is a relative name.
2997    INSTALL=$ac_install_sh
2998  fi
2999fi
3000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3001$as_echo "$INSTALL" >&6; }
3002
3003# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3004# It thinks the first close brace ends the variable substitution.
3005test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3006
3007test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3008
3009test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3010
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3012$as_echo_n "checking whether build environment is sane... " >&6; }
3013# Just in case
3014sleep 1
3015echo timestamp > conftest.file
3016# Reject unsafe characters in $srcdir or the absolute working directory
3017# name.  Accept space and tab only in the latter.
3018am_lf='
3019'
3020case `pwd` in
3021  *[\\\"\#\$\&\'\`$am_lf]*)
3022    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3023esac
3024case $srcdir in
3025  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3026    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3027esac
3028
3029# Do `set' in a subshell so we don't clobber the current shell's
3030# arguments.  Must try -L first in case configure is actually a
3031# symlink; some systems play weird games with the mod time of symlinks
3032# (eg FreeBSD returns the mod time of the symlink's containing
3033# directory).
3034if (
3035   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3036   if test "$*" = "X"; then
3037      # -L didn't work.
3038      set X `ls -t "$srcdir/configure" conftest.file`
3039   fi
3040   rm -f conftest.file
3041   if test "$*" != "X $srcdir/configure conftest.file" \
3042      && test "$*" != "X conftest.file $srcdir/configure"; then
3043
3044      # If neither matched, then we have a broken ls.  This can happen
3045      # if, for instance, CONFIG_SHELL is bash and it inherits a
3046      # broken ls alias from the environment.  This has actually
3047      # happened.  Such a system could not be considered "sane".
3048      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3049alias in your environment" "$LINENO" 5
3050   fi
3051
3052   test "$2" = conftest.file
3053   )
3054then
3055   # Ok.
3056   :
3057else
3058   as_fn_error "newly created file is older than distributed files!
3059Check your system clock" "$LINENO" 5
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3062$as_echo "yes" >&6; }
3063# expand $ac_aux_dir to an absolute path
3064am_aux_dir=`cd $ac_aux_dir && pwd`
3065
3066if test x"${MISSING+set}" != xset; then
3067  case $am_aux_dir in
3068  *\ * | *\	*)
3069    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3070  *)
3071    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3072  esac
3073fi
3074# Use eval to expand $SHELL
3075if eval "$MISSING --run true"; then
3076  am_missing_run="$MISSING --run "
3077else
3078  am_missing_run=
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3080$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3081fi
3082
3083if test x"${install_sh}" != xset; then
3084  case $am_aux_dir in
3085  *\ * | *\	*)
3086    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3087  *)
3088    install_sh="\${SHELL} $am_aux_dir/install-sh"
3089  esac
3090fi
3091
3092# Installed binaries are usually stripped using `strip' when the user
3093# run `make install-strip'.  However `strip' might not be the right
3094# tool to use in cross-compilation environments, therefore Automake
3095# will honor the `STRIP' environment variable to overrule this program.
3096if test "$cross_compiling" != no; then
3097  if test -n "$ac_tool_prefix"; then
3098  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3099set dummy ${ac_tool_prefix}strip; ac_word=$2
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101$as_echo_n "checking for $ac_word... " >&6; }
3102if test "${ac_cv_prog_STRIP+set}" = set; then :
3103  $as_echo_n "(cached) " >&6
3104else
3105  if test -n "$STRIP"; then
3106  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3107else
3108as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109for as_dir in $PATH
3110do
3111  IFS=$as_save_IFS
3112  test -z "$as_dir" && as_dir=.
3113    for ac_exec_ext in '' $ac_executable_extensions; do
3114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117    break 2
3118  fi
3119done
3120  done
3121IFS=$as_save_IFS
3122
3123fi
3124fi
3125STRIP=$ac_cv_prog_STRIP
3126if test -n "$STRIP"; then
3127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3128$as_echo "$STRIP" >&6; }
3129else
3130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131$as_echo "no" >&6; }
3132fi
3133
3134
3135fi
3136if test -z "$ac_cv_prog_STRIP"; then
3137  ac_ct_STRIP=$STRIP
3138  # Extract the first word of "strip", so it can be a program name with args.
3139set dummy strip; ac_word=$2
3140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141$as_echo_n "checking for $ac_word... " >&6; }
3142if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3143  $as_echo_n "(cached) " >&6
3144else
3145  if test -n "$ac_ct_STRIP"; then
3146  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3147else
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151  IFS=$as_save_IFS
3152  test -z "$as_dir" && as_dir=.
3153    for ac_exec_ext in '' $ac_executable_extensions; do
3154  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3155    ac_cv_prog_ac_ct_STRIP="strip"
3156    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157    break 2
3158  fi
3159done
3160  done
3161IFS=$as_save_IFS
3162
3163fi
3164fi
3165ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3166if test -n "$ac_ct_STRIP"; then
3167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3168$as_echo "$ac_ct_STRIP" >&6; }
3169else
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
3172fi
3173
3174  if test "x$ac_ct_STRIP" = x; then
3175    STRIP=":"
3176  else
3177    case $cross_compiling:$ac_tool_warned in
3178yes:)
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181ac_tool_warned=yes ;;
3182esac
3183    STRIP=$ac_ct_STRIP
3184  fi
3185else
3186  STRIP="$ac_cv_prog_STRIP"
3187fi
3188
3189fi
3190INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3191
3192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3193$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3194if test -z "$MKDIR_P"; then
3195  if test "${ac_cv_path_mkdir+set}" = set; then :
3196  $as_echo_n "(cached) " >&6
3197else
3198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3200do
3201  IFS=$as_save_IFS
3202  test -z "$as_dir" && as_dir=.
3203    for ac_prog in mkdir gmkdir; do
3204	 for ac_exec_ext in '' $ac_executable_extensions; do
3205	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3206	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3207	     'mkdir (GNU coreutils) '* | \
3208	     'mkdir (coreutils) '* | \
3209	     'mkdir (fileutils) '4.1*)
3210	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3211	       break 3;;
3212	   esac
3213	 done
3214       done
3215  done
3216IFS=$as_save_IFS
3217
3218fi
3219
3220  test -d ./--version && rmdir ./--version
3221  if test "${ac_cv_path_mkdir+set}" = set; then
3222    MKDIR_P="$ac_cv_path_mkdir -p"
3223  else
3224    # As a last resort, use the slow shell script.  Don't cache a
3225    # value for MKDIR_P within a source directory, because that will
3226    # break other packages using the cache if that directory is
3227    # removed, or if the value is a relative name.
3228    MKDIR_P="$ac_install_sh -d"
3229  fi
3230fi
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3232$as_echo "$MKDIR_P" >&6; }
3233
3234mkdir_p="$MKDIR_P"
3235case $mkdir_p in
3236  [\\/$]* | ?:[\\/]*) ;;
3237  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3238esac
3239
3240for ac_prog in gawk mawk nawk awk
3241do
3242  # Extract the first word of "$ac_prog", so it can be a program name with args.
3243set dummy $ac_prog; ac_word=$2
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245$as_echo_n "checking for $ac_word... " >&6; }
3246if test "${ac_cv_prog_AWK+set}" = set; then :
3247  $as_echo_n "(cached) " >&6
3248else
3249  if test -n "$AWK"; then
3250  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3251else
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257    for ac_exec_ext in '' $ac_executable_extensions; do
3258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259    ac_cv_prog_AWK="$ac_prog"
3260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261    break 2
3262  fi
3263done
3264  done
3265IFS=$as_save_IFS
3266
3267fi
3268fi
3269AWK=$ac_cv_prog_AWK
3270if test -n "$AWK"; then
3271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3272$as_echo "$AWK" >&6; }
3273else
3274  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275$as_echo "no" >&6; }
3276fi
3277
3278
3279  test -n "$AWK" && break
3280done
3281
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3283$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3284set x ${MAKE-make}
3285ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3286if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3287  $as_echo_n "(cached) " >&6
3288else
3289  cat >conftest.make <<\_ACEOF
3290SHELL = /bin/sh
3291all:
3292	@echo '@@@%%%=$(MAKE)=@@@%%%'
3293_ACEOF
3294# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3295case `${MAKE-make} -f conftest.make 2>/dev/null` in
3296  *@@@%%%=?*=@@@%%%*)
3297    eval ac_cv_prog_make_${ac_make}_set=yes;;
3298  *)
3299    eval ac_cv_prog_make_${ac_make}_set=no;;
3300esac
3301rm -f conftest.make
3302fi
3303if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305$as_echo "yes" >&6; }
3306  SET_MAKE=
3307else
3308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309$as_echo "no" >&6; }
3310  SET_MAKE="MAKE=${MAKE-make}"
3311fi
3312
3313rm -rf .tst 2>/dev/null
3314mkdir .tst 2>/dev/null
3315if test -d .tst; then
3316  am__leading_dot=.
3317else
3318  am__leading_dot=_
3319fi
3320rmdir .tst 2>/dev/null
3321
3322if test "`cd $srcdir && pwd`" != "`pwd`"; then
3323  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3324  # is not polluted with repeated "-I."
3325  am__isrc=' -I$(srcdir)'
3326  # test to see if srcdir already configured
3327  if test -f $srcdir/config.status; then
3328    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3329  fi
3330fi
3331
3332# test whether we have cygpath
3333if test -z "$CYGPATH_W"; then
3334  if (cygpath --version) >/dev/null 2>/dev/null; then
3335    CYGPATH_W='cygpath -w'
3336  else
3337    CYGPATH_W=echo
3338  fi
3339fi
3340
3341
3342# Define the identity of the package.
3343 PACKAGE=lapackpp
3344 VERSION="$LAPACKPP_VERSION_STRING"
3345
3346
3347cat >>confdefs.h <<_ACEOF
3348#define PACKAGE "$PACKAGE"
3349_ACEOF
3350
3351
3352cat >>confdefs.h <<_ACEOF
3353#define VERSION "$VERSION"
3354_ACEOF
3355
3356# Some tools Automake needs.
3357
3358ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3359
3360
3361AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3362
3363
3364AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3365
3366
3367AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3368
3369
3370MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3371
3372# We need awk for the "check" target.  The system "awk" is bad on
3373# some platforms.
3374# Always define AMTAR for backward compatibility.
3375
3376AMTAR=${AMTAR-"${am_missing_run}tar"}
3377
3378am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3379
3380
3381
3382
3383
3384
3385# SO version of all liblapackpp.so
3386#
3387LAPACKPP_SO_CURRENT=16
3388LAPACKPP_SO_REVISION=0
3389LAPACKPP_SO_AGE=2
3390
3391# Substitute these vars
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402cat >>confdefs.h <<_ACEOF
3403#define LAPACKPP_VERSION_MAJOR $LAPACKPP_VERSION_MAJOR
3404_ACEOF
3405
3406
3407cat >>confdefs.h <<_ACEOF
3408#define LAPACKPP_VERSION_MINOR $LAPACKPP_VERSION_MINOR
3409_ACEOF
3410
3411
3412cat >>confdefs.h <<_ACEOF
3413#define LAPACKPP_VERSION_PATCHLEVEL $LAPACKPP_VERSION_PATCHLEVEL
3414_ACEOF
3415
3416
3417cat >>confdefs.h <<_ACEOF
3418#define LAPACKPP_VERSION_STRING "$LAPACKPP_VERSION_STRING"
3419_ACEOF
3420
3421
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3423$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3424set x ${MAKE-make}
3425ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3426if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3427  $as_echo_n "(cached) " >&6
3428else
3429  cat >conftest.make <<\_ACEOF
3430SHELL = /bin/sh
3431all:
3432	@echo '@@@%%%=$(MAKE)=@@@%%%'
3433_ACEOF
3434# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3435case `${MAKE-make} -f conftest.make 2>/dev/null` in
3436  *@@@%%%=?*=@@@%%%*)
3437    eval ac_cv_prog_make_${ac_make}_set=yes;;
3438  *)
3439    eval ac_cv_prog_make_${ac_make}_set=no;;
3440esac
3441rm -f conftest.make
3442fi
3443if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3444  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3445$as_echo "yes" >&6; }
3446  SET_MAKE=
3447else
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449$as_echo "no" >&6; }
3450  SET_MAKE="MAKE=${MAKE-make}"
3451fi
3452
3453
3454
3455if test "x$prefix" = "xNONE"; then
3456  prefix=$ac_default_prefix
3457  ac_configure_args="$ac_configure_args --prefix $prefix"
3458fi
3459
3460
3461ac_config_headers="$ac_config_headers config.h"
3462
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3464$as_echo_n "checking whether build environment is sane... " >&6; }
3465# Just in case
3466sleep 1
3467echo timestamp > conftest.file
3468# Reject unsafe characters in $srcdir or the absolute working directory
3469# name.  Accept space and tab only in the latter.
3470am_lf='
3471'
3472case `pwd` in
3473  *[\\\"\#\$\&\'\`$am_lf]*)
3474    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3475esac
3476case $srcdir in
3477  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3478    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3479esac
3480
3481# Do `set' in a subshell so we don't clobber the current shell's
3482# arguments.  Must try -L first in case configure is actually a
3483# symlink; some systems play weird games with the mod time of symlinks
3484# (eg FreeBSD returns the mod time of the symlink's containing
3485# directory).
3486if (
3487   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3488   if test "$*" = "X"; then
3489      # -L didn't work.
3490      set X `ls -t "$srcdir/configure" conftest.file`
3491   fi
3492   rm -f conftest.file
3493   if test "$*" != "X $srcdir/configure conftest.file" \
3494      && test "$*" != "X conftest.file $srcdir/configure"; then
3495
3496      # If neither matched, then we have a broken ls.  This can happen
3497      # if, for instance, CONFIG_SHELL is bash and it inherits a
3498      # broken ls alias from the environment.  This has actually
3499      # happened.  Such a system could not be considered "sane".
3500      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3501alias in your environment" "$LINENO" 5
3502   fi
3503
3504   test "$2" = conftest.file
3505   )
3506then
3507   # Ok.
3508   :
3509else
3510   as_fn_error "newly created file is older than distributed files!
3511Check your system clock" "$LINENO" 5
3512fi
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3514$as_echo "yes" >&6; }
3515
3516### -------------------------------------------------------------
3517
3518ac_ext=cpp
3519ac_cpp='$CXXCPP $CPPFLAGS'
3520ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3523if test -z "$CXX"; then
3524  if test -n "$CCC"; then
3525    CXX=$CCC
3526  else
3527    if test -n "$ac_tool_prefix"; then
3528  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3529  do
3530    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3533$as_echo_n "checking for $ac_word... " >&6; }
3534if test "${ac_cv_prog_CXX+set}" = set; then :
3535  $as_echo_n "(cached) " >&6
3536else
3537  if test -n "$CXX"; then
3538  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543  IFS=$as_save_IFS
3544  test -z "$as_dir" && as_dir=.
3545    for ac_exec_ext in '' $ac_executable_extensions; do
3546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3549    break 2
3550  fi
3551done
3552  done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557CXX=$ac_cv_prog_CXX
3558if test -n "$CXX"; then
3559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3560$as_echo "$CXX" >&6; }
3561else
3562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563$as_echo "no" >&6; }
3564fi
3565
3566
3567    test -n "$CXX" && break
3568  done
3569fi
3570if test -z "$CXX"; then
3571  ac_ct_CXX=$CXX
3572  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3573do
3574  # Extract the first word of "$ac_prog", so it can be a program name with args.
3575set dummy $ac_prog; ac_word=$2
3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577$as_echo_n "checking for $ac_word... " >&6; }
3578if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3579  $as_echo_n "(cached) " >&6
3580else
3581  if test -n "$ac_ct_CXX"; then
3582  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587  IFS=$as_save_IFS
3588  test -z "$as_dir" && as_dir=.
3589    for ac_exec_ext in '' $ac_executable_extensions; do
3590  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591    ac_cv_prog_ac_ct_CXX="$ac_prog"
3592    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593    break 2
3594  fi
3595done
3596  done
3597IFS=$as_save_IFS
3598
3599fi
3600fi
3601ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3602if test -n "$ac_ct_CXX"; then
3603  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3604$as_echo "$ac_ct_CXX" >&6; }
3605else
3606  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607$as_echo "no" >&6; }
3608fi
3609
3610
3611  test -n "$ac_ct_CXX" && break
3612done
3613
3614  if test "x$ac_ct_CXX" = x; then
3615    CXX="g++"
3616  else
3617    case $cross_compiling:$ac_tool_warned in
3618yes:)
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621ac_tool_warned=yes ;;
3622esac
3623    CXX=$ac_ct_CXX
3624  fi
3625fi
3626
3627  fi
3628fi
3629# Provide some information about the compiler.
3630$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3631set X $ac_compile
3632ac_compiler=$2
3633for ac_option in --version -v -V -qversion; do
3634  { { ac_try="$ac_compiler $ac_option >&5"
3635case "(($ac_try" in
3636  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637  *) ac_try_echo=$ac_try;;
3638esac
3639eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3640$as_echo "$ac_try_echo"; } >&5
3641  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3642  ac_status=$?
3643  if test -s conftest.err; then
3644    sed '10a\
3645... rest of stderr output deleted ...
3646         10q' conftest.err >conftest.er1
3647    cat conftest.er1 >&5
3648  fi
3649  rm -f conftest.er1 conftest.err
3650  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651  test $ac_status = 0; }
3652done
3653
3654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h.  */
3656
3657int
3658main ()
3659{
3660
3661  ;
3662  return 0;
3663}
3664_ACEOF
3665ac_clean_files_save=$ac_clean_files
3666ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3667# Try to create an executable without -o first, disregard a.out.
3668# It will help us diagnose broken compilers, and finding out an intuition
3669# of exeext.
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3671$as_echo_n "checking whether the C++ compiler works... " >&6; }
3672ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3673
3674# The possible output files:
3675ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3676
3677ac_rmfiles=
3678for ac_file in $ac_files
3679do
3680  case $ac_file in
3681    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3682    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3683  esac
3684done
3685rm -f $ac_rmfiles
3686
3687if { { ac_try="$ac_link_default"
3688case "(($ac_try" in
3689  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690  *) ac_try_echo=$ac_try;;
3691esac
3692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693$as_echo "$ac_try_echo"; } >&5
3694  (eval "$ac_link_default") 2>&5
3695  ac_status=$?
3696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697  test $ac_status = 0; }; then :
3698  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3699# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3700# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3701# so that the user can short-circuit this test for compilers unknown to
3702# Autoconf.
3703for ac_file in $ac_files ''
3704do
3705  test -f "$ac_file" || continue
3706  case $ac_file in
3707    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3708	;;
3709    [ab].out )
3710	# We found the default executable, but exeext='' is most
3711	# certainly right.
3712	break;;
3713    *.* )
3714	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3715	then :; else
3716	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3717	fi
3718	# We set ac_cv_exeext here because the later test for it is not
3719	# safe: cross compilers may not add the suffix if given an `-o'
3720	# argument, so we may need to know it at that point already.
3721	# Even if this section looks crufty: it has the advantage of
3722	# actually working.
3723	break;;
3724    * )
3725	break;;
3726  esac
3727done
3728test "$ac_cv_exeext" = no && ac_cv_exeext=
3729
3730else
3731  ac_file=''
3732fi
3733if test -z "$ac_file"; then :
3734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735$as_echo "no" >&6; }
3736$as_echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3741{ as_fn_set_status 77
3742as_fn_error "C++ compiler cannot create executables
3743See \`config.log' for more details." "$LINENO" 5; }; }
3744else
3745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3746$as_echo "yes" >&6; }
3747fi
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3749$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3751$as_echo "$ac_file" >&6; }
3752ac_exeext=$ac_cv_exeext
3753
3754rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3755ac_clean_files=$ac_clean_files_save
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3757$as_echo_n "checking for suffix of executables... " >&6; }
3758if { { ac_try="$ac_link"
3759case "(($ac_try" in
3760  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761  *) ac_try_echo=$ac_try;;
3762esac
3763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3764$as_echo "$ac_try_echo"; } >&5
3765  (eval "$ac_link") 2>&5
3766  ac_status=$?
3767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3768  test $ac_status = 0; }; then :
3769  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3770# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3771# work properly (i.e., refer to `conftest.exe'), while it won't with
3772# `rm'.
3773for ac_file in conftest.exe conftest conftest.*; do
3774  test -f "$ac_file" || continue
3775  case $ac_file in
3776    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3777    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778	  break;;
3779    * ) break;;
3780  esac
3781done
3782else
3783  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3784$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3785as_fn_error "cannot compute suffix of executables: cannot compile and link
3786See \`config.log' for more details." "$LINENO" 5; }
3787fi
3788rm -f conftest conftest$ac_cv_exeext
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3790$as_echo "$ac_cv_exeext" >&6; }
3791
3792rm -f conftest.$ac_ext
3793EXEEXT=$ac_cv_exeext
3794ac_exeext=$EXEEXT
3795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796/* end confdefs.h.  */
3797#include <stdio.h>
3798int
3799main ()
3800{
3801FILE *f = fopen ("conftest.out", "w");
3802 return ferror (f) || fclose (f) != 0;
3803
3804  ;
3805  return 0;
3806}
3807_ACEOF
3808ac_clean_files="$ac_clean_files conftest.out"
3809# Check that the compiler produces executables we can run.  If not, either
3810# the compiler is broken, or we cross compile.
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3812$as_echo_n "checking whether we are cross compiling... " >&6; }
3813if test "$cross_compiling" != yes; then
3814  { { ac_try="$ac_link"
3815case "(($ac_try" in
3816  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817  *) ac_try_echo=$ac_try;;
3818esac
3819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820$as_echo "$ac_try_echo"; } >&5
3821  (eval "$ac_link") 2>&5
3822  ac_status=$?
3823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824  test $ac_status = 0; }
3825  if { ac_try='./conftest$ac_cv_exeext'
3826  { { case "(($ac_try" in
3827  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828  *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831$as_echo "$ac_try_echo"; } >&5
3832  (eval "$ac_try") 2>&5
3833  ac_status=$?
3834  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835  test $ac_status = 0; }; }; then
3836    cross_compiling=no
3837  else
3838    if test "$cross_compiling" = maybe; then
3839	cross_compiling=yes
3840    else
3841	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843as_fn_error "cannot run C++ compiled programs.
3844If you meant to cross compile, use \`--host'.
3845See \`config.log' for more details." "$LINENO" 5; }
3846    fi
3847  fi
3848fi
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3850$as_echo "$cross_compiling" >&6; }
3851
3852rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3853ac_clean_files=$ac_clean_files_save
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3855$as_echo_n "checking for suffix of object files... " >&6; }
3856if test "${ac_cv_objext+set}" = set; then :
3857  $as_echo_n "(cached) " >&6
3858else
3859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860/* end confdefs.h.  */
3861
3862int
3863main ()
3864{
3865
3866  ;
3867  return 0;
3868}
3869_ACEOF
3870rm -f conftest.o conftest.obj
3871if { { ac_try="$ac_compile"
3872case "(($ac_try" in
3873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874  *) ac_try_echo=$ac_try;;
3875esac
3876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877$as_echo "$ac_try_echo"; } >&5
3878  (eval "$ac_compile") 2>&5
3879  ac_status=$?
3880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881  test $ac_status = 0; }; then :
3882  for ac_file in conftest.o conftest.obj conftest.*; do
3883  test -f "$ac_file" || continue;
3884  case $ac_file in
3885    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3886    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3887       break;;
3888  esac
3889done
3890else
3891  $as_echo "$as_me: failed program was:" >&5
3892sed 's/^/| /' conftest.$ac_ext >&5
3893
3894{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3896as_fn_error "cannot compute suffix of object files: cannot compile
3897See \`config.log' for more details." "$LINENO" 5; }
3898fi
3899rm -f conftest.$ac_cv_objext conftest.$ac_ext
3900fi
3901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3902$as_echo "$ac_cv_objext" >&6; }
3903OBJEXT=$ac_cv_objext
3904ac_objext=$OBJEXT
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3906$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3907if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3908  $as_echo_n "(cached) " >&6
3909else
3910  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911/* end confdefs.h.  */
3912
3913int
3914main ()
3915{
3916#ifndef __GNUC__
3917       choke me
3918#endif
3919
3920  ;
3921  return 0;
3922}
3923_ACEOF
3924if ac_fn_cxx_try_compile "$LINENO"; then :
3925  ac_compiler_gnu=yes
3926else
3927  ac_compiler_gnu=no
3928fi
3929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3930ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3931
3932fi
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3934$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3935if test $ac_compiler_gnu = yes; then
3936  GXX=yes
3937else
3938  GXX=
3939fi
3940ac_test_CXXFLAGS=${CXXFLAGS+set}
3941ac_save_CXXFLAGS=$CXXFLAGS
3942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3943$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3944if test "${ac_cv_prog_cxx_g+set}" = set; then :
3945  $as_echo_n "(cached) " >&6
3946else
3947  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3948   ac_cxx_werror_flag=yes
3949   ac_cv_prog_cxx_g=no
3950   CXXFLAGS="-g"
3951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952/* end confdefs.h.  */
3953
3954int
3955main ()
3956{
3957
3958  ;
3959  return 0;
3960}
3961_ACEOF
3962if ac_fn_cxx_try_compile "$LINENO"; then :
3963  ac_cv_prog_cxx_g=yes
3964else
3965  CXXFLAGS=""
3966      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h.  */
3968
3969int
3970main ()
3971{
3972
3973  ;
3974  return 0;
3975}
3976_ACEOF
3977if ac_fn_cxx_try_compile "$LINENO"; then :
3978
3979else
3980  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3981	 CXXFLAGS="-g"
3982	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3983/* end confdefs.h.  */
3984
3985int
3986main ()
3987{
3988
3989  ;
3990  return 0;
3991}
3992_ACEOF
3993if ac_fn_cxx_try_compile "$LINENO"; then :
3994  ac_cv_prog_cxx_g=yes
3995fi
3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997fi
3998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999fi
4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4002fi
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4004$as_echo "$ac_cv_prog_cxx_g" >&6; }
4005if test "$ac_test_CXXFLAGS" = set; then
4006  CXXFLAGS=$ac_save_CXXFLAGS
4007elif test $ac_cv_prog_cxx_g = yes; then
4008  if test "$GXX" = yes; then
4009    CXXFLAGS="-g -O2"
4010  else
4011    CXXFLAGS="-g"
4012  fi
4013else
4014  if test "$GXX" = yes; then
4015    CXXFLAGS="-O2"
4016  else
4017    CXXFLAGS=
4018  fi
4019fi
4020ac_ext=c
4021ac_cpp='$CPP $CPPFLAGS'
4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025DEPDIR="${am__leading_dot}deps"
4026
4027ac_config_commands="$ac_config_commands depfiles"
4028
4029
4030am_make=${MAKE-make}
4031cat > confinc << 'END'
4032am__doit:
4033	@echo this is the am__doit target
4034.PHONY: am__doit
4035END
4036# If we don't find an include directive, just comment out the code.
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4038$as_echo_n "checking for style of include used by $am_make... " >&6; }
4039am__include="#"
4040am__quote=
4041_am_result=none
4042# First try GNU make style include.
4043echo "include confinc" > confmf
4044# Ignore all kinds of additional output from `make'.
4045case `$am_make -s -f confmf 2> /dev/null` in #(
4046*the\ am__doit\ target*)
4047  am__include=include
4048  am__quote=
4049  _am_result=GNU
4050  ;;
4051esac
4052# Now try BSD make style include.
4053if test "$am__include" = "#"; then
4054   echo '.include "confinc"' > confmf
4055   case `$am_make -s -f confmf 2> /dev/null` in #(
4056   *the\ am__doit\ target*)
4057     am__include=.include
4058     am__quote="\""
4059     _am_result=BSD
4060     ;;
4061   esac
4062fi
4063
4064
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4066$as_echo "$_am_result" >&6; }
4067rm -f confinc confmf
4068
4069# Check whether --enable-dependency-tracking was given.
4070if test "${enable_dependency_tracking+set}" = set; then :
4071  enableval=$enable_dependency_tracking;
4072fi
4073
4074if test "x$enable_dependency_tracking" != xno; then
4075  am_depcomp="$ac_aux_dir/depcomp"
4076  AMDEPBACKSLASH='\'
4077fi
4078 if test "x$enable_dependency_tracking" != xno; then
4079  AMDEP_TRUE=
4080  AMDEP_FALSE='#'
4081else
4082  AMDEP_TRUE='#'
4083  AMDEP_FALSE=
4084fi
4085
4086
4087
4088depcc="$CXX"  am_compiler_list=
4089
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4091$as_echo_n "checking dependency style of $depcc... " >&6; }
4092if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4093  $as_echo_n "(cached) " >&6
4094else
4095  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4096  # We make a subdir and do the tests there.  Otherwise we can end up
4097  # making bogus files that we don't know about and never remove.  For
4098  # instance it was reported that on HP-UX the gcc test will end up
4099  # making a dummy file named `D' -- because `-MD' means `put the output
4100  # in D'.
4101  mkdir conftest.dir
4102  # Copy depcomp to subdir because otherwise we won't find it if we're
4103  # using a relative directory.
4104  cp "$am_depcomp" conftest.dir
4105  cd conftest.dir
4106  # We will build objects and dependencies in a subdirectory because
4107  # it helps to detect inapplicable dependency modes.  For instance
4108  # both Tru64's cc and ICC support -MD to output dependencies as a
4109  # side effect of compilation, but ICC will put the dependencies in
4110  # the current directory while Tru64 will put them in the object
4111  # directory.
4112  mkdir sub
4113
4114  am_cv_CXX_dependencies_compiler_type=none
4115  if test "$am_compiler_list" = ""; then
4116     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4117  fi
4118  am__universal=false
4119  case " $depcc " in #(
4120     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4121     esac
4122
4123  for depmode in $am_compiler_list; do
4124    # Setup a source with many dependencies, because some compilers
4125    # like to wrap large dependency lists on column 80 (with \), and
4126    # we should not choose a depcomp mode which is confused by this.
4127    #
4128    # We need to recreate these files for each test, as the compiler may
4129    # overwrite some of them when testing with obscure command lines.
4130    # This happens at least with the AIX C compiler.
4131    : > sub/conftest.c
4132    for i in 1 2 3 4 5 6; do
4133      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4134      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4135      # Solaris 8's {/usr,}/bin/sh.
4136      touch sub/conftst$i.h
4137    done
4138    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4139
4140    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4141    # mode.  It turns out that the SunPro C++ compiler does not properly
4142    # handle `-M -o', and we need to detect this.  Also, some Intel
4143    # versions had trouble with output in subdirs
4144    am__obj=sub/conftest.${OBJEXT-o}
4145    am__minus_obj="-o $am__obj"
4146    case $depmode in
4147    gcc)
4148      # This depmode causes a compiler race in universal mode.
4149      test "$am__universal" = false || continue
4150      ;;
4151    nosideeffect)
4152      # after this tag, mechanisms are not by side-effect, so they'll
4153      # only be used when explicitly requested
4154      if test "x$enable_dependency_tracking" = xyes; then
4155	continue
4156      else
4157	break
4158      fi
4159      ;;
4160    msvisualcpp | msvcmsys)
4161      # This compiler won't grok `-c -o', but also, the minuso test has
4162      # not run yet.  These depmodes are late enough in the game, and
4163      # so weak that their functioning should not be impacted.
4164      am__obj=conftest.${OBJEXT-o}
4165      am__minus_obj=
4166      ;;
4167    none) break ;;
4168    esac
4169    if depmode=$depmode \
4170       source=sub/conftest.c object=$am__obj \
4171       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4172       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4173         >/dev/null 2>conftest.err &&
4174       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4175       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4176       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4177       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4178      # icc doesn't choke on unknown options, it will just issue warnings
4179      # or remarks (even with -Werror).  So we grep stderr for any message
4180      # that says an option was ignored or not supported.
4181      # When given -MP, icc 7.0 and 7.1 complain thusly:
4182      #   icc: Command line warning: ignoring option '-M'; no argument required
4183      # The diagnosis changed in icc 8.0:
4184      #   icc: Command line remark: option '-MP' not supported
4185      if (grep 'ignoring option' conftest.err ||
4186          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4187        am_cv_CXX_dependencies_compiler_type=$depmode
4188        break
4189      fi
4190    fi
4191  done
4192
4193  cd ..
4194  rm -rf conftest.dir
4195else
4196  am_cv_CXX_dependencies_compiler_type=none
4197fi
4198
4199fi
4200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4201$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4202CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4203
4204 if
4205  test "x$enable_dependency_tracking" != xno \
4206  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4207  am__fastdepCXX_TRUE=
4208  am__fastdepCXX_FALSE='#'
4209else
4210  am__fastdepCXX_TRUE='#'
4211  am__fastdepCXX_FALSE=
4212fi
4213
4214
4215ac_ext=c
4216ac_cpp='$CPP $CPPFLAGS'
4217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4219ac_compiler_gnu=$ac_cv_c_compiler_gnu
4220if test -n "$ac_tool_prefix"; then
4221  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4222set dummy ${ac_tool_prefix}gcc; ac_word=$2
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224$as_echo_n "checking for $ac_word... " >&6; }
4225if test "${ac_cv_prog_CC+set}" = set; then :
4226  $as_echo_n "(cached) " >&6
4227else
4228  if test -n "$CC"; then
4229  ac_cv_prog_CC="$CC" # Let the user override the test.
4230else
4231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232for as_dir in $PATH
4233do
4234  IFS=$as_save_IFS
4235  test -z "$as_dir" && as_dir=.
4236    for ac_exec_ext in '' $ac_executable_extensions; do
4237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240    break 2
4241  fi
4242done
4243  done
4244IFS=$as_save_IFS
4245
4246fi
4247fi
4248CC=$ac_cv_prog_CC
4249if test -n "$CC"; then
4250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251$as_echo "$CC" >&6; }
4252else
4253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254$as_echo "no" >&6; }
4255fi
4256
4257
4258fi
4259if test -z "$ac_cv_prog_CC"; then
4260  ac_ct_CC=$CC
4261  # Extract the first word of "gcc", so it can be a program name with args.
4262set dummy gcc; ac_word=$2
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264$as_echo_n "checking for $ac_word... " >&6; }
4265if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4266  $as_echo_n "(cached) " >&6
4267else
4268  if test -n "$ac_ct_CC"; then
4269  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4270else
4271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272for as_dir in $PATH
4273do
4274  IFS=$as_save_IFS
4275  test -z "$as_dir" && as_dir=.
4276    for ac_exec_ext in '' $ac_executable_extensions; do
4277  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278    ac_cv_prog_ac_ct_CC="gcc"
4279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280    break 2
4281  fi
4282done
4283  done
4284IFS=$as_save_IFS
4285
4286fi
4287fi
4288ac_ct_CC=$ac_cv_prog_ac_ct_CC
4289if test -n "$ac_ct_CC"; then
4290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4291$as_echo "$ac_ct_CC" >&6; }
4292else
4293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294$as_echo "no" >&6; }
4295fi
4296
4297  if test "x$ac_ct_CC" = x; then
4298    CC=""
4299  else
4300    case $cross_compiling:$ac_tool_warned in
4301yes:)
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304ac_tool_warned=yes ;;
4305esac
4306    CC=$ac_ct_CC
4307  fi
4308else
4309  CC="$ac_cv_prog_CC"
4310fi
4311
4312if test -z "$CC"; then
4313          if test -n "$ac_tool_prefix"; then
4314    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4315set dummy ${ac_tool_prefix}cc; ac_word=$2
4316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317$as_echo_n "checking for $ac_word... " >&6; }
4318if test "${ac_cv_prog_CC+set}" = set; then :
4319  $as_echo_n "(cached) " >&6
4320else
4321  if test -n "$CC"; then
4322  ac_cv_prog_CC="$CC" # Let the user override the test.
4323else
4324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325for as_dir in $PATH
4326do
4327  IFS=$as_save_IFS
4328  test -z "$as_dir" && as_dir=.
4329    for ac_exec_ext in '' $ac_executable_extensions; do
4330  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331    ac_cv_prog_CC="${ac_tool_prefix}cc"
4332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4333    break 2
4334  fi
4335done
4336  done
4337IFS=$as_save_IFS
4338
4339fi
4340fi
4341CC=$ac_cv_prog_CC
4342if test -n "$CC"; then
4343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4344$as_echo "$CC" >&6; }
4345else
4346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4347$as_echo "no" >&6; }
4348fi
4349
4350
4351  fi
4352fi
4353if test -z "$CC"; then
4354  # Extract the first word of "cc", so it can be a program name with args.
4355set dummy cc; ac_word=$2
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357$as_echo_n "checking for $ac_word... " >&6; }
4358if test "${ac_cv_prog_CC+set}" = set; then :
4359  $as_echo_n "(cached) " >&6
4360else
4361  if test -n "$CC"; then
4362  ac_cv_prog_CC="$CC" # Let the user override the test.
4363else
4364  ac_prog_rejected=no
4365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366for as_dir in $PATH
4367do
4368  IFS=$as_save_IFS
4369  test -z "$as_dir" && as_dir=.
4370    for ac_exec_ext in '' $ac_executable_extensions; do
4371  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4373       ac_prog_rejected=yes
4374       continue
4375     fi
4376    ac_cv_prog_CC="cc"
4377    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378    break 2
4379  fi
4380done
4381  done
4382IFS=$as_save_IFS
4383
4384if test $ac_prog_rejected = yes; then
4385  # We found a bogon in the path, so make sure we never use it.
4386  set dummy $ac_cv_prog_CC
4387  shift
4388  if test $# != 0; then
4389    # We chose a different compiler from the bogus one.
4390    # However, it has the same basename, so the bogon will be chosen
4391    # first if we set CC to just the basename; use the full file name.
4392    shift
4393    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4394  fi
4395fi
4396fi
4397fi
4398CC=$ac_cv_prog_CC
4399if test -n "$CC"; then
4400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4401$as_echo "$CC" >&6; }
4402else
4403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404$as_echo "no" >&6; }
4405fi
4406
4407
4408fi
4409if test -z "$CC"; then
4410  if test -n "$ac_tool_prefix"; then
4411  for ac_prog in cl.exe
4412  do
4413    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4414set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416$as_echo_n "checking for $ac_word... " >&6; }
4417if test "${ac_cv_prog_CC+set}" = set; then :
4418  $as_echo_n "(cached) " >&6
4419else
4420  if test -n "$CC"; then
4421  ac_cv_prog_CC="$CC" # Let the user override the test.
4422else
4423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426  IFS=$as_save_IFS
4427  test -z "$as_dir" && as_dir=.
4428    for ac_exec_ext in '' $ac_executable_extensions; do
4429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4430    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4432    break 2
4433  fi
4434done
4435  done
4436IFS=$as_save_IFS
4437
4438fi
4439fi
4440CC=$ac_cv_prog_CC
4441if test -n "$CC"; then
4442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4443$as_echo "$CC" >&6; }
4444else
4445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446$as_echo "no" >&6; }
4447fi
4448
4449
4450    test -n "$CC" && break
4451  done
4452fi
4453if test -z "$CC"; then
4454  ac_ct_CC=$CC
4455  for ac_prog in cl.exe
4456do
4457  # Extract the first word of "$ac_prog", so it can be a program name with args.
4458set dummy $ac_prog; ac_word=$2
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460$as_echo_n "checking for $ac_word... " >&6; }
4461if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4462  $as_echo_n "(cached) " >&6
4463else
4464  if test -n "$ac_ct_CC"; then
4465  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470  IFS=$as_save_IFS
4471  test -z "$as_dir" && as_dir=.
4472    for ac_exec_ext in '' $ac_executable_extensions; do
4473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474    ac_cv_prog_ac_ct_CC="$ac_prog"
4475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476    break 2
4477  fi
4478done
4479  done
4480IFS=$as_save_IFS
4481
4482fi
4483fi
4484ac_ct_CC=$ac_cv_prog_ac_ct_CC
4485if test -n "$ac_ct_CC"; then
4486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4487$as_echo "$ac_ct_CC" >&6; }
4488else
4489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490$as_echo "no" >&6; }
4491fi
4492
4493
4494  test -n "$ac_ct_CC" && break
4495done
4496
4497  if test "x$ac_ct_CC" = x; then
4498    CC=""
4499  else
4500    case $cross_compiling:$ac_tool_warned in
4501yes:)
4502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4504ac_tool_warned=yes ;;
4505esac
4506    CC=$ac_ct_CC
4507  fi
4508fi
4509
4510fi
4511
4512
4513test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4515as_fn_error "no acceptable C compiler found in \$PATH
4516See \`config.log' for more details." "$LINENO" 5; }
4517
4518# Provide some information about the compiler.
4519$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4520set X $ac_compile
4521ac_compiler=$2
4522for ac_option in --version -v -V -qversion; do
4523  { { ac_try="$ac_compiler $ac_option >&5"
4524case "(($ac_try" in
4525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4526  *) ac_try_echo=$ac_try;;
4527esac
4528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4529$as_echo "$ac_try_echo"; } >&5
4530  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4531  ac_status=$?
4532  if test -s conftest.err; then
4533    sed '10a\
4534... rest of stderr output deleted ...
4535         10q' conftest.err >conftest.er1
4536    cat conftest.er1 >&5
4537  fi
4538  rm -f conftest.er1 conftest.err
4539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4540  test $ac_status = 0; }
4541done
4542
4543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4544$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4545if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4546  $as_echo_n "(cached) " >&6
4547else
4548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549/* end confdefs.h.  */
4550
4551int
4552main ()
4553{
4554#ifndef __GNUC__
4555       choke me
4556#endif
4557
4558  ;
4559  return 0;
4560}
4561_ACEOF
4562if ac_fn_c_try_compile "$LINENO"; then :
4563  ac_compiler_gnu=yes
4564else
4565  ac_compiler_gnu=no
4566fi
4567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4568ac_cv_c_compiler_gnu=$ac_compiler_gnu
4569
4570fi
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4572$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4573if test $ac_compiler_gnu = yes; then
4574  GCC=yes
4575else
4576  GCC=
4577fi
4578ac_test_CFLAGS=${CFLAGS+set}
4579ac_save_CFLAGS=$CFLAGS
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4581$as_echo_n "checking whether $CC accepts -g... " >&6; }
4582if test "${ac_cv_prog_cc_g+set}" = set; then :
4583  $as_echo_n "(cached) " >&6
4584else
4585  ac_save_c_werror_flag=$ac_c_werror_flag
4586   ac_c_werror_flag=yes
4587   ac_cv_prog_cc_g=no
4588   CFLAGS="-g"
4589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4590/* end confdefs.h.  */
4591
4592int
4593main ()
4594{
4595
4596  ;
4597  return 0;
4598}
4599_ACEOF
4600if ac_fn_c_try_compile "$LINENO"; then :
4601  ac_cv_prog_cc_g=yes
4602else
4603  CFLAGS=""
4604      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605/* end confdefs.h.  */
4606
4607int
4608main ()
4609{
4610
4611  ;
4612  return 0;
4613}
4614_ACEOF
4615if ac_fn_c_try_compile "$LINENO"; then :
4616
4617else
4618  ac_c_werror_flag=$ac_save_c_werror_flag
4619	 CFLAGS="-g"
4620	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621/* end confdefs.h.  */
4622
4623int
4624main ()
4625{
4626
4627  ;
4628  return 0;
4629}
4630_ACEOF
4631if ac_fn_c_try_compile "$LINENO"; then :
4632  ac_cv_prog_cc_g=yes
4633fi
4634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635fi
4636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637fi
4638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4639   ac_c_werror_flag=$ac_save_c_werror_flag
4640fi
4641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4642$as_echo "$ac_cv_prog_cc_g" >&6; }
4643if test "$ac_test_CFLAGS" = set; then
4644  CFLAGS=$ac_save_CFLAGS
4645elif test $ac_cv_prog_cc_g = yes; then
4646  if test "$GCC" = yes; then
4647    CFLAGS="-g -O2"
4648  else
4649    CFLAGS="-g"
4650  fi
4651else
4652  if test "$GCC" = yes; then
4653    CFLAGS="-O2"
4654  else
4655    CFLAGS=
4656  fi
4657fi
4658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4660if test "${ac_cv_prog_cc_c89+set}" = set; then :
4661  $as_echo_n "(cached) " >&6
4662else
4663  ac_cv_prog_cc_c89=no
4664ac_save_CC=$CC
4665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4666/* end confdefs.h.  */
4667#include <stdarg.h>
4668#include <stdio.h>
4669#include <sys/types.h>
4670#include <sys/stat.h>
4671/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4672struct buf { int x; };
4673FILE * (*rcsopen) (struct buf *, struct stat *, int);
4674static char *e (p, i)
4675     char **p;
4676     int i;
4677{
4678  return p[i];
4679}
4680static char *f (char * (*g) (char **, int), char **p, ...)
4681{
4682  char *s;
4683  va_list v;
4684  va_start (v,p);
4685  s = g (p, va_arg (v,int));
4686  va_end (v);
4687  return s;
4688}
4689
4690/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4691   function prototypes and stuff, but not '\xHH' hex character constants.
4692   These don't provoke an error unfortunately, instead are silently treated
4693   as 'x'.  The following induces an error, until -std is added to get
4694   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4695   array size at least.  It's necessary to write '\x00'==0 to get something
4696   that's true only with -std.  */
4697int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4698
4699/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4700   inside strings and character constants.  */
4701#define FOO(x) 'x'
4702int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4703
4704int test (int i, double x);
4705struct s1 {int (*f) (int a);};
4706struct s2 {int (*f) (double a);};
4707int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4708int argc;
4709char **argv;
4710int
4711main ()
4712{
4713return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4714  ;
4715  return 0;
4716}
4717_ACEOF
4718for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4719	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4720do
4721  CC="$ac_save_CC $ac_arg"
4722  if ac_fn_c_try_compile "$LINENO"; then :
4723  ac_cv_prog_cc_c89=$ac_arg
4724fi
4725rm -f core conftest.err conftest.$ac_objext
4726  test "x$ac_cv_prog_cc_c89" != "xno" && break
4727done
4728rm -f conftest.$ac_ext
4729CC=$ac_save_CC
4730
4731fi
4732# AC_CACHE_VAL
4733case "x$ac_cv_prog_cc_c89" in
4734  x)
4735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4736$as_echo "none needed" >&6; } ;;
4737  xno)
4738    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4739$as_echo "unsupported" >&6; } ;;
4740  *)
4741    CC="$CC $ac_cv_prog_cc_c89"
4742    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4743$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4744esac
4745if test "x$ac_cv_prog_cc_c89" != xno; then :
4746
4747fi
4748
4749ac_ext=c
4750ac_cpp='$CPP $CPPFLAGS'
4751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754
4755depcc="$CC"   am_compiler_list=
4756
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4758$as_echo_n "checking dependency style of $depcc... " >&6; }
4759if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4760  $as_echo_n "(cached) " >&6
4761else
4762  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4763  # We make a subdir and do the tests there.  Otherwise we can end up
4764  # making bogus files that we don't know about and never remove.  For
4765  # instance it was reported that on HP-UX the gcc test will end up
4766  # making a dummy file named `D' -- because `-MD' means `put the output
4767  # in D'.
4768  mkdir conftest.dir
4769  # Copy depcomp to subdir because otherwise we won't find it if we're
4770  # using a relative directory.
4771  cp "$am_depcomp" conftest.dir
4772  cd conftest.dir
4773  # We will build objects and dependencies in a subdirectory because
4774  # it helps to detect inapplicable dependency modes.  For instance
4775  # both Tru64's cc and ICC support -MD to output dependencies as a
4776  # side effect of compilation, but ICC will put the dependencies in
4777  # the current directory while Tru64 will put them in the object
4778  # directory.
4779  mkdir sub
4780
4781  am_cv_CC_dependencies_compiler_type=none
4782  if test "$am_compiler_list" = ""; then
4783     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4784  fi
4785  am__universal=false
4786  case " $depcc " in #(
4787     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4788     esac
4789
4790  for depmode in $am_compiler_list; do
4791    # Setup a source with many dependencies, because some compilers
4792    # like to wrap large dependency lists on column 80 (with \), and
4793    # we should not choose a depcomp mode which is confused by this.
4794    #
4795    # We need to recreate these files for each test, as the compiler may
4796    # overwrite some of them when testing with obscure command lines.
4797    # This happens at least with the AIX C compiler.
4798    : > sub/conftest.c
4799    for i in 1 2 3 4 5 6; do
4800      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4801      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4802      # Solaris 8's {/usr,}/bin/sh.
4803      touch sub/conftst$i.h
4804    done
4805    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4806
4807    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4808    # mode.  It turns out that the SunPro C++ compiler does not properly
4809    # handle `-M -o', and we need to detect this.  Also, some Intel
4810    # versions had trouble with output in subdirs
4811    am__obj=sub/conftest.${OBJEXT-o}
4812    am__minus_obj="-o $am__obj"
4813    case $depmode in
4814    gcc)
4815      # This depmode causes a compiler race in universal mode.
4816      test "$am__universal" = false || continue
4817      ;;
4818    nosideeffect)
4819      # after this tag, mechanisms are not by side-effect, so they'll
4820      # only be used when explicitly requested
4821      if test "x$enable_dependency_tracking" = xyes; then
4822	continue
4823      else
4824	break
4825      fi
4826      ;;
4827    msvisualcpp | msvcmsys)
4828      # This compiler won't grok `-c -o', but also, the minuso test has
4829      # not run yet.  These depmodes are late enough in the game, and
4830      # so weak that their functioning should not be impacted.
4831      am__obj=conftest.${OBJEXT-o}
4832      am__minus_obj=
4833      ;;
4834    none) break ;;
4835    esac
4836    if depmode=$depmode \
4837       source=sub/conftest.c object=$am__obj \
4838       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4839       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4840         >/dev/null 2>conftest.err &&
4841       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4842       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4843       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4844       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4845      # icc doesn't choke on unknown options, it will just issue warnings
4846      # or remarks (even with -Werror).  So we grep stderr for any message
4847      # that says an option was ignored or not supported.
4848      # When given -MP, icc 7.0 and 7.1 complain thusly:
4849      #   icc: Command line warning: ignoring option '-M'; no argument required
4850      # The diagnosis changed in icc 8.0:
4851      #   icc: Command line remark: option '-MP' not supported
4852      if (grep 'ignoring option' conftest.err ||
4853          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4854        am_cv_CC_dependencies_compiler_type=$depmode
4855        break
4856      fi
4857    fi
4858  done
4859
4860  cd ..
4861  rm -rf conftest.dir
4862else
4863  am_cv_CC_dependencies_compiler_type=none
4864fi
4865
4866fi
4867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4868$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4869CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4870
4871 if
4872  test "x$enable_dependency_tracking" != xno \
4873  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4874  am__fastdepCC_TRUE=
4875  am__fastdepCC_FALSE='#'
4876else
4877  am__fastdepCC_TRUE='#'
4878  am__fastdepCC_FALSE=
4879fi
4880
4881
4882ac_ext=c
4883ac_cpp='$CPP $CPPFLAGS'
4884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4886ac_compiler_gnu=$ac_cv_c_compiler_gnu
4887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4888$as_echo_n "checking how to run the C preprocessor... " >&6; }
4889# On Suns, sometimes $CPP names a directory.
4890if test -n "$CPP" && test -d "$CPP"; then
4891  CPP=
4892fi
4893if test -z "$CPP"; then
4894  if test "${ac_cv_prog_CPP+set}" = set; then :
4895  $as_echo_n "(cached) " >&6
4896else
4897      # Double quotes because CPP needs to be expanded
4898    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4899    do
4900      ac_preproc_ok=false
4901for ac_c_preproc_warn_flag in '' yes
4902do
4903  # Use a header file that comes with gcc, so configuring glibc
4904  # with a fresh cross-compiler works.
4905  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906  # <limits.h> exists even on freestanding compilers.
4907  # On the NeXT, cc -E runs the code through the compiler's parser,
4908  # not just through cpp. "Syntax error" is here to catch this case.
4909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910/* end confdefs.h.  */
4911#ifdef __STDC__
4912# include <limits.h>
4913#else
4914# include <assert.h>
4915#endif
4916		     Syntax error
4917_ACEOF
4918if ac_fn_c_try_cpp "$LINENO"; then :
4919
4920else
4921  # Broken: fails on valid input.
4922continue
4923fi
4924rm -f conftest.err conftest.$ac_ext
4925
4926  # OK, works on sane cases.  Now check whether nonexistent headers
4927  # can be detected and how.
4928  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929/* end confdefs.h.  */
4930#include <ac_nonexistent.h>
4931_ACEOF
4932if ac_fn_c_try_cpp "$LINENO"; then :
4933  # Broken: success on invalid input.
4934continue
4935else
4936  # Passes both tests.
4937ac_preproc_ok=:
4938break
4939fi
4940rm -f conftest.err conftest.$ac_ext
4941
4942done
4943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944rm -f conftest.err conftest.$ac_ext
4945if $ac_preproc_ok; then :
4946  break
4947fi
4948
4949    done
4950    ac_cv_prog_CPP=$CPP
4951
4952fi
4953  CPP=$ac_cv_prog_CPP
4954else
4955  ac_cv_prog_CPP=$CPP
4956fi
4957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4958$as_echo "$CPP" >&6; }
4959ac_preproc_ok=false
4960for ac_c_preproc_warn_flag in '' yes
4961do
4962  # Use a header file that comes with gcc, so configuring glibc
4963  # with a fresh cross-compiler works.
4964  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4965  # <limits.h> exists even on freestanding compilers.
4966  # On the NeXT, cc -E runs the code through the compiler's parser,
4967  # not just through cpp. "Syntax error" is here to catch this case.
4968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4969/* end confdefs.h.  */
4970#ifdef __STDC__
4971# include <limits.h>
4972#else
4973# include <assert.h>
4974#endif
4975		     Syntax error
4976_ACEOF
4977if ac_fn_c_try_cpp "$LINENO"; then :
4978
4979else
4980  # Broken: fails on valid input.
4981continue
4982fi
4983rm -f conftest.err conftest.$ac_ext
4984
4985  # OK, works on sane cases.  Now check whether nonexistent headers
4986  # can be detected and how.
4987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988/* end confdefs.h.  */
4989#include <ac_nonexistent.h>
4990_ACEOF
4991if ac_fn_c_try_cpp "$LINENO"; then :
4992  # Broken: success on invalid input.
4993continue
4994else
4995  # Passes both tests.
4996ac_preproc_ok=:
4997break
4998fi
4999rm -f conftest.err conftest.$ac_ext
5000
5001done
5002# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5003rm -f conftest.err conftest.$ac_ext
5004if $ac_preproc_ok; then :
5005
5006else
5007  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5009as_fn_error "C preprocessor \"$CPP\" fails sanity check
5010See \`config.log' for more details." "$LINENO" 5; }
5011fi
5012
5013ac_ext=c
5014ac_cpp='$CPP $CPPFLAGS'
5015ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5016ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5017ac_compiler_gnu=$ac_cv_c_compiler_gnu
5018
5019
5020# Check whether --enable-fast-install was given.
5021if test "${enable_fast_install+set}" = set; then :
5022  enableval=$enable_fast_install; p=${PACKAGE-default}
5023    case $enableval in
5024    yes) enable_fast_install=yes ;;
5025    no) enable_fast_install=no ;;
5026    *)
5027      enable_fast_install=no
5028      # Look at the argument we got.  We use all the common list separators.
5029      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5030      for pkg in $enableval; do
5031	IFS="$lt_save_ifs"
5032	if test "X$pkg" = "X$p"; then
5033	  enable_fast_install=yes
5034	fi
5035      done
5036      IFS="$lt_save_ifs"
5037      ;;
5038    esac
5039else
5040  enable_fast_install=yes
5041fi
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051# Extract the first word of "sed", so it can be a program name with args.
5052set dummy sed; ac_word=$2
5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054$as_echo_n "checking for $ac_word... " >&6; }
5055if test "${ac_cv_path_SED+set}" = set; then :
5056  $as_echo_n "(cached) " >&6
5057else
5058  case $SED in
5059  [\\/]* | ?:[\\/]*)
5060  ac_cv_path_SED="$SED" # Let the user override the test with a path.
5061  ;;
5062  *)
5063  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066  IFS=$as_save_IFS
5067  test -z "$as_dir" && as_dir=.
5068    for ac_exec_ext in '' $ac_executable_extensions; do
5069  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5070    ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072    break 2
5073  fi
5074done
5075  done
5076IFS=$as_save_IFS
5077
5078  ;;
5079esac
5080fi
5081SED=$ac_cv_path_SED
5082if test -n "$SED"; then
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5084$as_echo "$SED" >&6; }
5085else
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
5088fi
5089
5090
5091
5092# Check whether --enable-static was given.
5093if test "${enable_static+set}" = set; then :
5094  enableval=$enable_static; p=${PACKAGE-default}
5095    case $enableval in
5096    yes) enable_static=yes ;;
5097    no) enable_static=no ;;
5098    *)
5099     enable_static=no
5100      # Look at the argument we got.  We use all the common list separators.
5101      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5102      for pkg in $enableval; do
5103	IFS="$lt_save_ifs"
5104	if test "X$pkg" = "X$p"; then
5105	  enable_static=yes
5106	fi
5107      done
5108      IFS="$lt_save_ifs"
5109      ;;
5110    esac
5111else
5112  enable_static=no
5113fi
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123enable_win32_dll=yes
5124
5125case $host in
5126*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
5127  if test -n "$ac_tool_prefix"; then
5128  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5129set dummy ${ac_tool_prefix}as; ac_word=$2
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5131$as_echo_n "checking for $ac_word... " >&6; }
5132if test "${ac_cv_prog_AS+set}" = set; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  if test -n "$AS"; then
5136  ac_cv_prog_AS="$AS" # Let the user override the test.
5137else
5138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141  IFS=$as_save_IFS
5142  test -z "$as_dir" && as_dir=.
5143    for ac_exec_ext in '' $ac_executable_extensions; do
5144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5145    ac_cv_prog_AS="${ac_tool_prefix}as"
5146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147    break 2
5148  fi
5149done
5150  done
5151IFS=$as_save_IFS
5152
5153fi
5154fi
5155AS=$ac_cv_prog_AS
5156if test -n "$AS"; then
5157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5158$as_echo "$AS" >&6; }
5159else
5160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5161$as_echo "no" >&6; }
5162fi
5163
5164
5165fi
5166if test -z "$ac_cv_prog_AS"; then
5167  ac_ct_AS=$AS
5168  # Extract the first word of "as", so it can be a program name with args.
5169set dummy as; ac_word=$2
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5171$as_echo_n "checking for $ac_word... " >&6; }
5172if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5173  $as_echo_n "(cached) " >&6
5174else
5175  if test -n "$ac_ct_AS"; then
5176  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5177else
5178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181  IFS=$as_save_IFS
5182  test -z "$as_dir" && as_dir=.
5183    for ac_exec_ext in '' $ac_executable_extensions; do
5184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185    ac_cv_prog_ac_ct_AS="as"
5186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5187    break 2
5188  fi
5189done
5190  done
5191IFS=$as_save_IFS
5192
5193fi
5194fi
5195ac_ct_AS=$ac_cv_prog_ac_ct_AS
5196if test -n "$ac_ct_AS"; then
5197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5198$as_echo "$ac_ct_AS" >&6; }
5199else
5200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201$as_echo "no" >&6; }
5202fi
5203
5204  if test "x$ac_ct_AS" = x; then
5205    AS="false"
5206  else
5207    case $cross_compiling:$ac_tool_warned in
5208yes:)
5209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5211ac_tool_warned=yes ;;
5212esac
5213    AS=$ac_ct_AS
5214  fi
5215else
5216  AS="$ac_cv_prog_AS"
5217fi
5218
5219  if test -n "$ac_tool_prefix"; then
5220  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5221set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223$as_echo_n "checking for $ac_word... " >&6; }
5224if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5225  $as_echo_n "(cached) " >&6
5226else
5227  if test -n "$DLLTOOL"; then
5228  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5229else
5230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233  IFS=$as_save_IFS
5234  test -z "$as_dir" && as_dir=.
5235    for ac_exec_ext in '' $ac_executable_extensions; do
5236  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5238    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239    break 2
5240  fi
5241done
5242  done
5243IFS=$as_save_IFS
5244
5245fi
5246fi
5247DLLTOOL=$ac_cv_prog_DLLTOOL
5248if test -n "$DLLTOOL"; then
5249  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5250$as_echo "$DLLTOOL" >&6; }
5251else
5252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253$as_echo "no" >&6; }
5254fi
5255
5256
5257fi
5258if test -z "$ac_cv_prog_DLLTOOL"; then
5259  ac_ct_DLLTOOL=$DLLTOOL
5260  # Extract the first word of "dlltool", so it can be a program name with args.
5261set dummy dlltool; ac_word=$2
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263$as_echo_n "checking for $ac_word... " >&6; }
5264if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5265  $as_echo_n "(cached) " >&6
5266else
5267  if test -n "$ac_ct_DLLTOOL"; then
5268  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5269else
5270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273  IFS=$as_save_IFS
5274  test -z "$as_dir" && as_dir=.
5275    for ac_exec_ext in '' $ac_executable_extensions; do
5276  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5279    break 2
5280  fi
5281done
5282  done
5283IFS=$as_save_IFS
5284
5285fi
5286fi
5287ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5288if test -n "$ac_ct_DLLTOOL"; then
5289  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5290$as_echo "$ac_ct_DLLTOOL" >&6; }
5291else
5292  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293$as_echo "no" >&6; }
5294fi
5295
5296  if test "x$ac_ct_DLLTOOL" = x; then
5297    DLLTOOL="false"
5298  else
5299    case $cross_compiling:$ac_tool_warned in
5300yes:)
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5303ac_tool_warned=yes ;;
5304esac
5305    DLLTOOL=$ac_ct_DLLTOOL
5306  fi
5307else
5308  DLLTOOL="$ac_cv_prog_DLLTOOL"
5309fi
5310
5311  if test -n "$ac_tool_prefix"; then
5312  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5313set dummy ${ac_tool_prefix}objdump; ac_word=$2
5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5315$as_echo_n "checking for $ac_word... " >&6; }
5316if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5317  $as_echo_n "(cached) " >&6
5318else
5319  if test -n "$OBJDUMP"; then
5320  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5321else
5322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323for as_dir in $PATH
5324do
5325  IFS=$as_save_IFS
5326  test -z "$as_dir" && as_dir=.
5327    for ac_exec_ext in '' $ac_executable_extensions; do
5328  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5329    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5330    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5331    break 2
5332  fi
5333done
5334  done
5335IFS=$as_save_IFS
5336
5337fi
5338fi
5339OBJDUMP=$ac_cv_prog_OBJDUMP
5340if test -n "$OBJDUMP"; then
5341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5342$as_echo "$OBJDUMP" >&6; }
5343else
5344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345$as_echo "no" >&6; }
5346fi
5347
5348
5349fi
5350if test -z "$ac_cv_prog_OBJDUMP"; then
5351  ac_ct_OBJDUMP=$OBJDUMP
5352  # Extract the first word of "objdump", so it can be a program name with args.
5353set dummy objdump; ac_word=$2
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5355$as_echo_n "checking for $ac_word... " >&6; }
5356if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5357  $as_echo_n "(cached) " >&6
5358else
5359  if test -n "$ac_ct_OBJDUMP"; then
5360  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5361else
5362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5363for as_dir in $PATH
5364do
5365  IFS=$as_save_IFS
5366  test -z "$as_dir" && as_dir=.
5367    for ac_exec_ext in '' $ac_executable_extensions; do
5368  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5369    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5371    break 2
5372  fi
5373done
5374  done
5375IFS=$as_save_IFS
5376
5377fi
5378fi
5379ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5380if test -n "$ac_ct_OBJDUMP"; then
5381  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5382$as_echo "$ac_ct_OBJDUMP" >&6; }
5383else
5384  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5385$as_echo "no" >&6; }
5386fi
5387
5388  if test "x$ac_ct_OBJDUMP" = x; then
5389    OBJDUMP="false"
5390  else
5391    case $cross_compiling:$ac_tool_warned in
5392yes:)
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5395ac_tool_warned=yes ;;
5396esac
5397    OBJDUMP=$ac_ct_OBJDUMP
5398  fi
5399else
5400  OBJDUMP="$ac_cv_prog_OBJDUMP"
5401fi
5402
5403  ;;
5404esac
5405
5406test -z "$AS" && AS=as
5407
5408
5409
5410
5411
5412test -z "$DLLTOOL" && DLLTOOL=dlltool
5413
5414
5415
5416
5417
5418test -z "$OBJDUMP" && OBJDUMP=objdump
5419
5420
5421
5422
5423
5424
5425
5426
5427case `pwd` in
5428  *\ * | *\	*)
5429    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5430$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5431esac
5432
5433
5434
5435macro_version='2.2.6b'
5436macro_revision='1.3017'
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450ltmain="$ac_aux_dir/ltmain.sh"
5451
5452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5453$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5454if test "${ac_cv_path_SED+set}" = set; then :
5455  $as_echo_n "(cached) " >&6
5456else
5457            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5458     for ac_i in 1 2 3 4 5 6 7; do
5459       ac_script="$ac_script$as_nl$ac_script"
5460     done
5461     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5462     { ac_script=; unset ac_script;}
5463     if test -z "$SED"; then
5464  ac_path_SED_found=false
5465  # Loop through the user's path and test for each of PROGNAME-LIST
5466  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469  IFS=$as_save_IFS
5470  test -z "$as_dir" && as_dir=.
5471    for ac_prog in sed gsed; do
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5474      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5475# Check for GNU ac_path_SED and select it if it is found.
5476  # Check for GNU $ac_path_SED
5477case `"$ac_path_SED" --version 2>&1` in
5478*GNU*)
5479  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5480*)
5481  ac_count=0
5482  $as_echo_n 0123456789 >"conftest.in"
5483  while :
5484  do
5485    cat "conftest.in" "conftest.in" >"conftest.tmp"
5486    mv "conftest.tmp" "conftest.in"
5487    cp "conftest.in" "conftest.nl"
5488    $as_echo '' >> "conftest.nl"
5489    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5490    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5491    as_fn_arith $ac_count + 1 && ac_count=$as_val
5492    if test $ac_count -gt ${ac_path_SED_max-0}; then
5493      # Best one so far, save it but keep looking for a better one
5494      ac_cv_path_SED="$ac_path_SED"
5495      ac_path_SED_max=$ac_count
5496    fi
5497    # 10*(2^10) chars as input seems more than enough
5498    test $ac_count -gt 10 && break
5499  done
5500  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5501esac
5502
5503      $ac_path_SED_found && break 3
5504    done
5505  done
5506  done
5507IFS=$as_save_IFS
5508  if test -z "$ac_cv_path_SED"; then
5509    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5510  fi
5511else
5512  ac_cv_path_SED=$SED
5513fi
5514
5515fi
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5517$as_echo "$ac_cv_path_SED" >&6; }
5518 SED="$ac_cv_path_SED"
5519  rm -f conftest.sed
5520
5521test -z "$SED" && SED=sed
5522Xsed="$SED -e 1s/^X//"
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5535$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5536if test "${ac_cv_path_GREP+set}" = set; then :
5537  $as_echo_n "(cached) " >&6
5538else
5539  if test -z "$GREP"; then
5540  ac_path_GREP_found=false
5541  # Loop through the user's path and test for each of PROGNAME-LIST
5542  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5544do
5545  IFS=$as_save_IFS
5546  test -z "$as_dir" && as_dir=.
5547    for ac_prog in grep ggrep; do
5548    for ac_exec_ext in '' $ac_executable_extensions; do
5549      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5550      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5551# Check for GNU ac_path_GREP and select it if it is found.
5552  # Check for GNU $ac_path_GREP
5553case `"$ac_path_GREP" --version 2>&1` in
5554*GNU*)
5555  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5556*)
5557  ac_count=0
5558  $as_echo_n 0123456789 >"conftest.in"
5559  while :
5560  do
5561    cat "conftest.in" "conftest.in" >"conftest.tmp"
5562    mv "conftest.tmp" "conftest.in"
5563    cp "conftest.in" "conftest.nl"
5564    $as_echo 'GREP' >> "conftest.nl"
5565    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5566    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5567    as_fn_arith $ac_count + 1 && ac_count=$as_val
5568    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5569      # Best one so far, save it but keep looking for a better one
5570      ac_cv_path_GREP="$ac_path_GREP"
5571      ac_path_GREP_max=$ac_count
5572    fi
5573    # 10*(2^10) chars as input seems more than enough
5574    test $ac_count -gt 10 && break
5575  done
5576  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5577esac
5578
5579      $ac_path_GREP_found && break 3
5580    done
5581  done
5582  done
5583IFS=$as_save_IFS
5584  if test -z "$ac_cv_path_GREP"; then
5585    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5586  fi
5587else
5588  ac_cv_path_GREP=$GREP
5589fi
5590
5591fi
5592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5593$as_echo "$ac_cv_path_GREP" >&6; }
5594 GREP="$ac_cv_path_GREP"
5595
5596
5597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5598$as_echo_n "checking for egrep... " >&6; }
5599if test "${ac_cv_path_EGREP+set}" = set; then :
5600  $as_echo_n "(cached) " >&6
5601else
5602  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5603   then ac_cv_path_EGREP="$GREP -E"
5604   else
5605     if test -z "$EGREP"; then
5606  ac_path_EGREP_found=false
5607  # Loop through the user's path and test for each of PROGNAME-LIST
5608  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5610do
5611  IFS=$as_save_IFS
5612  test -z "$as_dir" && as_dir=.
5613    for ac_prog in egrep; do
5614    for ac_exec_ext in '' $ac_executable_extensions; do
5615      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5616      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5617# Check for GNU ac_path_EGREP and select it if it is found.
5618  # Check for GNU $ac_path_EGREP
5619case `"$ac_path_EGREP" --version 2>&1` in
5620*GNU*)
5621  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5622*)
5623  ac_count=0
5624  $as_echo_n 0123456789 >"conftest.in"
5625  while :
5626  do
5627    cat "conftest.in" "conftest.in" >"conftest.tmp"
5628    mv "conftest.tmp" "conftest.in"
5629    cp "conftest.in" "conftest.nl"
5630    $as_echo 'EGREP' >> "conftest.nl"
5631    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5632    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5633    as_fn_arith $ac_count + 1 && ac_count=$as_val
5634    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5635      # Best one so far, save it but keep looking for a better one
5636      ac_cv_path_EGREP="$ac_path_EGREP"
5637      ac_path_EGREP_max=$ac_count
5638    fi
5639    # 10*(2^10) chars as input seems more than enough
5640    test $ac_count -gt 10 && break
5641  done
5642  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5643esac
5644
5645      $ac_path_EGREP_found && break 3
5646    done
5647  done
5648  done
5649IFS=$as_save_IFS
5650  if test -z "$ac_cv_path_EGREP"; then
5651    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5652  fi
5653else
5654  ac_cv_path_EGREP=$EGREP
5655fi
5656
5657   fi
5658fi
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5660$as_echo "$ac_cv_path_EGREP" >&6; }
5661 EGREP="$ac_cv_path_EGREP"
5662
5663
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5665$as_echo_n "checking for fgrep... " >&6; }
5666if test "${ac_cv_path_FGREP+set}" = set; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5670   then ac_cv_path_FGREP="$GREP -F"
5671   else
5672     if test -z "$FGREP"; then
5673  ac_path_FGREP_found=false
5674  # Loop through the user's path and test for each of PROGNAME-LIST
5675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5677do
5678  IFS=$as_save_IFS
5679  test -z "$as_dir" && as_dir=.
5680    for ac_prog in fgrep; do
5681    for ac_exec_ext in '' $ac_executable_extensions; do
5682      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5683      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5684# Check for GNU ac_path_FGREP and select it if it is found.
5685  # Check for GNU $ac_path_FGREP
5686case `"$ac_path_FGREP" --version 2>&1` in
5687*GNU*)
5688  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5689*)
5690  ac_count=0
5691  $as_echo_n 0123456789 >"conftest.in"
5692  while :
5693  do
5694    cat "conftest.in" "conftest.in" >"conftest.tmp"
5695    mv "conftest.tmp" "conftest.in"
5696    cp "conftest.in" "conftest.nl"
5697    $as_echo 'FGREP' >> "conftest.nl"
5698    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5699    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5700    as_fn_arith $ac_count + 1 && ac_count=$as_val
5701    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5702      # Best one so far, save it but keep looking for a better one
5703      ac_cv_path_FGREP="$ac_path_FGREP"
5704      ac_path_FGREP_max=$ac_count
5705    fi
5706    # 10*(2^10) chars as input seems more than enough
5707    test $ac_count -gt 10 && break
5708  done
5709  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5710esac
5711
5712      $ac_path_FGREP_found && break 3
5713    done
5714  done
5715  done
5716IFS=$as_save_IFS
5717  if test -z "$ac_cv_path_FGREP"; then
5718    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5719  fi
5720else
5721  ac_cv_path_FGREP=$FGREP
5722fi
5723
5724   fi
5725fi
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5727$as_echo "$ac_cv_path_FGREP" >&6; }
5728 FGREP="$ac_cv_path_FGREP"
5729
5730
5731test -z "$GREP" && GREP=grep
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751# Check whether --with-gnu-ld was given.
5752if test "${with_gnu_ld+set}" = set; then :
5753  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5754else
5755  with_gnu_ld=no
5756fi
5757
5758ac_prog=ld
5759if test "$GCC" = yes; then
5760  # Check if gcc -print-prog-name=ld gives a path.
5761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5762$as_echo_n "checking for ld used by $CC... " >&6; }
5763  case $host in
5764  *-*-mingw*)
5765    # gcc leaves a trailing carriage return which upsets mingw
5766    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5767  *)
5768    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5769  esac
5770  case $ac_prog in
5771    # Accept absolute paths.
5772    [\\/]* | ?:[\\/]*)
5773      re_direlt='/[^/][^/]*/\.\./'
5774      # Canonicalize the pathname of ld
5775      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5776      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5777	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5778      done
5779      test -z "$LD" && LD="$ac_prog"
5780      ;;
5781  "")
5782    # If it fails, then pretend we aren't using GCC.
5783    ac_prog=ld
5784    ;;
5785  *)
5786    # If it is relative, then search for the first ld in PATH.
5787    with_gnu_ld=unknown
5788    ;;
5789  esac
5790elif test "$with_gnu_ld" = yes; then
5791  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5792$as_echo_n "checking for GNU ld... " >&6; }
5793else
5794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5795$as_echo_n "checking for non-GNU ld... " >&6; }
5796fi
5797if test "${lt_cv_path_LD+set}" = set; then :
5798  $as_echo_n "(cached) " >&6
5799else
5800  if test -z "$LD"; then
5801  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5802  for ac_dir in $PATH; do
5803    IFS="$lt_save_ifs"
5804    test -z "$ac_dir" && ac_dir=.
5805    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5806      lt_cv_path_LD="$ac_dir/$ac_prog"
5807      # Check to see if the program is GNU ld.  I'd rather use --version,
5808      # but apparently some variants of GNU ld only accept -v.
5809      # Break only if it was the GNU/non-GNU ld that we prefer.
5810      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5811      *GNU* | *'with BFD'*)
5812	test "$with_gnu_ld" != no && break
5813	;;
5814      *)
5815	test "$with_gnu_ld" != yes && break
5816	;;
5817      esac
5818    fi
5819  done
5820  IFS="$lt_save_ifs"
5821else
5822  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5823fi
5824fi
5825
5826LD="$lt_cv_path_LD"
5827if test -n "$LD"; then
5828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5829$as_echo "$LD" >&6; }
5830else
5831  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5832$as_echo "no" >&6; }
5833fi
5834test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5836$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5837if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5838  $as_echo_n "(cached) " >&6
5839else
5840  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5841case `$LD -v 2>&1 </dev/null` in
5842*GNU* | *'with BFD'*)
5843  lt_cv_prog_gnu_ld=yes
5844  ;;
5845*)
5846  lt_cv_prog_gnu_ld=no
5847  ;;
5848esac
5849fi
5850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5851$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5852with_gnu_ld=$lt_cv_prog_gnu_ld
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5863$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5864if test "${lt_cv_path_NM+set}" = set; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  if test -n "$NM"; then
5868  # Let the user override the test.
5869  lt_cv_path_NM="$NM"
5870else
5871  lt_nm_to_check="${ac_tool_prefix}nm"
5872  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5873    lt_nm_to_check="$lt_nm_to_check nm"
5874  fi
5875  for lt_tmp_nm in $lt_nm_to_check; do
5876    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5877    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5878      IFS="$lt_save_ifs"
5879      test -z "$ac_dir" && ac_dir=.
5880      tmp_nm="$ac_dir/$lt_tmp_nm"
5881      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5882	# Check to see if the nm accepts a BSD-compat flag.
5883	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5884	#   nm: unknown option "B" ignored
5885	# Tru64's nm complains that /dev/null is an invalid object file
5886	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5887	*/dev/null* | *'Invalid file or object type'*)
5888	  lt_cv_path_NM="$tmp_nm -B"
5889	  break
5890	  ;;
5891	*)
5892	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5893	  */dev/null*)
5894	    lt_cv_path_NM="$tmp_nm -p"
5895	    break
5896	    ;;
5897	  *)
5898	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5899	    continue # so that we can try to find one that supports BSD flags
5900	    ;;
5901	  esac
5902	  ;;
5903	esac
5904      fi
5905    done
5906    IFS="$lt_save_ifs"
5907  done
5908  : ${lt_cv_path_NM=no}
5909fi
5910fi
5911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5912$as_echo "$lt_cv_path_NM" >&6; }
5913if test "$lt_cv_path_NM" != "no"; then
5914  NM="$lt_cv_path_NM"
5915else
5916  # Didn't find any BSD compatible name lister, look for dumpbin.
5917  if test -n "$ac_tool_prefix"; then
5918  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5919  do
5920    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5921set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923$as_echo_n "checking for $ac_word... " >&6; }
5924if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5925  $as_echo_n "(cached) " >&6
5926else
5927  if test -n "$DUMPBIN"; then
5928  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5929else
5930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931for as_dir in $PATH
5932do
5933  IFS=$as_save_IFS
5934  test -z "$as_dir" && as_dir=.
5935    for ac_exec_ext in '' $ac_executable_extensions; do
5936  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5937    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939    break 2
5940  fi
5941done
5942  done
5943IFS=$as_save_IFS
5944
5945fi
5946fi
5947DUMPBIN=$ac_cv_prog_DUMPBIN
5948if test -n "$DUMPBIN"; then
5949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5950$as_echo "$DUMPBIN" >&6; }
5951else
5952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953$as_echo "no" >&6; }
5954fi
5955
5956
5957    test -n "$DUMPBIN" && break
5958  done
5959fi
5960if test -z "$DUMPBIN"; then
5961  ac_ct_DUMPBIN=$DUMPBIN
5962  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5963do
5964  # Extract the first word of "$ac_prog", so it can be a program name with args.
5965set dummy $ac_prog; ac_word=$2
5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5967$as_echo_n "checking for $ac_word... " >&6; }
5968if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5969  $as_echo_n "(cached) " >&6
5970else
5971  if test -n "$ac_ct_DUMPBIN"; then
5972  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5973else
5974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5975for as_dir in $PATH
5976do
5977  IFS=$as_save_IFS
5978  test -z "$as_dir" && as_dir=.
5979    for ac_exec_ext in '' $ac_executable_extensions; do
5980  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5981    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5982    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983    break 2
5984  fi
5985done
5986  done
5987IFS=$as_save_IFS
5988
5989fi
5990fi
5991ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5992if test -n "$ac_ct_DUMPBIN"; then
5993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5994$as_echo "$ac_ct_DUMPBIN" >&6; }
5995else
5996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997$as_echo "no" >&6; }
5998fi
5999
6000
6001  test -n "$ac_ct_DUMPBIN" && break
6002done
6003
6004  if test "x$ac_ct_DUMPBIN" = x; then
6005    DUMPBIN=":"
6006  else
6007    case $cross_compiling:$ac_tool_warned in
6008yes:)
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6011ac_tool_warned=yes ;;
6012esac
6013    DUMPBIN=$ac_ct_DUMPBIN
6014  fi
6015fi
6016
6017
6018  if test "$DUMPBIN" != ":"; then
6019    NM="$DUMPBIN"
6020  fi
6021fi
6022test -z "$NM" && NM=nm
6023
6024
6025
6026
6027
6028
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6030$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6031if test "${lt_cv_nm_interface+set}" = set; then :
6032  $as_echo_n "(cached) " >&6
6033else
6034  lt_cv_nm_interface="BSD nm"
6035  echo "int some_variable = 0;" > conftest.$ac_ext
6036  (eval echo "\"\$as_me:6036: $ac_compile\"" >&5)
6037  (eval "$ac_compile" 2>conftest.err)
6038  cat conftest.err >&5
6039  (eval echo "\"\$as_me:6039: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6040  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6041  cat conftest.err >&5
6042  (eval echo "\"\$as_me:6042: output\"" >&5)
6043  cat conftest.out >&5
6044  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6045    lt_cv_nm_interface="MS dumpbin"
6046  fi
6047  rm -f conftest*
6048fi
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6050$as_echo "$lt_cv_nm_interface" >&6; }
6051
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6053$as_echo_n "checking whether ln -s works... " >&6; }
6054LN_S=$as_ln_s
6055if test "$LN_S" = "ln -s"; then
6056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6057$as_echo "yes" >&6; }
6058else
6059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6060$as_echo "no, using $LN_S" >&6; }
6061fi
6062
6063# find the maximum length of command line arguments
6064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6065$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6066if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6067  $as_echo_n "(cached) " >&6
6068else
6069    i=0
6070  teststring="ABCD"
6071
6072  case $build_os in
6073  msdosdjgpp*)
6074    # On DJGPP, this test can blow up pretty badly due to problems in libc
6075    # (any single argument exceeding 2000 bytes causes a buffer overrun
6076    # during glob expansion).  Even if it were fixed, the result of this
6077    # check would be larger than it should be.
6078    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6079    ;;
6080
6081  gnu*)
6082    # Under GNU Hurd, this test is not required because there is
6083    # no limit to the length of command line arguments.
6084    # Libtool will interpret -1 as no limit whatsoever
6085    lt_cv_sys_max_cmd_len=-1;
6086    ;;
6087
6088  cygwin* | mingw* | cegcc*)
6089    # On Win9x/ME, this test blows up -- it succeeds, but takes
6090    # about 5 minutes as the teststring grows exponentially.
6091    # Worse, since 9x/ME are not pre-emptively multitasking,
6092    # you end up with a "frozen" computer, even though with patience
6093    # the test eventually succeeds (with a max line length of 256k).
6094    # Instead, let's just punt: use the minimum linelength reported by
6095    # all of the supported platforms: 8192 (on NT/2K/XP).
6096    lt_cv_sys_max_cmd_len=8192;
6097    ;;
6098
6099  amigaos*)
6100    # On AmigaOS with pdksh, this test takes hours, literally.
6101    # So we just punt and use a minimum line length of 8192.
6102    lt_cv_sys_max_cmd_len=8192;
6103    ;;
6104
6105  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6106    # This has been around since 386BSD, at least.  Likely further.
6107    if test -x /sbin/sysctl; then
6108      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6109    elif test -x /usr/sbin/sysctl; then
6110      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6111    else
6112      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6113    fi
6114    # And add a safety zone
6115    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6116    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6117    ;;
6118
6119  interix*)
6120    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6121    lt_cv_sys_max_cmd_len=196608
6122    ;;
6123
6124  osf*)
6125    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6126    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6127    # nice to cause kernel panics so lets avoid the loop below.
6128    # First set a reasonable default.
6129    lt_cv_sys_max_cmd_len=16384
6130    #
6131    if test -x /sbin/sysconfig; then
6132      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6133        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6134      esac
6135    fi
6136    ;;
6137  sco3.2v5*)
6138    lt_cv_sys_max_cmd_len=102400
6139    ;;
6140  sysv5* | sco5v6* | sysv4.2uw2*)
6141    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6142    if test -n "$kargmax"; then
6143      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6144    else
6145      lt_cv_sys_max_cmd_len=32768
6146    fi
6147    ;;
6148  *)
6149    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6150    if test -n "$lt_cv_sys_max_cmd_len"; then
6151      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6152      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6153    else
6154      # Make teststring a little bigger before we do anything with it.
6155      # a 1K string should be a reasonable start.
6156      for i in 1 2 3 4 5 6 7 8 ; do
6157        teststring=$teststring$teststring
6158      done
6159      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6160      # If test is not a shell built-in, we'll probably end up computing a
6161      # maximum length that is only half of the actual maximum length, but
6162      # we can't tell.
6163      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6164	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6165	      test $i != 17 # 1/2 MB should be enough
6166      do
6167        i=`expr $i + 1`
6168        teststring=$teststring$teststring
6169      done
6170      # Only check the string length outside the loop.
6171      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6172      teststring=
6173      # Add a significant safety factor because C++ compilers can tack on
6174      # massive amounts of additional arguments before passing them to the
6175      # linker.  It appears as though 1/2 is a usable value.
6176      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6177    fi
6178    ;;
6179  esac
6180
6181fi
6182
6183if test -n $lt_cv_sys_max_cmd_len ; then
6184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6185$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6186else
6187  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6188$as_echo "none" >&6; }
6189fi
6190max_cmd_len=$lt_cv_sys_max_cmd_len
6191
6192
6193
6194
6195
6196
6197: ${CP="cp -f"}
6198: ${MV="mv -f"}
6199: ${RM="rm -f"}
6200
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6202$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6203# Try some XSI features
6204xsi_shell=no
6205( _lt_dummy="a/b/c"
6206  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6207      = c,a/b,, \
6208    && eval 'test $(( 1 + 1 )) -eq 2 \
6209    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6210  && xsi_shell=yes
6211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6212$as_echo "$xsi_shell" >&6; }
6213
6214
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6216$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6217lt_shell_append=no
6218( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6219    >/dev/null 2>&1 \
6220  && lt_shell_append=yes
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6222$as_echo "$lt_shell_append" >&6; }
6223
6224
6225if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6226  lt_unset=unset
6227else
6228  lt_unset=false
6229fi
6230
6231
6232
6233
6234
6235# test EBCDIC or ASCII
6236case `echo X|tr X '\101'` in
6237 A) # ASCII based system
6238    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6239  lt_SP2NL='tr \040 \012'
6240  lt_NL2SP='tr \015\012 \040\040'
6241  ;;
6242 *) # EBCDIC based system
6243  lt_SP2NL='tr \100 \n'
6244  lt_NL2SP='tr \r\n \100\100'
6245  ;;
6246esac
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6257$as_echo_n "checking for $LD option to reload object files... " >&6; }
6258if test "${lt_cv_ld_reload_flag+set}" = set; then :
6259  $as_echo_n "(cached) " >&6
6260else
6261  lt_cv_ld_reload_flag='-r'
6262fi
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6264$as_echo "$lt_cv_ld_reload_flag" >&6; }
6265reload_flag=$lt_cv_ld_reload_flag
6266case $reload_flag in
6267"" | " "*) ;;
6268*) reload_flag=" $reload_flag" ;;
6269esac
6270reload_cmds='$LD$reload_flag -o $output$reload_objs'
6271case $host_os in
6272  darwin*)
6273    if test "$GCC" = yes; then
6274      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6275    else
6276      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6277    fi
6278    ;;
6279esac
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289if test -n "$ac_tool_prefix"; then
6290  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6291set dummy ${ac_tool_prefix}objdump; ac_word=$2
6292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6293$as_echo_n "checking for $ac_word... " >&6; }
6294if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6295  $as_echo_n "(cached) " >&6
6296else
6297  if test -n "$OBJDUMP"; then
6298  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6299else
6300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6301for as_dir in $PATH
6302do
6303  IFS=$as_save_IFS
6304  test -z "$as_dir" && as_dir=.
6305    for ac_exec_ext in '' $ac_executable_extensions; do
6306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6307    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6309    break 2
6310  fi
6311done
6312  done
6313IFS=$as_save_IFS
6314
6315fi
6316fi
6317OBJDUMP=$ac_cv_prog_OBJDUMP
6318if test -n "$OBJDUMP"; then
6319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6320$as_echo "$OBJDUMP" >&6; }
6321else
6322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323$as_echo "no" >&6; }
6324fi
6325
6326
6327fi
6328if test -z "$ac_cv_prog_OBJDUMP"; then
6329  ac_ct_OBJDUMP=$OBJDUMP
6330  # Extract the first word of "objdump", so it can be a program name with args.
6331set dummy objdump; ac_word=$2
6332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6333$as_echo_n "checking for $ac_word... " >&6; }
6334if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6335  $as_echo_n "(cached) " >&6
6336else
6337  if test -n "$ac_ct_OBJDUMP"; then
6338  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6339else
6340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341for as_dir in $PATH
6342do
6343  IFS=$as_save_IFS
6344  test -z "$as_dir" && as_dir=.
6345    for ac_exec_ext in '' $ac_executable_extensions; do
6346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6349    break 2
6350  fi
6351done
6352  done
6353IFS=$as_save_IFS
6354
6355fi
6356fi
6357ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6358if test -n "$ac_ct_OBJDUMP"; then
6359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6360$as_echo "$ac_ct_OBJDUMP" >&6; }
6361else
6362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6363$as_echo "no" >&6; }
6364fi
6365
6366  if test "x$ac_ct_OBJDUMP" = x; then
6367    OBJDUMP="false"
6368  else
6369    case $cross_compiling:$ac_tool_warned in
6370yes:)
6371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373ac_tool_warned=yes ;;
6374esac
6375    OBJDUMP=$ac_ct_OBJDUMP
6376  fi
6377else
6378  OBJDUMP="$ac_cv_prog_OBJDUMP"
6379fi
6380
6381test -z "$OBJDUMP" && OBJDUMP=objdump
6382
6383
6384
6385
6386
6387
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6389$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6390if test "${lt_cv_deplibs_check_method+set}" = set; then :
6391  $as_echo_n "(cached) " >&6
6392else
6393  lt_cv_file_magic_cmd='$MAGIC_CMD'
6394lt_cv_file_magic_test_file=
6395lt_cv_deplibs_check_method='unknown'
6396# Need to set the preceding variable on all platforms that support
6397# interlibrary dependencies.
6398# 'none' -- dependencies not supported.
6399# `unknown' -- same as none, but documents that we really don't know.
6400# 'pass_all' -- all dependencies passed with no checks.
6401# 'test_compile' -- check by making test program.
6402# 'file_magic [[regex]]' -- check by looking for files in library path
6403# which responds to the $file_magic_cmd with a given extended regex.
6404# If you have `file' or equivalent on your system and you're not sure
6405# whether `pass_all' will *always* work, you probably want this one.
6406
6407case $host_os in
6408aix[4-9]*)
6409  lt_cv_deplibs_check_method=pass_all
6410  ;;
6411
6412beos*)
6413  lt_cv_deplibs_check_method=pass_all
6414  ;;
6415
6416bsdi[45]*)
6417  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6418  lt_cv_file_magic_cmd='/usr/bin/file -L'
6419  lt_cv_file_magic_test_file=/shlib/libc.so
6420  ;;
6421
6422cygwin*)
6423  # func_win32_libid is a shell function defined in ltmain.sh
6424  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6425  lt_cv_file_magic_cmd='func_win32_libid'
6426  ;;
6427
6428mingw* | pw32*)
6429  # Base MSYS/MinGW do not provide the 'file' command needed by
6430  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6431  # unless we find 'file', for example because we are cross-compiling.
6432  if ( file / ) >/dev/null 2>&1; then
6433    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6434    lt_cv_file_magic_cmd='func_win32_libid'
6435  else
6436    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6437    lt_cv_file_magic_cmd='$OBJDUMP -f'
6438  fi
6439  ;;
6440
6441cegcc)
6442  # use the weaker test based on 'objdump'. See mingw*.
6443  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6444  lt_cv_file_magic_cmd='$OBJDUMP -f'
6445  ;;
6446
6447darwin* | rhapsody*)
6448  lt_cv_deplibs_check_method=pass_all
6449  ;;
6450
6451freebsd* | dragonfly*)
6452  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6453    case $host_cpu in
6454    i*86 )
6455      # Not sure whether the presence of OpenBSD here was a mistake.
6456      # Let's accept both of them until this is cleared up.
6457      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6458      lt_cv_file_magic_cmd=/usr/bin/file
6459      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6460      ;;
6461    esac
6462  else
6463    lt_cv_deplibs_check_method=pass_all
6464  fi
6465  ;;
6466
6467gnu*)
6468  lt_cv_deplibs_check_method=pass_all
6469  ;;
6470
6471hpux10.20* | hpux11*)
6472  lt_cv_file_magic_cmd=/usr/bin/file
6473  case $host_cpu in
6474  ia64*)
6475    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6476    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6477    ;;
6478  hppa*64*)
6479    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6480    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6481    ;;
6482  *)
6483    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6484    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6485    ;;
6486  esac
6487  ;;
6488
6489interix[3-9]*)
6490  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6491  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6492  ;;
6493
6494irix5* | irix6* | nonstopux*)
6495  case $LD in
6496  *-32|*"-32 ") libmagic=32-bit;;
6497  *-n32|*"-n32 ") libmagic=N32;;
6498  *-64|*"-64 ") libmagic=64-bit;;
6499  *) libmagic=never-match;;
6500  esac
6501  lt_cv_deplibs_check_method=pass_all
6502  ;;
6503
6504# This must be Linux ELF.
6505linux* | k*bsd*-gnu | kopensolaris*-gnu)
6506  lt_cv_deplibs_check_method=pass_all
6507  ;;
6508
6509netbsd* | netbsdelf*-gnu)
6510  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6511    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6512  else
6513    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6514  fi
6515  ;;
6516
6517newos6*)
6518  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6519  lt_cv_file_magic_cmd=/usr/bin/file
6520  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6521  ;;
6522
6523*nto* | *qnx*)
6524  lt_cv_deplibs_check_method=pass_all
6525  ;;
6526
6527openbsd*)
6528  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6529    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6530  else
6531    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6532  fi
6533  ;;
6534
6535osf3* | osf4* | osf5*)
6536  lt_cv_deplibs_check_method=pass_all
6537  ;;
6538
6539rdos*)
6540  lt_cv_deplibs_check_method=pass_all
6541  ;;
6542
6543solaris*)
6544  lt_cv_deplibs_check_method=pass_all
6545  ;;
6546
6547sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6548  lt_cv_deplibs_check_method=pass_all
6549  ;;
6550
6551sysv4 | sysv4.3*)
6552  case $host_vendor in
6553  motorola)
6554    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]'
6555    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6556    ;;
6557  ncr)
6558    lt_cv_deplibs_check_method=pass_all
6559    ;;
6560  sequent)
6561    lt_cv_file_magic_cmd='/bin/file'
6562    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6563    ;;
6564  sni)
6565    lt_cv_file_magic_cmd='/bin/file'
6566    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6567    lt_cv_file_magic_test_file=/lib/libc.so
6568    ;;
6569  siemens)
6570    lt_cv_deplibs_check_method=pass_all
6571    ;;
6572  pc)
6573    lt_cv_deplibs_check_method=pass_all
6574    ;;
6575  esac
6576  ;;
6577
6578tpf*)
6579  lt_cv_deplibs_check_method=pass_all
6580  ;;
6581esac
6582
6583fi
6584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6585$as_echo "$lt_cv_deplibs_check_method" >&6; }
6586file_magic_cmd=$lt_cv_file_magic_cmd
6587deplibs_check_method=$lt_cv_deplibs_check_method
6588test -z "$deplibs_check_method" && deplibs_check_method=unknown
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601if test -n "$ac_tool_prefix"; then
6602  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6603set dummy ${ac_tool_prefix}ar; ac_word=$2
6604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605$as_echo_n "checking for $ac_word... " >&6; }
6606if test "${ac_cv_prog_AR+set}" = set; then :
6607  $as_echo_n "(cached) " >&6
6608else
6609  if test -n "$AR"; then
6610  ac_cv_prog_AR="$AR" # Let the user override the test.
6611else
6612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6613for as_dir in $PATH
6614do
6615  IFS=$as_save_IFS
6616  test -z "$as_dir" && as_dir=.
6617    for ac_exec_ext in '' $ac_executable_extensions; do
6618  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619    ac_cv_prog_AR="${ac_tool_prefix}ar"
6620    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6621    break 2
6622  fi
6623done
6624  done
6625IFS=$as_save_IFS
6626
6627fi
6628fi
6629AR=$ac_cv_prog_AR
6630if test -n "$AR"; then
6631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6632$as_echo "$AR" >&6; }
6633else
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6635$as_echo "no" >&6; }
6636fi
6637
6638
6639fi
6640if test -z "$ac_cv_prog_AR"; then
6641  ac_ct_AR=$AR
6642  # Extract the first word of "ar", so it can be a program name with args.
6643set dummy ar; ac_word=$2
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6645$as_echo_n "checking for $ac_word... " >&6; }
6646if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6647  $as_echo_n "(cached) " >&6
6648else
6649  if test -n "$ac_ct_AR"; then
6650  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6651else
6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653for as_dir in $PATH
6654do
6655  IFS=$as_save_IFS
6656  test -z "$as_dir" && as_dir=.
6657    for ac_exec_ext in '' $ac_executable_extensions; do
6658  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659    ac_cv_prog_ac_ct_AR="ar"
6660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6661    break 2
6662  fi
6663done
6664  done
6665IFS=$as_save_IFS
6666
6667fi
6668fi
6669ac_ct_AR=$ac_cv_prog_ac_ct_AR
6670if test -n "$ac_ct_AR"; then
6671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6672$as_echo "$ac_ct_AR" >&6; }
6673else
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6675$as_echo "no" >&6; }
6676fi
6677
6678  if test "x$ac_ct_AR" = x; then
6679    AR="false"
6680  else
6681    case $cross_compiling:$ac_tool_warned in
6682yes:)
6683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6685ac_tool_warned=yes ;;
6686esac
6687    AR=$ac_ct_AR
6688  fi
6689else
6690  AR="$ac_cv_prog_AR"
6691fi
6692
6693test -z "$AR" && AR=ar
6694test -z "$AR_FLAGS" && AR_FLAGS=cru
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706if test -n "$ac_tool_prefix"; then
6707  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6708set dummy ${ac_tool_prefix}strip; ac_word=$2
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6710$as_echo_n "checking for $ac_word... " >&6; }
6711if test "${ac_cv_prog_STRIP+set}" = set; then :
6712  $as_echo_n "(cached) " >&6
6713else
6714  if test -n "$STRIP"; then
6715  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6716else
6717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6718for as_dir in $PATH
6719do
6720  IFS=$as_save_IFS
6721  test -z "$as_dir" && as_dir=.
6722    for ac_exec_ext in '' $ac_executable_extensions; do
6723  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6724    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6725    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6726    break 2
6727  fi
6728done
6729  done
6730IFS=$as_save_IFS
6731
6732fi
6733fi
6734STRIP=$ac_cv_prog_STRIP
6735if test -n "$STRIP"; then
6736  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6737$as_echo "$STRIP" >&6; }
6738else
6739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6740$as_echo "no" >&6; }
6741fi
6742
6743
6744fi
6745if test -z "$ac_cv_prog_STRIP"; then
6746  ac_ct_STRIP=$STRIP
6747  # Extract the first word of "strip", so it can be a program name with args.
6748set dummy strip; ac_word=$2
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6750$as_echo_n "checking for $ac_word... " >&6; }
6751if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6752  $as_echo_n "(cached) " >&6
6753else
6754  if test -n "$ac_ct_STRIP"; then
6755  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6756else
6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6758for as_dir in $PATH
6759do
6760  IFS=$as_save_IFS
6761  test -z "$as_dir" && as_dir=.
6762    for ac_exec_ext in '' $ac_executable_extensions; do
6763  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764    ac_cv_prog_ac_ct_STRIP="strip"
6765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6766    break 2
6767  fi
6768done
6769  done
6770IFS=$as_save_IFS
6771
6772fi
6773fi
6774ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6775if test -n "$ac_ct_STRIP"; then
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6777$as_echo "$ac_ct_STRIP" >&6; }
6778else
6779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6780$as_echo "no" >&6; }
6781fi
6782
6783  if test "x$ac_ct_STRIP" = x; then
6784    STRIP=":"
6785  else
6786    case $cross_compiling:$ac_tool_warned in
6787yes:)
6788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6790ac_tool_warned=yes ;;
6791esac
6792    STRIP=$ac_ct_STRIP
6793  fi
6794else
6795  STRIP="$ac_cv_prog_STRIP"
6796fi
6797
6798test -z "$STRIP" && STRIP=:
6799
6800
6801
6802
6803
6804
6805if test -n "$ac_tool_prefix"; then
6806  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6807set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809$as_echo_n "checking for $ac_word... " >&6; }
6810if test "${ac_cv_prog_RANLIB+set}" = set; then :
6811  $as_echo_n "(cached) " >&6
6812else
6813  if test -n "$RANLIB"; then
6814  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6815else
6816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817for as_dir in $PATH
6818do
6819  IFS=$as_save_IFS
6820  test -z "$as_dir" && as_dir=.
6821    for ac_exec_ext in '' $ac_executable_extensions; do
6822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6825    break 2
6826  fi
6827done
6828  done
6829IFS=$as_save_IFS
6830
6831fi
6832fi
6833RANLIB=$ac_cv_prog_RANLIB
6834if test -n "$RANLIB"; then
6835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6836$as_echo "$RANLIB" >&6; }
6837else
6838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839$as_echo "no" >&6; }
6840fi
6841
6842
6843fi
6844if test -z "$ac_cv_prog_RANLIB"; then
6845  ac_ct_RANLIB=$RANLIB
6846  # Extract the first word of "ranlib", so it can be a program name with args.
6847set dummy ranlib; ac_word=$2
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849$as_echo_n "checking for $ac_word... " >&6; }
6850if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6851  $as_echo_n "(cached) " >&6
6852else
6853  if test -n "$ac_ct_RANLIB"; then
6854  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6855else
6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857for as_dir in $PATH
6858do
6859  IFS=$as_save_IFS
6860  test -z "$as_dir" && as_dir=.
6861    for ac_exec_ext in '' $ac_executable_extensions; do
6862  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863    ac_cv_prog_ac_ct_RANLIB="ranlib"
6864    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865    break 2
6866  fi
6867done
6868  done
6869IFS=$as_save_IFS
6870
6871fi
6872fi
6873ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6874if test -n "$ac_ct_RANLIB"; then
6875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6876$as_echo "$ac_ct_RANLIB" >&6; }
6877else
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879$as_echo "no" >&6; }
6880fi
6881
6882  if test "x$ac_ct_RANLIB" = x; then
6883    RANLIB=":"
6884  else
6885    case $cross_compiling:$ac_tool_warned in
6886yes:)
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889ac_tool_warned=yes ;;
6890esac
6891    RANLIB=$ac_ct_RANLIB
6892  fi
6893else
6894  RANLIB="$ac_cv_prog_RANLIB"
6895fi
6896
6897test -z "$RANLIB" && RANLIB=:
6898
6899
6900
6901
6902
6903
6904# Determine commands to create old-style static archives.
6905old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6906old_postinstall_cmds='chmod 644 $oldlib'
6907old_postuninstall_cmds=
6908
6909if test -n "$RANLIB"; then
6910  case $host_os in
6911  openbsd*)
6912    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6913    ;;
6914  *)
6915    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6916    ;;
6917  esac
6918  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6919fi
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954# If no C compiler was specified, use CC.
6955LTCC=${LTCC-"$CC"}
6956
6957# If no C compiler flags were specified, use CFLAGS.
6958LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6959
6960# Allow CC to be a program name with arguments.
6961compiler=$CC
6962
6963
6964# Check for command to grab the raw symbol name followed by C symbol from nm.
6965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6966$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6967if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6968  $as_echo_n "(cached) " >&6
6969else
6970
6971# These are sane defaults that work on at least a few old systems.
6972# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6973
6974# Character class describing NM global symbol codes.
6975symcode='[BCDEGRST]'
6976
6977# Regexp to match symbols that can be accessed directly from C.
6978sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6979
6980# Define system-specific variables.
6981case $host_os in
6982aix*)
6983  symcode='[BCDT]'
6984  ;;
6985cygwin* | mingw* | pw32* | cegcc*)
6986  symcode='[ABCDGISTW]'
6987  ;;
6988hpux*)
6989  if test "$host_cpu" = ia64; then
6990    symcode='[ABCDEGRST]'
6991  fi
6992  ;;
6993irix* | nonstopux*)
6994  symcode='[BCDEGRST]'
6995  ;;
6996osf*)
6997  symcode='[BCDEGQRST]'
6998  ;;
6999solaris*)
7000  symcode='[BDRT]'
7001  ;;
7002sco3.2v5*)
7003  symcode='[DT]'
7004  ;;
7005sysv4.2uw2*)
7006  symcode='[DT]'
7007  ;;
7008sysv5* | sco5v6* | unixware* | OpenUNIX*)
7009  symcode='[ABDT]'
7010  ;;
7011sysv4)
7012  symcode='[DFNSTU]'
7013  ;;
7014esac
7015
7016# If we're using GNU nm, then use its standard symbol codes.
7017case `$NM -V 2>&1` in
7018*GNU* | *'with BFD'*)
7019  symcode='[ABCDGIRSTW]' ;;
7020esac
7021
7022# Transform an extracted symbol line into a proper C declaration.
7023# Some systems (esp. on ia64) link data and code symbols differently,
7024# so use this general approach.
7025lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7026
7027# Transform an extracted symbol line into symbol name and symbol address
7028lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7029lt_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'"
7030
7031# Handle CRLF in mingw tool chain
7032opt_cr=
7033case $build_os in
7034mingw*)
7035  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7036  ;;
7037esac
7038
7039# Try without a prefix underscore, then with it.
7040for ac_symprfx in "" "_"; do
7041
7042  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7043  symxfrm="\\1 $ac_symprfx\\2 \\2"
7044
7045  # Write the raw and C identifiers.
7046  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7047    # Fake it for dumpbin and say T for any non-static function
7048    # and D for any global variable.
7049    # Also find C++ and __fastcall symbols from MSVC++,
7050    # which start with @ or ?.
7051    lt_cv_sys_global_symbol_pipe="$AWK '"\
7052"     {last_section=section; section=\$ 3};"\
7053"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7054"     \$ 0!~/External *\|/{next};"\
7055"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7056"     {if(hide[section]) next};"\
7057"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7058"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7059"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7060"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7061"     ' prfx=^$ac_symprfx"
7062  else
7063    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7064  fi
7065
7066  # Check to see that the pipe works correctly.
7067  pipe_works=no
7068
7069  rm -f conftest*
7070  cat > conftest.$ac_ext <<_LT_EOF
7071#ifdef __cplusplus
7072extern "C" {
7073#endif
7074char nm_test_var;
7075void nm_test_func(void);
7076void nm_test_func(void){}
7077#ifdef __cplusplus
7078}
7079#endif
7080int main(){nm_test_var='a';nm_test_func();return(0);}
7081_LT_EOF
7082
7083  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7084  (eval $ac_compile) 2>&5
7085  ac_status=$?
7086  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7087  test $ac_status = 0; }; then
7088    # Now try to grab the symbols.
7089    nlist=conftest.nm
7090    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7091  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7092  ac_status=$?
7093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7094  test $ac_status = 0; } && test -s "$nlist"; then
7095      # Try sorting and uniquifying the output.
7096      if sort "$nlist" | uniq > "$nlist"T; then
7097	mv -f "$nlist"T "$nlist"
7098      else
7099	rm -f "$nlist"T
7100      fi
7101
7102      # Make sure that we snagged all the symbols we need.
7103      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7104	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7105	  cat <<_LT_EOF > conftest.$ac_ext
7106#ifdef __cplusplus
7107extern "C" {
7108#endif
7109
7110_LT_EOF
7111	  # Now generate the symbol file.
7112	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7113
7114	  cat <<_LT_EOF >> conftest.$ac_ext
7115
7116/* The mapping between symbol names and symbols.  */
7117const struct {
7118  const char *name;
7119  void       *address;
7120}
7121lt__PROGRAM__LTX_preloaded_symbols[] =
7122{
7123  { "@PROGRAM@", (void *) 0 },
7124_LT_EOF
7125	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7126	  cat <<\_LT_EOF >> conftest.$ac_ext
7127  {0, (void *) 0}
7128};
7129
7130/* This works around a problem in FreeBSD linker */
7131#ifdef FREEBSD_WORKAROUND
7132static const void *lt_preloaded_setup() {
7133  return lt__PROGRAM__LTX_preloaded_symbols;
7134}
7135#endif
7136
7137#ifdef __cplusplus
7138}
7139#endif
7140_LT_EOF
7141	  # Now try linking the two files.
7142	  mv conftest.$ac_objext conftstm.$ac_objext
7143	  lt_save_LIBS="$LIBS"
7144	  lt_save_CFLAGS="$CFLAGS"
7145	  LIBS="conftstm.$ac_objext"
7146	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7147	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7148  (eval $ac_link) 2>&5
7149  ac_status=$?
7150  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7151  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7152	    pipe_works=yes
7153	  fi
7154	  LIBS="$lt_save_LIBS"
7155	  CFLAGS="$lt_save_CFLAGS"
7156	else
7157	  echo "cannot find nm_test_func in $nlist" >&5
7158	fi
7159      else
7160	echo "cannot find nm_test_var in $nlist" >&5
7161      fi
7162    else
7163      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7164    fi
7165  else
7166    echo "$progname: failed program was:" >&5
7167    cat conftest.$ac_ext >&5
7168  fi
7169  rm -rf conftest* conftst*
7170
7171  # Do not use the global_symbol_pipe unless it works.
7172  if test "$pipe_works" = yes; then
7173    break
7174  else
7175    lt_cv_sys_global_symbol_pipe=
7176  fi
7177done
7178
7179fi
7180
7181if test -z "$lt_cv_sys_global_symbol_pipe"; then
7182  lt_cv_sys_global_symbol_to_cdecl=
7183fi
7184if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7186$as_echo "failed" >&6; }
7187else
7188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7189$as_echo "ok" >&6; }
7190fi
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214# Check whether --enable-libtool-lock was given.
7215if test "${enable_libtool_lock+set}" = set; then :
7216  enableval=$enable_libtool_lock;
7217fi
7218
7219test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7220
7221# Some flags need to be propagated to the compiler or linker for good
7222# libtool support.
7223case $host in
7224ia64-*-hpux*)
7225  # Find out which ABI we are using.
7226  echo 'int i;' > conftest.$ac_ext
7227  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7228  (eval $ac_compile) 2>&5
7229  ac_status=$?
7230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7231  test $ac_status = 0; }; then
7232    case `/usr/bin/file conftest.$ac_objext` in
7233      *ELF-32*)
7234	HPUX_IA64_MODE="32"
7235	;;
7236      *ELF-64*)
7237	HPUX_IA64_MODE="64"
7238	;;
7239    esac
7240  fi
7241  rm -rf conftest*
7242  ;;
7243*-*-irix6*)
7244  # Find out which ABI we are using.
7245  echo '#line 7245 "configure"' > conftest.$ac_ext
7246  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7247  (eval $ac_compile) 2>&5
7248  ac_status=$?
7249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7250  test $ac_status = 0; }; then
7251    if test "$lt_cv_prog_gnu_ld" = yes; then
7252      case `/usr/bin/file conftest.$ac_objext` in
7253	*32-bit*)
7254	  LD="${LD-ld} -melf32bsmip"
7255	  ;;
7256	*N32*)
7257	  LD="${LD-ld} -melf32bmipn32"
7258	  ;;
7259	*64-bit*)
7260	  LD="${LD-ld} -melf64bmip"
7261	;;
7262      esac
7263    else
7264      case `/usr/bin/file conftest.$ac_objext` in
7265	*32-bit*)
7266	  LD="${LD-ld} -32"
7267	  ;;
7268	*N32*)
7269	  LD="${LD-ld} -n32"
7270	  ;;
7271	*64-bit*)
7272	  LD="${LD-ld} -64"
7273	  ;;
7274      esac
7275    fi
7276  fi
7277  rm -rf conftest*
7278  ;;
7279
7280x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7281s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7282  # Find out which ABI we are using.
7283  echo 'int i;' > conftest.$ac_ext
7284  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7285  (eval $ac_compile) 2>&5
7286  ac_status=$?
7287  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288  test $ac_status = 0; }; then
7289    case `/usr/bin/file conftest.o` in
7290      *32-bit*)
7291	case $host in
7292	  x86_64-*kfreebsd*-gnu)
7293	    LD="${LD-ld} -m elf_i386_fbsd"
7294	    ;;
7295	  x86_64-*linux*)
7296	    LD="${LD-ld} -m elf_i386"
7297	    ;;
7298	  ppc64-*linux*|powerpc64-*linux*)
7299	    LD="${LD-ld} -m elf32ppclinux"
7300	    ;;
7301	  s390x-*linux*)
7302	    LD="${LD-ld} -m elf_s390"
7303	    ;;
7304	  sparc64-*linux*)
7305	    LD="${LD-ld} -m elf32_sparc"
7306	    ;;
7307	esac
7308	;;
7309      *64-bit*)
7310	case $host in
7311	  x86_64-*kfreebsd*-gnu)
7312	    LD="${LD-ld} -m elf_x86_64_fbsd"
7313	    ;;
7314	  x86_64-*linux*)
7315	    LD="${LD-ld} -m elf_x86_64"
7316	    ;;
7317	  ppc*-*linux*|powerpc*-*linux*)
7318	    LD="${LD-ld} -m elf64ppc"
7319	    ;;
7320	  s390*-*linux*|s390*-*tpf*)
7321	    LD="${LD-ld} -m elf64_s390"
7322	    ;;
7323	  sparc*-*linux*)
7324	    LD="${LD-ld} -m elf64_sparc"
7325	    ;;
7326	esac
7327	;;
7328    esac
7329  fi
7330  rm -rf conftest*
7331  ;;
7332
7333*-*-sco3.2v5*)
7334  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7335  SAVE_CFLAGS="$CFLAGS"
7336  CFLAGS="$CFLAGS -belf"
7337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7338$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7339if test "${lt_cv_cc_needs_belf+set}" = set; then :
7340  $as_echo_n "(cached) " >&6
7341else
7342  ac_ext=c
7343ac_cpp='$CPP $CPPFLAGS'
7344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7346ac_compiler_gnu=$ac_cv_c_compiler_gnu
7347
7348     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7349/* end confdefs.h.  */
7350
7351int
7352main ()
7353{
7354
7355  ;
7356  return 0;
7357}
7358_ACEOF
7359if ac_fn_c_try_link "$LINENO"; then :
7360  lt_cv_cc_needs_belf=yes
7361else
7362  lt_cv_cc_needs_belf=no
7363fi
7364rm -f core conftest.err conftest.$ac_objext \
7365    conftest$ac_exeext conftest.$ac_ext
7366     ac_ext=c
7367ac_cpp='$CPP $CPPFLAGS'
7368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7370ac_compiler_gnu=$ac_cv_c_compiler_gnu
7371
7372fi
7373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7374$as_echo "$lt_cv_cc_needs_belf" >&6; }
7375  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7376    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7377    CFLAGS="$SAVE_CFLAGS"
7378  fi
7379  ;;
7380sparc*-*solaris*)
7381  # Find out which ABI we are using.
7382  echo 'int i;' > conftest.$ac_ext
7383  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7384  (eval $ac_compile) 2>&5
7385  ac_status=$?
7386  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7387  test $ac_status = 0; }; then
7388    case `/usr/bin/file conftest.o` in
7389    *64-bit*)
7390      case $lt_cv_prog_gnu_ld in
7391      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7392      *)
7393	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7394	  LD="${LD-ld} -64"
7395	fi
7396	;;
7397      esac
7398      ;;
7399    esac
7400  fi
7401  rm -rf conftest*
7402  ;;
7403esac
7404
7405need_locks="$enable_libtool_lock"
7406
7407
7408  case $host_os in
7409    rhapsody* | darwin*)
7410    if test -n "$ac_tool_prefix"; then
7411  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7412set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7414$as_echo_n "checking for $ac_word... " >&6; }
7415if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7416  $as_echo_n "(cached) " >&6
7417else
7418  if test -n "$DSYMUTIL"; then
7419  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7420else
7421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422for as_dir in $PATH
7423do
7424  IFS=$as_save_IFS
7425  test -z "$as_dir" && as_dir=.
7426    for ac_exec_ext in '' $ac_executable_extensions; do
7427  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7428    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7429    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7430    break 2
7431  fi
7432done
7433  done
7434IFS=$as_save_IFS
7435
7436fi
7437fi
7438DSYMUTIL=$ac_cv_prog_DSYMUTIL
7439if test -n "$DSYMUTIL"; then
7440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7441$as_echo "$DSYMUTIL" >&6; }
7442else
7443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444$as_echo "no" >&6; }
7445fi
7446
7447
7448fi
7449if test -z "$ac_cv_prog_DSYMUTIL"; then
7450  ac_ct_DSYMUTIL=$DSYMUTIL
7451  # Extract the first word of "dsymutil", so it can be a program name with args.
7452set dummy dsymutil; ac_word=$2
7453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7454$as_echo_n "checking for $ac_word... " >&6; }
7455if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  if test -n "$ac_ct_DSYMUTIL"; then
7459  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7460else
7461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7462for as_dir in $PATH
7463do
7464  IFS=$as_save_IFS
7465  test -z "$as_dir" && as_dir=.
7466    for ac_exec_ext in '' $ac_executable_extensions; do
7467  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7468    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7469    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7470    break 2
7471  fi
7472done
7473  done
7474IFS=$as_save_IFS
7475
7476fi
7477fi
7478ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7479if test -n "$ac_ct_DSYMUTIL"; then
7480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7481$as_echo "$ac_ct_DSYMUTIL" >&6; }
7482else
7483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484$as_echo "no" >&6; }
7485fi
7486
7487  if test "x$ac_ct_DSYMUTIL" = x; then
7488    DSYMUTIL=":"
7489  else
7490    case $cross_compiling:$ac_tool_warned in
7491yes:)
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7493$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7494ac_tool_warned=yes ;;
7495esac
7496    DSYMUTIL=$ac_ct_DSYMUTIL
7497  fi
7498else
7499  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7500fi
7501
7502    if test -n "$ac_tool_prefix"; then
7503  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7504set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506$as_echo_n "checking for $ac_word... " >&6; }
7507if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7508  $as_echo_n "(cached) " >&6
7509else
7510  if test -n "$NMEDIT"; then
7511  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7512else
7513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514for as_dir in $PATH
7515do
7516  IFS=$as_save_IFS
7517  test -z "$as_dir" && as_dir=.
7518    for ac_exec_ext in '' $ac_executable_extensions; do
7519  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7521    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7522    break 2
7523  fi
7524done
7525  done
7526IFS=$as_save_IFS
7527
7528fi
7529fi
7530NMEDIT=$ac_cv_prog_NMEDIT
7531if test -n "$NMEDIT"; then
7532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7533$as_echo "$NMEDIT" >&6; }
7534else
7535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536$as_echo "no" >&6; }
7537fi
7538
7539
7540fi
7541if test -z "$ac_cv_prog_NMEDIT"; then
7542  ac_ct_NMEDIT=$NMEDIT
7543  # Extract the first word of "nmedit", so it can be a program name with args.
7544set dummy nmedit; ac_word=$2
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7546$as_echo_n "checking for $ac_word... " >&6; }
7547if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7548  $as_echo_n "(cached) " >&6
7549else
7550  if test -n "$ac_ct_NMEDIT"; then
7551  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7552else
7553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7554for as_dir in $PATH
7555do
7556  IFS=$as_save_IFS
7557  test -z "$as_dir" && as_dir=.
7558    for ac_exec_ext in '' $ac_executable_extensions; do
7559  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7561    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7562    break 2
7563  fi
7564done
7565  done
7566IFS=$as_save_IFS
7567
7568fi
7569fi
7570ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7571if test -n "$ac_ct_NMEDIT"; then
7572  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7573$as_echo "$ac_ct_NMEDIT" >&6; }
7574else
7575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576$as_echo "no" >&6; }
7577fi
7578
7579  if test "x$ac_ct_NMEDIT" = x; then
7580    NMEDIT=":"
7581  else
7582    case $cross_compiling:$ac_tool_warned in
7583yes:)
7584{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7585$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7586ac_tool_warned=yes ;;
7587esac
7588    NMEDIT=$ac_ct_NMEDIT
7589  fi
7590else
7591  NMEDIT="$ac_cv_prog_NMEDIT"
7592fi
7593
7594    if test -n "$ac_tool_prefix"; then
7595  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7596set dummy ${ac_tool_prefix}lipo; ac_word=$2
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7598$as_echo_n "checking for $ac_word... " >&6; }
7599if test "${ac_cv_prog_LIPO+set}" = set; then :
7600  $as_echo_n "(cached) " >&6
7601else
7602  if test -n "$LIPO"; then
7603  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7604else
7605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7606for as_dir in $PATH
7607do
7608  IFS=$as_save_IFS
7609  test -z "$as_dir" && as_dir=.
7610    for ac_exec_ext in '' $ac_executable_extensions; do
7611  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7612    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7613    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7614    break 2
7615  fi
7616done
7617  done
7618IFS=$as_save_IFS
7619
7620fi
7621fi
7622LIPO=$ac_cv_prog_LIPO
7623if test -n "$LIPO"; then
7624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7625$as_echo "$LIPO" >&6; }
7626else
7627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628$as_echo "no" >&6; }
7629fi
7630
7631
7632fi
7633if test -z "$ac_cv_prog_LIPO"; then
7634  ac_ct_LIPO=$LIPO
7635  # Extract the first word of "lipo", so it can be a program name with args.
7636set dummy lipo; ac_word=$2
7637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7638$as_echo_n "checking for $ac_word... " >&6; }
7639if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7640  $as_echo_n "(cached) " >&6
7641else
7642  if test -n "$ac_ct_LIPO"; then
7643  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7644else
7645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7646for as_dir in $PATH
7647do
7648  IFS=$as_save_IFS
7649  test -z "$as_dir" && as_dir=.
7650    for ac_exec_ext in '' $ac_executable_extensions; do
7651  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7652    ac_cv_prog_ac_ct_LIPO="lipo"
7653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7654    break 2
7655  fi
7656done
7657  done
7658IFS=$as_save_IFS
7659
7660fi
7661fi
7662ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7663if test -n "$ac_ct_LIPO"; then
7664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7665$as_echo "$ac_ct_LIPO" >&6; }
7666else
7667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668$as_echo "no" >&6; }
7669fi
7670
7671  if test "x$ac_ct_LIPO" = x; then
7672    LIPO=":"
7673  else
7674    case $cross_compiling:$ac_tool_warned in
7675yes:)
7676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7677$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7678ac_tool_warned=yes ;;
7679esac
7680    LIPO=$ac_ct_LIPO
7681  fi
7682else
7683  LIPO="$ac_cv_prog_LIPO"
7684fi
7685
7686    if test -n "$ac_tool_prefix"; then
7687  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7688set dummy ${ac_tool_prefix}otool; ac_word=$2
7689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7690$as_echo_n "checking for $ac_word... " >&6; }
7691if test "${ac_cv_prog_OTOOL+set}" = set; then :
7692  $as_echo_n "(cached) " >&6
7693else
7694  if test -n "$OTOOL"; then
7695  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7696else
7697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7698for as_dir in $PATH
7699do
7700  IFS=$as_save_IFS
7701  test -z "$as_dir" && as_dir=.
7702    for ac_exec_ext in '' $ac_executable_extensions; do
7703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7704    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7706    break 2
7707  fi
7708done
7709  done
7710IFS=$as_save_IFS
7711
7712fi
7713fi
7714OTOOL=$ac_cv_prog_OTOOL
7715if test -n "$OTOOL"; then
7716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7717$as_echo "$OTOOL" >&6; }
7718else
7719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720$as_echo "no" >&6; }
7721fi
7722
7723
7724fi
7725if test -z "$ac_cv_prog_OTOOL"; then
7726  ac_ct_OTOOL=$OTOOL
7727  # Extract the first word of "otool", so it can be a program name with args.
7728set dummy otool; ac_word=$2
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730$as_echo_n "checking for $ac_word... " >&6; }
7731if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7732  $as_echo_n "(cached) " >&6
7733else
7734  if test -n "$ac_ct_OTOOL"; then
7735  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7736else
7737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7738for as_dir in $PATH
7739do
7740  IFS=$as_save_IFS
7741  test -z "$as_dir" && as_dir=.
7742    for ac_exec_ext in '' $ac_executable_extensions; do
7743  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7744    ac_cv_prog_ac_ct_OTOOL="otool"
7745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746    break 2
7747  fi
7748done
7749  done
7750IFS=$as_save_IFS
7751
7752fi
7753fi
7754ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7755if test -n "$ac_ct_OTOOL"; then
7756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7757$as_echo "$ac_ct_OTOOL" >&6; }
7758else
7759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7760$as_echo "no" >&6; }
7761fi
7762
7763  if test "x$ac_ct_OTOOL" = x; then
7764    OTOOL=":"
7765  else
7766    case $cross_compiling:$ac_tool_warned in
7767yes:)
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7770ac_tool_warned=yes ;;
7771esac
7772    OTOOL=$ac_ct_OTOOL
7773  fi
7774else
7775  OTOOL="$ac_cv_prog_OTOOL"
7776fi
7777
7778    if test -n "$ac_tool_prefix"; then
7779  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7780set dummy ${ac_tool_prefix}otool64; ac_word=$2
7781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7782$as_echo_n "checking for $ac_word... " >&6; }
7783if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7784  $as_echo_n "(cached) " >&6
7785else
7786  if test -n "$OTOOL64"; then
7787  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7788else
7789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7790for as_dir in $PATH
7791do
7792  IFS=$as_save_IFS
7793  test -z "$as_dir" && as_dir=.
7794    for ac_exec_ext in '' $ac_executable_extensions; do
7795  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7796    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7798    break 2
7799  fi
7800done
7801  done
7802IFS=$as_save_IFS
7803
7804fi
7805fi
7806OTOOL64=$ac_cv_prog_OTOOL64
7807if test -n "$OTOOL64"; then
7808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7809$as_echo "$OTOOL64" >&6; }
7810else
7811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7812$as_echo "no" >&6; }
7813fi
7814
7815
7816fi
7817if test -z "$ac_cv_prog_OTOOL64"; then
7818  ac_ct_OTOOL64=$OTOOL64
7819  # Extract the first word of "otool64", so it can be a program name with args.
7820set dummy otool64; ac_word=$2
7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7822$as_echo_n "checking for $ac_word... " >&6; }
7823if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7824  $as_echo_n "(cached) " >&6
7825else
7826  if test -n "$ac_ct_OTOOL64"; then
7827  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7828else
7829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7830for as_dir in $PATH
7831do
7832  IFS=$as_save_IFS
7833  test -z "$as_dir" && as_dir=.
7834    for ac_exec_ext in '' $ac_executable_extensions; do
7835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7836    ac_cv_prog_ac_ct_OTOOL64="otool64"
7837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7838    break 2
7839  fi
7840done
7841  done
7842IFS=$as_save_IFS
7843
7844fi
7845fi
7846ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7847if test -n "$ac_ct_OTOOL64"; then
7848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7849$as_echo "$ac_ct_OTOOL64" >&6; }
7850else
7851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7852$as_echo "no" >&6; }
7853fi
7854
7855  if test "x$ac_ct_OTOOL64" = x; then
7856    OTOOL64=":"
7857  else
7858    case $cross_compiling:$ac_tool_warned in
7859yes:)
7860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7862ac_tool_warned=yes ;;
7863esac
7864    OTOOL64=$ac_ct_OTOOL64
7865  fi
7866else
7867  OTOOL64="$ac_cv_prog_OTOOL64"
7868fi
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7897$as_echo_n "checking for -single_module linker flag... " >&6; }
7898if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7899  $as_echo_n "(cached) " >&6
7900else
7901  lt_cv_apple_cc_single_mod=no
7902      if test -z "${LT_MULTI_MODULE}"; then
7903	# By default we will add the -single_module flag. You can override
7904	# by either setting the environment variable LT_MULTI_MODULE
7905	# non-empty at configure time, or by adding -multi_module to the
7906	# link flags.
7907	rm -rf libconftest.dylib*
7908	echo "int foo(void){return 1;}" > conftest.c
7909	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7910-dynamiclib -Wl,-single_module conftest.c" >&5
7911	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7912	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7913        _lt_result=$?
7914	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7915	  lt_cv_apple_cc_single_mod=yes
7916	else
7917	  cat conftest.err >&5
7918	fi
7919	rm -rf libconftest.dylib*
7920	rm -f conftest.*
7921      fi
7922fi
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7924$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7926$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7927if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7928  $as_echo_n "(cached) " >&6
7929else
7930  lt_cv_ld_exported_symbols_list=no
7931      save_LDFLAGS=$LDFLAGS
7932      echo "_main" > conftest.sym
7933      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7934      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7935/* end confdefs.h.  */
7936
7937int
7938main ()
7939{
7940
7941  ;
7942  return 0;
7943}
7944_ACEOF
7945if ac_fn_c_try_link "$LINENO"; then :
7946  lt_cv_ld_exported_symbols_list=yes
7947else
7948  lt_cv_ld_exported_symbols_list=no
7949fi
7950rm -f core conftest.err conftest.$ac_objext \
7951    conftest$ac_exeext conftest.$ac_ext
7952	LDFLAGS="$save_LDFLAGS"
7953
7954fi
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7956$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7957    case $host_os in
7958    rhapsody* | darwin1.[012])
7959      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7960    darwin1.*)
7961      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7962    darwin*) # darwin 5.x on
7963      # if running on 10.5 or later, the deployment target defaults
7964      # to the OS version, if on x86, and 10.4, the deployment
7965      # target defaults to 10.4. Don't you love it?
7966      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7967	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7968	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7969	10.[012]*)
7970	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7971	10.*)
7972	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7973      esac
7974    ;;
7975  esac
7976    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7977      _lt_dar_single_mod='$single_module'
7978    fi
7979    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7980      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7981    else
7982      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7983    fi
7984    if test "$DSYMUTIL" != ":"; then
7985      _lt_dsymutil='~$DSYMUTIL $lib || :'
7986    else
7987      _lt_dsymutil=
7988    fi
7989    ;;
7990  esac
7991
7992
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7994$as_echo_n "checking for ANSI C header files... " >&6; }
7995if test "${ac_cv_header_stdc+set}" = set; then :
7996  $as_echo_n "(cached) " >&6
7997else
7998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999/* end confdefs.h.  */
8000#include <stdlib.h>
8001#include <stdarg.h>
8002#include <string.h>
8003#include <float.h>
8004
8005int
8006main ()
8007{
8008
8009  ;
8010  return 0;
8011}
8012_ACEOF
8013if ac_fn_c_try_compile "$LINENO"; then :
8014  ac_cv_header_stdc=yes
8015else
8016  ac_cv_header_stdc=no
8017fi
8018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8019
8020if test $ac_cv_header_stdc = yes; then
8021  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023/* end confdefs.h.  */
8024#include <string.h>
8025
8026_ACEOF
8027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8028  $EGREP "memchr" >/dev/null 2>&1; then :
8029
8030else
8031  ac_cv_header_stdc=no
8032fi
8033rm -f conftest*
8034
8035fi
8036
8037if test $ac_cv_header_stdc = yes; then
8038  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040/* end confdefs.h.  */
8041#include <stdlib.h>
8042
8043_ACEOF
8044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8045  $EGREP "free" >/dev/null 2>&1; then :
8046
8047else
8048  ac_cv_header_stdc=no
8049fi
8050rm -f conftest*
8051
8052fi
8053
8054if test $ac_cv_header_stdc = yes; then
8055  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8056  if test "$cross_compiling" = yes; then :
8057  :
8058else
8059  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060/* end confdefs.h.  */
8061#include <ctype.h>
8062#include <stdlib.h>
8063#if ((' ' & 0x0FF) == 0x020)
8064# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8065# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8066#else
8067# define ISLOWER(c) \
8068		   (('a' <= (c) && (c) <= 'i') \
8069		     || ('j' <= (c) && (c) <= 'r') \
8070		     || ('s' <= (c) && (c) <= 'z'))
8071# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8072#endif
8073
8074#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8075int
8076main ()
8077{
8078  int i;
8079  for (i = 0; i < 256; i++)
8080    if (XOR (islower (i), ISLOWER (i))
8081	|| toupper (i) != TOUPPER (i))
8082      return 2;
8083  return 0;
8084}
8085_ACEOF
8086if ac_fn_c_try_run "$LINENO"; then :
8087
8088else
8089  ac_cv_header_stdc=no
8090fi
8091rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8092  conftest.$ac_objext conftest.beam conftest.$ac_ext
8093fi
8094
8095fi
8096fi
8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8098$as_echo "$ac_cv_header_stdc" >&6; }
8099if test $ac_cv_header_stdc = yes; then
8100
8101$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8102
8103fi
8104
8105# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8106for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8107		  inttypes.h stdint.h unistd.h
8108do :
8109  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8110ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8111"
8112eval as_val=\$$as_ac_Header
8113   if test "x$as_val" = x""yes; then :
8114  cat >>confdefs.h <<_ACEOF
8115#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8116_ACEOF
8117
8118fi
8119
8120done
8121
8122
8123for ac_header in dlfcn.h
8124do :
8125  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8126"
8127if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8128  cat >>confdefs.h <<_ACEOF
8129#define HAVE_DLFCN_H 1
8130_ACEOF
8131
8132fi
8133
8134done
8135
8136
8137
8138ac_ext=cpp
8139ac_cpp='$CXXCPP $CPPFLAGS'
8140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8143if test -z "$CXX"; then
8144  if test -n "$CCC"; then
8145    CXX=$CCC
8146  else
8147    if test -n "$ac_tool_prefix"; then
8148  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8149  do
8150    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8151set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153$as_echo_n "checking for $ac_word... " >&6; }
8154if test "${ac_cv_prog_CXX+set}" = set; then :
8155  $as_echo_n "(cached) " >&6
8156else
8157  if test -n "$CXX"; then
8158  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8159else
8160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161for as_dir in $PATH
8162do
8163  IFS=$as_save_IFS
8164  test -z "$as_dir" && as_dir=.
8165    for ac_exec_ext in '' $ac_executable_extensions; do
8166  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8167    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8168    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8169    break 2
8170  fi
8171done
8172  done
8173IFS=$as_save_IFS
8174
8175fi
8176fi
8177CXX=$ac_cv_prog_CXX
8178if test -n "$CXX"; then
8179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8180$as_echo "$CXX" >&6; }
8181else
8182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183$as_echo "no" >&6; }
8184fi
8185
8186
8187    test -n "$CXX" && break
8188  done
8189fi
8190if test -z "$CXX"; then
8191  ac_ct_CXX=$CXX
8192  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8193do
8194  # Extract the first word of "$ac_prog", so it can be a program name with args.
8195set dummy $ac_prog; ac_word=$2
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197$as_echo_n "checking for $ac_word... " >&6; }
8198if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8199  $as_echo_n "(cached) " >&6
8200else
8201  if test -n "$ac_ct_CXX"; then
8202  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8203else
8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205for as_dir in $PATH
8206do
8207  IFS=$as_save_IFS
8208  test -z "$as_dir" && as_dir=.
8209    for ac_exec_ext in '' $ac_executable_extensions; do
8210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8211    ac_cv_prog_ac_ct_CXX="$ac_prog"
8212    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213    break 2
8214  fi
8215done
8216  done
8217IFS=$as_save_IFS
8218
8219fi
8220fi
8221ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8222if test -n "$ac_ct_CXX"; then
8223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8224$as_echo "$ac_ct_CXX" >&6; }
8225else
8226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227$as_echo "no" >&6; }
8228fi
8229
8230
8231  test -n "$ac_ct_CXX" && break
8232done
8233
8234  if test "x$ac_ct_CXX" = x; then
8235    CXX="g++"
8236  else
8237    case $cross_compiling:$ac_tool_warned in
8238yes:)
8239{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8240$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8241ac_tool_warned=yes ;;
8242esac
8243    CXX=$ac_ct_CXX
8244  fi
8245fi
8246
8247  fi
8248fi
8249# Provide some information about the compiler.
8250$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8251set X $ac_compile
8252ac_compiler=$2
8253for ac_option in --version -v -V -qversion; do
8254  { { ac_try="$ac_compiler $ac_option >&5"
8255case "(($ac_try" in
8256  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257  *) ac_try_echo=$ac_try;;
8258esac
8259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8260$as_echo "$ac_try_echo"; } >&5
8261  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8262  ac_status=$?
8263  if test -s conftest.err; then
8264    sed '10a\
8265... rest of stderr output deleted ...
8266         10q' conftest.err >conftest.er1
8267    cat conftest.er1 >&5
8268  fi
8269  rm -f conftest.er1 conftest.err
8270  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8271  test $ac_status = 0; }
8272done
8273
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8275$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8276if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8277  $as_echo_n "(cached) " >&6
8278else
8279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8280/* end confdefs.h.  */
8281
8282int
8283main ()
8284{
8285#ifndef __GNUC__
8286       choke me
8287#endif
8288
8289  ;
8290  return 0;
8291}
8292_ACEOF
8293if ac_fn_cxx_try_compile "$LINENO"; then :
8294  ac_compiler_gnu=yes
8295else
8296  ac_compiler_gnu=no
8297fi
8298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8300
8301fi
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8303$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8304if test $ac_compiler_gnu = yes; then
8305  GXX=yes
8306else
8307  GXX=
8308fi
8309ac_test_CXXFLAGS=${CXXFLAGS+set}
8310ac_save_CXXFLAGS=$CXXFLAGS
8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8312$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8313if test "${ac_cv_prog_cxx_g+set}" = set; then :
8314  $as_echo_n "(cached) " >&6
8315else
8316  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8317   ac_cxx_werror_flag=yes
8318   ac_cv_prog_cxx_g=no
8319   CXXFLAGS="-g"
8320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321/* end confdefs.h.  */
8322
8323int
8324main ()
8325{
8326
8327  ;
8328  return 0;
8329}
8330_ACEOF
8331if ac_fn_cxx_try_compile "$LINENO"; then :
8332  ac_cv_prog_cxx_g=yes
8333else
8334  CXXFLAGS=""
8335      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h.  */
8337
8338int
8339main ()
8340{
8341
8342  ;
8343  return 0;
8344}
8345_ACEOF
8346if ac_fn_cxx_try_compile "$LINENO"; then :
8347
8348else
8349  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8350	 CXXFLAGS="-g"
8351	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8352/* end confdefs.h.  */
8353
8354int
8355main ()
8356{
8357
8358  ;
8359  return 0;
8360}
8361_ACEOF
8362if ac_fn_cxx_try_compile "$LINENO"; then :
8363  ac_cv_prog_cxx_g=yes
8364fi
8365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8366fi
8367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8368fi
8369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8371fi
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8373$as_echo "$ac_cv_prog_cxx_g" >&6; }
8374if test "$ac_test_CXXFLAGS" = set; then
8375  CXXFLAGS=$ac_save_CXXFLAGS
8376elif test $ac_cv_prog_cxx_g = yes; then
8377  if test "$GXX" = yes; then
8378    CXXFLAGS="-g -O2"
8379  else
8380    CXXFLAGS="-g"
8381  fi
8382else
8383  if test "$GXX" = yes; then
8384    CXXFLAGS="-O2"
8385  else
8386    CXXFLAGS=
8387  fi
8388fi
8389ac_ext=c
8390ac_cpp='$CPP $CPPFLAGS'
8391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8393ac_compiler_gnu=$ac_cv_c_compiler_gnu
8394
8395depcc="$CXX"  am_compiler_list=
8396
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
8398$as_echo_n "checking dependency style of $depcc... " >&6; }
8399if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
8400  $as_echo_n "(cached) " >&6
8401else
8402  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8403  # We make a subdir and do the tests there.  Otherwise we can end up
8404  # making bogus files that we don't know about and never remove.  For
8405  # instance it was reported that on HP-UX the gcc test will end up
8406  # making a dummy file named `D' -- because `-MD' means `put the output
8407  # in D'.
8408  mkdir conftest.dir
8409  # Copy depcomp to subdir because otherwise we won't find it if we're
8410  # using a relative directory.
8411  cp "$am_depcomp" conftest.dir
8412  cd conftest.dir
8413  # We will build objects and dependencies in a subdirectory because
8414  # it helps to detect inapplicable dependency modes.  For instance
8415  # both Tru64's cc and ICC support -MD to output dependencies as a
8416  # side effect of compilation, but ICC will put the dependencies in
8417  # the current directory while Tru64 will put them in the object
8418  # directory.
8419  mkdir sub
8420
8421  am_cv_CXX_dependencies_compiler_type=none
8422  if test "$am_compiler_list" = ""; then
8423     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8424  fi
8425  am__universal=false
8426  case " $depcc " in #(
8427     *\ -arch\ *\ -arch\ *) am__universal=true ;;
8428     esac
8429
8430  for depmode in $am_compiler_list; do
8431    # Setup a source with many dependencies, because some compilers
8432    # like to wrap large dependency lists on column 80 (with \), and
8433    # we should not choose a depcomp mode which is confused by this.
8434    #
8435    # We need to recreate these files for each test, as the compiler may
8436    # overwrite some of them when testing with obscure command lines.
8437    # This happens at least with the AIX C compiler.
8438    : > sub/conftest.c
8439    for i in 1 2 3 4 5 6; do
8440      echo '#include "conftst'$i'.h"' >> sub/conftest.c
8441      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8442      # Solaris 8's {/usr,}/bin/sh.
8443      touch sub/conftst$i.h
8444    done
8445    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8446
8447    # We check with `-c' and `-o' for the sake of the "dashmstdout"
8448    # mode.  It turns out that the SunPro C++ compiler does not properly
8449    # handle `-M -o', and we need to detect this.  Also, some Intel
8450    # versions had trouble with output in subdirs
8451    am__obj=sub/conftest.${OBJEXT-o}
8452    am__minus_obj="-o $am__obj"
8453    case $depmode in
8454    gcc)
8455      # This depmode causes a compiler race in universal mode.
8456      test "$am__universal" = false || continue
8457      ;;
8458    nosideeffect)
8459      # after this tag, mechanisms are not by side-effect, so they'll
8460      # only be used when explicitly requested
8461      if test "x$enable_dependency_tracking" = xyes; then
8462	continue
8463      else
8464	break
8465      fi
8466      ;;
8467    msvisualcpp | msvcmsys)
8468      # This compiler won't grok `-c -o', but also, the minuso test has
8469      # not run yet.  These depmodes are late enough in the game, and
8470      # so weak that their functioning should not be impacted.
8471      am__obj=conftest.${OBJEXT-o}
8472      am__minus_obj=
8473      ;;
8474    none) break ;;
8475    esac
8476    if depmode=$depmode \
8477       source=sub/conftest.c object=$am__obj \
8478       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8479       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8480         >/dev/null 2>conftest.err &&
8481       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8482       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8483       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8484       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8485      # icc doesn't choke on unknown options, it will just issue warnings
8486      # or remarks (even with -Werror).  So we grep stderr for any message
8487      # that says an option was ignored or not supported.
8488      # When given -MP, icc 7.0 and 7.1 complain thusly:
8489      #   icc: Command line warning: ignoring option '-M'; no argument required
8490      # The diagnosis changed in icc 8.0:
8491      #   icc: Command line remark: option '-MP' not supported
8492      if (grep 'ignoring option' conftest.err ||
8493          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8494        am_cv_CXX_dependencies_compiler_type=$depmode
8495        break
8496      fi
8497    fi
8498  done
8499
8500  cd ..
8501  rm -rf conftest.dir
8502else
8503  am_cv_CXX_dependencies_compiler_type=none
8504fi
8505
8506fi
8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
8508$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
8509CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8510
8511 if
8512  test "x$enable_dependency_tracking" != xno \
8513  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8514  am__fastdepCXX_TRUE=
8515  am__fastdepCXX_FALSE='#'
8516else
8517  am__fastdepCXX_TRUE='#'
8518  am__fastdepCXX_FALSE=
8519fi
8520
8521
8522if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8523    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8524    (test "X$CXX" != "Xg++"))) ; then
8525  ac_ext=cpp
8526ac_cpp='$CXXCPP $CPPFLAGS'
8527ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8528ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8529ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8531$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8532if test -z "$CXXCPP"; then
8533  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
8534  $as_echo_n "(cached) " >&6
8535else
8536      # Double quotes because CXXCPP needs to be expanded
8537    for CXXCPP in "$CXX -E" "/lib/cpp"
8538    do
8539      ac_preproc_ok=false
8540for ac_cxx_preproc_warn_flag in '' yes
8541do
8542  # Use a header file that comes with gcc, so configuring glibc
8543  # with a fresh cross-compiler works.
8544  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8545  # <limits.h> exists even on freestanding compilers.
8546  # On the NeXT, cc -E runs the code through the compiler's parser,
8547  # not just through cpp. "Syntax error" is here to catch this case.
8548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549/* end confdefs.h.  */
8550#ifdef __STDC__
8551# include <limits.h>
8552#else
8553# include <assert.h>
8554#endif
8555		     Syntax error
8556_ACEOF
8557if ac_fn_cxx_try_cpp "$LINENO"; then :
8558
8559else
8560  # Broken: fails on valid input.
8561continue
8562fi
8563rm -f conftest.err conftest.$ac_ext
8564
8565  # OK, works on sane cases.  Now check whether nonexistent headers
8566  # can be detected and how.
8567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568/* end confdefs.h.  */
8569#include <ac_nonexistent.h>
8570_ACEOF
8571if ac_fn_cxx_try_cpp "$LINENO"; then :
8572  # Broken: success on invalid input.
8573continue
8574else
8575  # Passes both tests.
8576ac_preproc_ok=:
8577break
8578fi
8579rm -f conftest.err conftest.$ac_ext
8580
8581done
8582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8583rm -f conftest.err conftest.$ac_ext
8584if $ac_preproc_ok; then :
8585  break
8586fi
8587
8588    done
8589    ac_cv_prog_CXXCPP=$CXXCPP
8590
8591fi
8592  CXXCPP=$ac_cv_prog_CXXCPP
8593else
8594  ac_cv_prog_CXXCPP=$CXXCPP
8595fi
8596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8597$as_echo "$CXXCPP" >&6; }
8598ac_preproc_ok=false
8599for ac_cxx_preproc_warn_flag in '' yes
8600do
8601  # Use a header file that comes with gcc, so configuring glibc
8602  # with a fresh cross-compiler works.
8603  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8604  # <limits.h> exists even on freestanding compilers.
8605  # On the NeXT, cc -E runs the code through the compiler's parser,
8606  # not just through cpp. "Syntax error" is here to catch this case.
8607  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608/* end confdefs.h.  */
8609#ifdef __STDC__
8610# include <limits.h>
8611#else
8612# include <assert.h>
8613#endif
8614		     Syntax error
8615_ACEOF
8616if ac_fn_cxx_try_cpp "$LINENO"; then :
8617
8618else
8619  # Broken: fails on valid input.
8620continue
8621fi
8622rm -f conftest.err conftest.$ac_ext
8623
8624  # OK, works on sane cases.  Now check whether nonexistent headers
8625  # can be detected and how.
8626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627/* end confdefs.h.  */
8628#include <ac_nonexistent.h>
8629_ACEOF
8630if ac_fn_cxx_try_cpp "$LINENO"; then :
8631  # Broken: success on invalid input.
8632continue
8633else
8634  # Passes both tests.
8635ac_preproc_ok=:
8636break
8637fi
8638rm -f conftest.err conftest.$ac_ext
8639
8640done
8641# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8642rm -f conftest.err conftest.$ac_ext
8643if $ac_preproc_ok; then :
8644
8645else
8646  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8648_lt_caught_CXX_error=yes; }
8649fi
8650
8651ac_ext=c
8652ac_cpp='$CPP $CPPFLAGS'
8653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8655ac_compiler_gnu=$ac_cv_c_compiler_gnu
8656
8657else
8658  _lt_caught_CXX_error=yes
8659fi
8660
8661
8662
8663
8664
8665# Set options
8666
8667
8668
8669        enable_dlopen=no
8670
8671
8672
8673            # Check whether --enable-shared was given.
8674if test "${enable_shared+set}" = set; then :
8675  enableval=$enable_shared; p=${PACKAGE-default}
8676    case $enableval in
8677    yes) enable_shared=yes ;;
8678    no) enable_shared=no ;;
8679    *)
8680      enable_shared=no
8681      # Look at the argument we got.  We use all the common list separators.
8682      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8683      for pkg in $enableval; do
8684	IFS="$lt_save_ifs"
8685	if test "X$pkg" = "X$p"; then
8686	  enable_shared=yes
8687	fi
8688      done
8689      IFS="$lt_save_ifs"
8690      ;;
8691    esac
8692else
8693  enable_shared=yes
8694fi
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706# Check whether --with-pic was given.
8707if test "${with_pic+set}" = set; then :
8708  withval=$with_pic; pic_mode="$withval"
8709else
8710  pic_mode=default
8711fi
8712
8713
8714test -z "$pic_mode" && pic_mode=default
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726# This can be used to rebuild libtool when needed
8727LIBTOOL_DEPS="$ltmain"
8728
8729# Always use our own libtool.
8730LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756test -z "$LN_S" && LN_S="ln -s"
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771if test -n "${ZSH_VERSION+set}" ; then
8772   setopt NO_GLOB_SUBST
8773fi
8774
8775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8776$as_echo_n "checking for objdir... " >&6; }
8777if test "${lt_cv_objdir+set}" = set; then :
8778  $as_echo_n "(cached) " >&6
8779else
8780  rm -f .libs 2>/dev/null
8781mkdir .libs 2>/dev/null
8782if test -d .libs; then
8783  lt_cv_objdir=.libs
8784else
8785  # MS-DOS does not allow filenames that begin with a dot.
8786  lt_cv_objdir=_libs
8787fi
8788rmdir .libs 2>/dev/null
8789fi
8790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8791$as_echo "$lt_cv_objdir" >&6; }
8792objdir=$lt_cv_objdir
8793
8794
8795
8796
8797
8798cat >>confdefs.h <<_ACEOF
8799#define LT_OBJDIR "$lt_cv_objdir/"
8800_ACEOF
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818case $host_os in
8819aix3*)
8820  # AIX sometimes has problems with the GCC collect2 program.  For some
8821  # reason, if we set the COLLECT_NAMES environment variable, the problems
8822  # vanish in a puff of smoke.
8823  if test "X${COLLECT_NAMES+set}" != Xset; then
8824    COLLECT_NAMES=
8825    export COLLECT_NAMES
8826  fi
8827  ;;
8828esac
8829
8830# Sed substitution that helps us do robust quoting.  It backslashifies
8831# metacharacters that are still active within double-quoted strings.
8832sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8833
8834# Same as above, but do not quote variable references.
8835double_quote_subst='s/\(["`\\]\)/\\\1/g'
8836
8837# Sed substitution to delay expansion of an escaped shell variable in a
8838# double_quote_subst'ed string.
8839delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8840
8841# Sed substitution to delay expansion of an escaped single quote.
8842delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8843
8844# Sed substitution to avoid accidental globbing in evaled expressions
8845no_glob_subst='s/\*/\\\*/g'
8846
8847# Global variables:
8848ofile=libtool
8849can_build_shared=yes
8850
8851# All known linkers require a `.a' archive for static linking (except MSVC,
8852# which needs '.lib').
8853libext=a
8854
8855with_gnu_ld="$lt_cv_prog_gnu_ld"
8856
8857old_CC="$CC"
8858old_CFLAGS="$CFLAGS"
8859
8860# Set sane defaults for various variables
8861test -z "$CC" && CC=cc
8862test -z "$LTCC" && LTCC=$CC
8863test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8864test -z "$LD" && LD=ld
8865test -z "$ac_objext" && ac_objext=o
8866
8867for cc_temp in $compiler""; do
8868  case $cc_temp in
8869    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8870    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8871    \-*) ;;
8872    *) break;;
8873  esac
8874done
8875cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8876
8877
8878# Only perform the check for file, if the check method requires it
8879test -z "$MAGIC_CMD" && MAGIC_CMD=file
8880case $deplibs_check_method in
8881file_magic*)
8882  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8883    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8884$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8885if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8886  $as_echo_n "(cached) " >&6
8887else
8888  case $MAGIC_CMD in
8889[\\/*] |  ?:[\\/]*)
8890  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8891  ;;
8892*)
8893  lt_save_MAGIC_CMD="$MAGIC_CMD"
8894  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8895  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8896  for ac_dir in $ac_dummy; do
8897    IFS="$lt_save_ifs"
8898    test -z "$ac_dir" && ac_dir=.
8899    if test -f $ac_dir/${ac_tool_prefix}file; then
8900      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8901      if test -n "$file_magic_test_file"; then
8902	case $deplibs_check_method in
8903	"file_magic "*)
8904	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8905	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8906	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8907	    $EGREP "$file_magic_regex" > /dev/null; then
8908	    :
8909	  else
8910	    cat <<_LT_EOF 1>&2
8911
8912*** Warning: the command libtool uses to detect shared libraries,
8913*** $file_magic_cmd, produces output that libtool cannot recognize.
8914*** The result is that libtool may fail to recognize shared libraries
8915*** as such.  This will affect the creation of libtool libraries that
8916*** depend on shared libraries, but programs linked with such libtool
8917*** libraries will work regardless of this problem.  Nevertheless, you
8918*** may want to report the problem to your system manager and/or to
8919*** bug-libtool@gnu.org
8920
8921_LT_EOF
8922	  fi ;;
8923	esac
8924      fi
8925      break
8926    fi
8927  done
8928  IFS="$lt_save_ifs"
8929  MAGIC_CMD="$lt_save_MAGIC_CMD"
8930  ;;
8931esac
8932fi
8933
8934MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8935if test -n "$MAGIC_CMD"; then
8936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8937$as_echo "$MAGIC_CMD" >&6; }
8938else
8939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940$as_echo "no" >&6; }
8941fi
8942
8943
8944
8945
8946
8947if test -z "$lt_cv_path_MAGIC_CMD"; then
8948  if test -n "$ac_tool_prefix"; then
8949    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8950$as_echo_n "checking for file... " >&6; }
8951if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8952  $as_echo_n "(cached) " >&6
8953else
8954  case $MAGIC_CMD in
8955[\\/*] |  ?:[\\/]*)
8956  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8957  ;;
8958*)
8959  lt_save_MAGIC_CMD="$MAGIC_CMD"
8960  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8961  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8962  for ac_dir in $ac_dummy; do
8963    IFS="$lt_save_ifs"
8964    test -z "$ac_dir" && ac_dir=.
8965    if test -f $ac_dir/file; then
8966      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8967      if test -n "$file_magic_test_file"; then
8968	case $deplibs_check_method in
8969	"file_magic "*)
8970	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8971	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8972	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8973	    $EGREP "$file_magic_regex" > /dev/null; then
8974	    :
8975	  else
8976	    cat <<_LT_EOF 1>&2
8977
8978*** Warning: the command libtool uses to detect shared libraries,
8979*** $file_magic_cmd, produces output that libtool cannot recognize.
8980*** The result is that libtool may fail to recognize shared libraries
8981*** as such.  This will affect the creation of libtool libraries that
8982*** depend on shared libraries, but programs linked with such libtool
8983*** libraries will work regardless of this problem.  Nevertheless, you
8984*** may want to report the problem to your system manager and/or to
8985*** bug-libtool@gnu.org
8986
8987_LT_EOF
8988	  fi ;;
8989	esac
8990      fi
8991      break
8992    fi
8993  done
8994  IFS="$lt_save_ifs"
8995  MAGIC_CMD="$lt_save_MAGIC_CMD"
8996  ;;
8997esac
8998fi
8999
9000MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9001if test -n "$MAGIC_CMD"; then
9002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9003$as_echo "$MAGIC_CMD" >&6; }
9004else
9005  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9006$as_echo "no" >&6; }
9007fi
9008
9009
9010  else
9011    MAGIC_CMD=:
9012  fi
9013fi
9014
9015  fi
9016  ;;
9017esac
9018
9019# Use C for the default configuration in the libtool script
9020
9021lt_save_CC="$CC"
9022ac_ext=c
9023ac_cpp='$CPP $CPPFLAGS'
9024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026ac_compiler_gnu=$ac_cv_c_compiler_gnu
9027
9028
9029# Source file extension for C test sources.
9030ac_ext=c
9031
9032# Object file extension for compiled C test sources.
9033objext=o
9034objext=$objext
9035
9036# Code to be used in simple compile tests
9037lt_simple_compile_test_code="int some_variable = 0;"
9038
9039# Code to be used in simple link tests
9040lt_simple_link_test_code='int main(){return(0);}'
9041
9042
9043
9044
9045
9046
9047
9048# If no C compiler was specified, use CC.
9049LTCC=${LTCC-"$CC"}
9050
9051# If no C compiler flags were specified, use CFLAGS.
9052LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9053
9054# Allow CC to be a program name with arguments.
9055compiler=$CC
9056
9057# Save the default compiler, since it gets overwritten when the other
9058# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9059compiler_DEFAULT=$CC
9060
9061# save warnings/boilerplate of simple test code
9062ac_outfile=conftest.$ac_objext
9063echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9064eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9065_lt_compiler_boilerplate=`cat conftest.err`
9066$RM conftest*
9067
9068ac_outfile=conftest.$ac_objext
9069echo "$lt_simple_link_test_code" >conftest.$ac_ext
9070eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9071_lt_linker_boilerplate=`cat conftest.err`
9072$RM -r conftest*
9073
9074
9075## CAVEAT EMPTOR:
9076## There is no encapsulation within the following macros, do not change
9077## the running order or otherwise move them around unless you know exactly
9078## what you are doing...
9079if test -n "$compiler"; then
9080
9081lt_prog_compiler_no_builtin_flag=
9082
9083if test "$GCC" = yes; then
9084  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9085
9086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9087$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9088if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9089  $as_echo_n "(cached) " >&6
9090else
9091  lt_cv_prog_compiler_rtti_exceptions=no
9092   ac_outfile=conftest.$ac_objext
9093   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9094   lt_compiler_flag="-fno-rtti -fno-exceptions"
9095   # Insert the option either (1) after the last *FLAGS variable, or
9096   # (2) before a word containing "conftest.", or (3) at the end.
9097   # Note that $ac_compile itself does not contain backslashes and begins
9098   # with a dollar sign (not a hyphen), so the echo should work correctly.
9099   # The option is referenced via a variable to avoid confusing sed.
9100   lt_compile=`echo "$ac_compile" | $SED \
9101   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9102   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9103   -e 's:$: $lt_compiler_flag:'`
9104   (eval echo "\"\$as_me:9104: $lt_compile\"" >&5)
9105   (eval "$lt_compile" 2>conftest.err)
9106   ac_status=$?
9107   cat conftest.err >&5
9108   echo "$as_me:9108: \$? = $ac_status" >&5
9109   if (exit $ac_status) && test -s "$ac_outfile"; then
9110     # The compiler can only warn and ignore the option if not recognized
9111     # So say no if there are warnings other than the usual output.
9112     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9113     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9114     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9115       lt_cv_prog_compiler_rtti_exceptions=yes
9116     fi
9117   fi
9118   $RM conftest*
9119
9120fi
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9122$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9123
9124if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9125    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9126else
9127    :
9128fi
9129
9130fi
9131
9132
9133
9134
9135
9136
9137  lt_prog_compiler_wl=
9138lt_prog_compiler_pic=
9139lt_prog_compiler_static=
9140
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9142$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9143
9144  if test "$GCC" = yes; then
9145    lt_prog_compiler_wl='-Wl,'
9146    lt_prog_compiler_static='-static'
9147
9148    case $host_os in
9149      aix*)
9150      # All AIX code is PIC.
9151      if test "$host_cpu" = ia64; then
9152	# AIX 5 now supports IA64 processor
9153	lt_prog_compiler_static='-Bstatic'
9154      fi
9155      ;;
9156
9157    amigaos*)
9158      case $host_cpu in
9159      powerpc)
9160            # see comment about AmigaOS4 .so support
9161            lt_prog_compiler_pic='-fPIC'
9162        ;;
9163      m68k)
9164            # FIXME: we need at least 68020 code to build shared libraries, but
9165            # adding the `-m68020' flag to GCC prevents building anything better,
9166            # like `-m68040'.
9167            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9168        ;;
9169      esac
9170      ;;
9171
9172    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9173      # PIC is the default for these OSes.
9174      ;;
9175
9176    mingw* | cygwin* | pw32* | os2* | cegcc*)
9177      # This hack is so that the source file can tell whether it is being
9178      # built for inclusion in a dll (and should export symbols for example).
9179      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9180      # (--disable-auto-import) libraries
9181      lt_prog_compiler_pic='-DDLL_EXPORT'
9182      ;;
9183
9184    darwin* | rhapsody*)
9185      # PIC is the default on this platform
9186      # Common symbols not allowed in MH_DYLIB files
9187      lt_prog_compiler_pic='-fno-common'
9188      ;;
9189
9190    hpux*)
9191      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9192      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9193      # sets the default TLS model and affects inlining.
9194      case $host_cpu in
9195      hppa*64*)
9196	# +Z the default
9197	;;
9198      *)
9199	lt_prog_compiler_pic='-fPIC'
9200	;;
9201      esac
9202      ;;
9203
9204    interix[3-9]*)
9205      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9206      # Instead, we relocate shared libraries at runtime.
9207      ;;
9208
9209    msdosdjgpp*)
9210      # Just because we use GCC doesn't mean we suddenly get shared libraries
9211      # on systems that don't support them.
9212      lt_prog_compiler_can_build_shared=no
9213      enable_shared=no
9214      ;;
9215
9216    *nto* | *qnx*)
9217      # QNX uses GNU C++, but need to define -shared option too, otherwise
9218      # it will coredump.
9219      lt_prog_compiler_pic='-fPIC -shared'
9220      ;;
9221
9222    sysv4*MP*)
9223      if test -d /usr/nec; then
9224	lt_prog_compiler_pic=-Kconform_pic
9225      fi
9226      ;;
9227
9228    *)
9229      lt_prog_compiler_pic='-fPIC'
9230      ;;
9231    esac
9232  else
9233    # PORTME Check for flag to pass linker flags through the system compiler.
9234    case $host_os in
9235    aix*)
9236      lt_prog_compiler_wl='-Wl,'
9237      if test "$host_cpu" = ia64; then
9238	# AIX 5 now supports IA64 processor
9239	lt_prog_compiler_static='-Bstatic'
9240      else
9241	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9242      fi
9243      ;;
9244
9245    mingw* | cygwin* | pw32* | os2* | cegcc*)
9246      # This hack is so that the source file can tell whether it is being
9247      # built for inclusion in a dll (and should export symbols for example).
9248      lt_prog_compiler_pic='-DDLL_EXPORT'
9249      ;;
9250
9251    hpux9* | hpux10* | hpux11*)
9252      lt_prog_compiler_wl='-Wl,'
9253      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9254      # not for PA HP-UX.
9255      case $host_cpu in
9256      hppa*64*|ia64*)
9257	# +Z the default
9258	;;
9259      *)
9260	lt_prog_compiler_pic='+Z'
9261	;;
9262      esac
9263      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9264      lt_prog_compiler_static='${wl}-a ${wl}archive'
9265      ;;
9266
9267    irix5* | irix6* | nonstopux*)
9268      lt_prog_compiler_wl='-Wl,'
9269      # PIC (with -KPIC) is the default.
9270      lt_prog_compiler_static='-non_shared'
9271      ;;
9272
9273    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9274      case $cc_basename in
9275      # old Intel for x86_64 which still supported -KPIC.
9276      ecc*)
9277	lt_prog_compiler_wl='-Wl,'
9278	lt_prog_compiler_pic='-KPIC'
9279	lt_prog_compiler_static='-static'
9280        ;;
9281      # icc used to be incompatible with GCC.
9282      # ICC 10 doesn't accept -KPIC any more.
9283      icc* | ifort*)
9284	lt_prog_compiler_wl='-Wl,'
9285	lt_prog_compiler_pic='-fPIC'
9286	lt_prog_compiler_static='-static'
9287        ;;
9288      # Lahey Fortran 8.1.
9289      lf95*)
9290	lt_prog_compiler_wl='-Wl,'
9291	lt_prog_compiler_pic='--shared'
9292	lt_prog_compiler_static='--static'
9293	;;
9294      pgcc* | pgf77* | pgf90* | pgf95*)
9295        # Portland Group compilers (*not* the Pentium gcc compiler,
9296	# which looks to be a dead project)
9297	lt_prog_compiler_wl='-Wl,'
9298	lt_prog_compiler_pic='-fpic'
9299	lt_prog_compiler_static='-Bstatic'
9300        ;;
9301      ccc*)
9302        lt_prog_compiler_wl='-Wl,'
9303        # All Alpha code is PIC.
9304        lt_prog_compiler_static='-non_shared'
9305        ;;
9306      xl*)
9307	# IBM XL C 8.0/Fortran 10.1 on PPC
9308	lt_prog_compiler_wl='-Wl,'
9309	lt_prog_compiler_pic='-qpic'
9310	lt_prog_compiler_static='-qstaticlink'
9311	;;
9312      *)
9313	case `$CC -V 2>&1 | sed 5q` in
9314	*Sun\ C*)
9315	  # Sun C 5.9
9316	  lt_prog_compiler_pic='-KPIC'
9317	  lt_prog_compiler_static='-Bstatic'
9318	  lt_prog_compiler_wl='-Wl,'
9319	  ;;
9320	*Sun\ F*)
9321	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9322	  lt_prog_compiler_pic='-KPIC'
9323	  lt_prog_compiler_static='-Bstatic'
9324	  lt_prog_compiler_wl=''
9325	  ;;
9326	esac
9327	;;
9328      esac
9329      ;;
9330
9331    newsos6)
9332      lt_prog_compiler_pic='-KPIC'
9333      lt_prog_compiler_static='-Bstatic'
9334      ;;
9335
9336    *nto* | *qnx*)
9337      # QNX uses GNU C++, but need to define -shared option too, otherwise
9338      # it will coredump.
9339      lt_prog_compiler_pic='-fPIC -shared'
9340      ;;
9341
9342    osf3* | osf4* | osf5*)
9343      lt_prog_compiler_wl='-Wl,'
9344      # All OSF/1 code is PIC.
9345      lt_prog_compiler_static='-non_shared'
9346      ;;
9347
9348    rdos*)
9349      lt_prog_compiler_static='-non_shared'
9350      ;;
9351
9352    solaris*)
9353      lt_prog_compiler_pic='-KPIC'
9354      lt_prog_compiler_static='-Bstatic'
9355      case $cc_basename in
9356      f77* | f90* | f95*)
9357	lt_prog_compiler_wl='-Qoption ld ';;
9358      *)
9359	lt_prog_compiler_wl='-Wl,';;
9360      esac
9361      ;;
9362
9363    sunos4*)
9364      lt_prog_compiler_wl='-Qoption ld '
9365      lt_prog_compiler_pic='-PIC'
9366      lt_prog_compiler_static='-Bstatic'
9367      ;;
9368
9369    sysv4 | sysv4.2uw2* | sysv4.3*)
9370      lt_prog_compiler_wl='-Wl,'
9371      lt_prog_compiler_pic='-KPIC'
9372      lt_prog_compiler_static='-Bstatic'
9373      ;;
9374
9375    sysv4*MP*)
9376      if test -d /usr/nec ;then
9377	lt_prog_compiler_pic='-Kconform_pic'
9378	lt_prog_compiler_static='-Bstatic'
9379      fi
9380      ;;
9381
9382    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9383      lt_prog_compiler_wl='-Wl,'
9384      lt_prog_compiler_pic='-KPIC'
9385      lt_prog_compiler_static='-Bstatic'
9386      ;;
9387
9388    unicos*)
9389      lt_prog_compiler_wl='-Wl,'
9390      lt_prog_compiler_can_build_shared=no
9391      ;;
9392
9393    uts4*)
9394      lt_prog_compiler_pic='-pic'
9395      lt_prog_compiler_static='-Bstatic'
9396      ;;
9397
9398    *)
9399      lt_prog_compiler_can_build_shared=no
9400      ;;
9401    esac
9402  fi
9403
9404case $host_os in
9405  # For platforms which do not support PIC, -DPIC is meaningless:
9406  *djgpp*)
9407    lt_prog_compiler_pic=
9408    ;;
9409  *)
9410    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9411    ;;
9412esac
9413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9414$as_echo "$lt_prog_compiler_pic" >&6; }
9415
9416
9417
9418
9419
9420
9421#
9422# Check to make sure the PIC flag actually works.
9423#
9424if test -n "$lt_prog_compiler_pic"; then
9425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9426$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9427if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9428  $as_echo_n "(cached) " >&6
9429else
9430  lt_cv_prog_compiler_pic_works=no
9431   ac_outfile=conftest.$ac_objext
9432   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9433   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9434   # Insert the option either (1) after the last *FLAGS variable, or
9435   # (2) before a word containing "conftest.", or (3) at the end.
9436   # Note that $ac_compile itself does not contain backslashes and begins
9437   # with a dollar sign (not a hyphen), so the echo should work correctly.
9438   # The option is referenced via a variable to avoid confusing sed.
9439   lt_compile=`echo "$ac_compile" | $SED \
9440   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9441   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9442   -e 's:$: $lt_compiler_flag:'`
9443   (eval echo "\"\$as_me:9443: $lt_compile\"" >&5)
9444   (eval "$lt_compile" 2>conftest.err)
9445   ac_status=$?
9446   cat conftest.err >&5
9447   echo "$as_me:9447: \$? = $ac_status" >&5
9448   if (exit $ac_status) && test -s "$ac_outfile"; then
9449     # The compiler can only warn and ignore the option if not recognized
9450     # So say no if there are warnings other than the usual output.
9451     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9452     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9453     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9454       lt_cv_prog_compiler_pic_works=yes
9455     fi
9456   fi
9457   $RM conftest*
9458
9459fi
9460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9461$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9462
9463if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9464    case $lt_prog_compiler_pic in
9465     "" | " "*) ;;
9466     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9467     esac
9468else
9469    lt_prog_compiler_pic=
9470     lt_prog_compiler_can_build_shared=no
9471fi
9472
9473fi
9474
9475
9476
9477
9478
9479
9480#
9481# Check to make sure the static flag actually works.
9482#
9483wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9485$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9486if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9487  $as_echo_n "(cached) " >&6
9488else
9489  lt_cv_prog_compiler_static_works=no
9490   save_LDFLAGS="$LDFLAGS"
9491   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9492   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9493   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9494     # The linker can only warn and ignore the option if not recognized
9495     # So say no if there are warnings
9496     if test -s conftest.err; then
9497       # Append any errors to the config.log.
9498       cat conftest.err 1>&5
9499       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9500       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9501       if diff conftest.exp conftest.er2 >/dev/null; then
9502         lt_cv_prog_compiler_static_works=yes
9503       fi
9504     else
9505       lt_cv_prog_compiler_static_works=yes
9506     fi
9507   fi
9508   $RM -r conftest*
9509   LDFLAGS="$save_LDFLAGS"
9510
9511fi
9512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9513$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9514
9515if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9516    :
9517else
9518    lt_prog_compiler_static=
9519fi
9520
9521
9522
9523
9524
9525
9526
9527  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9528$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9529if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9530  $as_echo_n "(cached) " >&6
9531else
9532  lt_cv_prog_compiler_c_o=no
9533   $RM -r conftest 2>/dev/null
9534   mkdir conftest
9535   cd conftest
9536   mkdir out
9537   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9538
9539   lt_compiler_flag="-o out/conftest2.$ac_objext"
9540   # Insert the option either (1) after the last *FLAGS variable, or
9541   # (2) before a word containing "conftest.", or (3) at the end.
9542   # Note that $ac_compile itself does not contain backslashes and begins
9543   # with a dollar sign (not a hyphen), so the echo should work correctly.
9544   lt_compile=`echo "$ac_compile" | $SED \
9545   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9546   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9547   -e 's:$: $lt_compiler_flag:'`
9548   (eval echo "\"\$as_me:9548: $lt_compile\"" >&5)
9549   (eval "$lt_compile" 2>out/conftest.err)
9550   ac_status=$?
9551   cat out/conftest.err >&5
9552   echo "$as_me:9552: \$? = $ac_status" >&5
9553   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9554   then
9555     # The compiler can only warn and ignore the option if not recognized
9556     # So say no if there are warnings
9557     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9558     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9559     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9560       lt_cv_prog_compiler_c_o=yes
9561     fi
9562   fi
9563   chmod u+w . 2>&5
9564   $RM conftest*
9565   # SGI C++ compiler will create directory out/ii_files/ for
9566   # template instantiation
9567   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9568   $RM out/* && rmdir out
9569   cd ..
9570   $RM -r conftest
9571   $RM conftest*
9572
9573fi
9574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9575$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9576
9577
9578
9579
9580
9581
9582  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9583$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9584if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9585  $as_echo_n "(cached) " >&6
9586else
9587  lt_cv_prog_compiler_c_o=no
9588   $RM -r conftest 2>/dev/null
9589   mkdir conftest
9590   cd conftest
9591   mkdir out
9592   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9593
9594   lt_compiler_flag="-o out/conftest2.$ac_objext"
9595   # Insert the option either (1) after the last *FLAGS variable, or
9596   # (2) before a word containing "conftest.", or (3) at the end.
9597   # Note that $ac_compile itself does not contain backslashes and begins
9598   # with a dollar sign (not a hyphen), so the echo should work correctly.
9599   lt_compile=`echo "$ac_compile" | $SED \
9600   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9601   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9602   -e 's:$: $lt_compiler_flag:'`
9603   (eval echo "\"\$as_me:9603: $lt_compile\"" >&5)
9604   (eval "$lt_compile" 2>out/conftest.err)
9605   ac_status=$?
9606   cat out/conftest.err >&5
9607   echo "$as_me:9607: \$? = $ac_status" >&5
9608   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9609   then
9610     # The compiler can only warn and ignore the option if not recognized
9611     # So say no if there are warnings
9612     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9613     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9614     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9615       lt_cv_prog_compiler_c_o=yes
9616     fi
9617   fi
9618   chmod u+w . 2>&5
9619   $RM conftest*
9620   # SGI C++ compiler will create directory out/ii_files/ for
9621   # template instantiation
9622   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9623   $RM out/* && rmdir out
9624   cd ..
9625   $RM -r conftest
9626   $RM conftest*
9627
9628fi
9629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9630$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9631
9632
9633
9634
9635hard_links="nottested"
9636if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9637  # do not overwrite the value of need_locks provided by the user
9638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9639$as_echo_n "checking if we can lock with hard links... " >&6; }
9640  hard_links=yes
9641  $RM conftest*
9642  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9643  touch conftest.a
9644  ln conftest.a conftest.b 2>&5 || hard_links=no
9645  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9647$as_echo "$hard_links" >&6; }
9648  if test "$hard_links" = no; then
9649    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9650$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9651    need_locks=warn
9652  fi
9653else
9654  need_locks=no
9655fi
9656
9657
9658
9659
9660
9661
9662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9663$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9664
9665  runpath_var=
9666  allow_undefined_flag=
9667  always_export_symbols=no
9668  archive_cmds=
9669  archive_expsym_cmds=
9670  compiler_needs_object=no
9671  enable_shared_with_static_runtimes=no
9672  export_dynamic_flag_spec=
9673  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9674  hardcode_automatic=no
9675  hardcode_direct=no
9676  hardcode_direct_absolute=no
9677  hardcode_libdir_flag_spec=
9678  hardcode_libdir_flag_spec_ld=
9679  hardcode_libdir_separator=
9680  hardcode_minus_L=no
9681  hardcode_shlibpath_var=unsupported
9682  inherit_rpath=no
9683  link_all_deplibs=unknown
9684  module_cmds=
9685  module_expsym_cmds=
9686  old_archive_from_new_cmds=
9687  old_archive_from_expsyms_cmds=
9688  thread_safe_flag_spec=
9689  whole_archive_flag_spec=
9690  # include_expsyms should be a list of space-separated symbols to be *always*
9691  # included in the symbol list
9692  include_expsyms=
9693  # exclude_expsyms can be an extended regexp of symbols to exclude
9694  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9695  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9696  # as well as any symbol that contains `d'.
9697  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9698  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9699  # platforms (ab)use it in PIC code, but their linkers get confused if
9700  # the symbol is explicitly referenced.  Since portable code cannot
9701  # rely on this symbol name, it's probably fine to never include it in
9702  # preloaded symbol tables.
9703  # Exclude shared library initialization/finalization symbols.
9704  extract_expsyms_cmds=
9705
9706  case $host_os in
9707  cygwin* | mingw* | pw32* | cegcc*)
9708    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9709    # When not using gcc, we currently assume that we are using
9710    # Microsoft Visual C++.
9711    if test "$GCC" != yes; then
9712      with_gnu_ld=no
9713    fi
9714    ;;
9715  interix*)
9716    # we just hope/assume this is gcc and not c89 (= MSVC++)
9717    with_gnu_ld=yes
9718    ;;
9719  openbsd*)
9720    with_gnu_ld=no
9721    ;;
9722  linux* | k*bsd*-gnu)
9723    link_all_deplibs=no
9724    ;;
9725  esac
9726
9727  ld_shlibs=yes
9728  if test "$with_gnu_ld" = yes; then
9729    # If archive_cmds runs LD, not CC, wlarc should be empty
9730    wlarc='${wl}'
9731
9732    # Set some defaults for GNU ld with shared library support. These
9733    # are reset later if shared libraries are not supported. Putting them
9734    # here allows them to be overridden if necessary.
9735    runpath_var=LD_RUN_PATH
9736    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9737    export_dynamic_flag_spec='${wl}--export-dynamic'
9738    # ancient GNU ld didn't support --whole-archive et. al.
9739    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9740      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9741    else
9742      whole_archive_flag_spec=
9743    fi
9744    supports_anon_versioning=no
9745    case `$LD -v 2>&1` in
9746      *GNU\ gold*) supports_anon_versioning=yes ;;
9747      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9748      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9749      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9750      *\ 2.11.*) ;; # other 2.11 versions
9751      *) supports_anon_versioning=yes ;;
9752    esac
9753
9754    # See if GNU ld supports shared libraries.
9755    case $host_os in
9756    aix[3-9]*)
9757      # On AIX/PPC, the GNU linker is very broken
9758      if test "$host_cpu" != ia64; then
9759	ld_shlibs=no
9760	cat <<_LT_EOF 1>&2
9761
9762*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9763*** to be unable to reliably create shared libraries on AIX.
9764*** Therefore, libtool is disabling shared libraries support.  If you
9765*** really care for shared libraries, you may want to modify your PATH
9766*** so that a non-GNU linker is found, and then restart.
9767
9768_LT_EOF
9769      fi
9770      ;;
9771
9772    amigaos*)
9773      case $host_cpu in
9774      powerpc)
9775            # see comment about AmigaOS4 .so support
9776            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777            archive_expsym_cmds=''
9778        ;;
9779      m68k)
9780            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)'
9781            hardcode_libdir_flag_spec='-L$libdir'
9782            hardcode_minus_L=yes
9783        ;;
9784      esac
9785      ;;
9786
9787    beos*)
9788      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9789	allow_undefined_flag=unsupported
9790	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9791	# support --undefined.  This deserves some investigation.  FIXME
9792	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9793      else
9794	ld_shlibs=no
9795      fi
9796      ;;
9797
9798    cygwin* | mingw* | pw32* | cegcc*)
9799      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9800      # as there is no search path for DLLs.
9801      hardcode_libdir_flag_spec='-L$libdir'
9802      allow_undefined_flag=unsupported
9803      always_export_symbols=no
9804      enable_shared_with_static_runtimes=yes
9805      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9806
9807      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9808        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9809	# If the export-symbols file already is a .def file (1st line
9810	# is EXPORTS), use it as is; otherwise, prepend...
9811	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9812	  cp $export_symbols $output_objdir/$soname.def;
9813	else
9814	  echo EXPORTS > $output_objdir/$soname.def;
9815	  cat $export_symbols >> $output_objdir/$soname.def;
9816	fi~
9817	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9818      else
9819	ld_shlibs=no
9820      fi
9821      ;;
9822
9823    interix[3-9]*)
9824      hardcode_direct=no
9825      hardcode_shlibpath_var=no
9826      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9827      export_dynamic_flag_spec='${wl}-E'
9828      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9829      # Instead, shared libraries are loaded at an image base (0x10000000 by
9830      # default) and relocated if they conflict, which is a slow very memory
9831      # consuming and fragmenting process.  To avoid this, we pick a random,
9832      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9833      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9834      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9835      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'
9836      ;;
9837
9838    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9839      tmp_diet=no
9840      if test "$host_os" = linux-dietlibc; then
9841	case $cc_basename in
9842	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9843	esac
9844      fi
9845      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9846	 && test "$tmp_diet" = no
9847      then
9848	tmp_addflag=
9849	tmp_sharedflag='-shared'
9850	case $cc_basename,$host_cpu in
9851        pgcc*)				# Portland Group C compiler
9852	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9853	  tmp_addflag=' $pic_flag'
9854	  ;;
9855	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
9856	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9857	  tmp_addflag=' $pic_flag -Mnomain' ;;
9858	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9859	  tmp_addflag=' -i_dynamic' ;;
9860	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9861	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9862	ifc* | ifort*)			# Intel Fortran compiler
9863	  tmp_addflag=' -nofor_main' ;;
9864	lf95*)				# Lahey Fortran 8.1
9865	  whole_archive_flag_spec=
9866	  tmp_sharedflag='--shared' ;;
9867	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
9868	  tmp_sharedflag='-qmkshrobj'
9869	  tmp_addflag= ;;
9870	esac
9871	case `$CC -V 2>&1 | sed 5q` in
9872	*Sun\ C*)			# Sun C 5.9
9873	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9874	  compiler_needs_object=yes
9875	  tmp_sharedflag='-G' ;;
9876	*Sun\ F*)			# Sun Fortran 8.3
9877	  tmp_sharedflag='-G' ;;
9878	esac
9879	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9880
9881        if test "x$supports_anon_versioning" = xyes; then
9882          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9883	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9884	    echo "local: *; };" >> $output_objdir/$libname.ver~
9885	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9886        fi
9887
9888	case $cc_basename in
9889	xlf*)
9890	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9891	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9892	  hardcode_libdir_flag_spec=
9893	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9894	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9895	  if test "x$supports_anon_versioning" = xyes; then
9896	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9897	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9898	      echo "local: *; };" >> $output_objdir/$libname.ver~
9899	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9900	  fi
9901	  ;;
9902	esac
9903      else
9904        ld_shlibs=no
9905      fi
9906      ;;
9907
9908    netbsd* | netbsdelf*-gnu)
9909      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9910	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9911	wlarc=
9912      else
9913	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9914	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9915      fi
9916      ;;
9917
9918    solaris*)
9919      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9920	ld_shlibs=no
9921	cat <<_LT_EOF 1>&2
9922
9923*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9924*** create shared libraries on Solaris systems.  Therefore, libtool
9925*** is disabling shared libraries support.  We urge you to upgrade GNU
9926*** binutils to release 2.9.1 or newer.  Another option is to modify
9927*** your PATH or compiler configuration so that the native linker is
9928*** used, and then restart.
9929
9930_LT_EOF
9931      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9932	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9933	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9934      else
9935	ld_shlibs=no
9936      fi
9937      ;;
9938
9939    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9940      case `$LD -v 2>&1` in
9941        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9942	ld_shlibs=no
9943	cat <<_LT_EOF 1>&2
9944
9945*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9946*** reliably create shared libraries on SCO systems.  Therefore, libtool
9947*** is disabling shared libraries support.  We urge you to upgrade GNU
9948*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9949*** your PATH or compiler configuration so that the native linker is
9950*** used, and then restart.
9951
9952_LT_EOF
9953	;;
9954	*)
9955	  # For security reasons, it is highly recommended that you always
9956	  # use absolute paths for naming shared libraries, and exclude the
9957	  # DT_RUNPATH tag from executables and libraries.  But doing so
9958	  # requires that you compile everything twice, which is a pain.
9959	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9960	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9961	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9962	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9963	  else
9964	    ld_shlibs=no
9965	  fi
9966	;;
9967      esac
9968      ;;
9969
9970    sunos4*)
9971      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9972      wlarc=
9973      hardcode_direct=yes
9974      hardcode_shlibpath_var=no
9975      ;;
9976
9977    *)
9978      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9979	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9980	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9981      else
9982	ld_shlibs=no
9983      fi
9984      ;;
9985    esac
9986
9987    if test "$ld_shlibs" = no; then
9988      runpath_var=
9989      hardcode_libdir_flag_spec=
9990      export_dynamic_flag_spec=
9991      whole_archive_flag_spec=
9992    fi
9993  else
9994    # PORTME fill in a description of your system's linker (not GNU ld)
9995    case $host_os in
9996    aix3*)
9997      allow_undefined_flag=unsupported
9998      always_export_symbols=yes
9999      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'
10000      # Note: this linker hardcodes the directories in LIBPATH if there
10001      # are no directories specified by -L.
10002      hardcode_minus_L=yes
10003      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10004	# Neither direct hardcoding nor static linking is supported with a
10005	# broken collect2.
10006	hardcode_direct=unsupported
10007      fi
10008      ;;
10009
10010    aix[4-9]*)
10011      if test "$host_cpu" = ia64; then
10012	# On IA64, the linker does run time linking by default, so we don't
10013	# have to do anything special.
10014	aix_use_runtimelinking=no
10015	exp_sym_flag='-Bexport'
10016	no_entry_flag=""
10017      else
10018	# If we're using GNU nm, then we don't want the "-C" option.
10019	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10020	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10021	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10022	else
10023	  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'
10024	fi
10025	aix_use_runtimelinking=no
10026
10027	# Test if we are trying to use run time linking or normal
10028	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10029	# need to do runtime linking.
10030	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10031	  for ld_flag in $LDFLAGS; do
10032	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10033	    aix_use_runtimelinking=yes
10034	    break
10035	  fi
10036	  done
10037	  ;;
10038	esac
10039
10040	exp_sym_flag='-bexport'
10041	no_entry_flag='-bnoentry'
10042      fi
10043
10044      # When large executables or shared objects are built, AIX ld can
10045      # have problems creating the table of contents.  If linking a library
10046      # or program results in "error TOC overflow" add -mminimal-toc to
10047      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10048      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10049
10050      archive_cmds=''
10051      hardcode_direct=yes
10052      hardcode_direct_absolute=yes
10053      hardcode_libdir_separator=':'
10054      link_all_deplibs=yes
10055      file_list_spec='${wl}-f,'
10056
10057      if test "$GCC" = yes; then
10058	case $host_os in aix4.[012]|aix4.[012].*)
10059	# We only want to do this on AIX 4.2 and lower, the check
10060	# below for broken collect2 doesn't work under 4.3+
10061	  collect2name=`${CC} -print-prog-name=collect2`
10062	  if test -f "$collect2name" &&
10063	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10064	  then
10065	  # We have reworked collect2
10066	  :
10067	  else
10068	  # We have old collect2
10069	  hardcode_direct=unsupported
10070	  # It fails to find uninstalled libraries when the uninstalled
10071	  # path is not listed in the libpath.  Setting hardcode_minus_L
10072	  # to unsupported forces relinking
10073	  hardcode_minus_L=yes
10074	  hardcode_libdir_flag_spec='-L$libdir'
10075	  hardcode_libdir_separator=
10076	  fi
10077	  ;;
10078	esac
10079	shared_flag='-shared'
10080	if test "$aix_use_runtimelinking" = yes; then
10081	  shared_flag="$shared_flag "'${wl}-G'
10082	fi
10083	link_all_deplibs=no
10084      else
10085	# not using gcc
10086	if test "$host_cpu" = ia64; then
10087	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10088	# chokes on -Wl,-G. The following line is correct:
10089	  shared_flag='-G'
10090	else
10091	  if test "$aix_use_runtimelinking" = yes; then
10092	    shared_flag='${wl}-G'
10093	  else
10094	    shared_flag='${wl}-bM:SRE'
10095	  fi
10096	fi
10097      fi
10098
10099      export_dynamic_flag_spec='${wl}-bexpall'
10100      # It seems that -bexpall does not export symbols beginning with
10101      # underscore (_), so it is better to generate a list of symbols to export.
10102      always_export_symbols=yes
10103      if test "$aix_use_runtimelinking" = yes; then
10104	# Warning - without using the other runtime loading flags (-brtl),
10105	# -berok will link without error, but may produce a broken library.
10106	allow_undefined_flag='-berok'
10107        # Determine the default libpath from the value encoded in an
10108        # empty executable.
10109        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10110/* end confdefs.h.  */
10111
10112int
10113main ()
10114{
10115
10116  ;
10117  return 0;
10118}
10119_ACEOF
10120if ac_fn_c_try_link "$LINENO"; then :
10121
10122lt_aix_libpath_sed='
10123    /Import File Strings/,/^$/ {
10124	/^0/ {
10125	    s/^0  *\(.*\)$/\1/
10126	    p
10127	}
10128    }'
10129aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10130# Check for a 64-bit object if we didn't find anything.
10131if test -z "$aix_libpath"; then
10132  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10133fi
10134fi
10135rm -f core conftest.err conftest.$ac_objext \
10136    conftest$ac_exeext conftest.$ac_ext
10137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10138
10139        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10140        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10141      else
10142	if test "$host_cpu" = ia64; then
10143	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10144	  allow_undefined_flag="-z nodefs"
10145	  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"
10146	else
10147	 # Determine the default libpath from the value encoded in an
10148	 # empty executable.
10149	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150/* end confdefs.h.  */
10151
10152int
10153main ()
10154{
10155
10156  ;
10157  return 0;
10158}
10159_ACEOF
10160if ac_fn_c_try_link "$LINENO"; then :
10161
10162lt_aix_libpath_sed='
10163    /Import File Strings/,/^$/ {
10164	/^0/ {
10165	    s/^0  *\(.*\)$/\1/
10166	    p
10167	}
10168    }'
10169aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10170# Check for a 64-bit object if we didn't find anything.
10171if test -z "$aix_libpath"; then
10172  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10173fi
10174fi
10175rm -f core conftest.err conftest.$ac_objext \
10176    conftest$ac_exeext conftest.$ac_ext
10177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10178
10179	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10180	  # Warning - without using the other run time loading flags,
10181	  # -berok will link without error, but may produce a broken library.
10182	  no_undefined_flag=' ${wl}-bernotok'
10183	  allow_undefined_flag=' ${wl}-berok'
10184	  # Exported symbols can be pulled into shared objects from archives
10185	  whole_archive_flag_spec='$convenience'
10186	  archive_cmds_need_lc=yes
10187	  # This is similar to how AIX traditionally builds its shared libraries.
10188	  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'
10189	fi
10190      fi
10191      ;;
10192
10193    amigaos*)
10194      case $host_cpu in
10195      powerpc)
10196            # see comment about AmigaOS4 .so support
10197            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10198            archive_expsym_cmds=''
10199        ;;
10200      m68k)
10201            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)'
10202            hardcode_libdir_flag_spec='-L$libdir'
10203            hardcode_minus_L=yes
10204        ;;
10205      esac
10206      ;;
10207
10208    bsdi[45]*)
10209      export_dynamic_flag_spec=-rdynamic
10210      ;;
10211
10212    cygwin* | mingw* | pw32* | cegcc*)
10213      # When not using gcc, we currently assume that we are using
10214      # Microsoft Visual C++.
10215      # hardcode_libdir_flag_spec is actually meaningless, as there is
10216      # no search path for DLLs.
10217      hardcode_libdir_flag_spec=' '
10218      allow_undefined_flag=unsupported
10219      # Tell ltmain to make .lib files, not .a files.
10220      libext=lib
10221      # Tell ltmain to make .dll files, not .so files.
10222      shrext_cmds=".dll"
10223      # FIXME: Setting linknames here is a bad hack.
10224      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10225      # The linker will automatically build a .lib file if we build a DLL.
10226      old_archive_from_new_cmds='true'
10227      # FIXME: Should let the user specify the lib program.
10228      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10229      fix_srcfile_path='`cygpath -w "$srcfile"`'
10230      enable_shared_with_static_runtimes=yes
10231      ;;
10232
10233    darwin* | rhapsody*)
10234
10235
10236  archive_cmds_need_lc=no
10237  hardcode_direct=no
10238  hardcode_automatic=yes
10239  hardcode_shlibpath_var=unsupported
10240  whole_archive_flag_spec=''
10241  link_all_deplibs=yes
10242  allow_undefined_flag="$_lt_dar_allow_undefined"
10243  case $cc_basename in
10244     ifort*) _lt_dar_can_shared=yes ;;
10245     *) _lt_dar_can_shared=$GCC ;;
10246  esac
10247  if test "$_lt_dar_can_shared" = "yes"; then
10248    output_verbose_link_cmd=echo
10249    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10250    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10251    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}"
10252    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}"
10253
10254  else
10255  ld_shlibs=no
10256  fi
10257
10258      ;;
10259
10260    dgux*)
10261      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10262      hardcode_libdir_flag_spec='-L$libdir'
10263      hardcode_shlibpath_var=no
10264      ;;
10265
10266    freebsd1*)
10267      ld_shlibs=no
10268      ;;
10269
10270    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10271    # support.  Future versions do this automatically, but an explicit c++rt0.o
10272    # does not break anything, and helps significantly (at the cost of a little
10273    # extra space).
10274    freebsd2.2*)
10275      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10276      hardcode_libdir_flag_spec='-R$libdir'
10277      hardcode_direct=yes
10278      hardcode_shlibpath_var=no
10279      ;;
10280
10281    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10282    freebsd2*)
10283      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10284      hardcode_direct=yes
10285      hardcode_minus_L=yes
10286      hardcode_shlibpath_var=no
10287      ;;
10288
10289    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10290    freebsd* | dragonfly*)
10291      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10292      hardcode_libdir_flag_spec='-R$libdir'
10293      hardcode_direct=yes
10294      hardcode_shlibpath_var=no
10295      ;;
10296
10297    hpux9*)
10298      if test "$GCC" = yes; then
10299	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10300      else
10301	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'
10302      fi
10303      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10304      hardcode_libdir_separator=:
10305      hardcode_direct=yes
10306
10307      # hardcode_minus_L: Not really in the search PATH,
10308      # but as the default location of the library.
10309      hardcode_minus_L=yes
10310      export_dynamic_flag_spec='${wl}-E'
10311      ;;
10312
10313    hpux10*)
10314      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10315	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10316      else
10317	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10318      fi
10319      if test "$with_gnu_ld" = no; then
10320	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10321	hardcode_libdir_flag_spec_ld='+b $libdir'
10322	hardcode_libdir_separator=:
10323	hardcode_direct=yes
10324	hardcode_direct_absolute=yes
10325	export_dynamic_flag_spec='${wl}-E'
10326	# hardcode_minus_L: Not really in the search PATH,
10327	# but as the default location of the library.
10328	hardcode_minus_L=yes
10329      fi
10330      ;;
10331
10332    hpux11*)
10333      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10334	case $host_cpu in
10335	hppa*64*)
10336	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10337	  ;;
10338	ia64*)
10339	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10340	  ;;
10341	*)
10342	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10343	  ;;
10344	esac
10345      else
10346	case $host_cpu in
10347	hppa*64*)
10348	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10349	  ;;
10350	ia64*)
10351	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10352	  ;;
10353	*)
10354	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10355	  ;;
10356	esac
10357      fi
10358      if test "$with_gnu_ld" = no; then
10359	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10360	hardcode_libdir_separator=:
10361
10362	case $host_cpu in
10363	hppa*64*|ia64*)
10364	  hardcode_direct=no
10365	  hardcode_shlibpath_var=no
10366	  ;;
10367	*)
10368	  hardcode_direct=yes
10369	  hardcode_direct_absolute=yes
10370	  export_dynamic_flag_spec='${wl}-E'
10371
10372	  # hardcode_minus_L: Not really in the search PATH,
10373	  # but as the default location of the library.
10374	  hardcode_minus_L=yes
10375	  ;;
10376	esac
10377      fi
10378      ;;
10379
10380    irix5* | irix6* | nonstopux*)
10381      if test "$GCC" = yes; then
10382	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10383	# Try to use the -exported_symbol ld option, if it does not
10384	# work, assume that -exports_file does not work either and
10385	# implicitly export all symbols.
10386        save_LDFLAGS="$LDFLAGS"
10387        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10388        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389/* end confdefs.h.  */
10390int foo(void) {}
10391_ACEOF
10392if ac_fn_c_try_link "$LINENO"; then :
10393  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10394
10395fi
10396rm -f core conftest.err conftest.$ac_objext \
10397    conftest$ac_exeext conftest.$ac_ext
10398        LDFLAGS="$save_LDFLAGS"
10399      else
10400	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10401	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10402      fi
10403      archive_cmds_need_lc='no'
10404      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10405      hardcode_libdir_separator=:
10406      inherit_rpath=yes
10407      link_all_deplibs=yes
10408      ;;
10409
10410    netbsd* | netbsdelf*-gnu)
10411      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10412	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10413      else
10414	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10415      fi
10416      hardcode_libdir_flag_spec='-R$libdir'
10417      hardcode_direct=yes
10418      hardcode_shlibpath_var=no
10419      ;;
10420
10421    newsos6)
10422      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10423      hardcode_direct=yes
10424      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10425      hardcode_libdir_separator=:
10426      hardcode_shlibpath_var=no
10427      ;;
10428
10429    *nto* | *qnx*)
10430      ;;
10431
10432    openbsd*)
10433      if test -f /usr/libexec/ld.so; then
10434	hardcode_direct=yes
10435	hardcode_shlibpath_var=no
10436	hardcode_direct_absolute=yes
10437	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10438	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10439	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10440	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10441	  export_dynamic_flag_spec='${wl}-E'
10442	else
10443	  case $host_os in
10444	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10445	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10446	     hardcode_libdir_flag_spec='-R$libdir'
10447	     ;;
10448	   *)
10449	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10450	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10451	     ;;
10452	  esac
10453	fi
10454      else
10455	ld_shlibs=no
10456      fi
10457      ;;
10458
10459    os2*)
10460      hardcode_libdir_flag_spec='-L$libdir'
10461      hardcode_minus_L=yes
10462      allow_undefined_flag=unsupported
10463      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'
10464      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10465      ;;
10466
10467    osf3*)
10468      if test "$GCC" = yes; then
10469	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10470	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10471      else
10472	allow_undefined_flag=' -expect_unresolved \*'
10473	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10474      fi
10475      archive_cmds_need_lc='no'
10476      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10477      hardcode_libdir_separator=:
10478      ;;
10479
10480    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10481      if test "$GCC" = yes; then
10482	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10483	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10484	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10485      else
10486	allow_undefined_flag=' -expect_unresolved \*'
10487	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10488	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~
10489	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10490
10491	# Both c and cxx compiler support -rpath directly
10492	hardcode_libdir_flag_spec='-rpath $libdir'
10493      fi
10494      archive_cmds_need_lc='no'
10495      hardcode_libdir_separator=:
10496      ;;
10497
10498    solaris*)
10499      no_undefined_flag=' -z defs'
10500      if test "$GCC" = yes; then
10501	wlarc='${wl}'
10502	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10503	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10504	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10505      else
10506	case `$CC -V 2>&1` in
10507	*"Compilers 5.0"*)
10508	  wlarc=''
10509	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10510	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10511	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10512	  ;;
10513	*)
10514	  wlarc='${wl}'
10515	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10516	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10517	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10518	  ;;
10519	esac
10520      fi
10521      hardcode_libdir_flag_spec='-R$libdir'
10522      hardcode_shlibpath_var=no
10523      case $host_os in
10524      solaris2.[0-5] | solaris2.[0-5].*) ;;
10525      *)
10526	# The compiler driver will combine and reorder linker options,
10527	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10528	# but is careful enough not to reorder.
10529	# Supported since Solaris 2.6 (maybe 2.5.1?)
10530	if test "$GCC" = yes; then
10531	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10532	else
10533	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10534	fi
10535	;;
10536      esac
10537      link_all_deplibs=yes
10538      ;;
10539
10540    sunos4*)
10541      if test "x$host_vendor" = xsequent; then
10542	# Use $CC to link under sequent, because it throws in some extra .o
10543	# files that make .init and .fini sections work.
10544	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10545      else
10546	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10547      fi
10548      hardcode_libdir_flag_spec='-L$libdir'
10549      hardcode_direct=yes
10550      hardcode_minus_L=yes
10551      hardcode_shlibpath_var=no
10552      ;;
10553
10554    sysv4)
10555      case $host_vendor in
10556	sni)
10557	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10558	  hardcode_direct=yes # is this really true???
10559	;;
10560	siemens)
10561	  ## LD is ld it makes a PLAMLIB
10562	  ## CC just makes a GrossModule.
10563	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10564	  reload_cmds='$CC -r -o $output$reload_objs'
10565	  hardcode_direct=no
10566        ;;
10567	motorola)
10568	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10570	;;
10571      esac
10572      runpath_var='LD_RUN_PATH'
10573      hardcode_shlibpath_var=no
10574      ;;
10575
10576    sysv4.3*)
10577      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10578      hardcode_shlibpath_var=no
10579      export_dynamic_flag_spec='-Bexport'
10580      ;;
10581
10582    sysv4*MP*)
10583      if test -d /usr/nec; then
10584	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10585	hardcode_shlibpath_var=no
10586	runpath_var=LD_RUN_PATH
10587	hardcode_runpath_var=yes
10588	ld_shlibs=yes
10589      fi
10590      ;;
10591
10592    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10593      no_undefined_flag='${wl}-z,text'
10594      archive_cmds_need_lc=no
10595      hardcode_shlibpath_var=no
10596      runpath_var='LD_RUN_PATH'
10597
10598      if test "$GCC" = yes; then
10599	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10600	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10601      else
10602	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10603	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604      fi
10605      ;;
10606
10607    sysv5* | sco3.2v5* | sco5v6*)
10608      # Note: We can NOT use -z defs as we might desire, because we do not
10609      # link with -lc, and that would cause any symbols used from libc to
10610      # always be unresolved, which means just about no library would
10611      # ever link correctly.  If we're not using GNU ld we use -z text
10612      # though, which does catch some bad symbols but isn't as heavy-handed
10613      # as -z defs.
10614      no_undefined_flag='${wl}-z,text'
10615      allow_undefined_flag='${wl}-z,nodefs'
10616      archive_cmds_need_lc=no
10617      hardcode_shlibpath_var=no
10618      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10619      hardcode_libdir_separator=':'
10620      link_all_deplibs=yes
10621      export_dynamic_flag_spec='${wl}-Bexport'
10622      runpath_var='LD_RUN_PATH'
10623
10624      if test "$GCC" = yes; then
10625	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10626	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10627      else
10628	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10629	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10630      fi
10631      ;;
10632
10633    uts4*)
10634      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10635      hardcode_libdir_flag_spec='-L$libdir'
10636      hardcode_shlibpath_var=no
10637      ;;
10638
10639    *)
10640      ld_shlibs=no
10641      ;;
10642    esac
10643
10644    if test x$host_vendor = xsni; then
10645      case $host in
10646      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10647	export_dynamic_flag_spec='${wl}-Blargedynsym'
10648	;;
10649      esac
10650    fi
10651  fi
10652
10653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10654$as_echo "$ld_shlibs" >&6; }
10655test "$ld_shlibs" = no && can_build_shared=no
10656
10657with_gnu_ld=$with_gnu_ld
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673#
10674# Do we need to explicitly link libc?
10675#
10676case "x$archive_cmds_need_lc" in
10677x|xyes)
10678  # Assume -lc should be added
10679  archive_cmds_need_lc=yes
10680
10681  if test "$enable_shared" = yes && test "$GCC" = yes; then
10682    case $archive_cmds in
10683    *'~'*)
10684      # FIXME: we may have to deal with multi-command sequences.
10685      ;;
10686    '$CC '*)
10687      # Test whether the compiler implicitly links with -lc since on some
10688      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10689      # to ld, don't add -lc before -lgcc.
10690      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10691$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10692      $RM conftest*
10693      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10694
10695      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10696  (eval $ac_compile) 2>&5
10697  ac_status=$?
10698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10699  test $ac_status = 0; } 2>conftest.err; then
10700        soname=conftest
10701        lib=conftest
10702        libobjs=conftest.$ac_objext
10703        deplibs=
10704        wl=$lt_prog_compiler_wl
10705	pic_flag=$lt_prog_compiler_pic
10706        compiler_flags=-v
10707        linker_flags=-v
10708        verstring=
10709        output_objdir=.
10710        libname=conftest
10711        lt_save_allow_undefined_flag=$allow_undefined_flag
10712        allow_undefined_flag=
10713        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10714  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10715  ac_status=$?
10716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10717  test $ac_status = 0; }
10718        then
10719	  archive_cmds_need_lc=no
10720        else
10721	  archive_cmds_need_lc=yes
10722        fi
10723        allow_undefined_flag=$lt_save_allow_undefined_flag
10724      else
10725        cat conftest.err 1>&5
10726      fi
10727      $RM conftest*
10728      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10729$as_echo "$archive_cmds_need_lc" >&6; }
10730      ;;
10731    esac
10732  fi
10733  ;;
10734esac
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10893$as_echo_n "checking dynamic linker characteristics... " >&6; }
10894
10895if test "$GCC" = yes; then
10896  case $host_os in
10897    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10898    *) lt_awk_arg="/^libraries:/" ;;
10899  esac
10900  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10901  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10902    # if the path contains ";" then we assume it to be the separator
10903    # otherwise default to the standard path separator (i.e. ":") - it is
10904    # assumed that no part of a normal pathname contains ";" but that should
10905    # okay in the real world where ";" in dirpaths is itself problematic.
10906    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10907  else
10908    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10909  fi
10910  # Ok, now we have the path, separated by spaces, we can step through it
10911  # and add multilib dir if necessary.
10912  lt_tmp_lt_search_path_spec=
10913  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10914  for lt_sys_path in $lt_search_path_spec; do
10915    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10916      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10917    else
10918      test -d "$lt_sys_path" && \
10919	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10920    fi
10921  done
10922  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10923BEGIN {RS=" "; FS="/|\n";} {
10924  lt_foo="";
10925  lt_count=0;
10926  for (lt_i = NF; lt_i > 0; lt_i--) {
10927    if ($lt_i != "" && $lt_i != ".") {
10928      if ($lt_i == "..") {
10929        lt_count++;
10930      } else {
10931        if (lt_count == 0) {
10932          lt_foo="/" $lt_i lt_foo;
10933        } else {
10934          lt_count--;
10935        }
10936      }
10937    }
10938  }
10939  if (lt_foo != "") { lt_freq[lt_foo]++; }
10940  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10941}'`
10942  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10943else
10944  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10945fi
10946library_names_spec=
10947libname_spec='lib$name'
10948soname_spec=
10949shrext_cmds=".so"
10950postinstall_cmds=
10951postuninstall_cmds=
10952finish_cmds=
10953finish_eval=
10954shlibpath_var=
10955shlibpath_overrides_runpath=unknown
10956version_type=none
10957dynamic_linker="$host_os ld.so"
10958sys_lib_dlsearch_path_spec="/lib /usr/lib"
10959need_lib_prefix=unknown
10960hardcode_into_libs=no
10961
10962# when you set need_version to no, make sure it does not cause -set_version
10963# flags to be left without arguments
10964need_version=unknown
10965
10966case $host_os in
10967aix3*)
10968  version_type=linux
10969  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10970  shlibpath_var=LIBPATH
10971
10972  # AIX 3 has no versioning support, so we append a major version to the name.
10973  soname_spec='${libname}${release}${shared_ext}$major'
10974  ;;
10975
10976aix[4-9]*)
10977  version_type=linux
10978  need_lib_prefix=no
10979  need_version=no
10980  hardcode_into_libs=yes
10981  if test "$host_cpu" = ia64; then
10982    # AIX 5 supports IA64
10983    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10984    shlibpath_var=LD_LIBRARY_PATH
10985  else
10986    # With GCC up to 2.95.x, collect2 would create an import file
10987    # for dependence libraries.  The import file would start with
10988    # the line `#! .'.  This would cause the generated library to
10989    # depend on `.', always an invalid library.  This was fixed in
10990    # development snapshots of GCC prior to 3.0.
10991    case $host_os in
10992      aix4 | aix4.[01] | aix4.[01].*)
10993      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10994	   echo ' yes '
10995	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10996	:
10997      else
10998	can_build_shared=no
10999      fi
11000      ;;
11001    esac
11002    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11003    # soname into executable. Probably we can add versioning support to
11004    # collect2, so additional links can be useful in future.
11005    if test "$aix_use_runtimelinking" = yes; then
11006      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11007      # instead of lib<name>.a to let people know that these are not
11008      # typical AIX shared libraries.
11009      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11010    else
11011      # We preserve .a as extension for shared libraries through AIX4.2
11012      # and later when we are not doing run time linking.
11013      library_names_spec='${libname}${release}.a $libname.a'
11014      soname_spec='${libname}${release}${shared_ext}$major'
11015    fi
11016    shlibpath_var=LIBPATH
11017  fi
11018  ;;
11019
11020amigaos*)
11021  case $host_cpu in
11022  powerpc)
11023    # Since July 2007 AmigaOS4 officially supports .so libraries.
11024    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11025    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11026    ;;
11027  m68k)
11028    library_names_spec='$libname.ixlibrary $libname.a'
11029    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11030    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11031    ;;
11032  esac
11033  ;;
11034
11035beos*)
11036  library_names_spec='${libname}${shared_ext}'
11037  dynamic_linker="$host_os ld.so"
11038  shlibpath_var=LIBRARY_PATH
11039  ;;
11040
11041bsdi[45]*)
11042  version_type=linux
11043  need_version=no
11044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045  soname_spec='${libname}${release}${shared_ext}$major'
11046  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11047  shlibpath_var=LD_LIBRARY_PATH
11048  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11049  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11050  # the default ld.so.conf also contains /usr/contrib/lib and
11051  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11052  # libtool to hard-code these into programs
11053  ;;
11054
11055cygwin* | mingw* | pw32* | cegcc*)
11056  version_type=windows
11057  shrext_cmds=".dll"
11058  need_version=no
11059  need_lib_prefix=no
11060
11061  case $GCC,$host_os in
11062  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11063    library_names_spec='$libname.dll.a'
11064    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11065    postinstall_cmds='base_file=`basename \${file}`~
11066      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11067      dldir=$destdir/`dirname \$dlpath`~
11068      test -d \$dldir || mkdir -p \$dldir~
11069      $install_prog $dir/$dlname \$dldir/$dlname~
11070      chmod a+x \$dldir/$dlname~
11071      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11072        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11073      fi'
11074    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11075      dlpath=$dir/\$dldll~
11076       $RM \$dlpath'
11077    shlibpath_overrides_runpath=yes
11078
11079    case $host_os in
11080    cygwin*)
11081      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11082      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11083      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11084      ;;
11085    mingw* | cegcc*)
11086      # MinGW DLLs use traditional 'lib' prefix
11087      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11088      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11089      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11090        # It is most probably a Windows format PATH printed by
11091        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11092        # path with ; separators, and with drive letters. We can handle the
11093        # drive letters (cygwin fileutils understands them), so leave them,
11094        # especially as we might pass files found there to a mingw objdump,
11095        # which wouldn't understand a cygwinified path. Ahh.
11096        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11097      else
11098        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11099      fi
11100      ;;
11101    pw32*)
11102      # pw32 DLLs use 'pw' prefix rather than 'lib'
11103      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11104      ;;
11105    esac
11106    ;;
11107
11108  *)
11109    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11110    ;;
11111  esac
11112  dynamic_linker='Win32 ld.exe'
11113  # FIXME: first we should search . and the directory the executable is in
11114  shlibpath_var=PATH
11115  ;;
11116
11117darwin* | rhapsody*)
11118  dynamic_linker="$host_os dyld"
11119  version_type=darwin
11120  need_lib_prefix=no
11121  need_version=no
11122  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11123  soname_spec='${libname}${release}${major}$shared_ext'
11124  shlibpath_overrides_runpath=yes
11125  shlibpath_var=DYLD_LIBRARY_PATH
11126  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11127
11128  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11129  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11130  ;;
11131
11132dgux*)
11133  version_type=linux
11134  need_lib_prefix=no
11135  need_version=no
11136  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11137  soname_spec='${libname}${release}${shared_ext}$major'
11138  shlibpath_var=LD_LIBRARY_PATH
11139  ;;
11140
11141freebsd1*)
11142  dynamic_linker=no
11143  ;;
11144
11145freebsd* | dragonfly*)
11146  # DragonFly does not have aout.  When/if they implement a new
11147  # versioning mechanism, adjust this.
11148  if test -x /usr/bin/objformat; then
11149    objformat=`/usr/bin/objformat`
11150  else
11151    case $host_os in
11152    freebsd[123]*) objformat=aout ;;
11153    *) objformat=elf ;;
11154    esac
11155  fi
11156  version_type=freebsd-$objformat
11157  case $version_type in
11158    freebsd-elf*)
11159      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11160      need_version=no
11161      need_lib_prefix=no
11162      ;;
11163    freebsd-*)
11164      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11165      need_version=yes
11166      ;;
11167  esac
11168  shlibpath_var=LD_LIBRARY_PATH
11169  case $host_os in
11170  freebsd2*)
11171    shlibpath_overrides_runpath=yes
11172    ;;
11173  freebsd3.[01]* | freebsdelf3.[01]*)
11174    shlibpath_overrides_runpath=yes
11175    hardcode_into_libs=yes
11176    ;;
11177  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11178  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11179    shlibpath_overrides_runpath=no
11180    hardcode_into_libs=yes
11181    ;;
11182  *) # from 4.6 on, and DragonFly
11183    shlibpath_overrides_runpath=yes
11184    hardcode_into_libs=yes
11185    ;;
11186  esac
11187  ;;
11188
11189gnu*)
11190  version_type=linux
11191  need_lib_prefix=no
11192  need_version=no
11193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11194  soname_spec='${libname}${release}${shared_ext}$major'
11195  shlibpath_var=LD_LIBRARY_PATH
11196  hardcode_into_libs=yes
11197  ;;
11198
11199hpux9* | hpux10* | hpux11*)
11200  # Give a soname corresponding to the major version so that dld.sl refuses to
11201  # link against other versions.
11202  version_type=sunos
11203  need_lib_prefix=no
11204  need_version=no
11205  case $host_cpu in
11206  ia64*)
11207    shrext_cmds='.so'
11208    hardcode_into_libs=yes
11209    dynamic_linker="$host_os dld.so"
11210    shlibpath_var=LD_LIBRARY_PATH
11211    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11212    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213    soname_spec='${libname}${release}${shared_ext}$major'
11214    if test "X$HPUX_IA64_MODE" = X32; then
11215      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11216    else
11217      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11218    fi
11219    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11220    ;;
11221  hppa*64*)
11222    shrext_cmds='.sl'
11223    hardcode_into_libs=yes
11224    dynamic_linker="$host_os dld.sl"
11225    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11226    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11227    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11228    soname_spec='${libname}${release}${shared_ext}$major'
11229    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11230    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11231    ;;
11232  *)
11233    shrext_cmds='.sl'
11234    dynamic_linker="$host_os dld.sl"
11235    shlibpath_var=SHLIB_PATH
11236    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11237    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11238    soname_spec='${libname}${release}${shared_ext}$major'
11239    ;;
11240  esac
11241  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11242  postinstall_cmds='chmod 555 $lib'
11243  ;;
11244
11245interix[3-9]*)
11246  version_type=linux
11247  need_lib_prefix=no
11248  need_version=no
11249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11250  soname_spec='${libname}${release}${shared_ext}$major'
11251  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11252  shlibpath_var=LD_LIBRARY_PATH
11253  shlibpath_overrides_runpath=no
11254  hardcode_into_libs=yes
11255  ;;
11256
11257irix5* | irix6* | nonstopux*)
11258  case $host_os in
11259    nonstopux*) version_type=nonstopux ;;
11260    *)
11261	if test "$lt_cv_prog_gnu_ld" = yes; then
11262		version_type=linux
11263	else
11264		version_type=irix
11265	fi ;;
11266  esac
11267  need_lib_prefix=no
11268  need_version=no
11269  soname_spec='${libname}${release}${shared_ext}$major'
11270  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11271  case $host_os in
11272  irix5* | nonstopux*)
11273    libsuff= shlibsuff=
11274    ;;
11275  *)
11276    case $LD in # libtool.m4 will add one of these switches to LD
11277    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11278      libsuff= shlibsuff= libmagic=32-bit;;
11279    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11280      libsuff=32 shlibsuff=N32 libmagic=N32;;
11281    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11282      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11283    *) libsuff= shlibsuff= libmagic=never-match;;
11284    esac
11285    ;;
11286  esac
11287  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11288  shlibpath_overrides_runpath=no
11289  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11290  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11291  hardcode_into_libs=yes
11292  ;;
11293
11294# No shared lib support for Linux oldld, aout, or coff.
11295linux*oldld* | linux*aout* | linux*coff*)
11296  dynamic_linker=no
11297  ;;
11298
11299# This must be Linux ELF.
11300linux* | k*bsd*-gnu | kopensolaris*-gnu)
11301  version_type=linux
11302  need_lib_prefix=no
11303  need_version=no
11304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11305  soname_spec='${libname}${release}${shared_ext}$major'
11306  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11307  shlibpath_var=LD_LIBRARY_PATH
11308  shlibpath_overrides_runpath=no
11309  # Some binutils ld are patched to set DT_RUNPATH
11310  save_LDFLAGS=$LDFLAGS
11311  save_libdir=$libdir
11312  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11313       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11314  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11315/* end confdefs.h.  */
11316
11317int
11318main ()
11319{
11320
11321  ;
11322  return 0;
11323}
11324_ACEOF
11325if ac_fn_c_try_link "$LINENO"; then :
11326  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11327  shlibpath_overrides_runpath=yes
11328fi
11329fi
11330rm -f core conftest.err conftest.$ac_objext \
11331    conftest$ac_exeext conftest.$ac_ext
11332  LDFLAGS=$save_LDFLAGS
11333  libdir=$save_libdir
11334
11335  # This implies no fast_install, which is unacceptable.
11336  # Some rework will be needed to allow for fast_install
11337  # before this can be enabled.
11338  hardcode_into_libs=yes
11339
11340  # Append ld.so.conf contents to the search path
11341  if test -f /etc/ld.so.conf; then
11342    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;/^$/d' | tr '\n' ' '`
11343    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11344  fi
11345
11346  # We used to test for /lib/ld.so.1 and disable shared libraries on
11347  # powerpc, because MkLinux only supported shared libraries with the
11348  # GNU dynamic linker.  Since this was broken with cross compilers,
11349  # most powerpc-linux boxes support dynamic linking these days and
11350  # people can always --disable-shared, the test was removed, and we
11351  # assume the GNU/Linux dynamic linker is in use.
11352  dynamic_linker='GNU/Linux ld.so'
11353  ;;
11354
11355netbsdelf*-gnu)
11356  version_type=linux
11357  need_lib_prefix=no
11358  need_version=no
11359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11360  soname_spec='${libname}${release}${shared_ext}$major'
11361  shlibpath_var=LD_LIBRARY_PATH
11362  shlibpath_overrides_runpath=no
11363  hardcode_into_libs=yes
11364  dynamic_linker='NetBSD ld.elf_so'
11365  ;;
11366
11367netbsd*)
11368  version_type=sunos
11369  need_lib_prefix=no
11370  need_version=no
11371  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11372    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11373    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11374    dynamic_linker='NetBSD (a.out) ld.so'
11375  else
11376    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11377    soname_spec='${libname}${release}${shared_ext}$major'
11378    dynamic_linker='NetBSD ld.elf_so'
11379  fi
11380  shlibpath_var=LD_LIBRARY_PATH
11381  shlibpath_overrides_runpath=yes
11382  hardcode_into_libs=yes
11383  ;;
11384
11385newsos6)
11386  version_type=linux
11387  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11388  shlibpath_var=LD_LIBRARY_PATH
11389  shlibpath_overrides_runpath=yes
11390  ;;
11391
11392*nto* | *qnx*)
11393  version_type=qnx
11394  need_lib_prefix=no
11395  need_version=no
11396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11397  soname_spec='${libname}${release}${shared_ext}$major'
11398  shlibpath_var=LD_LIBRARY_PATH
11399  shlibpath_overrides_runpath=no
11400  hardcode_into_libs=yes
11401  dynamic_linker='ldqnx.so'
11402  ;;
11403
11404openbsd*)
11405  version_type=sunos
11406  sys_lib_dlsearch_path_spec="/usr/lib"
11407  need_lib_prefix=no
11408  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11409  case $host_os in
11410    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11411    *)				need_version=no  ;;
11412  esac
11413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11414  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11415  shlibpath_var=LD_LIBRARY_PATH
11416  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11417    case $host_os in
11418      openbsd2.[89] | openbsd2.[89].*)
11419	shlibpath_overrides_runpath=no
11420	;;
11421      *)
11422	shlibpath_overrides_runpath=yes
11423	;;
11424      esac
11425  else
11426    shlibpath_overrides_runpath=yes
11427  fi
11428  ;;
11429
11430os2*)
11431  libname_spec='$name'
11432  shrext_cmds=".dll"
11433  need_lib_prefix=no
11434  library_names_spec='$libname${shared_ext} $libname.a'
11435  dynamic_linker='OS/2 ld.exe'
11436  shlibpath_var=LIBPATH
11437  ;;
11438
11439osf3* | osf4* | osf5*)
11440  version_type=osf
11441  need_lib_prefix=no
11442  need_version=no
11443  soname_spec='${libname}${release}${shared_ext}$major'
11444  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11445  shlibpath_var=LD_LIBRARY_PATH
11446  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11447  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11448  ;;
11449
11450rdos*)
11451  dynamic_linker=no
11452  ;;
11453
11454solaris*)
11455  version_type=linux
11456  need_lib_prefix=no
11457  need_version=no
11458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11459  soname_spec='${libname}${release}${shared_ext}$major'
11460  shlibpath_var=LD_LIBRARY_PATH
11461  shlibpath_overrides_runpath=yes
11462  hardcode_into_libs=yes
11463  # ldd complains unless libraries are executable
11464  postinstall_cmds='chmod +x $lib'
11465  ;;
11466
11467sunos4*)
11468  version_type=sunos
11469  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11470  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11471  shlibpath_var=LD_LIBRARY_PATH
11472  shlibpath_overrides_runpath=yes
11473  if test "$with_gnu_ld" = yes; then
11474    need_lib_prefix=no
11475  fi
11476  need_version=yes
11477  ;;
11478
11479sysv4 | sysv4.3*)
11480  version_type=linux
11481  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11482  soname_spec='${libname}${release}${shared_ext}$major'
11483  shlibpath_var=LD_LIBRARY_PATH
11484  case $host_vendor in
11485    sni)
11486      shlibpath_overrides_runpath=no
11487      need_lib_prefix=no
11488      runpath_var=LD_RUN_PATH
11489      ;;
11490    siemens)
11491      need_lib_prefix=no
11492      ;;
11493    motorola)
11494      need_lib_prefix=no
11495      need_version=no
11496      shlibpath_overrides_runpath=no
11497      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11498      ;;
11499  esac
11500  ;;
11501
11502sysv4*MP*)
11503  if test -d /usr/nec ;then
11504    version_type=linux
11505    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11506    soname_spec='$libname${shared_ext}.$major'
11507    shlibpath_var=LD_LIBRARY_PATH
11508  fi
11509  ;;
11510
11511sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11512  version_type=freebsd-elf
11513  need_lib_prefix=no
11514  need_version=no
11515  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11516  soname_spec='${libname}${release}${shared_ext}$major'
11517  shlibpath_var=LD_LIBRARY_PATH
11518  shlibpath_overrides_runpath=yes
11519  hardcode_into_libs=yes
11520  if test "$with_gnu_ld" = yes; then
11521    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11522  else
11523    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11524    case $host_os in
11525      sco3.2v5*)
11526        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11527	;;
11528    esac
11529  fi
11530  sys_lib_dlsearch_path_spec='/usr/lib'
11531  ;;
11532
11533tpf*)
11534  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11535  version_type=linux
11536  need_lib_prefix=no
11537  need_version=no
11538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539  shlibpath_var=LD_LIBRARY_PATH
11540  shlibpath_overrides_runpath=no
11541  hardcode_into_libs=yes
11542  ;;
11543
11544uts4*)
11545  version_type=linux
11546  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547  soname_spec='${libname}${release}${shared_ext}$major'
11548  shlibpath_var=LD_LIBRARY_PATH
11549  ;;
11550
11551*)
11552  dynamic_linker=no
11553  ;;
11554esac
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11556$as_echo "$dynamic_linker" >&6; }
11557test "$dynamic_linker" = no && can_build_shared=no
11558
11559variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11560if test "$GCC" = yes; then
11561  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11562fi
11563
11564if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11565  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11566fi
11567if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11568  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11569fi
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11658$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11659hardcode_action=
11660if test -n "$hardcode_libdir_flag_spec" ||
11661   test -n "$runpath_var" ||
11662   test "X$hardcode_automatic" = "Xyes" ; then
11663
11664  # We can hardcode non-existent directories.
11665  if test "$hardcode_direct" != no &&
11666     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11667     # have to relink, otherwise we might link with an installed library
11668     # when we should be linking with a yet-to-be-installed one
11669     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11670     test "$hardcode_minus_L" != no; then
11671    # Linking always hardcodes the temporary library directory.
11672    hardcode_action=relink
11673  else
11674    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11675    hardcode_action=immediate
11676  fi
11677else
11678  # We cannot hardcode anything, or else we can only hardcode existing
11679  # directories.
11680  hardcode_action=unsupported
11681fi
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11683$as_echo "$hardcode_action" >&6; }
11684
11685if test "$hardcode_action" = relink ||
11686   test "$inherit_rpath" = yes; then
11687  # Fast installation is not supported
11688  enable_fast_install=no
11689elif test "$shlibpath_overrides_runpath" = yes ||
11690     test "$enable_shared" = no; then
11691  # Fast installation is not necessary
11692  enable_fast_install=needless
11693fi
11694
11695
11696
11697
11698
11699
11700  if test "x$enable_dlopen" != xyes; then
11701  enable_dlopen=unknown
11702  enable_dlopen_self=unknown
11703  enable_dlopen_self_static=unknown
11704else
11705  lt_cv_dlopen=no
11706  lt_cv_dlopen_libs=
11707
11708  case $host_os in
11709  beos*)
11710    lt_cv_dlopen="load_add_on"
11711    lt_cv_dlopen_libs=
11712    lt_cv_dlopen_self=yes
11713    ;;
11714
11715  mingw* | pw32* | cegcc*)
11716    lt_cv_dlopen="LoadLibrary"
11717    lt_cv_dlopen_libs=
11718    ;;
11719
11720  cygwin*)
11721    lt_cv_dlopen="dlopen"
11722    lt_cv_dlopen_libs=
11723    ;;
11724
11725  darwin*)
11726  # if libdl is installed we need to link against it
11727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11728$as_echo_n "checking for dlopen in -ldl... " >&6; }
11729if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11730  $as_echo_n "(cached) " >&6
11731else
11732  ac_check_lib_save_LIBS=$LIBS
11733LIBS="-ldl  $LIBS"
11734cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735/* end confdefs.h.  */
11736
11737/* Override any GCC internal prototype to avoid an error.
11738   Use char because int might match the return type of a GCC
11739   builtin and then its argument prototype would still apply.  */
11740#ifdef __cplusplus
11741extern "C"
11742#endif
11743char dlopen ();
11744int
11745main ()
11746{
11747return dlopen ();
11748  ;
11749  return 0;
11750}
11751_ACEOF
11752if ac_fn_c_try_link "$LINENO"; then :
11753  ac_cv_lib_dl_dlopen=yes
11754else
11755  ac_cv_lib_dl_dlopen=no
11756fi
11757rm -f core conftest.err conftest.$ac_objext \
11758    conftest$ac_exeext conftest.$ac_ext
11759LIBS=$ac_check_lib_save_LIBS
11760fi
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11762$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11763if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11764  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11765else
11766
11767    lt_cv_dlopen="dyld"
11768    lt_cv_dlopen_libs=
11769    lt_cv_dlopen_self=yes
11770
11771fi
11772
11773    ;;
11774
11775  *)
11776    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11777if test "x$ac_cv_func_shl_load" = x""yes; then :
11778  lt_cv_dlopen="shl_load"
11779else
11780  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11781$as_echo_n "checking for shl_load in -ldld... " >&6; }
11782if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11783  $as_echo_n "(cached) " >&6
11784else
11785  ac_check_lib_save_LIBS=$LIBS
11786LIBS="-ldld  $LIBS"
11787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788/* end confdefs.h.  */
11789
11790/* Override any GCC internal prototype to avoid an error.
11791   Use char because int might match the return type of a GCC
11792   builtin and then its argument prototype would still apply.  */
11793#ifdef __cplusplus
11794extern "C"
11795#endif
11796char shl_load ();
11797int
11798main ()
11799{
11800return shl_load ();
11801  ;
11802  return 0;
11803}
11804_ACEOF
11805if ac_fn_c_try_link "$LINENO"; then :
11806  ac_cv_lib_dld_shl_load=yes
11807else
11808  ac_cv_lib_dld_shl_load=no
11809fi
11810rm -f core conftest.err conftest.$ac_objext \
11811    conftest$ac_exeext conftest.$ac_ext
11812LIBS=$ac_check_lib_save_LIBS
11813fi
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11815$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11816if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11817  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11818else
11819  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11820if test "x$ac_cv_func_dlopen" = x""yes; then :
11821  lt_cv_dlopen="dlopen"
11822else
11823  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11824$as_echo_n "checking for dlopen in -ldl... " >&6; }
11825if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11826  $as_echo_n "(cached) " >&6
11827else
11828  ac_check_lib_save_LIBS=$LIBS
11829LIBS="-ldl  $LIBS"
11830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11831/* end confdefs.h.  */
11832
11833/* Override any GCC internal prototype to avoid an error.
11834   Use char because int might match the return type of a GCC
11835   builtin and then its argument prototype would still apply.  */
11836#ifdef __cplusplus
11837extern "C"
11838#endif
11839char dlopen ();
11840int
11841main ()
11842{
11843return dlopen ();
11844  ;
11845  return 0;
11846}
11847_ACEOF
11848if ac_fn_c_try_link "$LINENO"; then :
11849  ac_cv_lib_dl_dlopen=yes
11850else
11851  ac_cv_lib_dl_dlopen=no
11852fi
11853rm -f core conftest.err conftest.$ac_objext \
11854    conftest$ac_exeext conftest.$ac_ext
11855LIBS=$ac_check_lib_save_LIBS
11856fi
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11858$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11859if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11860  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11861else
11862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11863$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11864if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11865  $as_echo_n "(cached) " >&6
11866else
11867  ac_check_lib_save_LIBS=$LIBS
11868LIBS="-lsvld  $LIBS"
11869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11870/* end confdefs.h.  */
11871
11872/* Override any GCC internal prototype to avoid an error.
11873   Use char because int might match the return type of a GCC
11874   builtin and then its argument prototype would still apply.  */
11875#ifdef __cplusplus
11876extern "C"
11877#endif
11878char dlopen ();
11879int
11880main ()
11881{
11882return dlopen ();
11883  ;
11884  return 0;
11885}
11886_ACEOF
11887if ac_fn_c_try_link "$LINENO"; then :
11888  ac_cv_lib_svld_dlopen=yes
11889else
11890  ac_cv_lib_svld_dlopen=no
11891fi
11892rm -f core conftest.err conftest.$ac_objext \
11893    conftest$ac_exeext conftest.$ac_ext
11894LIBS=$ac_check_lib_save_LIBS
11895fi
11896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11897$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11898if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11899  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11900else
11901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11902$as_echo_n "checking for dld_link in -ldld... " >&6; }
11903if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11904  $as_echo_n "(cached) " >&6
11905else
11906  ac_check_lib_save_LIBS=$LIBS
11907LIBS="-ldld  $LIBS"
11908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11909/* end confdefs.h.  */
11910
11911/* Override any GCC internal prototype to avoid an error.
11912   Use char because int might match the return type of a GCC
11913   builtin and then its argument prototype would still apply.  */
11914#ifdef __cplusplus
11915extern "C"
11916#endif
11917char dld_link ();
11918int
11919main ()
11920{
11921return dld_link ();
11922  ;
11923  return 0;
11924}
11925_ACEOF
11926if ac_fn_c_try_link "$LINENO"; then :
11927  ac_cv_lib_dld_dld_link=yes
11928else
11929  ac_cv_lib_dld_dld_link=no
11930fi
11931rm -f core conftest.err conftest.$ac_objext \
11932    conftest$ac_exeext conftest.$ac_ext
11933LIBS=$ac_check_lib_save_LIBS
11934fi
11935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11936$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11937if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11938  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11939fi
11940
11941
11942fi
11943
11944
11945fi
11946
11947
11948fi
11949
11950
11951fi
11952
11953
11954fi
11955
11956    ;;
11957  esac
11958
11959  if test "x$lt_cv_dlopen" != xno; then
11960    enable_dlopen=yes
11961  else
11962    enable_dlopen=no
11963  fi
11964
11965  case $lt_cv_dlopen in
11966  dlopen)
11967    save_CPPFLAGS="$CPPFLAGS"
11968    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11969
11970    save_LDFLAGS="$LDFLAGS"
11971    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11972
11973    save_LIBS="$LIBS"
11974    LIBS="$lt_cv_dlopen_libs $LIBS"
11975
11976    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11977$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11978if test "${lt_cv_dlopen_self+set}" = set; then :
11979  $as_echo_n "(cached) " >&6
11980else
11981  	  if test "$cross_compiling" = yes; then :
11982  lt_cv_dlopen_self=cross
11983else
11984  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11985  lt_status=$lt_dlunknown
11986  cat > conftest.$ac_ext <<_LT_EOF
11987#line 11987 "configure"
11988#include "confdefs.h"
11989
11990#if HAVE_DLFCN_H
11991#include <dlfcn.h>
11992#endif
11993
11994#include <stdio.h>
11995
11996#ifdef RTLD_GLOBAL
11997#  define LT_DLGLOBAL		RTLD_GLOBAL
11998#else
11999#  ifdef DL_GLOBAL
12000#    define LT_DLGLOBAL		DL_GLOBAL
12001#  else
12002#    define LT_DLGLOBAL		0
12003#  endif
12004#endif
12005
12006/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12007   find out it does not work in some platform. */
12008#ifndef LT_DLLAZY_OR_NOW
12009#  ifdef RTLD_LAZY
12010#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12011#  else
12012#    ifdef DL_LAZY
12013#      define LT_DLLAZY_OR_NOW		DL_LAZY
12014#    else
12015#      ifdef RTLD_NOW
12016#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12017#      else
12018#        ifdef DL_NOW
12019#          define LT_DLLAZY_OR_NOW	DL_NOW
12020#        else
12021#          define LT_DLLAZY_OR_NOW	0
12022#        endif
12023#      endif
12024#    endif
12025#  endif
12026#endif
12027
12028void fnord() { int i=42;}
12029int main ()
12030{
12031  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12032  int status = $lt_dlunknown;
12033
12034  if (self)
12035    {
12036      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12037      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12038      /* dlclose (self); */
12039    }
12040  else
12041    puts (dlerror ());
12042
12043  return status;
12044}
12045_LT_EOF
12046  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12047  (eval $ac_link) 2>&5
12048  ac_status=$?
12049  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12050  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12051    (./conftest; exit; ) >&5 2>/dev/null
12052    lt_status=$?
12053    case x$lt_status in
12054      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12055      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12056      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12057    esac
12058  else :
12059    # compilation failed
12060    lt_cv_dlopen_self=no
12061  fi
12062fi
12063rm -fr conftest*
12064
12065
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12068$as_echo "$lt_cv_dlopen_self" >&6; }
12069
12070    if test "x$lt_cv_dlopen_self" = xyes; then
12071      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12072      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12073$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12074if test "${lt_cv_dlopen_self_static+set}" = set; then :
12075  $as_echo_n "(cached) " >&6
12076else
12077  	  if test "$cross_compiling" = yes; then :
12078  lt_cv_dlopen_self_static=cross
12079else
12080  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12081  lt_status=$lt_dlunknown
12082  cat > conftest.$ac_ext <<_LT_EOF
12083#line 12083 "configure"
12084#include "confdefs.h"
12085
12086#if HAVE_DLFCN_H
12087#include <dlfcn.h>
12088#endif
12089
12090#include <stdio.h>
12091
12092#ifdef RTLD_GLOBAL
12093#  define LT_DLGLOBAL		RTLD_GLOBAL
12094#else
12095#  ifdef DL_GLOBAL
12096#    define LT_DLGLOBAL		DL_GLOBAL
12097#  else
12098#    define LT_DLGLOBAL		0
12099#  endif
12100#endif
12101
12102/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12103   find out it does not work in some platform. */
12104#ifndef LT_DLLAZY_OR_NOW
12105#  ifdef RTLD_LAZY
12106#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12107#  else
12108#    ifdef DL_LAZY
12109#      define LT_DLLAZY_OR_NOW		DL_LAZY
12110#    else
12111#      ifdef RTLD_NOW
12112#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12113#      else
12114#        ifdef DL_NOW
12115#          define LT_DLLAZY_OR_NOW	DL_NOW
12116#        else
12117#          define LT_DLLAZY_OR_NOW	0
12118#        endif
12119#      endif
12120#    endif
12121#  endif
12122#endif
12123
12124void fnord() { int i=42;}
12125int main ()
12126{
12127  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12128  int status = $lt_dlunknown;
12129
12130  if (self)
12131    {
12132      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12133      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12134      /* dlclose (self); */
12135    }
12136  else
12137    puts (dlerror ());
12138
12139  return status;
12140}
12141_LT_EOF
12142  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12143  (eval $ac_link) 2>&5
12144  ac_status=$?
12145  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12146  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12147    (./conftest; exit; ) >&5 2>/dev/null
12148    lt_status=$?
12149    case x$lt_status in
12150      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12151      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12152      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12153    esac
12154  else :
12155    # compilation failed
12156    lt_cv_dlopen_self_static=no
12157  fi
12158fi
12159rm -fr conftest*
12160
12161
12162fi
12163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12164$as_echo "$lt_cv_dlopen_self_static" >&6; }
12165    fi
12166
12167    CPPFLAGS="$save_CPPFLAGS"
12168    LDFLAGS="$save_LDFLAGS"
12169    LIBS="$save_LIBS"
12170    ;;
12171  esac
12172
12173  case $lt_cv_dlopen_self in
12174  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12175  *) enable_dlopen_self=unknown ;;
12176  esac
12177
12178  case $lt_cv_dlopen_self_static in
12179  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12180  *) enable_dlopen_self_static=unknown ;;
12181  esac
12182fi
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200striplib=
12201old_striplib=
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12203$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12204if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12205  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12206  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12207  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12208$as_echo "yes" >&6; }
12209else
12210# FIXME - insert some real tests, host_os isn't really good enough
12211  case $host_os in
12212  darwin*)
12213    if test -n "$STRIP" ; then
12214      striplib="$STRIP -x"
12215      old_striplib="$STRIP -S"
12216      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12217$as_echo "yes" >&6; }
12218    else
12219      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12220$as_echo "no" >&6; }
12221    fi
12222    ;;
12223  *)
12224    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12225$as_echo "no" >&6; }
12226    ;;
12227  esac
12228fi
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241  # Report which library types will actually be built
12242  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12243$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12245$as_echo "$can_build_shared" >&6; }
12246
12247  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12248$as_echo_n "checking whether to build shared libraries... " >&6; }
12249  test "$can_build_shared" = "no" && enable_shared=no
12250
12251  # On AIX, shared libraries and static libraries use the same namespace, and
12252  # are all built from PIC.
12253  case $host_os in
12254  aix3*)
12255    test "$enable_shared" = yes && enable_static=no
12256    if test -n "$RANLIB"; then
12257      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12258      postinstall_cmds='$RANLIB $lib'
12259    fi
12260    ;;
12261
12262  aix[4-9]*)
12263    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12264      test "$enable_shared" = yes && enable_static=no
12265    fi
12266    ;;
12267  esac
12268  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12269$as_echo "$enable_shared" >&6; }
12270
12271  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12272$as_echo_n "checking whether to build static libraries... " >&6; }
12273  # Make sure either enable_shared or enable_static is yes.
12274  test "$enable_shared" = yes || enable_static=yes
12275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12276$as_echo "$enable_static" >&6; }
12277
12278
12279
12280
12281fi
12282ac_ext=c
12283ac_cpp='$CPP $CPPFLAGS'
12284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12286ac_compiler_gnu=$ac_cv_c_compiler_gnu
12287
12288CC="$lt_save_CC"
12289
12290
12291ac_ext=cpp
12292ac_cpp='$CXXCPP $CPPFLAGS'
12293ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12294ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12295ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12296
12297archive_cmds_need_lc_CXX=no
12298allow_undefined_flag_CXX=
12299always_export_symbols_CXX=no
12300archive_expsym_cmds_CXX=
12301compiler_needs_object_CXX=no
12302export_dynamic_flag_spec_CXX=
12303hardcode_direct_CXX=no
12304hardcode_direct_absolute_CXX=no
12305hardcode_libdir_flag_spec_CXX=
12306hardcode_libdir_flag_spec_ld_CXX=
12307hardcode_libdir_separator_CXX=
12308hardcode_minus_L_CXX=no
12309hardcode_shlibpath_var_CXX=unsupported
12310hardcode_automatic_CXX=no
12311inherit_rpath_CXX=no
12312module_cmds_CXX=
12313module_expsym_cmds_CXX=
12314link_all_deplibs_CXX=unknown
12315old_archive_cmds_CXX=$old_archive_cmds
12316no_undefined_flag_CXX=
12317whole_archive_flag_spec_CXX=
12318enable_shared_with_static_runtimes_CXX=no
12319
12320# Source file extension for C++ test sources.
12321ac_ext=cpp
12322
12323# Object file extension for compiled C++ test sources.
12324objext=o
12325objext_CXX=$objext
12326
12327# No sense in running all these tests if we already determined that
12328# the CXX compiler isn't working.  Some variables (like enable_shared)
12329# are currently assumed to apply to all compilers on this platform,
12330# and will be corrupted by setting them based on a non-working compiler.
12331if test "$_lt_caught_CXX_error" != yes; then
12332  # Code to be used in simple compile tests
12333  lt_simple_compile_test_code="int some_variable = 0;"
12334
12335  # Code to be used in simple link tests
12336  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12337
12338  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12339
12340
12341
12342
12343
12344
12345# If no C compiler was specified, use CC.
12346LTCC=${LTCC-"$CC"}
12347
12348# If no C compiler flags were specified, use CFLAGS.
12349LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12350
12351# Allow CC to be a program name with arguments.
12352compiler=$CC
12353
12354
12355  # save warnings/boilerplate of simple test code
12356  ac_outfile=conftest.$ac_objext
12357echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12358eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12359_lt_compiler_boilerplate=`cat conftest.err`
12360$RM conftest*
12361
12362  ac_outfile=conftest.$ac_objext
12363echo "$lt_simple_link_test_code" >conftest.$ac_ext
12364eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12365_lt_linker_boilerplate=`cat conftest.err`
12366$RM -r conftest*
12367
12368
12369  # Allow CC to be a program name with arguments.
12370  lt_save_CC=$CC
12371  lt_save_LD=$LD
12372  lt_save_GCC=$GCC
12373  GCC=$GXX
12374  lt_save_with_gnu_ld=$with_gnu_ld
12375  lt_save_path_LD=$lt_cv_path_LD
12376  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12377    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12378  else
12379    $as_unset lt_cv_prog_gnu_ld
12380  fi
12381  if test -n "${lt_cv_path_LDCXX+set}"; then
12382    lt_cv_path_LD=$lt_cv_path_LDCXX
12383  else
12384    $as_unset lt_cv_path_LD
12385  fi
12386  test -z "${LDCXX+set}" || LD=$LDCXX
12387  CC=${CXX-"c++"}
12388  compiler=$CC
12389  compiler_CXX=$CC
12390  for cc_temp in $compiler""; do
12391  case $cc_temp in
12392    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12393    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12394    \-*) ;;
12395    *) break;;
12396  esac
12397done
12398cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12399
12400
12401  if test -n "$compiler"; then
12402    # We don't want -fno-exception when compiling C++ code, so set the
12403    # no_builtin_flag separately
12404    if test "$GXX" = yes; then
12405      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12406    else
12407      lt_prog_compiler_no_builtin_flag_CXX=
12408    fi
12409
12410    if test "$GXX" = yes; then
12411      # Set up default GNU C++ configuration
12412
12413
12414
12415# Check whether --with-gnu-ld was given.
12416if test "${with_gnu_ld+set}" = set; then :
12417  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12418else
12419  with_gnu_ld=no
12420fi
12421
12422ac_prog=ld
12423if test "$GCC" = yes; then
12424  # Check if gcc -print-prog-name=ld gives a path.
12425  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12426$as_echo_n "checking for ld used by $CC... " >&6; }
12427  case $host in
12428  *-*-mingw*)
12429    # gcc leaves a trailing carriage return which upsets mingw
12430    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12431  *)
12432    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12433  esac
12434  case $ac_prog in
12435    # Accept absolute paths.
12436    [\\/]* | ?:[\\/]*)
12437      re_direlt='/[^/][^/]*/\.\./'
12438      # Canonicalize the pathname of ld
12439      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12440      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12441	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12442      done
12443      test -z "$LD" && LD="$ac_prog"
12444      ;;
12445  "")
12446    # If it fails, then pretend we aren't using GCC.
12447    ac_prog=ld
12448    ;;
12449  *)
12450    # If it is relative, then search for the first ld in PATH.
12451    with_gnu_ld=unknown
12452    ;;
12453  esac
12454elif test "$with_gnu_ld" = yes; then
12455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12456$as_echo_n "checking for GNU ld... " >&6; }
12457else
12458  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12459$as_echo_n "checking for non-GNU ld... " >&6; }
12460fi
12461if test "${lt_cv_path_LD+set}" = set; then :
12462  $as_echo_n "(cached) " >&6
12463else
12464  if test -z "$LD"; then
12465  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12466  for ac_dir in $PATH; do
12467    IFS="$lt_save_ifs"
12468    test -z "$ac_dir" && ac_dir=.
12469    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12470      lt_cv_path_LD="$ac_dir/$ac_prog"
12471      # Check to see if the program is GNU ld.  I'd rather use --version,
12472      # but apparently some variants of GNU ld only accept -v.
12473      # Break only if it was the GNU/non-GNU ld that we prefer.
12474      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12475      *GNU* | *'with BFD'*)
12476	test "$with_gnu_ld" != no && break
12477	;;
12478      *)
12479	test "$with_gnu_ld" != yes && break
12480	;;
12481      esac
12482    fi
12483  done
12484  IFS="$lt_save_ifs"
12485else
12486  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12487fi
12488fi
12489
12490LD="$lt_cv_path_LD"
12491if test -n "$LD"; then
12492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12493$as_echo "$LD" >&6; }
12494else
12495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496$as_echo "no" >&6; }
12497fi
12498test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12500$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12501if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12502  $as_echo_n "(cached) " >&6
12503else
12504  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12505case `$LD -v 2>&1 </dev/null` in
12506*GNU* | *'with BFD'*)
12507  lt_cv_prog_gnu_ld=yes
12508  ;;
12509*)
12510  lt_cv_prog_gnu_ld=no
12511  ;;
12512esac
12513fi
12514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12515$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12516with_gnu_ld=$lt_cv_prog_gnu_ld
12517
12518
12519
12520
12521
12522
12523
12524      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12525      # archiving commands below assume that GNU ld is being used.
12526      if test "$with_gnu_ld" = yes; then
12527        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12528        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12529
12530        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12531        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12532
12533        # If archive_cmds runs LD, not CC, wlarc should be empty
12534        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12535        #     investigate it a little bit more. (MM)
12536        wlarc='${wl}'
12537
12538        # ancient GNU ld didn't support --whole-archive et. al.
12539        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12540	  $GREP 'no-whole-archive' > /dev/null; then
12541          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12542        else
12543          whole_archive_flag_spec_CXX=
12544        fi
12545      else
12546        with_gnu_ld=no
12547        wlarc=
12548
12549        # A generic and very simple default shared library creation
12550        # command for GNU C++ for the case where it uses the native
12551        # linker, instead of GNU ld.  If possible, this setting should
12552        # overridden to take advantage of the native linker features on
12553        # the platform it is being used on.
12554        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12555      fi
12556
12557      # Commands to make compiler produce verbose output that lists
12558      # what "hidden" libraries, object files and flags are used when
12559      # linking a shared library.
12560      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12561
12562    else
12563      GXX=no
12564      with_gnu_ld=no
12565      wlarc=
12566    fi
12567
12568    # PORTME: fill in a description of your system's C++ link characteristics
12569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12570$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12571    ld_shlibs_CXX=yes
12572    case $host_os in
12573      aix3*)
12574        # FIXME: insert proper C++ library support
12575        ld_shlibs_CXX=no
12576        ;;
12577      aix[4-9]*)
12578        if test "$host_cpu" = ia64; then
12579          # On IA64, the linker does run time linking by default, so we don't
12580          # have to do anything special.
12581          aix_use_runtimelinking=no
12582          exp_sym_flag='-Bexport'
12583          no_entry_flag=""
12584        else
12585          aix_use_runtimelinking=no
12586
12587          # Test if we are trying to use run time linking or normal
12588          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12589          # need to do runtime linking.
12590          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12591	    for ld_flag in $LDFLAGS; do
12592	      case $ld_flag in
12593	      *-brtl*)
12594	        aix_use_runtimelinking=yes
12595	        break
12596	        ;;
12597	      esac
12598	    done
12599	    ;;
12600          esac
12601
12602          exp_sym_flag='-bexport'
12603          no_entry_flag='-bnoentry'
12604        fi
12605
12606        # When large executables or shared objects are built, AIX ld can
12607        # have problems creating the table of contents.  If linking a library
12608        # or program results in "error TOC overflow" add -mminimal-toc to
12609        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12610        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12611
12612        archive_cmds_CXX=''
12613        hardcode_direct_CXX=yes
12614        hardcode_direct_absolute_CXX=yes
12615        hardcode_libdir_separator_CXX=':'
12616        link_all_deplibs_CXX=yes
12617        file_list_spec_CXX='${wl}-f,'
12618
12619        if test "$GXX" = yes; then
12620          case $host_os in aix4.[012]|aix4.[012].*)
12621          # We only want to do this on AIX 4.2 and lower, the check
12622          # below for broken collect2 doesn't work under 4.3+
12623	  collect2name=`${CC} -print-prog-name=collect2`
12624	  if test -f "$collect2name" &&
12625	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12626	  then
12627	    # We have reworked collect2
12628	    :
12629	  else
12630	    # We have old collect2
12631	    hardcode_direct_CXX=unsupported
12632	    # It fails to find uninstalled libraries when the uninstalled
12633	    # path is not listed in the libpath.  Setting hardcode_minus_L
12634	    # to unsupported forces relinking
12635	    hardcode_minus_L_CXX=yes
12636	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12637	    hardcode_libdir_separator_CXX=
12638	  fi
12639          esac
12640          shared_flag='-shared'
12641	  if test "$aix_use_runtimelinking" = yes; then
12642	    shared_flag="$shared_flag "'${wl}-G'
12643	  fi
12644        else
12645          # not using gcc
12646          if test "$host_cpu" = ia64; then
12647	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12648	  # chokes on -Wl,-G. The following line is correct:
12649	  shared_flag='-G'
12650          else
12651	    if test "$aix_use_runtimelinking" = yes; then
12652	      shared_flag='${wl}-G'
12653	    else
12654	      shared_flag='${wl}-bM:SRE'
12655	    fi
12656          fi
12657        fi
12658
12659        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12660        # It seems that -bexpall does not export symbols beginning with
12661        # underscore (_), so it is better to generate a list of symbols to
12662	# export.
12663        always_export_symbols_CXX=yes
12664        if test "$aix_use_runtimelinking" = yes; then
12665          # Warning - without using the other runtime loading flags (-brtl),
12666          # -berok will link without error, but may produce a broken library.
12667          allow_undefined_flag_CXX='-berok'
12668          # Determine the default libpath from the value encoded in an empty
12669          # executable.
12670          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671/* end confdefs.h.  */
12672
12673int
12674main ()
12675{
12676
12677  ;
12678  return 0;
12679}
12680_ACEOF
12681if ac_fn_cxx_try_link "$LINENO"; then :
12682
12683lt_aix_libpath_sed='
12684    /Import File Strings/,/^$/ {
12685	/^0/ {
12686	    s/^0  *\(.*\)$/\1/
12687	    p
12688	}
12689    }'
12690aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12691# Check for a 64-bit object if we didn't find anything.
12692if test -z "$aix_libpath"; then
12693  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12694fi
12695fi
12696rm -f core conftest.err conftest.$ac_objext \
12697    conftest$ac_exeext conftest.$ac_ext
12698if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12699
12700          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12701
12702          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12703        else
12704          if test "$host_cpu" = ia64; then
12705	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12706	    allow_undefined_flag_CXX="-z nodefs"
12707	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12708          else
12709	    # Determine the default libpath from the value encoded in an
12710	    # empty executable.
12711	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712/* end confdefs.h.  */
12713
12714int
12715main ()
12716{
12717
12718  ;
12719  return 0;
12720}
12721_ACEOF
12722if ac_fn_cxx_try_link "$LINENO"; then :
12723
12724lt_aix_libpath_sed='
12725    /Import File Strings/,/^$/ {
12726	/^0/ {
12727	    s/^0  *\(.*\)$/\1/
12728	    p
12729	}
12730    }'
12731aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12732# Check for a 64-bit object if we didn't find anything.
12733if test -z "$aix_libpath"; then
12734  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12735fi
12736fi
12737rm -f core conftest.err conftest.$ac_objext \
12738    conftest$ac_exeext conftest.$ac_ext
12739if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12740
12741	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12742	    # Warning - without using the other run time loading flags,
12743	    # -berok will link without error, but may produce a broken library.
12744	    no_undefined_flag_CXX=' ${wl}-bernotok'
12745	    allow_undefined_flag_CXX=' ${wl}-berok'
12746	    # Exported symbols can be pulled into shared objects from archives
12747	    whole_archive_flag_spec_CXX='$convenience'
12748	    archive_cmds_need_lc_CXX=yes
12749	    # This is similar to how AIX traditionally builds its shared
12750	    # libraries.
12751	    archive_expsym_cmds_CXX="\$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'
12752          fi
12753        fi
12754        ;;
12755
12756      beos*)
12757	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12758	  allow_undefined_flag_CXX=unsupported
12759	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12760	  # support --undefined.  This deserves some investigation.  FIXME
12761	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12762	else
12763	  ld_shlibs_CXX=no
12764	fi
12765	;;
12766
12767      chorus*)
12768        case $cc_basename in
12769          *)
12770	  # FIXME: insert proper C++ library support
12771	  ld_shlibs_CXX=no
12772	  ;;
12773        esac
12774        ;;
12775
12776      cygwin* | mingw* | pw32* | cegcc*)
12777        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12778        # as there is no search path for DLLs.
12779        hardcode_libdir_flag_spec_CXX='-L$libdir'
12780        allow_undefined_flag_CXX=unsupported
12781        always_export_symbols_CXX=no
12782        enable_shared_with_static_runtimes_CXX=yes
12783
12784        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12785          archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12786          # If the export-symbols file already is a .def file (1st line
12787          # is EXPORTS), use it as is; otherwise, prepend...
12788          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12789	    cp $export_symbols $output_objdir/$soname.def;
12790          else
12791	    echo EXPORTS > $output_objdir/$soname.def;
12792	    cat $export_symbols >> $output_objdir/$soname.def;
12793          fi~
12794          $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12795        else
12796          ld_shlibs_CXX=no
12797        fi
12798        ;;
12799      darwin* | rhapsody*)
12800
12801
12802  archive_cmds_need_lc_CXX=no
12803  hardcode_direct_CXX=no
12804  hardcode_automatic_CXX=yes
12805  hardcode_shlibpath_var_CXX=unsupported
12806  whole_archive_flag_spec_CXX=''
12807  link_all_deplibs_CXX=yes
12808  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12809  case $cc_basename in
12810     ifort*) _lt_dar_can_shared=yes ;;
12811     *) _lt_dar_can_shared=$GCC ;;
12812  esac
12813  if test "$_lt_dar_can_shared" = "yes"; then
12814    output_verbose_link_cmd=echo
12815    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12816    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12817    archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12818    module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12819       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12820      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12821      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12822    fi
12823
12824  else
12825  ld_shlibs_CXX=no
12826  fi
12827
12828	;;
12829
12830      dgux*)
12831        case $cc_basename in
12832          ec++*)
12833	    # FIXME: insert proper C++ library support
12834	    ld_shlibs_CXX=no
12835	    ;;
12836          ghcx*)
12837	    # Green Hills C++ Compiler
12838	    # FIXME: insert proper C++ library support
12839	    ld_shlibs_CXX=no
12840	    ;;
12841          *)
12842	    # FIXME: insert proper C++ library support
12843	    ld_shlibs_CXX=no
12844	    ;;
12845        esac
12846        ;;
12847
12848      freebsd[12]*)
12849        # C++ shared libraries reported to be fairly broken before
12850	# switch to ELF
12851        ld_shlibs_CXX=no
12852        ;;
12853
12854      freebsd-elf*)
12855        archive_cmds_need_lc_CXX=no
12856        ;;
12857
12858      freebsd* | dragonfly*)
12859        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12860        # conventions
12861        ld_shlibs_CXX=yes
12862        ;;
12863
12864      gnu*)
12865        ;;
12866
12867      hpux9*)
12868        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12869        hardcode_libdir_separator_CXX=:
12870        export_dynamic_flag_spec_CXX='${wl}-E'
12871        hardcode_direct_CXX=yes
12872        hardcode_minus_L_CXX=yes # Not in the search PATH,
12873				             # but as the default
12874				             # location of the library.
12875
12876        case $cc_basename in
12877          CC*)
12878            # FIXME: insert proper C++ library support
12879            ld_shlibs_CXX=no
12880            ;;
12881          aCC*)
12882            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12883            # Commands to make compiler produce verbose output that lists
12884            # what "hidden" libraries, object files and flags are used when
12885            # linking a shared library.
12886            #
12887            # There doesn't appear to be a way to prevent this compiler from
12888            # explicitly linking system object files so we need to strip them
12889            # from the output so that they don't get included in the library
12890            # dependencies.
12891            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12892            ;;
12893          *)
12894            if test "$GXX" = yes; then
12895              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12896            else
12897              # FIXME: insert proper C++ library support
12898              ld_shlibs_CXX=no
12899            fi
12900            ;;
12901        esac
12902        ;;
12903
12904      hpux10*|hpux11*)
12905        if test $with_gnu_ld = no; then
12906	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12907	  hardcode_libdir_separator_CXX=:
12908
12909          case $host_cpu in
12910            hppa*64*|ia64*)
12911              ;;
12912            *)
12913	      export_dynamic_flag_spec_CXX='${wl}-E'
12914              ;;
12915          esac
12916        fi
12917        case $host_cpu in
12918          hppa*64*|ia64*)
12919            hardcode_direct_CXX=no
12920            hardcode_shlibpath_var_CXX=no
12921            ;;
12922          *)
12923            hardcode_direct_CXX=yes
12924            hardcode_direct_absolute_CXX=yes
12925            hardcode_minus_L_CXX=yes # Not in the search PATH,
12926					         # but as the default
12927					         # location of the library.
12928            ;;
12929        esac
12930
12931        case $cc_basename in
12932          CC*)
12933	    # FIXME: insert proper C++ library support
12934	    ld_shlibs_CXX=no
12935	    ;;
12936          aCC*)
12937	    case $host_cpu in
12938	      hppa*64*)
12939	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12940	        ;;
12941	      ia64*)
12942	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12943	        ;;
12944	      *)
12945	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12946	        ;;
12947	    esac
12948	    # Commands to make compiler produce verbose output that lists
12949	    # what "hidden" libraries, object files and flags are used when
12950	    # linking a shared library.
12951	    #
12952	    # There doesn't appear to be a way to prevent this compiler from
12953	    # explicitly linking system object files so we need to strip them
12954	    # from the output so that they don't get included in the library
12955	    # dependencies.
12956	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
12957	    ;;
12958          *)
12959	    if test "$GXX" = yes; then
12960	      if test $with_gnu_ld = no; then
12961	        case $host_cpu in
12962	          hppa*64*)
12963	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12964	            ;;
12965	          ia64*)
12966	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12967	            ;;
12968	          *)
12969	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12970	            ;;
12971	        esac
12972	      fi
12973	    else
12974	      # FIXME: insert proper C++ library support
12975	      ld_shlibs_CXX=no
12976	    fi
12977	    ;;
12978        esac
12979        ;;
12980
12981      interix[3-9]*)
12982	hardcode_direct_CXX=no
12983	hardcode_shlibpath_var_CXX=no
12984	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12985	export_dynamic_flag_spec_CXX='${wl}-E'
12986	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12987	# Instead, shared libraries are loaded at an image base (0x10000000 by
12988	# default) and relocated if they conflict, which is a slow very memory
12989	# consuming and fragmenting process.  To avoid this, we pick a random,
12990	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12991	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12992	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12993	archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12994	;;
12995      irix5* | irix6*)
12996        case $cc_basename in
12997          CC*)
12998	    # SGI C++
12999	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13000
13001	    # Archives containing C++ object files must be created using
13002	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13003	    # necessary to make sure instantiated templates are included
13004	    # in the archive.
13005	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13006	    ;;
13007          *)
13008	    if test "$GXX" = yes; then
13009	      if test "$with_gnu_ld" = no; then
13010	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13011	      else
13012	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13013	      fi
13014	    fi
13015	    link_all_deplibs_CXX=yes
13016	    ;;
13017        esac
13018        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13019        hardcode_libdir_separator_CXX=:
13020        inherit_rpath_CXX=yes
13021        ;;
13022
13023      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13024        case $cc_basename in
13025          KCC*)
13026	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13027
13028	    # KCC will only create a shared library if the output file
13029	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13030	    # to its proper name (with version) after linking.
13031	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13032	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13033	    # Commands to make compiler produce verbose output that lists
13034	    # what "hidden" libraries, object files and flags are used when
13035	    # linking a shared library.
13036	    #
13037	    # There doesn't appear to be a way to prevent this compiler from
13038	    # explicitly linking system object files so we need to strip them
13039	    # from the output so that they don't get included in the library
13040	    # dependencies.
13041	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13042
13043	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13044	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13045
13046	    # Archives containing C++ object files must be created using
13047	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13048	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13049	    ;;
13050	  icpc* | ecpc* )
13051	    # Intel C++
13052	    with_gnu_ld=yes
13053	    # version 8.0 and above of icpc choke on multiply defined symbols
13054	    # if we add $predep_objects and $postdep_objects, however 7.1 and
13055	    # earlier do not add the objects themselves.
13056	    case `$CC -V 2>&1` in
13057	      *"Version 7."*)
13058	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13059		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13060		;;
13061	      *)  # Version 8.0 or newer
13062	        tmp_idyn=
13063	        case $host_cpu in
13064		  ia64*) tmp_idyn=' -i_dynamic';;
13065		esac
13066	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13067		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13068		;;
13069	    esac
13070	    archive_cmds_need_lc_CXX=no
13071	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13072	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13073	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13074	    ;;
13075          pgCC* | pgcpp*)
13076            # Portland Group C++ compiler
13077	    case `$CC -V` in
13078	    *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13079	      prelink_cmds_CXX='tpldir=Template.dir~
13080		rm -rf $tpldir~
13081		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13082		compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13083	      old_archive_cmds_CXX='tpldir=Template.dir~
13084		rm -rf $tpldir~
13085		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13086		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13087		$RANLIB $oldlib'
13088	      archive_cmds_CXX='tpldir=Template.dir~
13089		rm -rf $tpldir~
13090		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13091		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13092	      archive_expsym_cmds_CXX='tpldir=Template.dir~
13093		rm -rf $tpldir~
13094		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13095		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13096	      ;;
13097	    *) # Version 6 will use weak symbols
13098	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13099	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13100	      ;;
13101	    esac
13102
13103	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13104	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13105	    whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13106            ;;
13107	  cxx*)
13108	    # Compaq C++
13109	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13110	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13111
13112	    runpath_var=LD_RUN_PATH
13113	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13114	    hardcode_libdir_separator_CXX=:
13115
13116	    # Commands to make compiler produce verbose output that lists
13117	    # what "hidden" libraries, object files and flags are used when
13118	    # linking a shared library.
13119	    #
13120	    # There doesn't appear to be a way to prevent this compiler from
13121	    # explicitly linking system object files so we need to strip them
13122	    # from the output so that they don't get included in the library
13123	    # dependencies.
13124	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13125	    ;;
13126	  xl*)
13127	    # IBM XL 8.0 on PPC, with GNU ld
13128	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13129	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13130	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13131	    if test "x$supports_anon_versioning" = xyes; then
13132	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13133		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13134		echo "local: *; };" >> $output_objdir/$libname.ver~
13135		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13136	    fi
13137	    ;;
13138	  *)
13139	    case `$CC -V 2>&1 | sed 5q` in
13140	    *Sun\ C*)
13141	      # Sun C++ 5.9
13142	      no_undefined_flag_CXX=' -zdefs'
13143	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13144	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13145	      hardcode_libdir_flag_spec_CXX='-R$libdir'
13146	      whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13147	      compiler_needs_object_CXX=yes
13148
13149	      # Not sure whether something based on
13150	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13151	      # would be better.
13152	      output_verbose_link_cmd='echo'
13153
13154	      # Archives containing C++ object files must be created using
13155	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13156	      # necessary to make sure instantiated templates are included
13157	      # in the archive.
13158	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13159	      ;;
13160	    esac
13161	    ;;
13162	esac
13163	;;
13164
13165      lynxos*)
13166        # FIXME: insert proper C++ library support
13167	ld_shlibs_CXX=no
13168	;;
13169
13170      m88k*)
13171        # FIXME: insert proper C++ library support
13172        ld_shlibs_CXX=no
13173	;;
13174
13175      mvs*)
13176        case $cc_basename in
13177          cxx*)
13178	    # FIXME: insert proper C++ library support
13179	    ld_shlibs_CXX=no
13180	    ;;
13181	  *)
13182	    # FIXME: insert proper C++ library support
13183	    ld_shlibs_CXX=no
13184	    ;;
13185	esac
13186	;;
13187
13188      netbsd*)
13189        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13190	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13191	  wlarc=
13192	  hardcode_libdir_flag_spec_CXX='-R$libdir'
13193	  hardcode_direct_CXX=yes
13194	  hardcode_shlibpath_var_CXX=no
13195	fi
13196	# Workaround some broken pre-1.5 toolchains
13197	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13198	;;
13199
13200      *nto* | *qnx*)
13201        ld_shlibs_CXX=yes
13202	;;
13203
13204      openbsd2*)
13205        # C++ shared libraries are fairly broken
13206	ld_shlibs_CXX=no
13207	;;
13208
13209      openbsd*)
13210	if test -f /usr/libexec/ld.so; then
13211	  hardcode_direct_CXX=yes
13212	  hardcode_shlibpath_var_CXX=no
13213	  hardcode_direct_absolute_CXX=yes
13214	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13215	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13216	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13217	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13218	    export_dynamic_flag_spec_CXX='${wl}-E'
13219	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13220	  fi
13221	  output_verbose_link_cmd=echo
13222	else
13223	  ld_shlibs_CXX=no
13224	fi
13225	;;
13226
13227      osf3* | osf4* | osf5*)
13228        case $cc_basename in
13229          KCC*)
13230	    # Kuck and Associates, Inc. (KAI) C++ Compiler
13231
13232	    # KCC will only create a shared library if the output file
13233	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
13234	    # to its proper name (with version) after linking.
13235	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13236
13237	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13238	    hardcode_libdir_separator_CXX=:
13239
13240	    # Archives containing C++ object files must be created using
13241	    # the KAI C++ compiler.
13242	    case $host in
13243	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13244	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13245	    esac
13246	    ;;
13247          RCC*)
13248	    # Rational C++ 2.4.1
13249	    # FIXME: insert proper C++ library support
13250	    ld_shlibs_CXX=no
13251	    ;;
13252          cxx*)
13253	    case $host in
13254	      osf3*)
13255	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13256	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13257	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13258		;;
13259	      *)
13260	        allow_undefined_flag_CXX=' -expect_unresolved \*'
13261	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13262	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13263	          echo "-hidden">> $lib.exp~
13264	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13265	          $RM $lib.exp'
13266	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13267		;;
13268	    esac
13269
13270	    hardcode_libdir_separator_CXX=:
13271
13272	    # Commands to make compiler produce verbose output that lists
13273	    # what "hidden" libraries, object files and flags are used when
13274	    # linking a shared library.
13275	    #
13276	    # There doesn't appear to be a way to prevent this compiler from
13277	    # explicitly linking system object files so we need to strip them
13278	    # from the output so that they don't get included in the library
13279	    # dependencies.
13280	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13281	    ;;
13282	  *)
13283	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13284	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13285	      case $host in
13286	        osf3*)
13287	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13288		  ;;
13289	        *)
13290	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13291		  ;;
13292	      esac
13293
13294	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13295	      hardcode_libdir_separator_CXX=:
13296
13297	      # Commands to make compiler produce verbose output that lists
13298	      # what "hidden" libraries, object files and flags are used when
13299	      # linking a shared library.
13300	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13301
13302	    else
13303	      # FIXME: insert proper C++ library support
13304	      ld_shlibs_CXX=no
13305	    fi
13306	    ;;
13307        esac
13308        ;;
13309
13310      psos*)
13311        # FIXME: insert proper C++ library support
13312        ld_shlibs_CXX=no
13313        ;;
13314
13315      sunos4*)
13316        case $cc_basename in
13317          CC*)
13318	    # Sun C++ 4.x
13319	    # FIXME: insert proper C++ library support
13320	    ld_shlibs_CXX=no
13321	    ;;
13322          lcc*)
13323	    # Lucid
13324	    # FIXME: insert proper C++ library support
13325	    ld_shlibs_CXX=no
13326	    ;;
13327          *)
13328	    # FIXME: insert proper C++ library support
13329	    ld_shlibs_CXX=no
13330	    ;;
13331        esac
13332        ;;
13333
13334      solaris*)
13335        case $cc_basename in
13336          CC*)
13337	    # Sun C++ 4.2, 5.x and Centerline C++
13338            archive_cmds_need_lc_CXX=yes
13339	    no_undefined_flag_CXX=' -zdefs'
13340	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13341	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13342	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13343
13344	    hardcode_libdir_flag_spec_CXX='-R$libdir'
13345	    hardcode_shlibpath_var_CXX=no
13346	    case $host_os in
13347	      solaris2.[0-5] | solaris2.[0-5].*) ;;
13348	      *)
13349		# The compiler driver will combine and reorder linker options,
13350		# but understands `-z linker_flag'.
13351	        # Supported since Solaris 2.6 (maybe 2.5.1?)
13352		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13353	        ;;
13354	    esac
13355	    link_all_deplibs_CXX=yes
13356
13357	    output_verbose_link_cmd='echo'
13358
13359	    # Archives containing C++ object files must be created using
13360	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13361	    # necessary to make sure instantiated templates are included
13362	    # in the archive.
13363	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13364	    ;;
13365          gcx*)
13366	    # Green Hills C++ Compiler
13367	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13368
13369	    # The C++ compiler must be used to create the archive.
13370	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13371	    ;;
13372          *)
13373	    # GNU C++ compiler with Solaris linker
13374	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13375	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13376	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13377	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13378	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13379		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13380
13381	        # Commands to make compiler produce verbose output that lists
13382	        # what "hidden" libraries, object files and flags are used when
13383	        # linking a shared library.
13384	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13385	      else
13386	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13387	        # platform.
13388	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13389	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13390		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13391
13392	        # Commands to make compiler produce verbose output that lists
13393	        # what "hidden" libraries, object files and flags are used when
13394	        # linking a shared library.
13395	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13396	      fi
13397
13398	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13399	      case $host_os in
13400		solaris2.[0-5] | solaris2.[0-5].*) ;;
13401		*)
13402		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13403		  ;;
13404	      esac
13405	    fi
13406	    ;;
13407        esac
13408        ;;
13409
13410    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13411      no_undefined_flag_CXX='${wl}-z,text'
13412      archive_cmds_need_lc_CXX=no
13413      hardcode_shlibpath_var_CXX=no
13414      runpath_var='LD_RUN_PATH'
13415
13416      case $cc_basename in
13417        CC*)
13418	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13419	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13420	  ;;
13421	*)
13422	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13423	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13424	  ;;
13425      esac
13426      ;;
13427
13428      sysv5* | sco3.2v5* | sco5v6*)
13429	# Note: We can NOT use -z defs as we might desire, because we do not
13430	# link with -lc, and that would cause any symbols used from libc to
13431	# always be unresolved, which means just about no library would
13432	# ever link correctly.  If we're not using GNU ld we use -z text
13433	# though, which does catch some bad symbols but isn't as heavy-handed
13434	# as -z defs.
13435	no_undefined_flag_CXX='${wl}-z,text'
13436	allow_undefined_flag_CXX='${wl}-z,nodefs'
13437	archive_cmds_need_lc_CXX=no
13438	hardcode_shlibpath_var_CXX=no
13439	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13440	hardcode_libdir_separator_CXX=':'
13441	link_all_deplibs_CXX=yes
13442	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13443	runpath_var='LD_RUN_PATH'
13444
13445	case $cc_basename in
13446          CC*)
13447	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13448	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13449	    ;;
13450	  *)
13451	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13452	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13453	    ;;
13454	esac
13455      ;;
13456
13457      tandem*)
13458        case $cc_basename in
13459          NCC*)
13460	    # NonStop-UX NCC 3.20
13461	    # FIXME: insert proper C++ library support
13462	    ld_shlibs_CXX=no
13463	    ;;
13464          *)
13465	    # FIXME: insert proper C++ library support
13466	    ld_shlibs_CXX=no
13467	    ;;
13468        esac
13469        ;;
13470
13471      vxworks*)
13472        # FIXME: insert proper C++ library support
13473        ld_shlibs_CXX=no
13474        ;;
13475
13476      *)
13477        # FIXME: insert proper C++ library support
13478        ld_shlibs_CXX=no
13479        ;;
13480    esac
13481
13482    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13483$as_echo "$ld_shlibs_CXX" >&6; }
13484    test "$ld_shlibs_CXX" = no && can_build_shared=no
13485
13486    GCC_CXX="$GXX"
13487    LD_CXX="$LD"
13488
13489    ## CAVEAT EMPTOR:
13490    ## There is no encapsulation within the following macros, do not change
13491    ## the running order or otherwise move them around unless you know exactly
13492    ## what you are doing...
13493    # Dependencies to place before and after the object being linked:
13494predep_objects_CXX=
13495postdep_objects_CXX=
13496predeps_CXX=
13497postdeps_CXX=
13498compiler_lib_search_path_CXX=
13499
13500cat > conftest.$ac_ext <<_LT_EOF
13501class Foo
13502{
13503public:
13504  Foo (void) { a = 0; }
13505private:
13506  int a;
13507};
13508_LT_EOF
13509
13510if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13511  (eval $ac_compile) 2>&5
13512  ac_status=$?
13513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13514  test $ac_status = 0; }; then
13515  # Parse the compiler output and extract the necessary
13516  # objects, libraries and library flags.
13517
13518  # Sentinel used to keep track of whether or not we are before
13519  # the conftest object file.
13520  pre_test_object_deps_done=no
13521
13522  for p in `eval "$output_verbose_link_cmd"`; do
13523    case $p in
13524
13525    -L* | -R* | -l*)
13526       # Some compilers place space between "-{L,R}" and the path.
13527       # Remove the space.
13528       if test $p = "-L" ||
13529          test $p = "-R"; then
13530	 prev=$p
13531	 continue
13532       else
13533	 prev=
13534       fi
13535
13536       if test "$pre_test_object_deps_done" = no; then
13537	 case $p in
13538	 -L* | -R*)
13539	   # Internal compiler library paths should come after those
13540	   # provided the user.  The postdeps already come after the
13541	   # user supplied libs so there is no need to process them.
13542	   if test -z "$compiler_lib_search_path_CXX"; then
13543	     compiler_lib_search_path_CXX="${prev}${p}"
13544	   else
13545	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13546	   fi
13547	   ;;
13548	 # The "-l" case would never come before the object being
13549	 # linked, so don't bother handling this case.
13550	 esac
13551       else
13552	 if test -z "$postdeps_CXX"; then
13553	   postdeps_CXX="${prev}${p}"
13554	 else
13555	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13556	 fi
13557       fi
13558       ;;
13559
13560    *.$objext)
13561       # This assumes that the test object file only shows up
13562       # once in the compiler output.
13563       if test "$p" = "conftest.$objext"; then
13564	 pre_test_object_deps_done=yes
13565	 continue
13566       fi
13567
13568       if test "$pre_test_object_deps_done" = no; then
13569	 if test -z "$predep_objects_CXX"; then
13570	   predep_objects_CXX="$p"
13571	 else
13572	   predep_objects_CXX="$predep_objects_CXX $p"
13573	 fi
13574       else
13575	 if test -z "$postdep_objects_CXX"; then
13576	   postdep_objects_CXX="$p"
13577	 else
13578	   postdep_objects_CXX="$postdep_objects_CXX $p"
13579	 fi
13580       fi
13581       ;;
13582
13583    *) ;; # Ignore the rest.
13584
13585    esac
13586  done
13587
13588  # Clean up.
13589  rm -f a.out a.exe
13590else
13591  echo "libtool.m4: error: problem compiling CXX test program"
13592fi
13593
13594$RM -f confest.$objext
13595
13596# PORTME: override above test on systems where it is broken
13597case $host_os in
13598interix[3-9]*)
13599  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13600  # hack all around it, let's just trust "g++" to DTRT.
13601  predep_objects_CXX=
13602  postdep_objects_CXX=
13603  postdeps_CXX=
13604  ;;
13605
13606linux*)
13607  case `$CC -V 2>&1 | sed 5q` in
13608  *Sun\ C*)
13609    # Sun C++ 5.9
13610
13611    # The more standards-conforming stlport4 library is
13612    # incompatible with the Cstd library. Avoid specifying
13613    # it if it's in CXXFLAGS. Ignore libCrun as
13614    # -library=stlport4 depends on it.
13615    case " $CXX $CXXFLAGS " in
13616    *" -library=stlport4 "*)
13617      solaris_use_stlport4=yes
13618      ;;
13619    esac
13620
13621    if test "$solaris_use_stlport4" != yes; then
13622      postdeps_CXX='-library=Cstd -library=Crun'
13623    fi
13624    ;;
13625  esac
13626  ;;
13627
13628solaris*)
13629  case $cc_basename in
13630  CC*)
13631    # The more standards-conforming stlport4 library is
13632    # incompatible with the Cstd library. Avoid specifying
13633    # it if it's in CXXFLAGS. Ignore libCrun as
13634    # -library=stlport4 depends on it.
13635    case " $CXX $CXXFLAGS " in
13636    *" -library=stlport4 "*)
13637      solaris_use_stlport4=yes
13638      ;;
13639    esac
13640
13641    # Adding this requires a known-good setup of shared libraries for
13642    # Sun compiler versions before 5.6, else PIC objects from an old
13643    # archive will be linked into the output, leading to subtle bugs.
13644    if test "$solaris_use_stlport4" != yes; then
13645      postdeps_CXX='-library=Cstd -library=Crun'
13646    fi
13647    ;;
13648  esac
13649  ;;
13650esac
13651
13652
13653case " $postdeps_CXX " in
13654*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13655esac
13656 compiler_lib_search_dirs_CXX=
13657if test -n "${compiler_lib_search_path_CXX}"; then
13658 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13659fi
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691    lt_prog_compiler_wl_CXX=
13692lt_prog_compiler_pic_CXX=
13693lt_prog_compiler_static_CXX=
13694
13695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13696$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13697
13698  # C++ specific cases for pic, static, wl, etc.
13699  if test "$GXX" = yes; then
13700    lt_prog_compiler_wl_CXX='-Wl,'
13701    lt_prog_compiler_static_CXX='-static'
13702
13703    case $host_os in
13704    aix*)
13705      # All AIX code is PIC.
13706      if test "$host_cpu" = ia64; then
13707	# AIX 5 now supports IA64 processor
13708	lt_prog_compiler_static_CXX='-Bstatic'
13709      fi
13710      ;;
13711
13712    amigaos*)
13713      case $host_cpu in
13714      powerpc)
13715            # see comment about AmigaOS4 .so support
13716            lt_prog_compiler_pic_CXX='-fPIC'
13717        ;;
13718      m68k)
13719            # FIXME: we need at least 68020 code to build shared libraries, but
13720            # adding the `-m68020' flag to GCC prevents building anything better,
13721            # like `-m68040'.
13722            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13723        ;;
13724      esac
13725      ;;
13726
13727    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13728      # PIC is the default for these OSes.
13729      ;;
13730    mingw* | cygwin* | os2* | pw32* | cegcc*)
13731      # This hack is so that the source file can tell whether it is being
13732      # built for inclusion in a dll (and should export symbols for example).
13733      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13734      # (--disable-auto-import) libraries
13735      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13736      ;;
13737    darwin* | rhapsody*)
13738      # PIC is the default on this platform
13739      # Common symbols not allowed in MH_DYLIB files
13740      lt_prog_compiler_pic_CXX='-fno-common'
13741      ;;
13742    *djgpp*)
13743      # DJGPP does not support shared libraries at all
13744      lt_prog_compiler_pic_CXX=
13745      ;;
13746    interix[3-9]*)
13747      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13748      # Instead, we relocate shared libraries at runtime.
13749      ;;
13750    sysv4*MP*)
13751      if test -d /usr/nec; then
13752	lt_prog_compiler_pic_CXX=-Kconform_pic
13753      fi
13754      ;;
13755    hpux*)
13756      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13757      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13758      # sets the default TLS model and affects inlining.
13759      case $host_cpu in
13760      hppa*64*)
13761	;;
13762      *)
13763	lt_prog_compiler_pic_CXX='-fPIC'
13764	;;
13765      esac
13766      ;;
13767    *qnx* | *nto*)
13768      # QNX uses GNU C++, but need to define -shared option too, otherwise
13769      # it will coredump.
13770      lt_prog_compiler_pic_CXX='-fPIC -shared'
13771      ;;
13772    *)
13773      lt_prog_compiler_pic_CXX='-fPIC'
13774      ;;
13775    esac
13776  else
13777    case $host_os in
13778      aix[4-9]*)
13779	# All AIX code is PIC.
13780	if test "$host_cpu" = ia64; then
13781	  # AIX 5 now supports IA64 processor
13782	  lt_prog_compiler_static_CXX='-Bstatic'
13783	else
13784	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13785	fi
13786	;;
13787      chorus*)
13788	case $cc_basename in
13789	cxch68*)
13790	  # Green Hills C++ Compiler
13791	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13792	  ;;
13793	esac
13794	;;
13795      dgux*)
13796	case $cc_basename in
13797	  ec++*)
13798	    lt_prog_compiler_pic_CXX='-KPIC'
13799	    ;;
13800	  ghcx*)
13801	    # Green Hills C++ Compiler
13802	    lt_prog_compiler_pic_CXX='-pic'
13803	    ;;
13804	  *)
13805	    ;;
13806	esac
13807	;;
13808      freebsd* | dragonfly*)
13809	# FreeBSD uses GNU C++
13810	;;
13811      hpux9* | hpux10* | hpux11*)
13812	case $cc_basename in
13813	  CC*)
13814	    lt_prog_compiler_wl_CXX='-Wl,'
13815	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13816	    if test "$host_cpu" != ia64; then
13817	      lt_prog_compiler_pic_CXX='+Z'
13818	    fi
13819	    ;;
13820	  aCC*)
13821	    lt_prog_compiler_wl_CXX='-Wl,'
13822	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13823	    case $host_cpu in
13824	    hppa*64*|ia64*)
13825	      # +Z the default
13826	      ;;
13827	    *)
13828	      lt_prog_compiler_pic_CXX='+Z'
13829	      ;;
13830	    esac
13831	    ;;
13832	  *)
13833	    ;;
13834	esac
13835	;;
13836      interix*)
13837	# This is c89, which is MS Visual C++ (no shared libs)
13838	# Anyone wants to do a port?
13839	;;
13840      irix5* | irix6* | nonstopux*)
13841	case $cc_basename in
13842	  CC*)
13843	    lt_prog_compiler_wl_CXX='-Wl,'
13844	    lt_prog_compiler_static_CXX='-non_shared'
13845	    # CC pic flag -KPIC is the default.
13846	    ;;
13847	  *)
13848	    ;;
13849	esac
13850	;;
13851      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13852	case $cc_basename in
13853	  KCC*)
13854	    # KAI C++ Compiler
13855	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13856	    lt_prog_compiler_pic_CXX='-fPIC'
13857	    ;;
13858	  ecpc* )
13859	    # old Intel C++ for x86_64 which still supported -KPIC.
13860	    lt_prog_compiler_wl_CXX='-Wl,'
13861	    lt_prog_compiler_pic_CXX='-KPIC'
13862	    lt_prog_compiler_static_CXX='-static'
13863	    ;;
13864	  icpc* )
13865	    # Intel C++, used to be incompatible with GCC.
13866	    # ICC 10 doesn't accept -KPIC any more.
13867	    lt_prog_compiler_wl_CXX='-Wl,'
13868	    lt_prog_compiler_pic_CXX='-fPIC'
13869	    lt_prog_compiler_static_CXX='-static'
13870	    ;;
13871	  pgCC* | pgcpp*)
13872	    # Portland Group C++ compiler
13873	    lt_prog_compiler_wl_CXX='-Wl,'
13874	    lt_prog_compiler_pic_CXX='-fpic'
13875	    lt_prog_compiler_static_CXX='-Bstatic'
13876	    ;;
13877	  cxx*)
13878	    # Compaq C++
13879	    # Make sure the PIC flag is empty.  It appears that all Alpha
13880	    # Linux and Compaq Tru64 Unix objects are PIC.
13881	    lt_prog_compiler_pic_CXX=
13882	    lt_prog_compiler_static_CXX='-non_shared'
13883	    ;;
13884	  xlc* | xlC*)
13885	    # IBM XL 8.0 on PPC
13886	    lt_prog_compiler_wl_CXX='-Wl,'
13887	    lt_prog_compiler_pic_CXX='-qpic'
13888	    lt_prog_compiler_static_CXX='-qstaticlink'
13889	    ;;
13890	  *)
13891	    case `$CC -V 2>&1 | sed 5q` in
13892	    *Sun\ C*)
13893	      # Sun C++ 5.9
13894	      lt_prog_compiler_pic_CXX='-KPIC'
13895	      lt_prog_compiler_static_CXX='-Bstatic'
13896	      lt_prog_compiler_wl_CXX='-Qoption ld '
13897	      ;;
13898	    esac
13899	    ;;
13900	esac
13901	;;
13902      lynxos*)
13903	;;
13904      m88k*)
13905	;;
13906      mvs*)
13907	case $cc_basename in
13908	  cxx*)
13909	    lt_prog_compiler_pic_CXX='-W c,exportall'
13910	    ;;
13911	  *)
13912	    ;;
13913	esac
13914	;;
13915      netbsd* | netbsdelf*-gnu)
13916	;;
13917      *qnx* | *nto*)
13918        # QNX uses GNU C++, but need to define -shared option too, otherwise
13919        # it will coredump.
13920        lt_prog_compiler_pic_CXX='-fPIC -shared'
13921        ;;
13922      osf3* | osf4* | osf5*)
13923	case $cc_basename in
13924	  KCC*)
13925	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13926	    ;;
13927	  RCC*)
13928	    # Rational C++ 2.4.1
13929	    lt_prog_compiler_pic_CXX='-pic'
13930	    ;;
13931	  cxx*)
13932	    # Digital/Compaq C++
13933	    lt_prog_compiler_wl_CXX='-Wl,'
13934	    # Make sure the PIC flag is empty.  It appears that all Alpha
13935	    # Linux and Compaq Tru64 Unix objects are PIC.
13936	    lt_prog_compiler_pic_CXX=
13937	    lt_prog_compiler_static_CXX='-non_shared'
13938	    ;;
13939	  *)
13940	    ;;
13941	esac
13942	;;
13943      psos*)
13944	;;
13945      solaris*)
13946	case $cc_basename in
13947	  CC*)
13948	    # Sun C++ 4.2, 5.x and Centerline C++
13949	    lt_prog_compiler_pic_CXX='-KPIC'
13950	    lt_prog_compiler_static_CXX='-Bstatic'
13951	    lt_prog_compiler_wl_CXX='-Qoption ld '
13952	    ;;
13953	  gcx*)
13954	    # Green Hills C++ Compiler
13955	    lt_prog_compiler_pic_CXX='-PIC'
13956	    ;;
13957	  *)
13958	    ;;
13959	esac
13960	;;
13961      sunos4*)
13962	case $cc_basename in
13963	  CC*)
13964	    # Sun C++ 4.x
13965	    lt_prog_compiler_pic_CXX='-pic'
13966	    lt_prog_compiler_static_CXX='-Bstatic'
13967	    ;;
13968	  lcc*)
13969	    # Lucid
13970	    lt_prog_compiler_pic_CXX='-pic'
13971	    ;;
13972	  *)
13973	    ;;
13974	esac
13975	;;
13976      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13977	case $cc_basename in
13978	  CC*)
13979	    lt_prog_compiler_wl_CXX='-Wl,'
13980	    lt_prog_compiler_pic_CXX='-KPIC'
13981	    lt_prog_compiler_static_CXX='-Bstatic'
13982	    ;;
13983	esac
13984	;;
13985      tandem*)
13986	case $cc_basename in
13987	  NCC*)
13988	    # NonStop-UX NCC 3.20
13989	    lt_prog_compiler_pic_CXX='-KPIC'
13990	    ;;
13991	  *)
13992	    ;;
13993	esac
13994	;;
13995      vxworks*)
13996	;;
13997      *)
13998	lt_prog_compiler_can_build_shared_CXX=no
13999	;;
14000    esac
14001  fi
14002
14003case $host_os in
14004  # For platforms which do not support PIC, -DPIC is meaningless:
14005  *djgpp*)
14006    lt_prog_compiler_pic_CXX=
14007    ;;
14008  *)
14009    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14010    ;;
14011esac
14012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14013$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14014
14015
14016
14017#
14018# Check to make sure the PIC flag actually works.
14019#
14020if test -n "$lt_prog_compiler_pic_CXX"; then
14021  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14022$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14023if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
14024  $as_echo_n "(cached) " >&6
14025else
14026  lt_cv_prog_compiler_pic_works_CXX=no
14027   ac_outfile=conftest.$ac_objext
14028   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14029   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14030   # Insert the option either (1) after the last *FLAGS variable, or
14031   # (2) before a word containing "conftest.", or (3) at the end.
14032   # Note that $ac_compile itself does not contain backslashes and begins
14033   # with a dollar sign (not a hyphen), so the echo should work correctly.
14034   # The option is referenced via a variable to avoid confusing sed.
14035   lt_compile=`echo "$ac_compile" | $SED \
14036   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14037   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14038   -e 's:$: $lt_compiler_flag:'`
14039   (eval echo "\"\$as_me:14039: $lt_compile\"" >&5)
14040   (eval "$lt_compile" 2>conftest.err)
14041   ac_status=$?
14042   cat conftest.err >&5
14043   echo "$as_me:14043: \$? = $ac_status" >&5
14044   if (exit $ac_status) && test -s "$ac_outfile"; then
14045     # The compiler can only warn and ignore the option if not recognized
14046     # So say no if there are warnings other than the usual output.
14047     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14048     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14049     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14050       lt_cv_prog_compiler_pic_works_CXX=yes
14051     fi
14052   fi
14053   $RM conftest*
14054
14055fi
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14057$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14058
14059if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14060    case $lt_prog_compiler_pic_CXX in
14061     "" | " "*) ;;
14062     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14063     esac
14064else
14065    lt_prog_compiler_pic_CXX=
14066     lt_prog_compiler_can_build_shared_CXX=no
14067fi
14068
14069fi
14070
14071
14072
14073#
14074# Check to make sure the static flag actually works.
14075#
14076wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14078$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14079if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
14080  $as_echo_n "(cached) " >&6
14081else
14082  lt_cv_prog_compiler_static_works_CXX=no
14083   save_LDFLAGS="$LDFLAGS"
14084   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14085   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14086   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14087     # The linker can only warn and ignore the option if not recognized
14088     # So say no if there are warnings
14089     if test -s conftest.err; then
14090       # Append any errors to the config.log.
14091       cat conftest.err 1>&5
14092       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14093       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14094       if diff conftest.exp conftest.er2 >/dev/null; then
14095         lt_cv_prog_compiler_static_works_CXX=yes
14096       fi
14097     else
14098       lt_cv_prog_compiler_static_works_CXX=yes
14099     fi
14100   fi
14101   $RM -r conftest*
14102   LDFLAGS="$save_LDFLAGS"
14103
14104fi
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14106$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14107
14108if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14109    :
14110else
14111    lt_prog_compiler_static_CXX=
14112fi
14113
14114
14115
14116
14117    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14118$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14119if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14120  $as_echo_n "(cached) " >&6
14121else
14122  lt_cv_prog_compiler_c_o_CXX=no
14123   $RM -r conftest 2>/dev/null
14124   mkdir conftest
14125   cd conftest
14126   mkdir out
14127   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14128
14129   lt_compiler_flag="-o out/conftest2.$ac_objext"
14130   # Insert the option either (1) after the last *FLAGS variable, or
14131   # (2) before a word containing "conftest.", or (3) at the end.
14132   # Note that $ac_compile itself does not contain backslashes and begins
14133   # with a dollar sign (not a hyphen), so the echo should work correctly.
14134   lt_compile=`echo "$ac_compile" | $SED \
14135   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14136   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14137   -e 's:$: $lt_compiler_flag:'`
14138   (eval echo "\"\$as_me:14138: $lt_compile\"" >&5)
14139   (eval "$lt_compile" 2>out/conftest.err)
14140   ac_status=$?
14141   cat out/conftest.err >&5
14142   echo "$as_me:14142: \$? = $ac_status" >&5
14143   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14144   then
14145     # The compiler can only warn and ignore the option if not recognized
14146     # So say no if there are warnings
14147     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14148     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14149     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14150       lt_cv_prog_compiler_c_o_CXX=yes
14151     fi
14152   fi
14153   chmod u+w . 2>&5
14154   $RM conftest*
14155   # SGI C++ compiler will create directory out/ii_files/ for
14156   # template instantiation
14157   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14158   $RM out/* && rmdir out
14159   cd ..
14160   $RM -r conftest
14161   $RM conftest*
14162
14163fi
14164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14165$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14166
14167
14168
14169    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14170$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14171if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14172  $as_echo_n "(cached) " >&6
14173else
14174  lt_cv_prog_compiler_c_o_CXX=no
14175   $RM -r conftest 2>/dev/null
14176   mkdir conftest
14177   cd conftest
14178   mkdir out
14179   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14180
14181   lt_compiler_flag="-o out/conftest2.$ac_objext"
14182   # Insert the option either (1) after the last *FLAGS variable, or
14183   # (2) before a word containing "conftest.", or (3) at the end.
14184   # Note that $ac_compile itself does not contain backslashes and begins
14185   # with a dollar sign (not a hyphen), so the echo should work correctly.
14186   lt_compile=`echo "$ac_compile" | $SED \
14187   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14188   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14189   -e 's:$: $lt_compiler_flag:'`
14190   (eval echo "\"\$as_me:14190: $lt_compile\"" >&5)
14191   (eval "$lt_compile" 2>out/conftest.err)
14192   ac_status=$?
14193   cat out/conftest.err >&5
14194   echo "$as_me:14194: \$? = $ac_status" >&5
14195   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14196   then
14197     # The compiler can only warn and ignore the option if not recognized
14198     # So say no if there are warnings
14199     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14200     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14201     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14202       lt_cv_prog_compiler_c_o_CXX=yes
14203     fi
14204   fi
14205   chmod u+w . 2>&5
14206   $RM conftest*
14207   # SGI C++ compiler will create directory out/ii_files/ for
14208   # template instantiation
14209   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14210   $RM out/* && rmdir out
14211   cd ..
14212   $RM -r conftest
14213   $RM conftest*
14214
14215fi
14216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14217$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14218
14219
14220
14221
14222hard_links="nottested"
14223if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14224  # do not overwrite the value of need_locks provided by the user
14225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14226$as_echo_n "checking if we can lock with hard links... " >&6; }
14227  hard_links=yes
14228  $RM conftest*
14229  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14230  touch conftest.a
14231  ln conftest.a conftest.b 2>&5 || hard_links=no
14232  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14234$as_echo "$hard_links" >&6; }
14235  if test "$hard_links" = no; then
14236    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14237$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14238    need_locks=warn
14239  fi
14240else
14241  need_locks=no
14242fi
14243
14244
14245
14246    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14247$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14248
14249  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14250  case $host_os in
14251  aix[4-9]*)
14252    # If we're using GNU nm, then we don't want the "-C" option.
14253    # -C means demangle to AIX nm, but means don't demangle with GNU nm
14254    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14255      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14256    else
14257      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14258    fi
14259    ;;
14260  pw32*)
14261    export_symbols_cmds_CXX="$ltdll_cmds"
14262  ;;
14263  cygwin* | mingw* | cegcc*)
14264    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14265  ;;
14266  linux* | k*bsd*-gnu)
14267    link_all_deplibs_CXX=no
14268  ;;
14269  *)
14270    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14271  ;;
14272  esac
14273  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14274
14275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14276$as_echo "$ld_shlibs_CXX" >&6; }
14277test "$ld_shlibs_CXX" = no && can_build_shared=no
14278
14279with_gnu_ld_CXX=$with_gnu_ld
14280
14281
14282
14283
14284
14285
14286#
14287# Do we need to explicitly link libc?
14288#
14289case "x$archive_cmds_need_lc_CXX" in
14290x|xyes)
14291  # Assume -lc should be added
14292  archive_cmds_need_lc_CXX=yes
14293
14294  if test "$enable_shared" = yes && test "$GCC" = yes; then
14295    case $archive_cmds_CXX in
14296    *'~'*)
14297      # FIXME: we may have to deal with multi-command sequences.
14298      ;;
14299    '$CC '*)
14300      # Test whether the compiler implicitly links with -lc since on some
14301      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14302      # to ld, don't add -lc before -lgcc.
14303      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14304$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14305      $RM conftest*
14306      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14307
14308      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14309  (eval $ac_compile) 2>&5
14310  ac_status=$?
14311  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14312  test $ac_status = 0; } 2>conftest.err; then
14313        soname=conftest
14314        lib=conftest
14315        libobjs=conftest.$ac_objext
14316        deplibs=
14317        wl=$lt_prog_compiler_wl_CXX
14318	pic_flag=$lt_prog_compiler_pic_CXX
14319        compiler_flags=-v
14320        linker_flags=-v
14321        verstring=
14322        output_objdir=.
14323        libname=conftest
14324        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14325        allow_undefined_flag_CXX=
14326        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14327  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14328  ac_status=$?
14329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14330  test $ac_status = 0; }
14331        then
14332	  archive_cmds_need_lc_CXX=no
14333        else
14334	  archive_cmds_need_lc_CXX=yes
14335        fi
14336        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14337      else
14338        cat conftest.err 1>&5
14339      fi
14340      $RM conftest*
14341      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14342$as_echo "$archive_cmds_need_lc_CXX" >&6; }
14343      ;;
14344    esac
14345  fi
14346  ;;
14347esac
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362
14363
14364
14365
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14413$as_echo_n "checking dynamic linker characteristics... " >&6; }
14414
14415library_names_spec=
14416libname_spec='lib$name'
14417soname_spec=
14418shrext_cmds=".so"
14419postinstall_cmds=
14420postuninstall_cmds=
14421finish_cmds=
14422finish_eval=
14423shlibpath_var=
14424shlibpath_overrides_runpath=unknown
14425version_type=none
14426dynamic_linker="$host_os ld.so"
14427sys_lib_dlsearch_path_spec="/lib /usr/lib"
14428need_lib_prefix=unknown
14429hardcode_into_libs=no
14430
14431# when you set need_version to no, make sure it does not cause -set_version
14432# flags to be left without arguments
14433need_version=unknown
14434
14435case $host_os in
14436aix3*)
14437  version_type=linux
14438  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14439  shlibpath_var=LIBPATH
14440
14441  # AIX 3 has no versioning support, so we append a major version to the name.
14442  soname_spec='${libname}${release}${shared_ext}$major'
14443  ;;
14444
14445aix[4-9]*)
14446  version_type=linux
14447  need_lib_prefix=no
14448  need_version=no
14449  hardcode_into_libs=yes
14450  if test "$host_cpu" = ia64; then
14451    # AIX 5 supports IA64
14452    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14453    shlibpath_var=LD_LIBRARY_PATH
14454  else
14455    # With GCC up to 2.95.x, collect2 would create an import file
14456    # for dependence libraries.  The import file would start with
14457    # the line `#! .'.  This would cause the generated library to
14458    # depend on `.', always an invalid library.  This was fixed in
14459    # development snapshots of GCC prior to 3.0.
14460    case $host_os in
14461      aix4 | aix4.[01] | aix4.[01].*)
14462      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14463	   echo ' yes '
14464	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14465	:
14466      else
14467	can_build_shared=no
14468      fi
14469      ;;
14470    esac
14471    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14472    # soname into executable. Probably we can add versioning support to
14473    # collect2, so additional links can be useful in future.
14474    if test "$aix_use_runtimelinking" = yes; then
14475      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14476      # instead of lib<name>.a to let people know that these are not
14477      # typical AIX shared libraries.
14478      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479    else
14480      # We preserve .a as extension for shared libraries through AIX4.2
14481      # and later when we are not doing run time linking.
14482      library_names_spec='${libname}${release}.a $libname.a'
14483      soname_spec='${libname}${release}${shared_ext}$major'
14484    fi
14485    shlibpath_var=LIBPATH
14486  fi
14487  ;;
14488
14489amigaos*)
14490  case $host_cpu in
14491  powerpc)
14492    # Since July 2007 AmigaOS4 officially supports .so libraries.
14493    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14494    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14495    ;;
14496  m68k)
14497    library_names_spec='$libname.ixlibrary $libname.a'
14498    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14499    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14500    ;;
14501  esac
14502  ;;
14503
14504beos*)
14505  library_names_spec='${libname}${shared_ext}'
14506  dynamic_linker="$host_os ld.so"
14507  shlibpath_var=LIBRARY_PATH
14508  ;;
14509
14510bsdi[45]*)
14511  version_type=linux
14512  need_version=no
14513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514  soname_spec='${libname}${release}${shared_ext}$major'
14515  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14516  shlibpath_var=LD_LIBRARY_PATH
14517  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14518  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14519  # the default ld.so.conf also contains /usr/contrib/lib and
14520  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14521  # libtool to hard-code these into programs
14522  ;;
14523
14524cygwin* | mingw* | pw32* | cegcc*)
14525  version_type=windows
14526  shrext_cmds=".dll"
14527  need_version=no
14528  need_lib_prefix=no
14529
14530  case $GCC,$host_os in
14531  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14532    library_names_spec='$libname.dll.a'
14533    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14534    postinstall_cmds='base_file=`basename \${file}`~
14535      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14536      dldir=$destdir/`dirname \$dlpath`~
14537      test -d \$dldir || mkdir -p \$dldir~
14538      $install_prog $dir/$dlname \$dldir/$dlname~
14539      chmod a+x \$dldir/$dlname~
14540      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14541        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14542      fi'
14543    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14544      dlpath=$dir/\$dldll~
14545       $RM \$dlpath'
14546    shlibpath_overrides_runpath=yes
14547
14548    case $host_os in
14549    cygwin*)
14550      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14551      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14552      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14553      ;;
14554    mingw* | cegcc*)
14555      # MinGW DLLs use traditional 'lib' prefix
14556      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14557      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14558      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14559        # It is most probably a Windows format PATH printed by
14560        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14561        # path with ; separators, and with drive letters. We can handle the
14562        # drive letters (cygwin fileutils understands them), so leave them,
14563        # especially as we might pass files found there to a mingw objdump,
14564        # which wouldn't understand a cygwinified path. Ahh.
14565        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14566      else
14567        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14568      fi
14569      ;;
14570    pw32*)
14571      # pw32 DLLs use 'pw' prefix rather than 'lib'
14572      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14573      ;;
14574    esac
14575    ;;
14576
14577  *)
14578    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14579    ;;
14580  esac
14581  dynamic_linker='Win32 ld.exe'
14582  # FIXME: first we should search . and the directory the executable is in
14583  shlibpath_var=PATH
14584  ;;
14585
14586darwin* | rhapsody*)
14587  dynamic_linker="$host_os dyld"
14588  version_type=darwin
14589  need_lib_prefix=no
14590  need_version=no
14591  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14592  soname_spec='${libname}${release}${major}$shared_ext'
14593  shlibpath_overrides_runpath=yes
14594  shlibpath_var=DYLD_LIBRARY_PATH
14595  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14596
14597  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14598  ;;
14599
14600dgux*)
14601  version_type=linux
14602  need_lib_prefix=no
14603  need_version=no
14604  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14605  soname_spec='${libname}${release}${shared_ext}$major'
14606  shlibpath_var=LD_LIBRARY_PATH
14607  ;;
14608
14609freebsd1*)
14610  dynamic_linker=no
14611  ;;
14612
14613freebsd* | dragonfly*)
14614  # DragonFly does not have aout.  When/if they implement a new
14615  # versioning mechanism, adjust this.
14616  if test -x /usr/bin/objformat; then
14617    objformat=`/usr/bin/objformat`
14618  else
14619    case $host_os in
14620    freebsd[123]*) objformat=aout ;;
14621    *) objformat=elf ;;
14622    esac
14623  fi
14624  version_type=freebsd-$objformat
14625  case $version_type in
14626    freebsd-elf*)
14627      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14628      need_version=no
14629      need_lib_prefix=no
14630      ;;
14631    freebsd-*)
14632      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14633      need_version=yes
14634      ;;
14635  esac
14636  shlibpath_var=LD_LIBRARY_PATH
14637  case $host_os in
14638  freebsd2*)
14639    shlibpath_overrides_runpath=yes
14640    ;;
14641  freebsd3.[01]* | freebsdelf3.[01]*)
14642    shlibpath_overrides_runpath=yes
14643    hardcode_into_libs=yes
14644    ;;
14645  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14646  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14647    shlibpath_overrides_runpath=no
14648    hardcode_into_libs=yes
14649    ;;
14650  *) # from 4.6 on, and DragonFly
14651    shlibpath_overrides_runpath=yes
14652    hardcode_into_libs=yes
14653    ;;
14654  esac
14655  ;;
14656
14657gnu*)
14658  version_type=linux
14659  need_lib_prefix=no
14660  need_version=no
14661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14662  soname_spec='${libname}${release}${shared_ext}$major'
14663  shlibpath_var=LD_LIBRARY_PATH
14664  hardcode_into_libs=yes
14665  ;;
14666
14667hpux9* | hpux10* | hpux11*)
14668  # Give a soname corresponding to the major version so that dld.sl refuses to
14669  # link against other versions.
14670  version_type=sunos
14671  need_lib_prefix=no
14672  need_version=no
14673  case $host_cpu in
14674  ia64*)
14675    shrext_cmds='.so'
14676    hardcode_into_libs=yes
14677    dynamic_linker="$host_os dld.so"
14678    shlibpath_var=LD_LIBRARY_PATH
14679    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14680    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14681    soname_spec='${libname}${release}${shared_ext}$major'
14682    if test "X$HPUX_IA64_MODE" = X32; then
14683      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14684    else
14685      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14686    fi
14687    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14688    ;;
14689  hppa*64*)
14690    shrext_cmds='.sl'
14691    hardcode_into_libs=yes
14692    dynamic_linker="$host_os dld.sl"
14693    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14694    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14695    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696    soname_spec='${libname}${release}${shared_ext}$major'
14697    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14698    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14699    ;;
14700  *)
14701    shrext_cmds='.sl'
14702    dynamic_linker="$host_os dld.sl"
14703    shlibpath_var=SHLIB_PATH
14704    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14705    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706    soname_spec='${libname}${release}${shared_ext}$major'
14707    ;;
14708  esac
14709  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14710  postinstall_cmds='chmod 555 $lib'
14711  ;;
14712
14713interix[3-9]*)
14714  version_type=linux
14715  need_lib_prefix=no
14716  need_version=no
14717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14718  soname_spec='${libname}${release}${shared_ext}$major'
14719  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14720  shlibpath_var=LD_LIBRARY_PATH
14721  shlibpath_overrides_runpath=no
14722  hardcode_into_libs=yes
14723  ;;
14724
14725irix5* | irix6* | nonstopux*)
14726  case $host_os in
14727    nonstopux*) version_type=nonstopux ;;
14728    *)
14729	if test "$lt_cv_prog_gnu_ld" = yes; then
14730		version_type=linux
14731	else
14732		version_type=irix
14733	fi ;;
14734  esac
14735  need_lib_prefix=no
14736  need_version=no
14737  soname_spec='${libname}${release}${shared_ext}$major'
14738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14739  case $host_os in
14740  irix5* | nonstopux*)
14741    libsuff= shlibsuff=
14742    ;;
14743  *)
14744    case $LD in # libtool.m4 will add one of these switches to LD
14745    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14746      libsuff= shlibsuff= libmagic=32-bit;;
14747    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14748      libsuff=32 shlibsuff=N32 libmagic=N32;;
14749    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14750      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14751    *) libsuff= shlibsuff= libmagic=never-match;;
14752    esac
14753    ;;
14754  esac
14755  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14756  shlibpath_overrides_runpath=no
14757  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14758  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14759  hardcode_into_libs=yes
14760  ;;
14761
14762# No shared lib support for Linux oldld, aout, or coff.
14763linux*oldld* | linux*aout* | linux*coff*)
14764  dynamic_linker=no
14765  ;;
14766
14767# This must be Linux ELF.
14768linux* | k*bsd*-gnu | kopensolaris*-gnu)
14769  version_type=linux
14770  need_lib_prefix=no
14771  need_version=no
14772  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773  soname_spec='${libname}${release}${shared_ext}$major'
14774  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14775  shlibpath_var=LD_LIBRARY_PATH
14776  shlibpath_overrides_runpath=no
14777  # Some binutils ld are patched to set DT_RUNPATH
14778  save_LDFLAGS=$LDFLAGS
14779  save_libdir=$libdir
14780  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14781       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14782  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14783/* end confdefs.h.  */
14784
14785int
14786main ()
14787{
14788
14789  ;
14790  return 0;
14791}
14792_ACEOF
14793if ac_fn_cxx_try_link "$LINENO"; then :
14794  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14795  shlibpath_overrides_runpath=yes
14796fi
14797fi
14798rm -f core conftest.err conftest.$ac_objext \
14799    conftest$ac_exeext conftest.$ac_ext
14800  LDFLAGS=$save_LDFLAGS
14801  libdir=$save_libdir
14802
14803  # This implies no fast_install, which is unacceptable.
14804  # Some rework will be needed to allow for fast_install
14805  # before this can be enabled.
14806  hardcode_into_libs=yes
14807
14808  # Append ld.so.conf contents to the search path
14809  if test -f /etc/ld.so.conf; then
14810    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;/^$/d' | tr '\n' ' '`
14811    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14812  fi
14813
14814  # We used to test for /lib/ld.so.1 and disable shared libraries on
14815  # powerpc, because MkLinux only supported shared libraries with the
14816  # GNU dynamic linker.  Since this was broken with cross compilers,
14817  # most powerpc-linux boxes support dynamic linking these days and
14818  # people can always --disable-shared, the test was removed, and we
14819  # assume the GNU/Linux dynamic linker is in use.
14820  dynamic_linker='GNU/Linux ld.so'
14821  ;;
14822
14823netbsdelf*-gnu)
14824  version_type=linux
14825  need_lib_prefix=no
14826  need_version=no
14827  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14828  soname_spec='${libname}${release}${shared_ext}$major'
14829  shlibpath_var=LD_LIBRARY_PATH
14830  shlibpath_overrides_runpath=no
14831  hardcode_into_libs=yes
14832  dynamic_linker='NetBSD ld.elf_so'
14833  ;;
14834
14835netbsd*)
14836  version_type=sunos
14837  need_lib_prefix=no
14838  need_version=no
14839  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14840    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14841    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14842    dynamic_linker='NetBSD (a.out) ld.so'
14843  else
14844    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14845    soname_spec='${libname}${release}${shared_ext}$major'
14846    dynamic_linker='NetBSD ld.elf_so'
14847  fi
14848  shlibpath_var=LD_LIBRARY_PATH
14849  shlibpath_overrides_runpath=yes
14850  hardcode_into_libs=yes
14851  ;;
14852
14853newsos6)
14854  version_type=linux
14855  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856  shlibpath_var=LD_LIBRARY_PATH
14857  shlibpath_overrides_runpath=yes
14858  ;;
14859
14860*nto* | *qnx*)
14861  version_type=qnx
14862  need_lib_prefix=no
14863  need_version=no
14864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14865  soname_spec='${libname}${release}${shared_ext}$major'
14866  shlibpath_var=LD_LIBRARY_PATH
14867  shlibpath_overrides_runpath=no
14868  hardcode_into_libs=yes
14869  dynamic_linker='ldqnx.so'
14870  ;;
14871
14872openbsd*)
14873  version_type=sunos
14874  sys_lib_dlsearch_path_spec="/usr/lib"
14875  need_lib_prefix=no
14876  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14877  case $host_os in
14878    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14879    *)				need_version=no  ;;
14880  esac
14881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14882  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14883  shlibpath_var=LD_LIBRARY_PATH
14884  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14885    case $host_os in
14886      openbsd2.[89] | openbsd2.[89].*)
14887	shlibpath_overrides_runpath=no
14888	;;
14889      *)
14890	shlibpath_overrides_runpath=yes
14891	;;
14892      esac
14893  else
14894    shlibpath_overrides_runpath=yes
14895  fi
14896  ;;
14897
14898os2*)
14899  libname_spec='$name'
14900  shrext_cmds=".dll"
14901  need_lib_prefix=no
14902  library_names_spec='$libname${shared_ext} $libname.a'
14903  dynamic_linker='OS/2 ld.exe'
14904  shlibpath_var=LIBPATH
14905  ;;
14906
14907osf3* | osf4* | osf5*)
14908  version_type=osf
14909  need_lib_prefix=no
14910  need_version=no
14911  soname_spec='${libname}${release}${shared_ext}$major'
14912  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14913  shlibpath_var=LD_LIBRARY_PATH
14914  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14915  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14916  ;;
14917
14918rdos*)
14919  dynamic_linker=no
14920  ;;
14921
14922solaris*)
14923  version_type=linux
14924  need_lib_prefix=no
14925  need_version=no
14926  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14927  soname_spec='${libname}${release}${shared_ext}$major'
14928  shlibpath_var=LD_LIBRARY_PATH
14929  shlibpath_overrides_runpath=yes
14930  hardcode_into_libs=yes
14931  # ldd complains unless libraries are executable
14932  postinstall_cmds='chmod +x $lib'
14933  ;;
14934
14935sunos4*)
14936  version_type=sunos
14937  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14938  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14939  shlibpath_var=LD_LIBRARY_PATH
14940  shlibpath_overrides_runpath=yes
14941  if test "$with_gnu_ld" = yes; then
14942    need_lib_prefix=no
14943  fi
14944  need_version=yes
14945  ;;
14946
14947sysv4 | sysv4.3*)
14948  version_type=linux
14949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14950  soname_spec='${libname}${release}${shared_ext}$major'
14951  shlibpath_var=LD_LIBRARY_PATH
14952  case $host_vendor in
14953    sni)
14954      shlibpath_overrides_runpath=no
14955      need_lib_prefix=no
14956      runpath_var=LD_RUN_PATH
14957      ;;
14958    siemens)
14959      need_lib_prefix=no
14960      ;;
14961    motorola)
14962      need_lib_prefix=no
14963      need_version=no
14964      shlibpath_overrides_runpath=no
14965      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14966      ;;
14967  esac
14968  ;;
14969
14970sysv4*MP*)
14971  if test -d /usr/nec ;then
14972    version_type=linux
14973    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14974    soname_spec='$libname${shared_ext}.$major'
14975    shlibpath_var=LD_LIBRARY_PATH
14976  fi
14977  ;;
14978
14979sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14980  version_type=freebsd-elf
14981  need_lib_prefix=no
14982  need_version=no
14983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14984  soname_spec='${libname}${release}${shared_ext}$major'
14985  shlibpath_var=LD_LIBRARY_PATH
14986  shlibpath_overrides_runpath=yes
14987  hardcode_into_libs=yes
14988  if test "$with_gnu_ld" = yes; then
14989    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14990  else
14991    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14992    case $host_os in
14993      sco3.2v5*)
14994        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14995	;;
14996    esac
14997  fi
14998  sys_lib_dlsearch_path_spec='/usr/lib'
14999  ;;
15000
15001tpf*)
15002  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15003  version_type=linux
15004  need_lib_prefix=no
15005  need_version=no
15006  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15007  shlibpath_var=LD_LIBRARY_PATH
15008  shlibpath_overrides_runpath=no
15009  hardcode_into_libs=yes
15010  ;;
15011
15012uts4*)
15013  version_type=linux
15014  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015  soname_spec='${libname}${release}${shared_ext}$major'
15016  shlibpath_var=LD_LIBRARY_PATH
15017  ;;
15018
15019*)
15020  dynamic_linker=no
15021  ;;
15022esac
15023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15024$as_echo "$dynamic_linker" >&6; }
15025test "$dynamic_linker" = no && can_build_shared=no
15026
15027variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15028if test "$GCC" = yes; then
15029  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15030fi
15031
15032if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15033  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15034fi
15035if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15036  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15037fi
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049
15050
15051
15052
15053
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15075$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15076hardcode_action_CXX=
15077if test -n "$hardcode_libdir_flag_spec_CXX" ||
15078   test -n "$runpath_var_CXX" ||
15079   test "X$hardcode_automatic_CXX" = "Xyes" ; then
15080
15081  # We can hardcode non-existent directories.
15082  if test "$hardcode_direct_CXX" != no &&
15083     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15084     # have to relink, otherwise we might link with an installed library
15085     # when we should be linking with a yet-to-be-installed one
15086     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15087     test "$hardcode_minus_L_CXX" != no; then
15088    # Linking always hardcodes the temporary library directory.
15089    hardcode_action_CXX=relink
15090  else
15091    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15092    hardcode_action_CXX=immediate
15093  fi
15094else
15095  # We cannot hardcode anything, or else we can only hardcode existing
15096  # directories.
15097  hardcode_action_CXX=unsupported
15098fi
15099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15100$as_echo "$hardcode_action_CXX" >&6; }
15101
15102if test "$hardcode_action_CXX" = relink ||
15103   test "$inherit_rpath_CXX" = yes; then
15104  # Fast installation is not supported
15105  enable_fast_install=no
15106elif test "$shlibpath_overrides_runpath" = yes ||
15107     test "$enable_shared" = no; then
15108  # Fast installation is not necessary
15109  enable_fast_install=needless
15110fi
15111
15112
15113
15114
15115
15116
15117
15118  fi # test -n "$compiler"
15119
15120  CC=$lt_save_CC
15121  LDCXX=$LD
15122  LD=$lt_save_LD
15123  GCC=$lt_save_GCC
15124  with_gnu_ld=$lt_save_with_gnu_ld
15125  lt_cv_path_LDCXX=$lt_cv_path_LD
15126  lt_cv_path_LD=$lt_save_path_LD
15127  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15128  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15129fi # test "$_lt_caught_CXX_error" != yes
15130
15131ac_ext=c
15132ac_cpp='$CPP $CPPFLAGS'
15133ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15134ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15135ac_compiler_gnu=$ac_cv_c_compiler_gnu
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149        ac_config_commands="$ac_config_commands libtool"
15150
15151
15152
15153
15154# Only expand once:
15155
15156
15157
15158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15159$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15160if test "${ac_cv_c_const+set}" = set; then :
15161  $as_echo_n "(cached) " >&6
15162else
15163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164/* end confdefs.h.  */
15165
15166int
15167main ()
15168{
15169/* FIXME: Include the comments suggested by Paul. */
15170#ifndef __cplusplus
15171  /* Ultrix mips cc rejects this.  */
15172  typedef int charset[2];
15173  const charset cs;
15174  /* SunOS 4.1.1 cc rejects this.  */
15175  char const *const *pcpcc;
15176  char **ppc;
15177  /* NEC SVR4.0.2 mips cc rejects this.  */
15178  struct point {int x, y;};
15179  static struct point const zero = {0,0};
15180  /* AIX XL C 1.02.0.0 rejects this.
15181     It does not let you subtract one const X* pointer from another in
15182     an arm of an if-expression whose if-part is not a constant
15183     expression */
15184  const char *g = "string";
15185  pcpcc = &g + (g ? g-g : 0);
15186  /* HPUX 7.0 cc rejects these. */
15187  ++pcpcc;
15188  ppc = (char**) pcpcc;
15189  pcpcc = (char const *const *) ppc;
15190  { /* SCO 3.2v4 cc rejects this.  */
15191    char *t;
15192    char const *s = 0 ? (char *) 0 : (char const *) 0;
15193
15194    *t++ = 0;
15195    if (s) return 0;
15196  }
15197  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
15198    int x[] = {25, 17};
15199    const int *foo = &x[0];
15200    ++foo;
15201  }
15202  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15203    typedef const int *iptr;
15204    iptr p = 0;
15205    ++p;
15206  }
15207  { /* AIX XL C 1.02.0.0 rejects this saying
15208       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15209    struct s { int j; const int *ap[3]; };
15210    struct s *b; b->j = 5;
15211  }
15212  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15213    const int foo = 10;
15214    if (!foo) return 0;
15215  }
15216  return !cs[0] && !zero.x;
15217#endif
15218
15219  ;
15220  return 0;
15221}
15222_ACEOF
15223if ac_fn_c_try_compile "$LINENO"; then :
15224  ac_cv_c_const=yes
15225else
15226  ac_cv_c_const=no
15227fi
15228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15229fi
15230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15231$as_echo "$ac_cv_c_const" >&6; }
15232if test $ac_cv_c_const = no; then
15233
15234$as_echo "#define const /**/" >>confdefs.h
15235
15236fi
15237
15238
15239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15240$as_echo_n "checking for ANSI C header files... " >&6; }
15241if test "${ac_cv_header_stdc+set}" = set; then :
15242  $as_echo_n "(cached) " >&6
15243else
15244  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245/* end confdefs.h.  */
15246#include <stdlib.h>
15247#include <stdarg.h>
15248#include <string.h>
15249#include <float.h>
15250
15251int
15252main ()
15253{
15254
15255  ;
15256  return 0;
15257}
15258_ACEOF
15259if ac_fn_c_try_compile "$LINENO"; then :
15260  ac_cv_header_stdc=yes
15261else
15262  ac_cv_header_stdc=no
15263fi
15264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15265
15266if test $ac_cv_header_stdc = yes; then
15267  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269/* end confdefs.h.  */
15270#include <string.h>
15271
15272_ACEOF
15273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15274  $EGREP "memchr" >/dev/null 2>&1; then :
15275
15276else
15277  ac_cv_header_stdc=no
15278fi
15279rm -f conftest*
15280
15281fi
15282
15283if test $ac_cv_header_stdc = yes; then
15284  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15285  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286/* end confdefs.h.  */
15287#include <stdlib.h>
15288
15289_ACEOF
15290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15291  $EGREP "free" >/dev/null 2>&1; then :
15292
15293else
15294  ac_cv_header_stdc=no
15295fi
15296rm -f conftest*
15297
15298fi
15299
15300if test $ac_cv_header_stdc = yes; then
15301  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15302  if test "$cross_compiling" = yes; then :
15303  :
15304else
15305  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306/* end confdefs.h.  */
15307#include <ctype.h>
15308#include <stdlib.h>
15309#if ((' ' & 0x0FF) == 0x020)
15310# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15311# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15312#else
15313# define ISLOWER(c) \
15314		   (('a' <= (c) && (c) <= 'i') \
15315		     || ('j' <= (c) && (c) <= 'r') \
15316		     || ('s' <= (c) && (c) <= 'z'))
15317# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15318#endif
15319
15320#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15321int
15322main ()
15323{
15324  int i;
15325  for (i = 0; i < 256; i++)
15326    if (XOR (islower (i), ISLOWER (i))
15327	|| toupper (i) != TOUPPER (i))
15328      return 2;
15329  return 0;
15330}
15331_ACEOF
15332if ac_fn_c_try_run "$LINENO"; then :
15333
15334else
15335  ac_cv_header_stdc=no
15336fi
15337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15338  conftest.$ac_objext conftest.beam conftest.$ac_ext
15339fi
15340
15341fi
15342fi
15343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15344$as_echo "$ac_cv_header_stdc" >&6; }
15345if test $ac_cv_header_stdc = yes; then
15346
15347$as_echo "#define STDC_HEADERS 1" >>confdefs.h
15348
15349fi
15350
15351for ac_header in stdlib.h unistd.h
15352do :
15353  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15355eval as_val=\$$as_ac_Header
15356   if test "x$as_val" = x""yes; then :
15357  cat >>confdefs.h <<_ACEOF
15358#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15359_ACEOF
15360
15361fi
15362
15363done
15364
15365
15366ac_ext=cpp
15367ac_cpp='$CXXCPP $CPPFLAGS'
15368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15371
15372
15373for ac_header in bits/cpp_type_traits.h
15374do :
15375  ac_fn_cxx_check_header_mongrel "$LINENO" "bits/cpp_type_traits.h" "ac_cv_header_bits_cpp_type_traits_h" "$ac_includes_default"
15376if test "x$ac_cv_header_bits_cpp_type_traits_h" = x""yes; then :
15377  cat >>confdefs.h <<_ACEOF
15378#define HAVE_BITS_CPP_TYPE_TRAITS_H 1
15379_ACEOF
15380 HAVE_BITS_CPP_TYPE_TRAITS_H=1
15381
15382else
15383  HAVE_BITS_CPP_TYPE_TRAITS_H=0
15384fi
15385
15386done
15387
15388ac_ext=c
15389ac_cpp='$CPP $CPPFLAGS'
15390ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15391ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15392ac_compiler_gnu=$ac_cv_c_compiler_gnu
15393
15394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
15395$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
15396if test "${ac_cv_cxx_namespaces+set}" = set; then :
15397  $as_echo_n "(cached) " >&6
15398else
15399
15400 ac_ext=cpp
15401ac_cpp='$CXXCPP $CPPFLAGS'
15402ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15403ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15404ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15405
15406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15407/* end confdefs.h.  */
15408namespace Outer { namespace Inner { int i = 0; }}
15409int
15410main ()
15411{
15412using namespace Outer::Inner; return i;
15413  ;
15414  return 0;
15415}
15416_ACEOF
15417if ac_fn_cxx_try_compile "$LINENO"; then :
15418  ac_cv_cxx_namespaces=yes
15419else
15420  ac_cv_cxx_namespaces=no
15421fi
15422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15423 ac_ext=c
15424ac_cpp='$CPP $CPPFLAGS'
15425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15427ac_compiler_gnu=$ac_cv_c_compiler_gnu
15428
15429
15430fi
15431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
15432$as_echo "$ac_cv_cxx_namespaces" >&6; }
15433if test "$ac_cv_cxx_namespaces" = yes; then
15434
15435$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
15436
15437fi
15438
15439
15440
15441### -------------------------------------------------------------
15442### Specific packages
15443### -------------------------------------------------------------
15444
15445case "$target" in
15446    *-mingw32*)
15447
15448
15449# presets
15450
15451# Check whether --with-home-path was given.
15452if test "${with_home_path+set}" = set; then :
15453  withval=$with_home_path; aq_windoze_path_home="$withval"
15454fi
15455
15456
15457# Check whether --with-system-path was given.
15458if test "${with_system_path+set}" = set; then :
15459  withval=$with_system_path; aq_windoze_path_system="$withval"
15460fi
15461
15462
15463# Check whether --with-windows-path was given.
15464if test "${with_windows_path+set}" = set; then :
15465  withval=$with_windows_path; aq_windoze_path_windows="$withval"
15466fi
15467
15468
15469# home directory
15470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for windoze home path (program)" >&5
15471$as_echo_n "checking for windoze home path (program)... " >&6; }
15472if test "${gwenhywfar_cv_path_home+set}" = set; then :
15473  $as_echo_n "(cached) " >&6
15474else
15475
15476
15477
15478rm -f conf.winpath
15479
15480if test "$cross_compiling" = yes; then :
15481  aq_windoze_path="$aq_windoze_path_home"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Crosscompiling, assuming $aq_windoze_path_home" >&5
15482$as_echo "Crosscompiling, assuming $aq_windoze_path_home" >&6; }
15483
15484else
15485  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15486/* end confdefs.h.  */
15487
15488#include <windows.h>
15489#include <string.h>
15490#include <stdio.h>
15491#include <stdlib.h>
15492
15493int main (){
15494  char buffer[260];
15495  const char *choice = "home";
15496  FILE *f;
15497
15498  buffer[0]=0;
15499
15500  if (strlen("$aq_windoze_path_home")) {
15501    if (strlen("$aq_windoze_path_home")>=sizeof(buffer)) {
15502      printf("path is too long ($aq_windoze_path_home)\n");
15503      exit(1);
15504    }
15505    strcpy(buffer, "$aq_windoze_path_home");
15506  }
15507  else {
15508    if (strcasecmp(choice, "windows")==0) {
15509      GetWindowsDirectory(buffer, sizeof(buffer));
15510    }
15511    else if (strcasecmp(choice, "system")==0) {
15512      GetSystemDirectory(buffer, sizeof(buffer));
15513    }
15514    else if (strcasecmp(choice, "home")==0) {
15515      GetWindowsDirectory(buffer, sizeof(buffer));
15516    }
15517    else {
15518      printf("Unknown type \"home\"\n");
15519      exit(1);
15520    }
15521  }
15522
15523  f=fopen("conf.winpath", "w+");
15524  if (!f) {
15525    printf("Could not create file conf.winpath\n");
15526    exit(1);
15527  }
15528  fprintf(f, "%s", buffer);
15529  if (fclose(f)) {
15530   printf("Could not close file.\n");
15531   exit(1);
15532  }
15533  exit(0);
15534}
15535
15536_ACEOF
15537if ac_fn_c_try_run "$LINENO"; then :
15538  aq_windoze_path="`cat conf.winpath`"
15539else
15540  as_fn_error "Could not determine path for home" "$LINENO" 5
15541fi
15542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15543  conftest.$ac_objext conftest.beam conftest.$ac_ext
15544fi
15545
15546
15547rm -f conf.winpath
15548
15549  gwenhywfar_cv_path_home="$aq_windoze_path"
15550
15551fi
15552
15553WIN_PATH_HOME="$gwenhywfar_cv_path_home"
15554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN_PATH_HOME" >&5
15555$as_echo "$WIN_PATH_HOME" >&6; }
15556
15557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for windoze home path (mingw)" >&5
15558$as_echo_n "checking for windoze home path (mingw)... " >&6; }
15559if test "${gwenhywfar_cv_path_home_mingw+set}" = set; then :
15560  $as_echo_n "(cached) " >&6
15561else
15562
15563
15564
15565rm -f conf.winpath
15566
15567if test "$cross_compiling" = yes; then :
15568  aq_windoze_path="$aq_windoze_path_home"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Crosscompiling, assuming $aq_windoze_path_home" >&5
15569$as_echo "Crosscompiling, assuming $aq_windoze_path_home" >&6; }
15570
15571else
15572  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15573/* end confdefs.h.  */
15574
15575#include <windows.h>
15576#include <string.h>
15577#include <stdio.h>
15578#include <stdlib.h>
15579/* #include <shlobj.h> */
15580
15581int main (){
15582  char buffer[260];
15583  char buffer2[260+2];
15584  const char *choice = "home";
15585  char *p;
15586  char *tp;
15587  FILE *f;
15588  int lastWasSlash;
15589
15590  buffer[0]=0;
15591
15592  if (strlen("$aq_windoze_path_home")) {
15593    if (strlen("$aq_windoze_path_home")>=sizeof(buffer)) {
15594      printf("path is too long ($aq_windoze_path_home)\n");
15595      exit(1);
15596    }
15597    strcpy(buffer, "$aq_windoze_path_home");
15598  }
15599  else {
15600    if (strcasecmp(choice, "windows")==0) {
15601      GetWindowsDirectory(buffer, sizeof(buffer));
15602    }
15603    else if (strcasecmp(choice, "system")==0) {
15604      GetSystemDirectory(buffer, sizeof(buffer));
15605    }
15606    else if (strcasecmp(choice, "home")==0) {
15607      GetWindowsDirectory(buffer, sizeof(buffer));
15608    }
15609    else {
15610      printf("Unknown type \"home\"\n");
15611      exit(1);
15612    }
15613  }
15614
15615
15616  /* create mingw path */
15617  tp=buffer2;
15618  p=buffer;
15619  if (strlen(buffer)>1) {
15620    if (buffer[1]==':') {
15621      *tp='/';
15622      tp++;
15623      *tp=buffer[0];
15624      tp++;
15625      p+=2;
15626    }
15627  }
15628
15629  lastWasSlash=0;
15630  while(*p) {
15631    if (*p=='\\\\' || *p=='/') {
15632      if (!lastWasSlash) {
15633        *tp='/';
15634        tp++;
15635        lastWasSlash=1;
15636      }
15637    }
15638    else {
15639      lastWasSlash=0;
15640      *tp=*p;
15641      tp++;
15642    }
15643    p++;
15644  } /* while */
15645  *tp=0;
15646
15647  f=fopen("conf.winpath", "w+");
15648  if (!f) {
15649    printf("Could not create file conf.winpath\n");
15650    exit(1);
15651  }
15652  fprintf(f, "%s", buffer2);
15653  if (fclose(f)) {
15654   printf("Could not close file.\n");
15655   exit(1);
15656  }
15657  exit(0);
15658}
15659
15660_ACEOF
15661if ac_fn_c_try_run "$LINENO"; then :
15662  aq_windoze_path=`cat conf.winpath`
15663else
15664  as_fn_error "Could not determine path for home" "$LINENO" 5
15665fi
15666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15667  conftest.$ac_objext conftest.beam conftest.$ac_ext
15668fi
15669
15670
15671rm -f conf.winpath
15672
15673  gwenhywfar_cv_path_home_mingw="$aq_windoze_path"
15674
15675fi
15676
15677WIN_PATH_HOME_MINGW="$gwenhywfar_cv_path_home_mingw"
15678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN_PATH_HOME_MINGW" >&5
15679$as_echo "$WIN_PATH_HOME_MINGW" >&6; }
15680
15681# windows directory
15682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for windoze windows path (program)" >&5
15683$as_echo_n "checking for windoze windows path (program)... " >&6; }
15684if test "${gwenhywfar_cv_path_windows+set}" = set; then :
15685  $as_echo_n "(cached) " >&6
15686else
15687
15688
15689
15690rm -f conf.winpath
15691
15692if test "$cross_compiling" = yes; then :
15693  aq_windoze_path="$aq_windoze_path_windows"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Crosscompiling, assuming $aq_windoze_path_windows" >&5
15694$as_echo "Crosscompiling, assuming $aq_windoze_path_windows" >&6; }
15695
15696else
15697  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15698/* end confdefs.h.  */
15699
15700#include <windows.h>
15701#include <string.h>
15702#include <stdio.h>
15703#include <stdlib.h>
15704
15705int main (){
15706  char buffer[260];
15707  const char *choice = "windows";
15708  FILE *f;
15709
15710  buffer[0]=0;
15711
15712  if (strlen("$aq_windoze_path_windows")) {
15713    if (strlen("$aq_windoze_path_windows")>=sizeof(buffer)) {
15714      printf("path is too long ($aq_windoze_path_windows)\n");
15715      exit(1);
15716    }
15717    strcpy(buffer, "$aq_windoze_path_windows");
15718  }
15719  else {
15720    if (strcasecmp(choice, "windows")==0) {
15721      GetWindowsDirectory(buffer, sizeof(buffer));
15722    }
15723    else if (strcasecmp(choice, "system")==0) {
15724      GetSystemDirectory(buffer, sizeof(buffer));
15725    }
15726    else if (strcasecmp(choice, "home")==0) {
15727      GetWindowsDirectory(buffer, sizeof(buffer));
15728    }
15729    else {
15730      printf("Unknown type \"windows\"\n");
15731      exit(1);
15732    }
15733  }
15734
15735  f=fopen("conf.winpath", "w+");
15736  if (!f) {
15737    printf("Could not create file conf.winpath\n");
15738    exit(1);
15739  }
15740  fprintf(f, "%s", buffer);
15741  if (fclose(f)) {
15742   printf("Could not close file.\n");
15743   exit(1);
15744  }
15745  exit(0);
15746}
15747
15748_ACEOF
15749if ac_fn_c_try_run "$LINENO"; then :
15750  aq_windoze_path="`cat conf.winpath`"
15751else
15752  as_fn_error "Could not determine path for windows" "$LINENO" 5
15753fi
15754rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15755  conftest.$ac_objext conftest.beam conftest.$ac_ext
15756fi
15757
15758
15759rm -f conf.winpath
15760
15761  gwenhywfar_cv_path_windows="$aq_windoze_path"
15762
15763fi
15764
15765WIN_PATH_WINDOWS="$gwenhywfar_cv_path_windows"
15766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN_PATH_WINDOWS" >&5
15767$as_echo "$WIN_PATH_WINDOWS" >&6; }
15768
15769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for windoze windows path (mingw)" >&5
15770$as_echo_n "checking for windoze windows path (mingw)... " >&6; }
15771if test "${gwenhywfar_cv_path_windows_mingw+set}" = set; then :
15772  $as_echo_n "(cached) " >&6
15773else
15774
15775
15776
15777rm -f conf.winpath
15778
15779if test "$cross_compiling" = yes; then :
15780  aq_windoze_path="$aq_windoze_path_windows"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Crosscompiling, assuming $aq_windoze_path_windows" >&5
15781$as_echo "Crosscompiling, assuming $aq_windoze_path_windows" >&6; }
15782
15783else
15784  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785/* end confdefs.h.  */
15786
15787#include <windows.h>
15788#include <string.h>
15789#include <stdio.h>
15790#include <stdlib.h>
15791/* #include <shlobj.h> */
15792
15793int main (){
15794  char buffer[260];
15795  char buffer2[260+2];
15796  const char *choice = "windows";
15797  char *p;
15798  char *tp;
15799  FILE *f;
15800  int lastWasSlash;
15801
15802  buffer[0]=0;
15803
15804  if (strlen("$aq_windoze_path_windows")) {
15805    if (strlen("$aq_windoze_path_windows")>=sizeof(buffer)) {
15806      printf("path is too long ($aq_windoze_path_windows)\n");
15807      exit(1);
15808    }
15809    strcpy(buffer, "$aq_windoze_path_windows");
15810  }
15811  else {
15812    if (strcasecmp(choice, "windows")==0) {
15813      GetWindowsDirectory(buffer, sizeof(buffer));
15814    }
15815    else if (strcasecmp(choice, "system")==0) {
15816      GetSystemDirectory(buffer, sizeof(buffer));
15817    }
15818    else if (strcasecmp(choice, "home")==0) {
15819      GetWindowsDirectory(buffer, sizeof(buffer));
15820    }
15821    else {
15822      printf("Unknown type \"windows\"\n");
15823      exit(1);
15824    }
15825  }
15826
15827
15828  /* create mingw path */
15829  tp=buffer2;
15830  p=buffer;
15831  if (strlen(buffer)>1) {
15832    if (buffer[1]==':') {
15833      *tp='/';
15834      tp++;
15835      *tp=buffer[0];
15836      tp++;
15837      p+=2;
15838    }
15839  }
15840
15841  lastWasSlash=0;
15842  while(*p) {
15843    if (*p=='\\\\' || *p=='/') {
15844      if (!lastWasSlash) {
15845        *tp='/';
15846        tp++;
15847        lastWasSlash=1;
15848      }
15849    }
15850    else {
15851      lastWasSlash=0;
15852      *tp=*p;
15853      tp++;
15854    }
15855    p++;
15856  } /* while */
15857  *tp=0;
15858
15859  f=fopen("conf.winpath", "w+");
15860  if (!f) {
15861    printf("Could not create file conf.winpath\n");
15862    exit(1);
15863  }
15864  fprintf(f, "%s", buffer2);
15865  if (fclose(f)) {
15866   printf("Could not close file.\n");
15867   exit(1);
15868  }
15869  exit(0);
15870}
15871
15872_ACEOF
15873if ac_fn_c_try_run "$LINENO"; then :
15874  aq_windoze_path=`cat conf.winpath`
15875else
15876  as_fn_error "Could not determine path for windows" "$LINENO" 5
15877fi
15878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15879  conftest.$ac_objext conftest.beam conftest.$ac_ext
15880fi
15881
15882
15883rm -f conf.winpath
15884
15885  gwenhywfar_cv_path_windows_mingw="$aq_windoze_path"
15886
15887fi
15888
15889WIN_PATH_WINDOWS_MINGW="$gwenhywfar_cv_path_windows_mingw"
15890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN_PATH_WINDOWS_MINGW" >&5
15891$as_echo "$WIN_PATH_WINDOWS_MINGW" >&6; }
15892
15893# windows system directory
15894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for windoze system path (program)" >&5
15895$as_echo_n "checking for windoze system path (program)... " >&6; }
15896if test "${gwenhywfar_cv_path_system+set}" = set; then :
15897  $as_echo_n "(cached) " >&6
15898else
15899
15900
15901
15902rm -f conf.winpath
15903
15904if test "$cross_compiling" = yes; then :
15905  aq_windoze_path="$aq_windoze_path_system"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Crosscompiling, assuming $aq_windoze_path_system" >&5
15906$as_echo "Crosscompiling, assuming $aq_windoze_path_system" >&6; }
15907
15908else
15909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15910/* end confdefs.h.  */
15911
15912#include <windows.h>
15913#include <string.h>
15914#include <stdio.h>
15915#include <stdlib.h>
15916
15917int main (){
15918  char buffer[260];
15919  const char *choice = "system";
15920  FILE *f;
15921
15922  buffer[0]=0;
15923
15924  if (strlen("$aq_windoze_path_system")) {
15925    if (strlen("$aq_windoze_path_system")>=sizeof(buffer)) {
15926      printf("path is too long ($aq_windoze_path_system)\n");
15927      exit(1);
15928    }
15929    strcpy(buffer, "$aq_windoze_path_system");
15930  }
15931  else {
15932    if (strcasecmp(choice, "windows")==0) {
15933      GetWindowsDirectory(buffer, sizeof(buffer));
15934    }
15935    else if (strcasecmp(choice, "system")==0) {
15936      GetSystemDirectory(buffer, sizeof(buffer));
15937    }
15938    else if (strcasecmp(choice, "home")==0) {
15939      GetWindowsDirectory(buffer, sizeof(buffer));
15940    }
15941    else {
15942      printf("Unknown type \"system\"\n");
15943      exit(1);
15944    }
15945  }
15946
15947  f=fopen("conf.winpath", "w+");
15948  if (!f) {
15949    printf("Could not create file conf.winpath\n");
15950    exit(1);
15951  }
15952  fprintf(f, "%s", buffer);
15953  if (fclose(f)) {
15954   printf("Could not close file.\n");
15955   exit(1);
15956  }
15957  exit(0);
15958}
15959
15960_ACEOF
15961if ac_fn_c_try_run "$LINENO"; then :
15962  aq_windoze_path="`cat conf.winpath`"
15963else
15964  as_fn_error "Could not determine path for system" "$LINENO" 5
15965fi
15966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15967  conftest.$ac_objext conftest.beam conftest.$ac_ext
15968fi
15969
15970
15971rm -f conf.winpath
15972
15973  gwenhywfar_cv_path_system="$aq_windoze_path"
15974
15975fi
15976
15977WIN_PATH_SYSTEM="$gwenhywfar_cv_path_system"
15978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN_PATH_SYSTEM" >&5
15979$as_echo "$WIN_PATH_SYSTEM" >&6; }
15980
15981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for windoze system path (mingw)" >&5
15982$as_echo_n "checking for windoze system path (mingw)... " >&6; }
15983if test "${gwenhywfar_cv_path_system_mingw+set}" = set; then :
15984  $as_echo_n "(cached) " >&6
15985else
15986
15987
15988
15989rm -f conf.winpath
15990
15991if test "$cross_compiling" = yes; then :
15992  aq_windoze_path="$aq_windoze_path_system"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: Crosscompiling, assuming $aq_windoze_path_system" >&5
15993$as_echo "Crosscompiling, assuming $aq_windoze_path_system" >&6; }
15994
15995else
15996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15997/* end confdefs.h.  */
15998
15999#include <windows.h>
16000#include <string.h>
16001#include <stdio.h>
16002#include <stdlib.h>
16003/* #include <shlobj.h> */
16004
16005int main (){
16006  char buffer[260];
16007  char buffer2[260+2];
16008  const char *choice = "system";
16009  char *p;
16010  char *tp;
16011  FILE *f;
16012  int lastWasSlash;
16013
16014  buffer[0]=0;
16015
16016  if (strlen("$aq_windoze_path_system")) {
16017    if (strlen("$aq_windoze_path_system")>=sizeof(buffer)) {
16018      printf("path is too long ($aq_windoze_path_system)\n");
16019      exit(1);
16020    }
16021    strcpy(buffer, "$aq_windoze_path_system");
16022  }
16023  else {
16024    if (strcasecmp(choice, "windows")==0) {
16025      GetWindowsDirectory(buffer, sizeof(buffer));
16026    }
16027    else if (strcasecmp(choice, "system")==0) {
16028      GetSystemDirectory(buffer, sizeof(buffer));
16029    }
16030    else if (strcasecmp(choice, "home")==0) {
16031      GetWindowsDirectory(buffer, sizeof(buffer));
16032    }
16033    else {
16034      printf("Unknown type \"system\"\n");
16035      exit(1);
16036    }
16037  }
16038
16039
16040  /* create mingw path */
16041  tp=buffer2;
16042  p=buffer;
16043  if (strlen(buffer)>1) {
16044    if (buffer[1]==':') {
16045      *tp='/';
16046      tp++;
16047      *tp=buffer[0];
16048      tp++;
16049      p+=2;
16050    }
16051  }
16052
16053  lastWasSlash=0;
16054  while(*p) {
16055    if (*p=='\\\\' || *p=='/') {
16056      if (!lastWasSlash) {
16057        *tp='/';
16058        tp++;
16059        lastWasSlash=1;
16060      }
16061    }
16062    else {
16063      lastWasSlash=0;
16064      *tp=*p;
16065      tp++;
16066    }
16067    p++;
16068  } /* while */
16069  *tp=0;
16070
16071  f=fopen("conf.winpath", "w+");
16072  if (!f) {
16073    printf("Could not create file conf.winpath\n");
16074    exit(1);
16075  }
16076  fprintf(f, "%s", buffer2);
16077  if (fclose(f)) {
16078   printf("Could not close file.\n");
16079   exit(1);
16080  }
16081  exit(0);
16082}
16083
16084_ACEOF
16085if ac_fn_c_try_run "$LINENO"; then :
16086  aq_windoze_path=`cat conf.winpath`
16087else
16088  as_fn_error "Could not determine path for system" "$LINENO" 5
16089fi
16090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16091  conftest.$ac_objext conftest.beam conftest.$ac_ext
16092fi
16093
16094
16095rm -f conf.winpath
16096
16097  gwenhywfar_cv_path_system_mingw="$aq_windoze_path"
16098
16099fi
16100
16101WIN_PATH_SYSTEM_MINGW="$gwenhywfar_cv_path_system_mingw"
16102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIN_PATH_SYSTEM_MINGW" >&5
16103$as_echo "$WIN_PATH_SYSTEM_MINGW" >&6; }
16104
16105# finish variables
16106
16107
16108cat >>confdefs.h <<_ACEOF
16109#define WIN_PATH_HOME "$WIN_PATH_HOME"
16110_ACEOF
16111
16112
16113
16114
16115cat >>confdefs.h <<_ACEOF
16116#define WIN_PATH_WINDOWS "$WIN_PATH_WINDOWS"
16117_ACEOF
16118
16119
16120
16121
16122cat >>confdefs.h <<_ACEOF
16123#define WIN_PATH_SYSTEM "$WIN_PATH_SYSTEM"
16124_ACEOF
16125
16126
16127
16128    ;;
16129esac
16130
16131
16132ac_ext=f
16133ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16134ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16135ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16136if test -n "$ac_tool_prefix"; then
16137  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
16138  do
16139    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16142$as_echo_n "checking for $ac_word... " >&6; }
16143if test "${ac_cv_prog_F77+set}" = set; then :
16144  $as_echo_n "(cached) " >&6
16145else
16146  if test -n "$F77"; then
16147  ac_cv_prog_F77="$F77" # Let the user override the test.
16148else
16149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16150for as_dir in $PATH
16151do
16152  IFS=$as_save_IFS
16153  test -z "$as_dir" && as_dir=.
16154    for ac_exec_ext in '' $ac_executable_extensions; do
16155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16156    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16158    break 2
16159  fi
16160done
16161  done
16162IFS=$as_save_IFS
16163
16164fi
16165fi
16166F77=$ac_cv_prog_F77
16167if test -n "$F77"; then
16168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
16169$as_echo "$F77" >&6; }
16170else
16171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16172$as_echo "no" >&6; }
16173fi
16174
16175
16176    test -n "$F77" && break
16177  done
16178fi
16179if test -z "$F77"; then
16180  ac_ct_F77=$F77
16181  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
16182do
16183  # Extract the first word of "$ac_prog", so it can be a program name with args.
16184set dummy $ac_prog; ac_word=$2
16185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16186$as_echo_n "checking for $ac_word... " >&6; }
16187if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
16188  $as_echo_n "(cached) " >&6
16189else
16190  if test -n "$ac_ct_F77"; then
16191  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16192else
16193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16194for as_dir in $PATH
16195do
16196  IFS=$as_save_IFS
16197  test -z "$as_dir" && as_dir=.
16198    for ac_exec_ext in '' $ac_executable_extensions; do
16199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16200    ac_cv_prog_ac_ct_F77="$ac_prog"
16201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16202    break 2
16203  fi
16204done
16205  done
16206IFS=$as_save_IFS
16207
16208fi
16209fi
16210ac_ct_F77=$ac_cv_prog_ac_ct_F77
16211if test -n "$ac_ct_F77"; then
16212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
16213$as_echo "$ac_ct_F77" >&6; }
16214else
16215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16216$as_echo "no" >&6; }
16217fi
16218
16219
16220  test -n "$ac_ct_F77" && break
16221done
16222
16223  if test "x$ac_ct_F77" = x; then
16224    F77=""
16225  else
16226    case $cross_compiling:$ac_tool_warned in
16227yes:)
16228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16230ac_tool_warned=yes ;;
16231esac
16232    F77=$ac_ct_F77
16233  fi
16234fi
16235
16236
16237# Provide some information about the compiler.
16238$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
16239set X $ac_compile
16240ac_compiler=$2
16241for ac_option in --version -v -V -qversion; do
16242  { { ac_try="$ac_compiler $ac_option >&5"
16243case "(($ac_try" in
16244  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245  *) ac_try_echo=$ac_try;;
16246esac
16247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16248$as_echo "$ac_try_echo"; } >&5
16249  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16250  ac_status=$?
16251  if test -s conftest.err; then
16252    sed '10a\
16253... rest of stderr output deleted ...
16254         10q' conftest.err >conftest.er1
16255    cat conftest.er1 >&5
16256  fi
16257  rm -f conftest.er1 conftest.err
16258  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16259  test $ac_status = 0; }
16260done
16261rm -f a.out
16262
16263# If we don't use `.F' as extension, the preprocessor is not run on the
16264# input file.  (Note that this only needs to work for GNU compilers.)
16265ac_save_ext=$ac_ext
16266ac_ext=F
16267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
16268$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
16269if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
16270  $as_echo_n "(cached) " >&6
16271else
16272  cat > conftest.$ac_ext <<_ACEOF
16273      program main
16274#ifndef __GNUC__
16275       choke me
16276#endif
16277
16278      end
16279_ACEOF
16280if ac_fn_f77_try_compile "$LINENO"; then :
16281  ac_compiler_gnu=yes
16282else
16283  ac_compiler_gnu=no
16284fi
16285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16287
16288fi
16289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
16290$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
16291ac_ext=$ac_save_ext
16292ac_test_FFLAGS=${FFLAGS+set}
16293ac_save_FFLAGS=$FFLAGS
16294FFLAGS=
16295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
16296$as_echo_n "checking whether $F77 accepts -g... " >&6; }
16297if test "${ac_cv_prog_f77_g+set}" = set; then :
16298  $as_echo_n "(cached) " >&6
16299else
16300  FFLAGS=-g
16301cat > conftest.$ac_ext <<_ACEOF
16302      program main
16303
16304      end
16305_ACEOF
16306if ac_fn_f77_try_compile "$LINENO"; then :
16307  ac_cv_prog_f77_g=yes
16308else
16309  ac_cv_prog_f77_g=no
16310fi
16311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16312
16313fi
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
16315$as_echo "$ac_cv_prog_f77_g" >&6; }
16316if test "$ac_test_FFLAGS" = set; then
16317  FFLAGS=$ac_save_FFLAGS
16318elif test $ac_cv_prog_f77_g = yes; then
16319  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16320    FFLAGS="-g -O2"
16321  else
16322    FFLAGS="-g"
16323  fi
16324else
16325  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16326    FFLAGS="-O2"
16327  else
16328    FFLAGS=
16329  fi
16330fi
16331
16332if test $ac_compiler_gnu = yes; then
16333  G77=yes
16334else
16335  G77=
16336fi
16337ac_ext=c
16338ac_cpp='$CPP $CPPFLAGS'
16339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16341ac_compiler_gnu=$ac_cv_c_compiler_gnu
16342
16343
16344ac_ext=f
16345ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16346ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16347ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16348if test -n "$ac_tool_prefix"; then
16349  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
16350  do
16351    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16352set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16354$as_echo_n "checking for $ac_word... " >&6; }
16355if test "${ac_cv_prog_F77+set}" = set; then :
16356  $as_echo_n "(cached) " >&6
16357else
16358  if test -n "$F77"; then
16359  ac_cv_prog_F77="$F77" # Let the user override the test.
16360else
16361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16362for as_dir in $PATH
16363do
16364  IFS=$as_save_IFS
16365  test -z "$as_dir" && as_dir=.
16366    for ac_exec_ext in '' $ac_executable_extensions; do
16367  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16368    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16370    break 2
16371  fi
16372done
16373  done
16374IFS=$as_save_IFS
16375
16376fi
16377fi
16378F77=$ac_cv_prog_F77
16379if test -n "$F77"; then
16380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
16381$as_echo "$F77" >&6; }
16382else
16383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16384$as_echo "no" >&6; }
16385fi
16386
16387
16388    test -n "$F77" && break
16389  done
16390fi
16391if test -z "$F77"; then
16392  ac_ct_F77=$F77
16393  for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
16394do
16395  # Extract the first word of "$ac_prog", so it can be a program name with args.
16396set dummy $ac_prog; ac_word=$2
16397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16398$as_echo_n "checking for $ac_word... " >&6; }
16399if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
16400  $as_echo_n "(cached) " >&6
16401else
16402  if test -n "$ac_ct_F77"; then
16403  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16404else
16405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16406for as_dir in $PATH
16407do
16408  IFS=$as_save_IFS
16409  test -z "$as_dir" && as_dir=.
16410    for ac_exec_ext in '' $ac_executable_extensions; do
16411  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16412    ac_cv_prog_ac_ct_F77="$ac_prog"
16413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16414    break 2
16415  fi
16416done
16417  done
16418IFS=$as_save_IFS
16419
16420fi
16421fi
16422ac_ct_F77=$ac_cv_prog_ac_ct_F77
16423if test -n "$ac_ct_F77"; then
16424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
16425$as_echo "$ac_ct_F77" >&6; }
16426else
16427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16428$as_echo "no" >&6; }
16429fi
16430
16431
16432  test -n "$ac_ct_F77" && break
16433done
16434
16435  if test "x$ac_ct_F77" = x; then
16436    F77=""
16437  else
16438    case $cross_compiling:$ac_tool_warned in
16439yes:)
16440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16441$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16442ac_tool_warned=yes ;;
16443esac
16444    F77=$ac_ct_F77
16445  fi
16446fi
16447
16448
16449# Provide some information about the compiler.
16450$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
16451set X $ac_compile
16452ac_compiler=$2
16453for ac_option in --version -v -V -qversion; do
16454  { { ac_try="$ac_compiler $ac_option >&5"
16455case "(($ac_try" in
16456  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16457  *) ac_try_echo=$ac_try;;
16458esac
16459eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16460$as_echo "$ac_try_echo"; } >&5
16461  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16462  ac_status=$?
16463  if test -s conftest.err; then
16464    sed '10a\
16465... rest of stderr output deleted ...
16466         10q' conftest.err >conftest.er1
16467    cat conftest.er1 >&5
16468  fi
16469  rm -f conftest.er1 conftest.err
16470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16471  test $ac_status = 0; }
16472done
16473rm -f a.out
16474
16475# If we don't use `.F' as extension, the preprocessor is not run on the
16476# input file.  (Note that this only needs to work for GNU compilers.)
16477ac_save_ext=$ac_ext
16478ac_ext=F
16479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
16480$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
16481if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
16482  $as_echo_n "(cached) " >&6
16483else
16484  cat > conftest.$ac_ext <<_ACEOF
16485      program main
16486#ifndef __GNUC__
16487       choke me
16488#endif
16489
16490      end
16491_ACEOF
16492if ac_fn_f77_try_compile "$LINENO"; then :
16493  ac_compiler_gnu=yes
16494else
16495  ac_compiler_gnu=no
16496fi
16497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16498ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16499
16500fi
16501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
16502$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
16503ac_ext=$ac_save_ext
16504ac_test_FFLAGS=${FFLAGS+set}
16505ac_save_FFLAGS=$FFLAGS
16506FFLAGS=
16507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
16508$as_echo_n "checking whether $F77 accepts -g... " >&6; }
16509if test "${ac_cv_prog_f77_g+set}" = set; then :
16510  $as_echo_n "(cached) " >&6
16511else
16512  FFLAGS=-g
16513cat > conftest.$ac_ext <<_ACEOF
16514      program main
16515
16516      end
16517_ACEOF
16518if ac_fn_f77_try_compile "$LINENO"; then :
16519  ac_cv_prog_f77_g=yes
16520else
16521  ac_cv_prog_f77_g=no
16522fi
16523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16524
16525fi
16526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
16527$as_echo "$ac_cv_prog_f77_g" >&6; }
16528if test "$ac_test_FFLAGS" = set; then
16529  FFLAGS=$ac_save_FFLAGS
16530elif test $ac_cv_prog_f77_g = yes; then
16531  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16532    FFLAGS="-g -O2"
16533  else
16534    FFLAGS="-g"
16535  fi
16536else
16537  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16538    FFLAGS="-O2"
16539  else
16540    FFLAGS=
16541  fi
16542fi
16543
16544if test $ac_compiler_gnu = yes; then
16545  G77=yes
16546else
16547  G77=
16548fi
16549ac_ext=c
16550ac_cpp='$CPP $CPPFLAGS'
16551ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16552ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16553ac_compiler_gnu=$ac_cv_c_compiler_gnu
16554
16555if test -z "$F77" || test "X$F77" = "Xno"; then
16556  _lt_disable_F77=yes
16557fi
16558
16559
16560
16561      ac_ext=f
16562ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16563ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16564ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16565
16566
16567archive_cmds_need_lc_F77=no
16568allow_undefined_flag_F77=
16569always_export_symbols_F77=no
16570archive_expsym_cmds_F77=
16571export_dynamic_flag_spec_F77=
16572hardcode_direct_F77=no
16573hardcode_direct_absolute_F77=no
16574hardcode_libdir_flag_spec_F77=
16575hardcode_libdir_flag_spec_ld_F77=
16576hardcode_libdir_separator_F77=
16577hardcode_minus_L_F77=no
16578hardcode_automatic_F77=no
16579inherit_rpath_F77=no
16580module_cmds_F77=
16581module_expsym_cmds_F77=
16582link_all_deplibs_F77=unknown
16583old_archive_cmds_F77=$old_archive_cmds
16584no_undefined_flag_F77=
16585whole_archive_flag_spec_F77=
16586enable_shared_with_static_runtimes_F77=no
16587
16588# Source file extension for f77 test sources.
16589ac_ext=f
16590
16591# Object file extension for compiled f77 test sources.
16592objext=o
16593objext_F77=$objext
16594
16595# No sense in running all these tests if we already determined that
16596# the F77 compiler isn't working.  Some variables (like enable_shared)
16597# are currently assumed to apply to all compilers on this platform,
16598# and will be corrupted by setting them based on a non-working compiler.
16599if test "$_lt_disable_F77" != yes; then
16600  # Code to be used in simple compile tests
16601  lt_simple_compile_test_code="\
16602      subroutine t
16603      return
16604      end
16605"
16606
16607  # Code to be used in simple link tests
16608  lt_simple_link_test_code="\
16609      program t
16610      end
16611"
16612
16613  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16614
16615
16616
16617
16618
16619
16620# If no C compiler was specified, use CC.
16621LTCC=${LTCC-"$CC"}
16622
16623# If no C compiler flags were specified, use CFLAGS.
16624LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16625
16626# Allow CC to be a program name with arguments.
16627compiler=$CC
16628
16629
16630  # save warnings/boilerplate of simple test code
16631  ac_outfile=conftest.$ac_objext
16632echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16633eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16634_lt_compiler_boilerplate=`cat conftest.err`
16635$RM conftest*
16636
16637  ac_outfile=conftest.$ac_objext
16638echo "$lt_simple_link_test_code" >conftest.$ac_ext
16639eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16640_lt_linker_boilerplate=`cat conftest.err`
16641$RM -r conftest*
16642
16643
16644  # Allow CC to be a program name with arguments.
16645  lt_save_CC="$CC"
16646  lt_save_GCC=$GCC
16647  CC=${F77-"f77"}
16648  compiler=$CC
16649  compiler_F77=$CC
16650  for cc_temp in $compiler""; do
16651  case $cc_temp in
16652    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16653    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16654    \-*) ;;
16655    *) break;;
16656  esac
16657done
16658cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16659
16660  GCC=$G77
16661  if test -n "$compiler"; then
16662    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16663$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16664    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16665$as_echo "$can_build_shared" >&6; }
16666
16667    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16668$as_echo_n "checking whether to build shared libraries... " >&6; }
16669    test "$can_build_shared" = "no" && enable_shared=no
16670
16671    # On AIX, shared libraries and static libraries use the same namespace, and
16672    # are all built from PIC.
16673    case $host_os in
16674      aix3*)
16675        test "$enable_shared" = yes && enable_static=no
16676        if test -n "$RANLIB"; then
16677          archive_cmds="$archive_cmds~\$RANLIB \$lib"
16678          postinstall_cmds='$RANLIB $lib'
16679        fi
16680        ;;
16681      aix[4-9]*)
16682	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16683	  test "$enable_shared" = yes && enable_static=no
16684	fi
16685        ;;
16686    esac
16687    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16688$as_echo "$enable_shared" >&6; }
16689
16690    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16691$as_echo_n "checking whether to build static libraries... " >&6; }
16692    # Make sure either enable_shared or enable_static is yes.
16693    test "$enable_shared" = yes || enable_static=yes
16694    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16695$as_echo "$enable_static" >&6; }
16696
16697    GCC_F77="$G77"
16698    LD_F77="$LD"
16699
16700    ## CAVEAT EMPTOR:
16701    ## There is no encapsulation within the following macros, do not change
16702    ## the running order or otherwise move them around unless you know exactly
16703    ## what you are doing...
16704    lt_prog_compiler_wl_F77=
16705lt_prog_compiler_pic_F77=
16706lt_prog_compiler_static_F77=
16707
16708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16709$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16710
16711  if test "$GCC" = yes; then
16712    lt_prog_compiler_wl_F77='-Wl,'
16713    lt_prog_compiler_static_F77='-static'
16714
16715    case $host_os in
16716      aix*)
16717      # All AIX code is PIC.
16718      if test "$host_cpu" = ia64; then
16719	# AIX 5 now supports IA64 processor
16720	lt_prog_compiler_static_F77='-Bstatic'
16721      fi
16722      ;;
16723
16724    amigaos*)
16725      case $host_cpu in
16726      powerpc)
16727            # see comment about AmigaOS4 .so support
16728            lt_prog_compiler_pic_F77='-fPIC'
16729        ;;
16730      m68k)
16731            # FIXME: we need at least 68020 code to build shared libraries, but
16732            # adding the `-m68020' flag to GCC prevents building anything better,
16733            # like `-m68040'.
16734            lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16735        ;;
16736      esac
16737      ;;
16738
16739    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16740      # PIC is the default for these OSes.
16741      ;;
16742
16743    mingw* | cygwin* | pw32* | os2* | cegcc*)
16744      # This hack is so that the source file can tell whether it is being
16745      # built for inclusion in a dll (and should export symbols for example).
16746      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16747      # (--disable-auto-import) libraries
16748      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16749      ;;
16750
16751    darwin* | rhapsody*)
16752      # PIC is the default on this platform
16753      # Common symbols not allowed in MH_DYLIB files
16754      lt_prog_compiler_pic_F77='-fno-common'
16755      ;;
16756
16757    hpux*)
16758      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16759      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16760      # sets the default TLS model and affects inlining.
16761      case $host_cpu in
16762      hppa*64*)
16763	# +Z the default
16764	;;
16765      *)
16766	lt_prog_compiler_pic_F77='-fPIC'
16767	;;
16768      esac
16769      ;;
16770
16771    interix[3-9]*)
16772      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16773      # Instead, we relocate shared libraries at runtime.
16774      ;;
16775
16776    msdosdjgpp*)
16777      # Just because we use GCC doesn't mean we suddenly get shared libraries
16778      # on systems that don't support them.
16779      lt_prog_compiler_can_build_shared_F77=no
16780      enable_shared=no
16781      ;;
16782
16783    *nto* | *qnx*)
16784      # QNX uses GNU C++, but need to define -shared option too, otherwise
16785      # it will coredump.
16786      lt_prog_compiler_pic_F77='-fPIC -shared'
16787      ;;
16788
16789    sysv4*MP*)
16790      if test -d /usr/nec; then
16791	lt_prog_compiler_pic_F77=-Kconform_pic
16792      fi
16793      ;;
16794
16795    *)
16796      lt_prog_compiler_pic_F77='-fPIC'
16797      ;;
16798    esac
16799  else
16800    # PORTME Check for flag to pass linker flags through the system compiler.
16801    case $host_os in
16802    aix*)
16803      lt_prog_compiler_wl_F77='-Wl,'
16804      if test "$host_cpu" = ia64; then
16805	# AIX 5 now supports IA64 processor
16806	lt_prog_compiler_static_F77='-Bstatic'
16807      else
16808	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16809      fi
16810      ;;
16811
16812    mingw* | cygwin* | pw32* | os2* | cegcc*)
16813      # This hack is so that the source file can tell whether it is being
16814      # built for inclusion in a dll (and should export symbols for example).
16815      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16816      ;;
16817
16818    hpux9* | hpux10* | hpux11*)
16819      lt_prog_compiler_wl_F77='-Wl,'
16820      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16821      # not for PA HP-UX.
16822      case $host_cpu in
16823      hppa*64*|ia64*)
16824	# +Z the default
16825	;;
16826      *)
16827	lt_prog_compiler_pic_F77='+Z'
16828	;;
16829      esac
16830      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16831      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16832      ;;
16833
16834    irix5* | irix6* | nonstopux*)
16835      lt_prog_compiler_wl_F77='-Wl,'
16836      # PIC (with -KPIC) is the default.
16837      lt_prog_compiler_static_F77='-non_shared'
16838      ;;
16839
16840    linux* | k*bsd*-gnu | kopensolaris*-gnu)
16841      case $cc_basename in
16842      # old Intel for x86_64 which still supported -KPIC.
16843      ecc*)
16844	lt_prog_compiler_wl_F77='-Wl,'
16845	lt_prog_compiler_pic_F77='-KPIC'
16846	lt_prog_compiler_static_F77='-static'
16847        ;;
16848      # icc used to be incompatible with GCC.
16849      # ICC 10 doesn't accept -KPIC any more.
16850      icc* | ifort*)
16851	lt_prog_compiler_wl_F77='-Wl,'
16852	lt_prog_compiler_pic_F77='-fPIC'
16853	lt_prog_compiler_static_F77='-static'
16854        ;;
16855      # Lahey Fortran 8.1.
16856      lf95*)
16857	lt_prog_compiler_wl_F77='-Wl,'
16858	lt_prog_compiler_pic_F77='--shared'
16859	lt_prog_compiler_static_F77='--static'
16860	;;
16861      pgcc* | pgf77* | pgf90* | pgf95*)
16862        # Portland Group compilers (*not* the Pentium gcc compiler,
16863	# which looks to be a dead project)
16864	lt_prog_compiler_wl_F77='-Wl,'
16865	lt_prog_compiler_pic_F77='-fpic'
16866	lt_prog_compiler_static_F77='-Bstatic'
16867        ;;
16868      ccc*)
16869        lt_prog_compiler_wl_F77='-Wl,'
16870        # All Alpha code is PIC.
16871        lt_prog_compiler_static_F77='-non_shared'
16872        ;;
16873      xl*)
16874	# IBM XL C 8.0/Fortran 10.1 on PPC
16875	lt_prog_compiler_wl_F77='-Wl,'
16876	lt_prog_compiler_pic_F77='-qpic'
16877	lt_prog_compiler_static_F77='-qstaticlink'
16878	;;
16879      *)
16880	case `$CC -V 2>&1 | sed 5q` in
16881	*Sun\ C*)
16882	  # Sun C 5.9
16883	  lt_prog_compiler_pic_F77='-KPIC'
16884	  lt_prog_compiler_static_F77='-Bstatic'
16885	  lt_prog_compiler_wl_F77='-Wl,'
16886	  ;;
16887	*Sun\ F*)
16888	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16889	  lt_prog_compiler_pic_F77='-KPIC'
16890	  lt_prog_compiler_static_F77='-Bstatic'
16891	  lt_prog_compiler_wl_F77=''
16892	  ;;
16893	esac
16894	;;
16895      esac
16896      ;;
16897
16898    newsos6)
16899      lt_prog_compiler_pic_F77='-KPIC'
16900      lt_prog_compiler_static_F77='-Bstatic'
16901      ;;
16902
16903    *nto* | *qnx*)
16904      # QNX uses GNU C++, but need to define -shared option too, otherwise
16905      # it will coredump.
16906      lt_prog_compiler_pic_F77='-fPIC -shared'
16907      ;;
16908
16909    osf3* | osf4* | osf5*)
16910      lt_prog_compiler_wl_F77='-Wl,'
16911      # All OSF/1 code is PIC.
16912      lt_prog_compiler_static_F77='-non_shared'
16913      ;;
16914
16915    rdos*)
16916      lt_prog_compiler_static_F77='-non_shared'
16917      ;;
16918
16919    solaris*)
16920      lt_prog_compiler_pic_F77='-KPIC'
16921      lt_prog_compiler_static_F77='-Bstatic'
16922      case $cc_basename in
16923      f77* | f90* | f95*)
16924	lt_prog_compiler_wl_F77='-Qoption ld ';;
16925      *)
16926	lt_prog_compiler_wl_F77='-Wl,';;
16927      esac
16928      ;;
16929
16930    sunos4*)
16931      lt_prog_compiler_wl_F77='-Qoption ld '
16932      lt_prog_compiler_pic_F77='-PIC'
16933      lt_prog_compiler_static_F77='-Bstatic'
16934      ;;
16935
16936    sysv4 | sysv4.2uw2* | sysv4.3*)
16937      lt_prog_compiler_wl_F77='-Wl,'
16938      lt_prog_compiler_pic_F77='-KPIC'
16939      lt_prog_compiler_static_F77='-Bstatic'
16940      ;;
16941
16942    sysv4*MP*)
16943      if test -d /usr/nec ;then
16944	lt_prog_compiler_pic_F77='-Kconform_pic'
16945	lt_prog_compiler_static_F77='-Bstatic'
16946      fi
16947      ;;
16948
16949    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16950      lt_prog_compiler_wl_F77='-Wl,'
16951      lt_prog_compiler_pic_F77='-KPIC'
16952      lt_prog_compiler_static_F77='-Bstatic'
16953      ;;
16954
16955    unicos*)
16956      lt_prog_compiler_wl_F77='-Wl,'
16957      lt_prog_compiler_can_build_shared_F77=no
16958      ;;
16959
16960    uts4*)
16961      lt_prog_compiler_pic_F77='-pic'
16962      lt_prog_compiler_static_F77='-Bstatic'
16963      ;;
16964
16965    *)
16966      lt_prog_compiler_can_build_shared_F77=no
16967      ;;
16968    esac
16969  fi
16970
16971case $host_os in
16972  # For platforms which do not support PIC, -DPIC is meaningless:
16973  *djgpp*)
16974    lt_prog_compiler_pic_F77=
16975    ;;
16976  *)
16977    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16978    ;;
16979esac
16980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
16981$as_echo "$lt_prog_compiler_pic_F77" >&6; }
16982
16983
16984
16985#
16986# Check to make sure the PIC flag actually works.
16987#
16988if test -n "$lt_prog_compiler_pic_F77"; then
16989  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16990$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16991if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
16992  $as_echo_n "(cached) " >&6
16993else
16994  lt_cv_prog_compiler_pic_works_F77=no
16995   ac_outfile=conftest.$ac_objext
16996   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16997   lt_compiler_flag="$lt_prog_compiler_pic_F77"
16998   # Insert the option either (1) after the last *FLAGS variable, or
16999   # (2) before a word containing "conftest.", or (3) at the end.
17000   # Note that $ac_compile itself does not contain backslashes and begins
17001   # with a dollar sign (not a hyphen), so the echo should work correctly.
17002   # The option is referenced via a variable to avoid confusing sed.
17003   lt_compile=`echo "$ac_compile" | $SED \
17004   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17005   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17006   -e 's:$: $lt_compiler_flag:'`
17007   (eval echo "\"\$as_me:17007: $lt_compile\"" >&5)
17008   (eval "$lt_compile" 2>conftest.err)
17009   ac_status=$?
17010   cat conftest.err >&5
17011   echo "$as_me:17011: \$? = $ac_status" >&5
17012   if (exit $ac_status) && test -s "$ac_outfile"; then
17013     # The compiler can only warn and ignore the option if not recognized
17014     # So say no if there are warnings other than the usual output.
17015     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17016     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17017     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17018       lt_cv_prog_compiler_pic_works_F77=yes
17019     fi
17020   fi
17021   $RM conftest*
17022
17023fi
17024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
17025$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
17026
17027if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
17028    case $lt_prog_compiler_pic_F77 in
17029     "" | " "*) ;;
17030     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17031     esac
17032else
17033    lt_prog_compiler_pic_F77=
17034     lt_prog_compiler_can_build_shared_F77=no
17035fi
17036
17037fi
17038
17039
17040
17041#
17042# Check to make sure the static flag actually works.
17043#
17044wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
17045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17046$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17047if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
17048  $as_echo_n "(cached) " >&6
17049else
17050  lt_cv_prog_compiler_static_works_F77=no
17051   save_LDFLAGS="$LDFLAGS"
17052   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17053   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17054   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17055     # The linker can only warn and ignore the option if not recognized
17056     # So say no if there are warnings
17057     if test -s conftest.err; then
17058       # Append any errors to the config.log.
17059       cat conftest.err 1>&5
17060       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17061       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17062       if diff conftest.exp conftest.er2 >/dev/null; then
17063         lt_cv_prog_compiler_static_works_F77=yes
17064       fi
17065     else
17066       lt_cv_prog_compiler_static_works_F77=yes
17067     fi
17068   fi
17069   $RM -r conftest*
17070   LDFLAGS="$save_LDFLAGS"
17071
17072fi
17073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
17074$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
17075
17076if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
17077    :
17078else
17079    lt_prog_compiler_static_F77=
17080fi
17081
17082
17083
17084
17085    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17086$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17087if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
17088  $as_echo_n "(cached) " >&6
17089else
17090  lt_cv_prog_compiler_c_o_F77=no
17091   $RM -r conftest 2>/dev/null
17092   mkdir conftest
17093   cd conftest
17094   mkdir out
17095   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17096
17097   lt_compiler_flag="-o out/conftest2.$ac_objext"
17098   # Insert the option either (1) after the last *FLAGS variable, or
17099   # (2) before a word containing "conftest.", or (3) at the end.
17100   # Note that $ac_compile itself does not contain backslashes and begins
17101   # with a dollar sign (not a hyphen), so the echo should work correctly.
17102   lt_compile=`echo "$ac_compile" | $SED \
17103   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17104   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17105   -e 's:$: $lt_compiler_flag:'`
17106   (eval echo "\"\$as_me:17106: $lt_compile\"" >&5)
17107   (eval "$lt_compile" 2>out/conftest.err)
17108   ac_status=$?
17109   cat out/conftest.err >&5
17110   echo "$as_me:17110: \$? = $ac_status" >&5
17111   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17112   then
17113     # The compiler can only warn and ignore the option if not recognized
17114     # So say no if there are warnings
17115     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17116     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17117     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17118       lt_cv_prog_compiler_c_o_F77=yes
17119     fi
17120   fi
17121   chmod u+w . 2>&5
17122   $RM conftest*
17123   # SGI C++ compiler will create directory out/ii_files/ for
17124   # template instantiation
17125   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17126   $RM out/* && rmdir out
17127   cd ..
17128   $RM -r conftest
17129   $RM conftest*
17130
17131fi
17132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
17133$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
17134
17135
17136
17137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17138$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17139if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
17140  $as_echo_n "(cached) " >&6
17141else
17142  lt_cv_prog_compiler_c_o_F77=no
17143   $RM -r conftest 2>/dev/null
17144   mkdir conftest
17145   cd conftest
17146   mkdir out
17147   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17148
17149   lt_compiler_flag="-o out/conftest2.$ac_objext"
17150   # Insert the option either (1) after the last *FLAGS variable, or
17151   # (2) before a word containing "conftest.", or (3) at the end.
17152   # Note that $ac_compile itself does not contain backslashes and begins
17153   # with a dollar sign (not a hyphen), so the echo should work correctly.
17154   lt_compile=`echo "$ac_compile" | $SED \
17155   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17156   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17157   -e 's:$: $lt_compiler_flag:'`
17158   (eval echo "\"\$as_me:17158: $lt_compile\"" >&5)
17159   (eval "$lt_compile" 2>out/conftest.err)
17160   ac_status=$?
17161   cat out/conftest.err >&5
17162   echo "$as_me:17162: \$? = $ac_status" >&5
17163   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17164   then
17165     # The compiler can only warn and ignore the option if not recognized
17166     # So say no if there are warnings
17167     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17168     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17169     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17170       lt_cv_prog_compiler_c_o_F77=yes
17171     fi
17172   fi
17173   chmod u+w . 2>&5
17174   $RM conftest*
17175   # SGI C++ compiler will create directory out/ii_files/ for
17176   # template instantiation
17177   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17178   $RM out/* && rmdir out
17179   cd ..
17180   $RM -r conftest
17181   $RM conftest*
17182
17183fi
17184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
17185$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
17186
17187
17188
17189
17190hard_links="nottested"
17191if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17192  # do not overwrite the value of need_locks provided by the user
17193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17194$as_echo_n "checking if we can lock with hard links... " >&6; }
17195  hard_links=yes
17196  $RM conftest*
17197  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17198  touch conftest.a
17199  ln conftest.a conftest.b 2>&5 || hard_links=no
17200  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17202$as_echo "$hard_links" >&6; }
17203  if test "$hard_links" = no; then
17204    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17205$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17206    need_locks=warn
17207  fi
17208else
17209  need_locks=no
17210fi
17211
17212
17213
17214    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17215$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17216
17217  runpath_var=
17218  allow_undefined_flag_F77=
17219  always_export_symbols_F77=no
17220  archive_cmds_F77=
17221  archive_expsym_cmds_F77=
17222  compiler_needs_object_F77=no
17223  enable_shared_with_static_runtimes_F77=no
17224  export_dynamic_flag_spec_F77=
17225  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17226  hardcode_automatic_F77=no
17227  hardcode_direct_F77=no
17228  hardcode_direct_absolute_F77=no
17229  hardcode_libdir_flag_spec_F77=
17230  hardcode_libdir_flag_spec_ld_F77=
17231  hardcode_libdir_separator_F77=
17232  hardcode_minus_L_F77=no
17233  hardcode_shlibpath_var_F77=unsupported
17234  inherit_rpath_F77=no
17235  link_all_deplibs_F77=unknown
17236  module_cmds_F77=
17237  module_expsym_cmds_F77=
17238  old_archive_from_new_cmds_F77=
17239  old_archive_from_expsyms_cmds_F77=
17240  thread_safe_flag_spec_F77=
17241  whole_archive_flag_spec_F77=
17242  # include_expsyms should be a list of space-separated symbols to be *always*
17243  # included in the symbol list
17244  include_expsyms_F77=
17245  # exclude_expsyms can be an extended regexp of symbols to exclude
17246  # it will be wrapped by ` (' and `)$', so one must not match beginning or
17247  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17248  # as well as any symbol that contains `d'.
17249  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17250  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17251  # platforms (ab)use it in PIC code, but their linkers get confused if
17252  # the symbol is explicitly referenced.  Since portable code cannot
17253  # rely on this symbol name, it's probably fine to never include it in
17254  # preloaded symbol tables.
17255  # Exclude shared library initialization/finalization symbols.
17256  extract_expsyms_cmds=
17257
17258  case $host_os in
17259  cygwin* | mingw* | pw32* | cegcc*)
17260    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17261    # When not using gcc, we currently assume that we are using
17262    # Microsoft Visual C++.
17263    if test "$GCC" != yes; then
17264      with_gnu_ld=no
17265    fi
17266    ;;
17267  interix*)
17268    # we just hope/assume this is gcc and not c89 (= MSVC++)
17269    with_gnu_ld=yes
17270    ;;
17271  openbsd*)
17272    with_gnu_ld=no
17273    ;;
17274  linux* | k*bsd*-gnu)
17275    link_all_deplibs_F77=no
17276    ;;
17277  esac
17278
17279  ld_shlibs_F77=yes
17280  if test "$with_gnu_ld" = yes; then
17281    # If archive_cmds runs LD, not CC, wlarc should be empty
17282    wlarc='${wl}'
17283
17284    # Set some defaults for GNU ld with shared library support. These
17285    # are reset later if shared libraries are not supported. Putting them
17286    # here allows them to be overridden if necessary.
17287    runpath_var=LD_RUN_PATH
17288    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17289    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17290    # ancient GNU ld didn't support --whole-archive et. al.
17291    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17292      whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17293    else
17294      whole_archive_flag_spec_F77=
17295    fi
17296    supports_anon_versioning=no
17297    case `$LD -v 2>&1` in
17298      *GNU\ gold*) supports_anon_versioning=yes ;;
17299      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17300      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17301      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17302      *\ 2.11.*) ;; # other 2.11 versions
17303      *) supports_anon_versioning=yes ;;
17304    esac
17305
17306    # See if GNU ld supports shared libraries.
17307    case $host_os in
17308    aix[3-9]*)
17309      # On AIX/PPC, the GNU linker is very broken
17310      if test "$host_cpu" != ia64; then
17311	ld_shlibs_F77=no
17312	cat <<_LT_EOF 1>&2
17313
17314*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17315*** to be unable to reliably create shared libraries on AIX.
17316*** Therefore, libtool is disabling shared libraries support.  If you
17317*** really care for shared libraries, you may want to modify your PATH
17318*** so that a non-GNU linker is found, and then restart.
17319
17320_LT_EOF
17321      fi
17322      ;;
17323
17324    amigaos*)
17325      case $host_cpu in
17326      powerpc)
17327            # see comment about AmigaOS4 .so support
17328            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17329            archive_expsym_cmds_F77=''
17330        ;;
17331      m68k)
17332            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)'
17333            hardcode_libdir_flag_spec_F77='-L$libdir'
17334            hardcode_minus_L_F77=yes
17335        ;;
17336      esac
17337      ;;
17338
17339    beos*)
17340      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17341	allow_undefined_flag_F77=unsupported
17342	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17343	# support --undefined.  This deserves some investigation.  FIXME
17344	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17345      else
17346	ld_shlibs_F77=no
17347      fi
17348      ;;
17349
17350    cygwin* | mingw* | pw32* | cegcc*)
17351      # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17352      # as there is no search path for DLLs.
17353      hardcode_libdir_flag_spec_F77='-L$libdir'
17354      allow_undefined_flag_F77=unsupported
17355      always_export_symbols_F77=no
17356      enable_shared_with_static_runtimes_F77=yes
17357      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17358
17359      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17360        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17361	# If the export-symbols file already is a .def file (1st line
17362	# is EXPORTS), use it as is; otherwise, prepend...
17363	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17364	  cp $export_symbols $output_objdir/$soname.def;
17365	else
17366	  echo EXPORTS > $output_objdir/$soname.def;
17367	  cat $export_symbols >> $output_objdir/$soname.def;
17368	fi~
17369	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17370      else
17371	ld_shlibs_F77=no
17372      fi
17373      ;;
17374
17375    interix[3-9]*)
17376      hardcode_direct_F77=no
17377      hardcode_shlibpath_var_F77=no
17378      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17379      export_dynamic_flag_spec_F77='${wl}-E'
17380      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17381      # Instead, shared libraries are loaded at an image base (0x10000000 by
17382      # default) and relocated if they conflict, which is a slow very memory
17383      # consuming and fragmenting process.  To avoid this, we pick a random,
17384      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17385      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17386      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'
17387      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'
17388      ;;
17389
17390    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17391      tmp_diet=no
17392      if test "$host_os" = linux-dietlibc; then
17393	case $cc_basename in
17394	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
17395	esac
17396      fi
17397      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17398	 && test "$tmp_diet" = no
17399      then
17400	tmp_addflag=
17401	tmp_sharedflag='-shared'
17402	case $cc_basename,$host_cpu in
17403        pgcc*)				# Portland Group C compiler
17404	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17405	  tmp_addflag=' $pic_flag'
17406	  ;;
17407	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
17408	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17409	  tmp_addflag=' $pic_flag -Mnomain' ;;
17410	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
17411	  tmp_addflag=' -i_dynamic' ;;
17412	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17413	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17414	ifc* | ifort*)			# Intel Fortran compiler
17415	  tmp_addflag=' -nofor_main' ;;
17416	lf95*)				# Lahey Fortran 8.1
17417	  whole_archive_flag_spec_F77=
17418	  tmp_sharedflag='--shared' ;;
17419	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
17420	  tmp_sharedflag='-qmkshrobj'
17421	  tmp_addflag= ;;
17422	esac
17423	case `$CC -V 2>&1 | sed 5q` in
17424	*Sun\ C*)			# Sun C 5.9
17425	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17426	  compiler_needs_object_F77=yes
17427	  tmp_sharedflag='-G' ;;
17428	*Sun\ F*)			# Sun Fortran 8.3
17429	  tmp_sharedflag='-G' ;;
17430	esac
17431	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17432
17433        if test "x$supports_anon_versioning" = xyes; then
17434          archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
17435	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17436	    echo "local: *; };" >> $output_objdir/$libname.ver~
17437	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17438        fi
17439
17440	case $cc_basename in
17441	xlf*)
17442	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17443	  whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
17444	  hardcode_libdir_flag_spec_F77=
17445	  hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17446	  archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17447	  if test "x$supports_anon_versioning" = xyes; then
17448	    archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
17449	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17450	      echo "local: *; };" >> $output_objdir/$libname.ver~
17451	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17452	  fi
17453	  ;;
17454	esac
17455      else
17456        ld_shlibs_F77=no
17457      fi
17458      ;;
17459
17460    netbsd* | netbsdelf*-gnu)
17461      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17462	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17463	wlarc=
17464      else
17465	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17466	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17467      fi
17468      ;;
17469
17470    solaris*)
17471      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17472	ld_shlibs_F77=no
17473	cat <<_LT_EOF 1>&2
17474
17475*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17476*** create shared libraries on Solaris systems.  Therefore, libtool
17477*** is disabling shared libraries support.  We urge you to upgrade GNU
17478*** binutils to release 2.9.1 or newer.  Another option is to modify
17479*** your PATH or compiler configuration so that the native linker is
17480*** used, and then restart.
17481
17482_LT_EOF
17483      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17484	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17485	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17486      else
17487	ld_shlibs_F77=no
17488      fi
17489      ;;
17490
17491    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17492      case `$LD -v 2>&1` in
17493        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17494	ld_shlibs_F77=no
17495	cat <<_LT_EOF 1>&2
17496
17497*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17498*** reliably create shared libraries on SCO systems.  Therefore, libtool
17499*** is disabling shared libraries support.  We urge you to upgrade GNU
17500*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17501*** your PATH or compiler configuration so that the native linker is
17502*** used, and then restart.
17503
17504_LT_EOF
17505	;;
17506	*)
17507	  # For security reasons, it is highly recommended that you always
17508	  # use absolute paths for naming shared libraries, and exclude the
17509	  # DT_RUNPATH tag from executables and libraries.  But doing so
17510	  # requires that you compile everything twice, which is a pain.
17511	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17512	    hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17513	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17514	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17515	  else
17516	    ld_shlibs_F77=no
17517	  fi
17518	;;
17519      esac
17520      ;;
17521
17522    sunos4*)
17523      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17524      wlarc=
17525      hardcode_direct_F77=yes
17526      hardcode_shlibpath_var_F77=no
17527      ;;
17528
17529    *)
17530      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17531	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17532	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17533      else
17534	ld_shlibs_F77=no
17535      fi
17536      ;;
17537    esac
17538
17539    if test "$ld_shlibs_F77" = no; then
17540      runpath_var=
17541      hardcode_libdir_flag_spec_F77=
17542      export_dynamic_flag_spec_F77=
17543      whole_archive_flag_spec_F77=
17544    fi
17545  else
17546    # PORTME fill in a description of your system's linker (not GNU ld)
17547    case $host_os in
17548    aix3*)
17549      allow_undefined_flag_F77=unsupported
17550      always_export_symbols_F77=yes
17551      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'
17552      # Note: this linker hardcodes the directories in LIBPATH if there
17553      # are no directories specified by -L.
17554      hardcode_minus_L_F77=yes
17555      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17556	# Neither direct hardcoding nor static linking is supported with a
17557	# broken collect2.
17558	hardcode_direct_F77=unsupported
17559      fi
17560      ;;
17561
17562    aix[4-9]*)
17563      if test "$host_cpu" = ia64; then
17564	# On IA64, the linker does run time linking by default, so we don't
17565	# have to do anything special.
17566	aix_use_runtimelinking=no
17567	exp_sym_flag='-Bexport'
17568	no_entry_flag=""
17569      else
17570	# If we're using GNU nm, then we don't want the "-C" option.
17571	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17572	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17573	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17574	else
17575	  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'
17576	fi
17577	aix_use_runtimelinking=no
17578
17579	# Test if we are trying to use run time linking or normal
17580	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17581	# need to do runtime linking.
17582	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17583	  for ld_flag in $LDFLAGS; do
17584	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17585	    aix_use_runtimelinking=yes
17586	    break
17587	  fi
17588	  done
17589	  ;;
17590	esac
17591
17592	exp_sym_flag='-bexport'
17593	no_entry_flag='-bnoentry'
17594      fi
17595
17596      # When large executables or shared objects are built, AIX ld can
17597      # have problems creating the table of contents.  If linking a library
17598      # or program results in "error TOC overflow" add -mminimal-toc to
17599      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17600      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17601
17602      archive_cmds_F77=''
17603      hardcode_direct_F77=yes
17604      hardcode_direct_absolute_F77=yes
17605      hardcode_libdir_separator_F77=':'
17606      link_all_deplibs_F77=yes
17607      file_list_spec_F77='${wl}-f,'
17608
17609      if test "$GCC" = yes; then
17610	case $host_os in aix4.[012]|aix4.[012].*)
17611	# We only want to do this on AIX 4.2 and lower, the check
17612	# below for broken collect2 doesn't work under 4.3+
17613	  collect2name=`${CC} -print-prog-name=collect2`
17614	  if test -f "$collect2name" &&
17615	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17616	  then
17617	  # We have reworked collect2
17618	  :
17619	  else
17620	  # We have old collect2
17621	  hardcode_direct_F77=unsupported
17622	  # It fails to find uninstalled libraries when the uninstalled
17623	  # path is not listed in the libpath.  Setting hardcode_minus_L
17624	  # to unsupported forces relinking
17625	  hardcode_minus_L_F77=yes
17626	  hardcode_libdir_flag_spec_F77='-L$libdir'
17627	  hardcode_libdir_separator_F77=
17628	  fi
17629	  ;;
17630	esac
17631	shared_flag='-shared'
17632	if test "$aix_use_runtimelinking" = yes; then
17633	  shared_flag="$shared_flag "'${wl}-G'
17634	fi
17635	link_all_deplibs_F77=no
17636      else
17637	# not using gcc
17638	if test "$host_cpu" = ia64; then
17639	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17640	# chokes on -Wl,-G. The following line is correct:
17641	  shared_flag='-G'
17642	else
17643	  if test "$aix_use_runtimelinking" = yes; then
17644	    shared_flag='${wl}-G'
17645	  else
17646	    shared_flag='${wl}-bM:SRE'
17647	  fi
17648	fi
17649      fi
17650
17651      export_dynamic_flag_spec_F77='${wl}-bexpall'
17652      # It seems that -bexpall does not export symbols beginning with
17653      # underscore (_), so it is better to generate a list of symbols to export.
17654      always_export_symbols_F77=yes
17655      if test "$aix_use_runtimelinking" = yes; then
17656	# Warning - without using the other runtime loading flags (-brtl),
17657	# -berok will link without error, but may produce a broken library.
17658	allow_undefined_flag_F77='-berok'
17659        # Determine the default libpath from the value encoded in an
17660        # empty executable.
17661        cat > conftest.$ac_ext <<_ACEOF
17662      program main
17663
17664      end
17665_ACEOF
17666if ac_fn_f77_try_link "$LINENO"; then :
17667
17668lt_aix_libpath_sed='
17669    /Import File Strings/,/^$/ {
17670	/^0/ {
17671	    s/^0  *\(.*\)$/\1/
17672	    p
17673	}
17674    }'
17675aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17676# Check for a 64-bit object if we didn't find anything.
17677if test -z "$aix_libpath"; then
17678  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17679fi
17680fi
17681rm -f core conftest.err conftest.$ac_objext \
17682    conftest$ac_exeext conftest.$ac_ext
17683if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17684
17685        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17686        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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17687      else
17688	if test "$host_cpu" = ia64; then
17689	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17690	  allow_undefined_flag_F77="-z nodefs"
17691	  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"
17692	else
17693	 # Determine the default libpath from the value encoded in an
17694	 # empty executable.
17695	 cat > conftest.$ac_ext <<_ACEOF
17696      program main
17697
17698      end
17699_ACEOF
17700if ac_fn_f77_try_link "$LINENO"; then :
17701
17702lt_aix_libpath_sed='
17703    /Import File Strings/,/^$/ {
17704	/^0/ {
17705	    s/^0  *\(.*\)$/\1/
17706	    p
17707	}
17708    }'
17709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17710# Check for a 64-bit object if we didn't find anything.
17711if test -z "$aix_libpath"; then
17712  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17713fi
17714fi
17715rm -f core conftest.err conftest.$ac_objext \
17716    conftest$ac_exeext conftest.$ac_ext
17717if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17718
17719	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17720	  # Warning - without using the other run time loading flags,
17721	  # -berok will link without error, but may produce a broken library.
17722	  no_undefined_flag_F77=' ${wl}-bernotok'
17723	  allow_undefined_flag_F77=' ${wl}-berok'
17724	  # Exported symbols can be pulled into shared objects from archives
17725	  whole_archive_flag_spec_F77='$convenience'
17726	  archive_cmds_need_lc_F77=yes
17727	  # This is similar to how AIX traditionally builds its shared libraries.
17728	  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'
17729	fi
17730      fi
17731      ;;
17732
17733    amigaos*)
17734      case $host_cpu in
17735      powerpc)
17736            # see comment about AmigaOS4 .so support
17737            archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17738            archive_expsym_cmds_F77=''
17739        ;;
17740      m68k)
17741            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)'
17742            hardcode_libdir_flag_spec_F77='-L$libdir'
17743            hardcode_minus_L_F77=yes
17744        ;;
17745      esac
17746      ;;
17747
17748    bsdi[45]*)
17749      export_dynamic_flag_spec_F77=-rdynamic
17750      ;;
17751
17752    cygwin* | mingw* | pw32* | cegcc*)
17753      # When not using gcc, we currently assume that we are using
17754      # Microsoft Visual C++.
17755      # hardcode_libdir_flag_spec is actually meaningless, as there is
17756      # no search path for DLLs.
17757      hardcode_libdir_flag_spec_F77=' '
17758      allow_undefined_flag_F77=unsupported
17759      # Tell ltmain to make .lib files, not .a files.
17760      libext=lib
17761      # Tell ltmain to make .dll files, not .so files.
17762      shrext_cmds=".dll"
17763      # FIXME: Setting linknames here is a bad hack.
17764      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
17765      # The linker will automatically build a .lib file if we build a DLL.
17766      old_archive_from_new_cmds_F77='true'
17767      # FIXME: Should let the user specify the lib program.
17768      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17769      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
17770      enable_shared_with_static_runtimes_F77=yes
17771      ;;
17772
17773    darwin* | rhapsody*)
17774
17775
17776  archive_cmds_need_lc_F77=no
17777  hardcode_direct_F77=no
17778  hardcode_automatic_F77=yes
17779  hardcode_shlibpath_var_F77=unsupported
17780  whole_archive_flag_spec_F77=''
17781  link_all_deplibs_F77=yes
17782  allow_undefined_flag_F77="$_lt_dar_allow_undefined"
17783  case $cc_basename in
17784     ifort*) _lt_dar_can_shared=yes ;;
17785     *) _lt_dar_can_shared=$GCC ;;
17786  esac
17787  if test "$_lt_dar_can_shared" = "yes"; then
17788    output_verbose_link_cmd=echo
17789    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}"
17790    module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17791    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}"
17792    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}"
17793
17794  else
17795  ld_shlibs_F77=no
17796  fi
17797
17798      ;;
17799
17800    dgux*)
17801      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17802      hardcode_libdir_flag_spec_F77='-L$libdir'
17803      hardcode_shlibpath_var_F77=no
17804      ;;
17805
17806    freebsd1*)
17807      ld_shlibs_F77=no
17808      ;;
17809
17810    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17811    # support.  Future versions do this automatically, but an explicit c++rt0.o
17812    # does not break anything, and helps significantly (at the cost of a little
17813    # extra space).
17814    freebsd2.2*)
17815      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17816      hardcode_libdir_flag_spec_F77='-R$libdir'
17817      hardcode_direct_F77=yes
17818      hardcode_shlibpath_var_F77=no
17819      ;;
17820
17821    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17822    freebsd2*)
17823      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17824      hardcode_direct_F77=yes
17825      hardcode_minus_L_F77=yes
17826      hardcode_shlibpath_var_F77=no
17827      ;;
17828
17829    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17830    freebsd* | dragonfly*)
17831      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17832      hardcode_libdir_flag_spec_F77='-R$libdir'
17833      hardcode_direct_F77=yes
17834      hardcode_shlibpath_var_F77=no
17835      ;;
17836
17837    hpux9*)
17838      if test "$GCC" = yes; then
17839	archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17840      else
17841	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'
17842      fi
17843      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17844      hardcode_libdir_separator_F77=:
17845      hardcode_direct_F77=yes
17846
17847      # hardcode_minus_L: Not really in the search PATH,
17848      # but as the default location of the library.
17849      hardcode_minus_L_F77=yes
17850      export_dynamic_flag_spec_F77='${wl}-E'
17851      ;;
17852
17853    hpux10*)
17854      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17855	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17856      else
17857	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17858      fi
17859      if test "$with_gnu_ld" = no; then
17860	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17861	hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17862	hardcode_libdir_separator_F77=:
17863	hardcode_direct_F77=yes
17864	hardcode_direct_absolute_F77=yes
17865	export_dynamic_flag_spec_F77='${wl}-E'
17866	# hardcode_minus_L: Not really in the search PATH,
17867	# but as the default location of the library.
17868	hardcode_minus_L_F77=yes
17869      fi
17870      ;;
17871
17872    hpux11*)
17873      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17874	case $host_cpu in
17875	hppa*64*)
17876	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17877	  ;;
17878	ia64*)
17879	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17880	  ;;
17881	*)
17882	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17883	  ;;
17884	esac
17885      else
17886	case $host_cpu in
17887	hppa*64*)
17888	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17889	  ;;
17890	ia64*)
17891	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17892	  ;;
17893	*)
17894	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17895	  ;;
17896	esac
17897      fi
17898      if test "$with_gnu_ld" = no; then
17899	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17900	hardcode_libdir_separator_F77=:
17901
17902	case $host_cpu in
17903	hppa*64*|ia64*)
17904	  hardcode_direct_F77=no
17905	  hardcode_shlibpath_var_F77=no
17906	  ;;
17907	*)
17908	  hardcode_direct_F77=yes
17909	  hardcode_direct_absolute_F77=yes
17910	  export_dynamic_flag_spec_F77='${wl}-E'
17911
17912	  # hardcode_minus_L: Not really in the search PATH,
17913	  # but as the default location of the library.
17914	  hardcode_minus_L_F77=yes
17915	  ;;
17916	esac
17917      fi
17918      ;;
17919
17920    irix5* | irix6* | nonstopux*)
17921      if test "$GCC" = yes; then
17922	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17923	# Try to use the -exported_symbol ld option, if it does not
17924	# work, assume that -exports_file does not work either and
17925	# implicitly export all symbols.
17926        save_LDFLAGS="$LDFLAGS"
17927        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17928        cat > conftest.$ac_ext <<_ACEOF
17929int foo(void) {}
17930_ACEOF
17931if ac_fn_f77_try_link "$LINENO"; then :
17932  archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
17933
17934fi
17935rm -f core conftest.err conftest.$ac_objext \
17936    conftest$ac_exeext conftest.$ac_ext
17937        LDFLAGS="$save_LDFLAGS"
17938      else
17939	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
17940	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
17941      fi
17942      archive_cmds_need_lc_F77='no'
17943      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17944      hardcode_libdir_separator_F77=:
17945      inherit_rpath_F77=yes
17946      link_all_deplibs_F77=yes
17947      ;;
17948
17949    netbsd* | netbsdelf*-gnu)
17950      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17951	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17952      else
17953	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17954      fi
17955      hardcode_libdir_flag_spec_F77='-R$libdir'
17956      hardcode_direct_F77=yes
17957      hardcode_shlibpath_var_F77=no
17958      ;;
17959
17960    newsos6)
17961      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17962      hardcode_direct_F77=yes
17963      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17964      hardcode_libdir_separator_F77=:
17965      hardcode_shlibpath_var_F77=no
17966      ;;
17967
17968    *nto* | *qnx*)
17969      ;;
17970
17971    openbsd*)
17972      if test -f /usr/libexec/ld.so; then
17973	hardcode_direct_F77=yes
17974	hardcode_shlibpath_var_F77=no
17975	hardcode_direct_absolute_F77=yes
17976	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17977	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17978	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17979	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17980	  export_dynamic_flag_spec_F77='${wl}-E'
17981	else
17982	  case $host_os in
17983	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17984	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17985	     hardcode_libdir_flag_spec_F77='-R$libdir'
17986	     ;;
17987	   *)
17988	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17989	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17990	     ;;
17991	  esac
17992	fi
17993      else
17994	ld_shlibs_F77=no
17995      fi
17996      ;;
17997
17998    os2*)
17999      hardcode_libdir_flag_spec_F77='-L$libdir'
18000      hardcode_minus_L_F77=yes
18001      allow_undefined_flag_F77=unsupported
18002      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'
18003      old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18004      ;;
18005
18006    osf3*)
18007      if test "$GCC" = yes; then
18008	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18009	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18010      else
18011	allow_undefined_flag_F77=' -expect_unresolved \*'
18012	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18013      fi
18014      archive_cmds_need_lc_F77='no'
18015      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18016      hardcode_libdir_separator_F77=:
18017      ;;
18018
18019    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18020      if test "$GCC" = yes; then
18021	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18022	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18023	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18024      else
18025	allow_undefined_flag_F77=' -expect_unresolved \*'
18026	archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18027	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~
18028	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18029
18030	# Both c and cxx compiler support -rpath directly
18031	hardcode_libdir_flag_spec_F77='-rpath $libdir'
18032      fi
18033      archive_cmds_need_lc_F77='no'
18034      hardcode_libdir_separator_F77=:
18035      ;;
18036
18037    solaris*)
18038      no_undefined_flag_F77=' -z defs'
18039      if test "$GCC" = yes; then
18040	wlarc='${wl}'
18041	archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18042	archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18043	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18044      else
18045	case `$CC -V 2>&1` in
18046	*"Compilers 5.0"*)
18047	  wlarc=''
18048	  archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18049	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18050	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18051	  ;;
18052	*)
18053	  wlarc='${wl}'
18054	  archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18055	  archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18056	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18057	  ;;
18058	esac
18059      fi
18060      hardcode_libdir_flag_spec_F77='-R$libdir'
18061      hardcode_shlibpath_var_F77=no
18062      case $host_os in
18063      solaris2.[0-5] | solaris2.[0-5].*) ;;
18064      *)
18065	# The compiler driver will combine and reorder linker options,
18066	# but understands `-z linker_flag'.  GCC discards it without `$wl',
18067	# but is careful enough not to reorder.
18068	# Supported since Solaris 2.6 (maybe 2.5.1?)
18069	if test "$GCC" = yes; then
18070	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18071	else
18072	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
18073	fi
18074	;;
18075      esac
18076      link_all_deplibs_F77=yes
18077      ;;
18078
18079    sunos4*)
18080      if test "x$host_vendor" = xsequent; then
18081	# Use $CC to link under sequent, because it throws in some extra .o
18082	# files that make .init and .fini sections work.
18083	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18084      else
18085	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18086      fi
18087      hardcode_libdir_flag_spec_F77='-L$libdir'
18088      hardcode_direct_F77=yes
18089      hardcode_minus_L_F77=yes
18090      hardcode_shlibpath_var_F77=no
18091      ;;
18092
18093    sysv4)
18094      case $host_vendor in
18095	sni)
18096	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18097	  hardcode_direct_F77=yes # is this really true???
18098	;;
18099	siemens)
18100	  ## LD is ld it makes a PLAMLIB
18101	  ## CC just makes a GrossModule.
18102	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18103	  reload_cmds_F77='$CC -r -o $output$reload_objs'
18104	  hardcode_direct_F77=no
18105        ;;
18106	motorola)
18107	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18108	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18109	;;
18110      esac
18111      runpath_var='LD_RUN_PATH'
18112      hardcode_shlibpath_var_F77=no
18113      ;;
18114
18115    sysv4.3*)
18116      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18117      hardcode_shlibpath_var_F77=no
18118      export_dynamic_flag_spec_F77='-Bexport'
18119      ;;
18120
18121    sysv4*MP*)
18122      if test -d /usr/nec; then
18123	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18124	hardcode_shlibpath_var_F77=no
18125	runpath_var=LD_RUN_PATH
18126	hardcode_runpath_var=yes
18127	ld_shlibs_F77=yes
18128      fi
18129      ;;
18130
18131    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18132      no_undefined_flag_F77='${wl}-z,text'
18133      archive_cmds_need_lc_F77=no
18134      hardcode_shlibpath_var_F77=no
18135      runpath_var='LD_RUN_PATH'
18136
18137      if test "$GCC" = yes; then
18138	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18139	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18140      else
18141	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18142	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18143      fi
18144      ;;
18145
18146    sysv5* | sco3.2v5* | sco5v6*)
18147      # Note: We can NOT use -z defs as we might desire, because we do not
18148      # link with -lc, and that would cause any symbols used from libc to
18149      # always be unresolved, which means just about no library would
18150      # ever link correctly.  If we're not using GNU ld we use -z text
18151      # though, which does catch some bad symbols but isn't as heavy-handed
18152      # as -z defs.
18153      no_undefined_flag_F77='${wl}-z,text'
18154      allow_undefined_flag_F77='${wl}-z,nodefs'
18155      archive_cmds_need_lc_F77=no
18156      hardcode_shlibpath_var_F77=no
18157      hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
18158      hardcode_libdir_separator_F77=':'
18159      link_all_deplibs_F77=yes
18160      export_dynamic_flag_spec_F77='${wl}-Bexport'
18161      runpath_var='LD_RUN_PATH'
18162
18163      if test "$GCC" = yes; then
18164	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18165	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18166      else
18167	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18168	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18169      fi
18170      ;;
18171
18172    uts4*)
18173      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18174      hardcode_libdir_flag_spec_F77='-L$libdir'
18175      hardcode_shlibpath_var_F77=no
18176      ;;
18177
18178    *)
18179      ld_shlibs_F77=no
18180      ;;
18181    esac
18182
18183    if test x$host_vendor = xsni; then
18184      case $host in
18185      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18186	export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
18187	;;
18188      esac
18189    fi
18190  fi
18191
18192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
18193$as_echo "$ld_shlibs_F77" >&6; }
18194test "$ld_shlibs_F77" = no && can_build_shared=no
18195
18196with_gnu_ld_F77=$with_gnu_ld
18197
18198
18199
18200
18201
18202
18203#
18204# Do we need to explicitly link libc?
18205#
18206case "x$archive_cmds_need_lc_F77" in
18207x|xyes)
18208  # Assume -lc should be added
18209  archive_cmds_need_lc_F77=yes
18210
18211  if test "$enable_shared" = yes && test "$GCC" = yes; then
18212    case $archive_cmds_F77 in
18213    *'~'*)
18214      # FIXME: we may have to deal with multi-command sequences.
18215      ;;
18216    '$CC '*)
18217      # Test whether the compiler implicitly links with -lc since on some
18218      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18219      # to ld, don't add -lc before -lgcc.
18220      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18221$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18222      $RM conftest*
18223      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18224
18225      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18226  (eval $ac_compile) 2>&5
18227  ac_status=$?
18228  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18229  test $ac_status = 0; } 2>conftest.err; then
18230        soname=conftest
18231        lib=conftest
18232        libobjs=conftest.$ac_objext
18233        deplibs=
18234        wl=$lt_prog_compiler_wl_F77
18235	pic_flag=$lt_prog_compiler_pic_F77
18236        compiler_flags=-v
18237        linker_flags=-v
18238        verstring=
18239        output_objdir=.
18240        libname=conftest
18241        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18242        allow_undefined_flag_F77=
18243        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18244  (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18245  ac_status=$?
18246  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18247  test $ac_status = 0; }
18248        then
18249	  archive_cmds_need_lc_F77=no
18250        else
18251	  archive_cmds_need_lc_F77=yes
18252        fi
18253        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18254      else
18255        cat conftest.err 1>&5
18256      fi
18257      $RM conftest*
18258      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
18259$as_echo "$archive_cmds_need_lc_F77" >&6; }
18260      ;;
18261    esac
18262  fi
18263  ;;
18264esac
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18330$as_echo_n "checking dynamic linker characteristics... " >&6; }
18331
18332library_names_spec=
18333libname_spec='lib$name'
18334soname_spec=
18335shrext_cmds=".so"
18336postinstall_cmds=
18337postuninstall_cmds=
18338finish_cmds=
18339finish_eval=
18340shlibpath_var=
18341shlibpath_overrides_runpath=unknown
18342version_type=none
18343dynamic_linker="$host_os ld.so"
18344sys_lib_dlsearch_path_spec="/lib /usr/lib"
18345need_lib_prefix=unknown
18346hardcode_into_libs=no
18347
18348# when you set need_version to no, make sure it does not cause -set_version
18349# flags to be left without arguments
18350need_version=unknown
18351
18352case $host_os in
18353aix3*)
18354  version_type=linux
18355  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18356  shlibpath_var=LIBPATH
18357
18358  # AIX 3 has no versioning support, so we append a major version to the name.
18359  soname_spec='${libname}${release}${shared_ext}$major'
18360  ;;
18361
18362aix[4-9]*)
18363  version_type=linux
18364  need_lib_prefix=no
18365  need_version=no
18366  hardcode_into_libs=yes
18367  if test "$host_cpu" = ia64; then
18368    # AIX 5 supports IA64
18369    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18370    shlibpath_var=LD_LIBRARY_PATH
18371  else
18372    # With GCC up to 2.95.x, collect2 would create an import file
18373    # for dependence libraries.  The import file would start with
18374    # the line `#! .'.  This would cause the generated library to
18375    # depend on `.', always an invalid library.  This was fixed in
18376    # development snapshots of GCC prior to 3.0.
18377    case $host_os in
18378      aix4 | aix4.[01] | aix4.[01].*)
18379      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18380	   echo ' yes '
18381	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18382	:
18383      else
18384	can_build_shared=no
18385      fi
18386      ;;
18387    esac
18388    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18389    # soname into executable. Probably we can add versioning support to
18390    # collect2, so additional links can be useful in future.
18391    if test "$aix_use_runtimelinking" = yes; then
18392      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18393      # instead of lib<name>.a to let people know that these are not
18394      # typical AIX shared libraries.
18395      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18396    else
18397      # We preserve .a as extension for shared libraries through AIX4.2
18398      # and later when we are not doing run time linking.
18399      library_names_spec='${libname}${release}.a $libname.a'
18400      soname_spec='${libname}${release}${shared_ext}$major'
18401    fi
18402    shlibpath_var=LIBPATH
18403  fi
18404  ;;
18405
18406amigaos*)
18407  case $host_cpu in
18408  powerpc)
18409    # Since July 2007 AmigaOS4 officially supports .so libraries.
18410    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18411    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18412    ;;
18413  m68k)
18414    library_names_spec='$libname.ixlibrary $libname.a'
18415    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18416    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
18417    ;;
18418  esac
18419  ;;
18420
18421beos*)
18422  library_names_spec='${libname}${shared_ext}'
18423  dynamic_linker="$host_os ld.so"
18424  shlibpath_var=LIBRARY_PATH
18425  ;;
18426
18427bsdi[45]*)
18428  version_type=linux
18429  need_version=no
18430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18431  soname_spec='${libname}${release}${shared_ext}$major'
18432  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18433  shlibpath_var=LD_LIBRARY_PATH
18434  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18435  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18436  # the default ld.so.conf also contains /usr/contrib/lib and
18437  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18438  # libtool to hard-code these into programs
18439  ;;
18440
18441cygwin* | mingw* | pw32* | cegcc*)
18442  version_type=windows
18443  shrext_cmds=".dll"
18444  need_version=no
18445  need_lib_prefix=no
18446
18447  case $GCC,$host_os in
18448  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18449    library_names_spec='$libname.dll.a'
18450    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18451    postinstall_cmds='base_file=`basename \${file}`~
18452      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18453      dldir=$destdir/`dirname \$dlpath`~
18454      test -d \$dldir || mkdir -p \$dldir~
18455      $install_prog $dir/$dlname \$dldir/$dlname~
18456      chmod a+x \$dldir/$dlname~
18457      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18458        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18459      fi'
18460    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18461      dlpath=$dir/\$dldll~
18462       $RM \$dlpath'
18463    shlibpath_overrides_runpath=yes
18464
18465    case $host_os in
18466    cygwin*)
18467      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18468      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18469      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18470      ;;
18471    mingw* | cegcc*)
18472      # MinGW DLLs use traditional 'lib' prefix
18473      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18474      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18475      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18476        # It is most probably a Windows format PATH printed by
18477        # mingw gcc, but we are running on Cygwin. Gcc prints its search
18478        # path with ; separators, and with drive letters. We can handle the
18479        # drive letters (cygwin fileutils understands them), so leave them,
18480        # especially as we might pass files found there to a mingw objdump,
18481        # which wouldn't understand a cygwinified path. Ahh.
18482        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18483      else
18484        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18485      fi
18486      ;;
18487    pw32*)
18488      # pw32 DLLs use 'pw' prefix rather than 'lib'
18489      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18490      ;;
18491    esac
18492    ;;
18493
18494  *)
18495    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18496    ;;
18497  esac
18498  dynamic_linker='Win32 ld.exe'
18499  # FIXME: first we should search . and the directory the executable is in
18500  shlibpath_var=PATH
18501  ;;
18502
18503darwin* | rhapsody*)
18504  dynamic_linker="$host_os dyld"
18505  version_type=darwin
18506  need_lib_prefix=no
18507  need_version=no
18508  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18509  soname_spec='${libname}${release}${major}$shared_ext'
18510  shlibpath_overrides_runpath=yes
18511  shlibpath_var=DYLD_LIBRARY_PATH
18512  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18513
18514  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18515  ;;
18516
18517dgux*)
18518  version_type=linux
18519  need_lib_prefix=no
18520  need_version=no
18521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18522  soname_spec='${libname}${release}${shared_ext}$major'
18523  shlibpath_var=LD_LIBRARY_PATH
18524  ;;
18525
18526freebsd1*)
18527  dynamic_linker=no
18528  ;;
18529
18530freebsd* | dragonfly*)
18531  # DragonFly does not have aout.  When/if they implement a new
18532  # versioning mechanism, adjust this.
18533  if test -x /usr/bin/objformat; then
18534    objformat=`/usr/bin/objformat`
18535  else
18536    case $host_os in
18537    freebsd[123]*) objformat=aout ;;
18538    *) objformat=elf ;;
18539    esac
18540  fi
18541  version_type=freebsd-$objformat
18542  case $version_type in
18543    freebsd-elf*)
18544      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18545      need_version=no
18546      need_lib_prefix=no
18547      ;;
18548    freebsd-*)
18549      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18550      need_version=yes
18551      ;;
18552  esac
18553  shlibpath_var=LD_LIBRARY_PATH
18554  case $host_os in
18555  freebsd2*)
18556    shlibpath_overrides_runpath=yes
18557    ;;
18558  freebsd3.[01]* | freebsdelf3.[01]*)
18559    shlibpath_overrides_runpath=yes
18560    hardcode_into_libs=yes
18561    ;;
18562  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18563  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18564    shlibpath_overrides_runpath=no
18565    hardcode_into_libs=yes
18566    ;;
18567  *) # from 4.6 on, and DragonFly
18568    shlibpath_overrides_runpath=yes
18569    hardcode_into_libs=yes
18570    ;;
18571  esac
18572  ;;
18573
18574gnu*)
18575  version_type=linux
18576  need_lib_prefix=no
18577  need_version=no
18578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18579  soname_spec='${libname}${release}${shared_ext}$major'
18580  shlibpath_var=LD_LIBRARY_PATH
18581  hardcode_into_libs=yes
18582  ;;
18583
18584hpux9* | hpux10* | hpux11*)
18585  # Give a soname corresponding to the major version so that dld.sl refuses to
18586  # link against other versions.
18587  version_type=sunos
18588  need_lib_prefix=no
18589  need_version=no
18590  case $host_cpu in
18591  ia64*)
18592    shrext_cmds='.so'
18593    hardcode_into_libs=yes
18594    dynamic_linker="$host_os dld.so"
18595    shlibpath_var=LD_LIBRARY_PATH
18596    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18597    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18598    soname_spec='${libname}${release}${shared_ext}$major'
18599    if test "X$HPUX_IA64_MODE" = X32; then
18600      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18601    else
18602      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18603    fi
18604    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18605    ;;
18606  hppa*64*)
18607    shrext_cmds='.sl'
18608    hardcode_into_libs=yes
18609    dynamic_linker="$host_os dld.sl"
18610    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18611    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18612    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18613    soname_spec='${libname}${release}${shared_ext}$major'
18614    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18615    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18616    ;;
18617  *)
18618    shrext_cmds='.sl'
18619    dynamic_linker="$host_os dld.sl"
18620    shlibpath_var=SHLIB_PATH
18621    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18622    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18623    soname_spec='${libname}${release}${shared_ext}$major'
18624    ;;
18625  esac
18626  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18627  postinstall_cmds='chmod 555 $lib'
18628  ;;
18629
18630interix[3-9]*)
18631  version_type=linux
18632  need_lib_prefix=no
18633  need_version=no
18634  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18635  soname_spec='${libname}${release}${shared_ext}$major'
18636  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18637  shlibpath_var=LD_LIBRARY_PATH
18638  shlibpath_overrides_runpath=no
18639  hardcode_into_libs=yes
18640  ;;
18641
18642irix5* | irix6* | nonstopux*)
18643  case $host_os in
18644    nonstopux*) version_type=nonstopux ;;
18645    *)
18646	if test "$lt_cv_prog_gnu_ld" = yes; then
18647		version_type=linux
18648	else
18649		version_type=irix
18650	fi ;;
18651  esac
18652  need_lib_prefix=no
18653  need_version=no
18654  soname_spec='${libname}${release}${shared_ext}$major'
18655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18656  case $host_os in
18657  irix5* | nonstopux*)
18658    libsuff= shlibsuff=
18659    ;;
18660  *)
18661    case $LD in # libtool.m4 will add one of these switches to LD
18662    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18663      libsuff= shlibsuff= libmagic=32-bit;;
18664    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18665      libsuff=32 shlibsuff=N32 libmagic=N32;;
18666    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18667      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18668    *) libsuff= shlibsuff= libmagic=never-match;;
18669    esac
18670    ;;
18671  esac
18672  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18673  shlibpath_overrides_runpath=no
18674  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18675  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18676  hardcode_into_libs=yes
18677  ;;
18678
18679# No shared lib support for Linux oldld, aout, or coff.
18680linux*oldld* | linux*aout* | linux*coff*)
18681  dynamic_linker=no
18682  ;;
18683
18684# This must be Linux ELF.
18685linux* | k*bsd*-gnu | kopensolaris*-gnu)
18686  version_type=linux
18687  need_lib_prefix=no
18688  need_version=no
18689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18690  soname_spec='${libname}${release}${shared_ext}$major'
18691  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18692  shlibpath_var=LD_LIBRARY_PATH
18693  shlibpath_overrides_runpath=no
18694  # Some binutils ld are patched to set DT_RUNPATH
18695  save_LDFLAGS=$LDFLAGS
18696  save_libdir=$libdir
18697  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
18698       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
18699  cat > conftest.$ac_ext <<_ACEOF
18700      program main
18701
18702      end
18703_ACEOF
18704if ac_fn_f77_try_link "$LINENO"; then :
18705  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18706  shlibpath_overrides_runpath=yes
18707fi
18708fi
18709rm -f core conftest.err conftest.$ac_objext \
18710    conftest$ac_exeext conftest.$ac_ext
18711  LDFLAGS=$save_LDFLAGS
18712  libdir=$save_libdir
18713
18714  # This implies no fast_install, which is unacceptable.
18715  # Some rework will be needed to allow for fast_install
18716  # before this can be enabled.
18717  hardcode_into_libs=yes
18718
18719  # Append ld.so.conf contents to the search path
18720  if test -f /etc/ld.so.conf; then
18721    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;/^$/d' | tr '\n' ' '`
18722    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18723  fi
18724
18725  # We used to test for /lib/ld.so.1 and disable shared libraries on
18726  # powerpc, because MkLinux only supported shared libraries with the
18727  # GNU dynamic linker.  Since this was broken with cross compilers,
18728  # most powerpc-linux boxes support dynamic linking these days and
18729  # people can always --disable-shared, the test was removed, and we
18730  # assume the GNU/Linux dynamic linker is in use.
18731  dynamic_linker='GNU/Linux ld.so'
18732  ;;
18733
18734netbsdelf*-gnu)
18735  version_type=linux
18736  need_lib_prefix=no
18737  need_version=no
18738  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18739  soname_spec='${libname}${release}${shared_ext}$major'
18740  shlibpath_var=LD_LIBRARY_PATH
18741  shlibpath_overrides_runpath=no
18742  hardcode_into_libs=yes
18743  dynamic_linker='NetBSD ld.elf_so'
18744  ;;
18745
18746netbsd*)
18747  version_type=sunos
18748  need_lib_prefix=no
18749  need_version=no
18750  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18751    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18752    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18753    dynamic_linker='NetBSD (a.out) ld.so'
18754  else
18755    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18756    soname_spec='${libname}${release}${shared_ext}$major'
18757    dynamic_linker='NetBSD ld.elf_so'
18758  fi
18759  shlibpath_var=LD_LIBRARY_PATH
18760  shlibpath_overrides_runpath=yes
18761  hardcode_into_libs=yes
18762  ;;
18763
18764newsos6)
18765  version_type=linux
18766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18767  shlibpath_var=LD_LIBRARY_PATH
18768  shlibpath_overrides_runpath=yes
18769  ;;
18770
18771*nto* | *qnx*)
18772  version_type=qnx
18773  need_lib_prefix=no
18774  need_version=no
18775  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18776  soname_spec='${libname}${release}${shared_ext}$major'
18777  shlibpath_var=LD_LIBRARY_PATH
18778  shlibpath_overrides_runpath=no
18779  hardcode_into_libs=yes
18780  dynamic_linker='ldqnx.so'
18781  ;;
18782
18783openbsd*)
18784  version_type=sunos
18785  sys_lib_dlsearch_path_spec="/usr/lib"
18786  need_lib_prefix=no
18787  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18788  case $host_os in
18789    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
18790    *)				need_version=no  ;;
18791  esac
18792  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18793  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18794  shlibpath_var=LD_LIBRARY_PATH
18795  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18796    case $host_os in
18797      openbsd2.[89] | openbsd2.[89].*)
18798	shlibpath_overrides_runpath=no
18799	;;
18800      *)
18801	shlibpath_overrides_runpath=yes
18802	;;
18803      esac
18804  else
18805    shlibpath_overrides_runpath=yes
18806  fi
18807  ;;
18808
18809os2*)
18810  libname_spec='$name'
18811  shrext_cmds=".dll"
18812  need_lib_prefix=no
18813  library_names_spec='$libname${shared_ext} $libname.a'
18814  dynamic_linker='OS/2 ld.exe'
18815  shlibpath_var=LIBPATH
18816  ;;
18817
18818osf3* | osf4* | osf5*)
18819  version_type=osf
18820  need_lib_prefix=no
18821  need_version=no
18822  soname_spec='${libname}${release}${shared_ext}$major'
18823  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18824  shlibpath_var=LD_LIBRARY_PATH
18825  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18826  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18827  ;;
18828
18829rdos*)
18830  dynamic_linker=no
18831  ;;
18832
18833solaris*)
18834  version_type=linux
18835  need_lib_prefix=no
18836  need_version=no
18837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18838  soname_spec='${libname}${release}${shared_ext}$major'
18839  shlibpath_var=LD_LIBRARY_PATH
18840  shlibpath_overrides_runpath=yes
18841  hardcode_into_libs=yes
18842  # ldd complains unless libraries are executable
18843  postinstall_cmds='chmod +x $lib'
18844  ;;
18845
18846sunos4*)
18847  version_type=sunos
18848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18849  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18850  shlibpath_var=LD_LIBRARY_PATH
18851  shlibpath_overrides_runpath=yes
18852  if test "$with_gnu_ld" = yes; then
18853    need_lib_prefix=no
18854  fi
18855  need_version=yes
18856  ;;
18857
18858sysv4 | sysv4.3*)
18859  version_type=linux
18860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18861  soname_spec='${libname}${release}${shared_ext}$major'
18862  shlibpath_var=LD_LIBRARY_PATH
18863  case $host_vendor in
18864    sni)
18865      shlibpath_overrides_runpath=no
18866      need_lib_prefix=no
18867      runpath_var=LD_RUN_PATH
18868      ;;
18869    siemens)
18870      need_lib_prefix=no
18871      ;;
18872    motorola)
18873      need_lib_prefix=no
18874      need_version=no
18875      shlibpath_overrides_runpath=no
18876      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18877      ;;
18878  esac
18879  ;;
18880
18881sysv4*MP*)
18882  if test -d /usr/nec ;then
18883    version_type=linux
18884    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18885    soname_spec='$libname${shared_ext}.$major'
18886    shlibpath_var=LD_LIBRARY_PATH
18887  fi
18888  ;;
18889
18890sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18891  version_type=freebsd-elf
18892  need_lib_prefix=no
18893  need_version=no
18894  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18895  soname_spec='${libname}${release}${shared_ext}$major'
18896  shlibpath_var=LD_LIBRARY_PATH
18897  shlibpath_overrides_runpath=yes
18898  hardcode_into_libs=yes
18899  if test "$with_gnu_ld" = yes; then
18900    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18901  else
18902    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18903    case $host_os in
18904      sco3.2v5*)
18905        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18906	;;
18907    esac
18908  fi
18909  sys_lib_dlsearch_path_spec='/usr/lib'
18910  ;;
18911
18912tpf*)
18913  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18914  version_type=linux
18915  need_lib_prefix=no
18916  need_version=no
18917  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18918  shlibpath_var=LD_LIBRARY_PATH
18919  shlibpath_overrides_runpath=no
18920  hardcode_into_libs=yes
18921  ;;
18922
18923uts4*)
18924  version_type=linux
18925  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18926  soname_spec='${libname}${release}${shared_ext}$major'
18927  shlibpath_var=LD_LIBRARY_PATH
18928  ;;
18929
18930*)
18931  dynamic_linker=no
18932  ;;
18933esac
18934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18935$as_echo "$dynamic_linker" >&6; }
18936test "$dynamic_linker" = no && can_build_shared=no
18937
18938variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18939if test "$GCC" = yes; then
18940  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18941fi
18942
18943if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18944  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18945fi
18946if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18947  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18948fi
18949
18950
18951
18952
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962
18963
18964
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18986$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18987hardcode_action_F77=
18988if test -n "$hardcode_libdir_flag_spec_F77" ||
18989   test -n "$runpath_var_F77" ||
18990   test "X$hardcode_automatic_F77" = "Xyes" ; then
18991
18992  # We can hardcode non-existent directories.
18993  if test "$hardcode_direct_F77" != no &&
18994     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18995     # have to relink, otherwise we might link with an installed library
18996     # when we should be linking with a yet-to-be-installed one
18997     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18998     test "$hardcode_minus_L_F77" != no; then
18999    # Linking always hardcodes the temporary library directory.
19000    hardcode_action_F77=relink
19001  else
19002    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19003    hardcode_action_F77=immediate
19004  fi
19005else
19006  # We cannot hardcode anything, or else we can only hardcode existing
19007  # directories.
19008  hardcode_action_F77=unsupported
19009fi
19010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
19011$as_echo "$hardcode_action_F77" >&6; }
19012
19013if test "$hardcode_action_F77" = relink ||
19014   test "$inherit_rpath_F77" = yes; then
19015  # Fast installation is not supported
19016  enable_fast_install=no
19017elif test "$shlibpath_overrides_runpath" = yes ||
19018     test "$enable_shared" = no; then
19019  # Fast installation is not necessary
19020  enable_fast_install=needless
19021fi
19022
19023
19024
19025
19026
19027
19028
19029  fi # test -n "$compiler"
19030
19031  GCC=$lt_save_GCC
19032  CC="$lt_save_CC"
19033fi # test "$_lt_disable_F77" != yes
19034
19035ac_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
19042ac_ext=${ac_fc_srcext-f}
19043ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19044ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19045ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19046if test -n "$ac_tool_prefix"; then
19047  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
19048  do
19049    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19050set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19052$as_echo_n "checking for $ac_word... " >&6; }
19053if test "${ac_cv_prog_FC+set}" = set; then :
19054  $as_echo_n "(cached) " >&6
19055else
19056  if test -n "$FC"; then
19057  ac_cv_prog_FC="$FC" # Let the user override the test.
19058else
19059as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19060for as_dir in $PATH
19061do
19062  IFS=$as_save_IFS
19063  test -z "$as_dir" && as_dir=.
19064    for ac_exec_ext in '' $ac_executable_extensions; do
19065  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19066    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
19067    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19068    break 2
19069  fi
19070done
19071  done
19072IFS=$as_save_IFS
19073
19074fi
19075fi
19076FC=$ac_cv_prog_FC
19077if test -n "$FC"; then
19078  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
19079$as_echo "$FC" >&6; }
19080else
19081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19082$as_echo "no" >&6; }
19083fi
19084
19085
19086    test -n "$FC" && break
19087  done
19088fi
19089if test -z "$FC"; then
19090  ac_ct_FC=$FC
19091  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
19092do
19093  # Extract the first word of "$ac_prog", so it can be a program name with args.
19094set dummy $ac_prog; ac_word=$2
19095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19096$as_echo_n "checking for $ac_word... " >&6; }
19097if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
19098  $as_echo_n "(cached) " >&6
19099else
19100  if test -n "$ac_ct_FC"; then
19101  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
19102else
19103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19104for as_dir in $PATH
19105do
19106  IFS=$as_save_IFS
19107  test -z "$as_dir" && as_dir=.
19108    for ac_exec_ext in '' $ac_executable_extensions; do
19109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19110    ac_cv_prog_ac_ct_FC="$ac_prog"
19111    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19112    break 2
19113  fi
19114done
19115  done
19116IFS=$as_save_IFS
19117
19118fi
19119fi
19120ac_ct_FC=$ac_cv_prog_ac_ct_FC
19121if test -n "$ac_ct_FC"; then
19122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
19123$as_echo "$ac_ct_FC" >&6; }
19124else
19125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19126$as_echo "no" >&6; }
19127fi
19128
19129
19130  test -n "$ac_ct_FC" && break
19131done
19132
19133  if test "x$ac_ct_FC" = x; then
19134    FC=""
19135  else
19136    case $cross_compiling:$ac_tool_warned in
19137yes:)
19138{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19139$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19140ac_tool_warned=yes ;;
19141esac
19142    FC=$ac_ct_FC
19143  fi
19144fi
19145
19146
19147# Provide some information about the compiler.
19148$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
19149set X $ac_compile
19150ac_compiler=$2
19151for ac_option in --version -v -V -qversion; do
19152  { { ac_try="$ac_compiler $ac_option >&5"
19153case "(($ac_try" in
19154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19155  *) ac_try_echo=$ac_try;;
19156esac
19157eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19158$as_echo "$ac_try_echo"; } >&5
19159  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19160  ac_status=$?
19161  if test -s conftest.err; then
19162    sed '10a\
19163... rest of stderr output deleted ...
19164         10q' conftest.err >conftest.er1
19165    cat conftest.er1 >&5
19166  fi
19167  rm -f conftest.er1 conftest.err
19168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19169  test $ac_status = 0; }
19170done
19171rm -f a.out
19172
19173# If we don't use `.F' as extension, the preprocessor is not run on the
19174# input file.  (Note that this only needs to work for GNU compilers.)
19175ac_save_ext=$ac_ext
19176ac_ext=F
19177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
19178$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
19179if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
19180  $as_echo_n "(cached) " >&6
19181else
19182  cat > conftest.$ac_ext <<_ACEOF
19183      program main
19184#ifndef __GNUC__
19185       choke me
19186#endif
19187
19188      end
19189_ACEOF
19190if ac_fn_fc_try_compile "$LINENO"; then :
19191  ac_compiler_gnu=yes
19192else
19193  ac_compiler_gnu=no
19194fi
19195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196ac_cv_fc_compiler_gnu=$ac_compiler_gnu
19197
19198fi
19199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
19200$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
19201ac_ext=$ac_save_ext
19202ac_test_FCFLAGS=${FCFLAGS+set}
19203ac_save_FCFLAGS=$FCFLAGS
19204FCFLAGS=
19205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
19206$as_echo_n "checking whether $FC accepts -g... " >&6; }
19207if test "${ac_cv_prog_fc_g+set}" = set; then :
19208  $as_echo_n "(cached) " >&6
19209else
19210  FCFLAGS=-g
19211cat > conftest.$ac_ext <<_ACEOF
19212      program main
19213
19214      end
19215_ACEOF
19216if ac_fn_fc_try_compile "$LINENO"; then :
19217  ac_cv_prog_fc_g=yes
19218else
19219  ac_cv_prog_fc_g=no
19220fi
19221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19222
19223fi
19224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
19225$as_echo "$ac_cv_prog_fc_g" >&6; }
19226if test "$ac_test_FCFLAGS" = set; then
19227  FCFLAGS=$ac_save_FCFLAGS
19228elif test $ac_cv_prog_fc_g = yes; then
19229  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
19230    FCFLAGS="-g -O2"
19231  else
19232    FCFLAGS="-g"
19233  fi
19234else
19235  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
19236    FCFLAGS="-O2"
19237  else
19238    FCFLAGS=
19239  fi
19240fi
19241
19242ac_ext=c
19243ac_cpp='$CPP $CPPFLAGS'
19244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19246ac_compiler_gnu=$ac_cv_c_compiler_gnu
19247
19248
19249ac_ext=${ac_fc_srcext-f}
19250ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19251ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19252ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19253if test -n "$ac_tool_prefix"; then
19254  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
19255  do
19256    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19259$as_echo_n "checking for $ac_word... " >&6; }
19260if test "${ac_cv_prog_FC+set}" = set; then :
19261  $as_echo_n "(cached) " >&6
19262else
19263  if test -n "$FC"; then
19264  ac_cv_prog_FC="$FC" # Let the user override the test.
19265else
19266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19267for as_dir in $PATH
19268do
19269  IFS=$as_save_IFS
19270  test -z "$as_dir" && as_dir=.
19271    for ac_exec_ext in '' $ac_executable_extensions; do
19272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19273    ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
19274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19275    break 2
19276  fi
19277done
19278  done
19279IFS=$as_save_IFS
19280
19281fi
19282fi
19283FC=$ac_cv_prog_FC
19284if test -n "$FC"; then
19285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
19286$as_echo "$FC" >&6; }
19287else
19288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19289$as_echo "no" >&6; }
19290fi
19291
19292
19293    test -n "$FC" && break
19294  done
19295fi
19296if test -z "$FC"; then
19297  ac_ct_FC=$FC
19298  for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
19299do
19300  # Extract the first word of "$ac_prog", so it can be a program name with args.
19301set dummy $ac_prog; ac_word=$2
19302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19303$as_echo_n "checking for $ac_word... " >&6; }
19304if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
19305  $as_echo_n "(cached) " >&6
19306else
19307  if test -n "$ac_ct_FC"; then
19308  ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
19309else
19310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19311for as_dir in $PATH
19312do
19313  IFS=$as_save_IFS
19314  test -z "$as_dir" && as_dir=.
19315    for ac_exec_ext in '' $ac_executable_extensions; do
19316  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19317    ac_cv_prog_ac_ct_FC="$ac_prog"
19318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19319    break 2
19320  fi
19321done
19322  done
19323IFS=$as_save_IFS
19324
19325fi
19326fi
19327ac_ct_FC=$ac_cv_prog_ac_ct_FC
19328if test -n "$ac_ct_FC"; then
19329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
19330$as_echo "$ac_ct_FC" >&6; }
19331else
19332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19333$as_echo "no" >&6; }
19334fi
19335
19336
19337  test -n "$ac_ct_FC" && break
19338done
19339
19340  if test "x$ac_ct_FC" = x; then
19341    FC=""
19342  else
19343    case $cross_compiling:$ac_tool_warned in
19344yes:)
19345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19347ac_tool_warned=yes ;;
19348esac
19349    FC=$ac_ct_FC
19350  fi
19351fi
19352
19353
19354# Provide some information about the compiler.
19355$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
19356set X $ac_compile
19357ac_compiler=$2
19358for ac_option in --version -v -V -qversion; do
19359  { { ac_try="$ac_compiler $ac_option >&5"
19360case "(($ac_try" in
19361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362  *) ac_try_echo=$ac_try;;
19363esac
19364eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19365$as_echo "$ac_try_echo"; } >&5
19366  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
19367  ac_status=$?
19368  if test -s conftest.err; then
19369    sed '10a\
19370... rest of stderr output deleted ...
19371         10q' conftest.err >conftest.er1
19372    cat conftest.er1 >&5
19373  fi
19374  rm -f conftest.er1 conftest.err
19375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19376  test $ac_status = 0; }
19377done
19378rm -f a.out
19379
19380# If we don't use `.F' as extension, the preprocessor is not run on the
19381# input file.  (Note that this only needs to work for GNU compilers.)
19382ac_save_ext=$ac_ext
19383ac_ext=F
19384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
19385$as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
19386if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
19387  $as_echo_n "(cached) " >&6
19388else
19389  cat > conftest.$ac_ext <<_ACEOF
19390      program main
19391#ifndef __GNUC__
19392       choke me
19393#endif
19394
19395      end
19396_ACEOF
19397if ac_fn_fc_try_compile "$LINENO"; then :
19398  ac_compiler_gnu=yes
19399else
19400  ac_compiler_gnu=no
19401fi
19402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19403ac_cv_fc_compiler_gnu=$ac_compiler_gnu
19404
19405fi
19406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
19407$as_echo "$ac_cv_fc_compiler_gnu" >&6; }
19408ac_ext=$ac_save_ext
19409ac_test_FCFLAGS=${FCFLAGS+set}
19410ac_save_FCFLAGS=$FCFLAGS
19411FCFLAGS=
19412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
19413$as_echo_n "checking whether $FC accepts -g... " >&6; }
19414if test "${ac_cv_prog_fc_g+set}" = set; then :
19415  $as_echo_n "(cached) " >&6
19416else
19417  FCFLAGS=-g
19418cat > conftest.$ac_ext <<_ACEOF
19419      program main
19420
19421      end
19422_ACEOF
19423if ac_fn_fc_try_compile "$LINENO"; then :
19424  ac_cv_prog_fc_g=yes
19425else
19426  ac_cv_prog_fc_g=no
19427fi
19428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429
19430fi
19431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
19432$as_echo "$ac_cv_prog_fc_g" >&6; }
19433if test "$ac_test_FCFLAGS" = set; then
19434  FCFLAGS=$ac_save_FCFLAGS
19435elif test $ac_cv_prog_fc_g = yes; then
19436  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
19437    FCFLAGS="-g -O2"
19438  else
19439    FCFLAGS="-g"
19440  fi
19441else
19442  if test "x$ac_cv_fc_compiler_gnu" = xyes; then
19443    FCFLAGS="-O2"
19444  else
19445    FCFLAGS=
19446  fi
19447fi
19448
19449ac_ext=c
19450ac_cpp='$CPP $CPPFLAGS'
19451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19453ac_compiler_gnu=$ac_cv_c_compiler_gnu
19454
19455if test -z "$FC" || test "X$FC" = "Xno"; then
19456  _lt_disable_FC=yes
19457fi
19458
19459
19460
19461      ac_ext=${ac_fc_srcext-f}
19462ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
19463ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
19464ac_compiler_gnu=$ac_cv_fc_compiler_gnu
19465
19466
19467archive_cmds_need_lc_FC=no
19468allow_undefined_flag_FC=
19469always_export_symbols_FC=no
19470archive_expsym_cmds_FC=
19471export_dynamic_flag_spec_FC=
19472hardcode_direct_FC=no
19473hardcode_direct_absolute_FC=no
19474hardcode_libdir_flag_spec_FC=
19475hardcode_libdir_flag_spec_ld_FC=
19476hardcode_libdir_separator_FC=
19477hardcode_minus_L_FC=no
19478hardcode_automatic_FC=no
19479inherit_rpath_FC=no
19480module_cmds_FC=
19481module_expsym_cmds_FC=
19482link_all_deplibs_FC=unknown
19483old_archive_cmds_FC=$old_archive_cmds
19484no_undefined_flag_FC=
19485whole_archive_flag_spec_FC=
19486enable_shared_with_static_runtimes_FC=no
19487
19488# Source file extension for fc test sources.
19489ac_ext=${ac_fc_srcext-f}
19490
19491# Object file extension for compiled fc test sources.
19492objext=o
19493objext_FC=$objext
19494
19495# No sense in running all these tests if we already determined that
19496# the FC compiler isn't working.  Some variables (like enable_shared)
19497# are currently assumed to apply to all compilers on this platform,
19498# and will be corrupted by setting them based on a non-working compiler.
19499if test "$_lt_disable_FC" != yes; then
19500  # Code to be used in simple compile tests
19501  lt_simple_compile_test_code="\
19502      subroutine t
19503      return
19504      end
19505"
19506
19507  # Code to be used in simple link tests
19508  lt_simple_link_test_code="\
19509      program t
19510      end
19511"
19512
19513  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19514
19515
19516
19517
19518
19519
19520# If no C compiler was specified, use CC.
19521LTCC=${LTCC-"$CC"}
19522
19523# If no C compiler flags were specified, use CFLAGS.
19524LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19525
19526# Allow CC to be a program name with arguments.
19527compiler=$CC
19528
19529
19530  # save warnings/boilerplate of simple test code
19531  ac_outfile=conftest.$ac_objext
19532echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19533eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19534_lt_compiler_boilerplate=`cat conftest.err`
19535$RM conftest*
19536
19537  ac_outfile=conftest.$ac_objext
19538echo "$lt_simple_link_test_code" >conftest.$ac_ext
19539eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19540_lt_linker_boilerplate=`cat conftest.err`
19541$RM -r conftest*
19542
19543
19544  # Allow CC to be a program name with arguments.
19545  lt_save_CC="$CC"
19546  lt_save_GCC=$GCC
19547  CC=${FC-"f95"}
19548  compiler=$CC
19549  GCC=$ac_cv_fc_compiler_gnu
19550
19551  compiler_FC=$CC
19552  for cc_temp in $compiler""; do
19553  case $cc_temp in
19554    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19555    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19556    \-*) ;;
19557    *) break;;
19558  esac
19559done
19560cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19561
19562
19563  if test -n "$compiler"; then
19564    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19565$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19566    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19567$as_echo "$can_build_shared" >&6; }
19568
19569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19570$as_echo_n "checking whether to build shared libraries... " >&6; }
19571    test "$can_build_shared" = "no" && enable_shared=no
19572
19573    # On AIX, shared libraries and static libraries use the same namespace, and
19574    # are all built from PIC.
19575    case $host_os in
19576      aix3*)
19577        test "$enable_shared" = yes && enable_static=no
19578        if test -n "$RANLIB"; then
19579          archive_cmds="$archive_cmds~\$RANLIB \$lib"
19580          postinstall_cmds='$RANLIB $lib'
19581        fi
19582        ;;
19583      aix[4-9]*)
19584	if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
19585	  test "$enable_shared" = yes && enable_static=no
19586	fi
19587        ;;
19588    esac
19589    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19590$as_echo "$enable_shared" >&6; }
19591
19592    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19593$as_echo_n "checking whether to build static libraries... " >&6; }
19594    # Make sure either enable_shared or enable_static is yes.
19595    test "$enable_shared" = yes || enable_static=yes
19596    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19597$as_echo "$enable_static" >&6; }
19598
19599    GCC_FC="$ac_cv_fc_compiler_gnu"
19600    LD_FC="$LD"
19601
19602    ## CAVEAT EMPTOR:
19603    ## There is no encapsulation within the following macros, do not change
19604    ## the running order or otherwise move them around unless you know exactly
19605    ## what you are doing...
19606    # Dependencies to place before and after the object being linked:
19607predep_objects_FC=
19608postdep_objects_FC=
19609predeps_FC=
19610postdeps_FC=
19611compiler_lib_search_path_FC=
19612
19613cat > conftest.$ac_ext <<_LT_EOF
19614      subroutine foo
19615      implicit none
19616      integer a
19617      a=0
19618      return
19619      end
19620_LT_EOF
19621
19622if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19623  (eval $ac_compile) 2>&5
19624  ac_status=$?
19625  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19626  test $ac_status = 0; }; then
19627  # Parse the compiler output and extract the necessary
19628  # objects, libraries and library flags.
19629
19630  # Sentinel used to keep track of whether or not we are before
19631  # the conftest object file.
19632  pre_test_object_deps_done=no
19633
19634  for p in `eval "$output_verbose_link_cmd"`; do
19635    case $p in
19636
19637    -L* | -R* | -l*)
19638       # Some compilers place space between "-{L,R}" and the path.
19639       # Remove the space.
19640       if test $p = "-L" ||
19641          test $p = "-R"; then
19642	 prev=$p
19643	 continue
19644       else
19645	 prev=
19646       fi
19647
19648       if test "$pre_test_object_deps_done" = no; then
19649	 case $p in
19650	 -L* | -R*)
19651	   # Internal compiler library paths should come after those
19652	   # provided the user.  The postdeps already come after the
19653	   # user supplied libs so there is no need to process them.
19654	   if test -z "$compiler_lib_search_path_FC"; then
19655	     compiler_lib_search_path_FC="${prev}${p}"
19656	   else
19657	     compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
19658	   fi
19659	   ;;
19660	 # The "-l" case would never come before the object being
19661	 # linked, so don't bother handling this case.
19662	 esac
19663       else
19664	 if test -z "$postdeps_FC"; then
19665	   postdeps_FC="${prev}${p}"
19666	 else
19667	   postdeps_FC="${postdeps_FC} ${prev}${p}"
19668	 fi
19669       fi
19670       ;;
19671
19672    *.$objext)
19673       # This assumes that the test object file only shows up
19674       # once in the compiler output.
19675       if test "$p" = "conftest.$objext"; then
19676	 pre_test_object_deps_done=yes
19677	 continue
19678       fi
19679
19680       if test "$pre_test_object_deps_done" = no; then
19681	 if test -z "$predep_objects_FC"; then
19682	   predep_objects_FC="$p"
19683	 else
19684	   predep_objects_FC="$predep_objects_FC $p"
19685	 fi
19686       else
19687	 if test -z "$postdep_objects_FC"; then
19688	   postdep_objects_FC="$p"
19689	 else
19690	   postdep_objects_FC="$postdep_objects_FC $p"
19691	 fi
19692       fi
19693       ;;
19694
19695    *) ;; # Ignore the rest.
19696
19697    esac
19698  done
19699
19700  # Clean up.
19701  rm -f a.out a.exe
19702else
19703  echo "libtool.m4: error: problem compiling FC test program"
19704fi
19705
19706$RM -f confest.$objext
19707
19708# PORTME: override above test on systems where it is broken
19709
19710
19711case " $postdeps_FC " in
19712*" -lc "*) archive_cmds_need_lc_FC=no ;;
19713esac
19714 compiler_lib_search_dirs_FC=
19715if test -n "${compiler_lib_search_path_FC}"; then
19716 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19717fi
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731    lt_prog_compiler_wl_FC=
19732lt_prog_compiler_pic_FC=
19733lt_prog_compiler_static_FC=
19734
19735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19736$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19737
19738  if test "$GCC" = yes; then
19739    lt_prog_compiler_wl_FC='-Wl,'
19740    lt_prog_compiler_static_FC='-static'
19741
19742    case $host_os in
19743      aix*)
19744      # All AIX code is PIC.
19745      if test "$host_cpu" = ia64; then
19746	# AIX 5 now supports IA64 processor
19747	lt_prog_compiler_static_FC='-Bstatic'
19748      fi
19749      ;;
19750
19751    amigaos*)
19752      case $host_cpu in
19753      powerpc)
19754            # see comment about AmigaOS4 .so support
19755            lt_prog_compiler_pic_FC='-fPIC'
19756        ;;
19757      m68k)
19758            # FIXME: we need at least 68020 code to build shared libraries, but
19759            # adding the `-m68020' flag to GCC prevents building anything better,
19760            # like `-m68040'.
19761            lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
19762        ;;
19763      esac
19764      ;;
19765
19766    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19767      # PIC is the default for these OSes.
19768      ;;
19769
19770    mingw* | cygwin* | pw32* | os2* | cegcc*)
19771      # This hack is so that the source file can tell whether it is being
19772      # built for inclusion in a dll (and should export symbols for example).
19773      # Although the cygwin gcc ignores -fPIC, still need this for old-style
19774      # (--disable-auto-import) libraries
19775      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
19776      ;;
19777
19778    darwin* | rhapsody*)
19779      # PIC is the default on this platform
19780      # Common symbols not allowed in MH_DYLIB files
19781      lt_prog_compiler_pic_FC='-fno-common'
19782      ;;
19783
19784    hpux*)
19785      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19786      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
19787      # sets the default TLS model and affects inlining.
19788      case $host_cpu in
19789      hppa*64*)
19790	# +Z the default
19791	;;
19792      *)
19793	lt_prog_compiler_pic_FC='-fPIC'
19794	;;
19795      esac
19796      ;;
19797
19798    interix[3-9]*)
19799      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19800      # Instead, we relocate shared libraries at runtime.
19801      ;;
19802
19803    msdosdjgpp*)
19804      # Just because we use GCC doesn't mean we suddenly get shared libraries
19805      # on systems that don't support them.
19806      lt_prog_compiler_can_build_shared_FC=no
19807      enable_shared=no
19808      ;;
19809
19810    *nto* | *qnx*)
19811      # QNX uses GNU C++, but need to define -shared option too, otherwise
19812      # it will coredump.
19813      lt_prog_compiler_pic_FC='-fPIC -shared'
19814      ;;
19815
19816    sysv4*MP*)
19817      if test -d /usr/nec; then
19818	lt_prog_compiler_pic_FC=-Kconform_pic
19819      fi
19820      ;;
19821
19822    *)
19823      lt_prog_compiler_pic_FC='-fPIC'
19824      ;;
19825    esac
19826  else
19827    # PORTME Check for flag to pass linker flags through the system compiler.
19828    case $host_os in
19829    aix*)
19830      lt_prog_compiler_wl_FC='-Wl,'
19831      if test "$host_cpu" = ia64; then
19832	# AIX 5 now supports IA64 processor
19833	lt_prog_compiler_static_FC='-Bstatic'
19834      else
19835	lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
19836      fi
19837      ;;
19838
19839    mingw* | cygwin* | pw32* | os2* | cegcc*)
19840      # This hack is so that the source file can tell whether it is being
19841      # built for inclusion in a dll (and should export symbols for example).
19842      lt_prog_compiler_pic_FC='-DDLL_EXPORT'
19843      ;;
19844
19845    hpux9* | hpux10* | hpux11*)
19846      lt_prog_compiler_wl_FC='-Wl,'
19847      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19848      # not for PA HP-UX.
19849      case $host_cpu in
19850      hppa*64*|ia64*)
19851	# +Z the default
19852	;;
19853      *)
19854	lt_prog_compiler_pic_FC='+Z'
19855	;;
19856      esac
19857      # Is there a better lt_prog_compiler_static that works with the bundled CC?
19858      lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
19859      ;;
19860
19861    irix5* | irix6* | nonstopux*)
19862      lt_prog_compiler_wl_FC='-Wl,'
19863      # PIC (with -KPIC) is the default.
19864      lt_prog_compiler_static_FC='-non_shared'
19865      ;;
19866
19867    linux* | k*bsd*-gnu | kopensolaris*-gnu)
19868      case $cc_basename in
19869      # old Intel for x86_64 which still supported -KPIC.
19870      ecc*)
19871	lt_prog_compiler_wl_FC='-Wl,'
19872	lt_prog_compiler_pic_FC='-KPIC'
19873	lt_prog_compiler_static_FC='-static'
19874        ;;
19875      # icc used to be incompatible with GCC.
19876      # ICC 10 doesn't accept -KPIC any more.
19877      icc* | ifort*)
19878	lt_prog_compiler_wl_FC='-Wl,'
19879	lt_prog_compiler_pic_FC='-fPIC'
19880	lt_prog_compiler_static_FC='-static'
19881        ;;
19882      # Lahey Fortran 8.1.
19883      lf95*)
19884	lt_prog_compiler_wl_FC='-Wl,'
19885	lt_prog_compiler_pic_FC='--shared'
19886	lt_prog_compiler_static_FC='--static'
19887	;;
19888      pgcc* | pgf77* | pgf90* | pgf95*)
19889        # Portland Group compilers (*not* the Pentium gcc compiler,
19890	# which looks to be a dead project)
19891	lt_prog_compiler_wl_FC='-Wl,'
19892	lt_prog_compiler_pic_FC='-fpic'
19893	lt_prog_compiler_static_FC='-Bstatic'
19894        ;;
19895      ccc*)
19896        lt_prog_compiler_wl_FC='-Wl,'
19897        # All Alpha code is PIC.
19898        lt_prog_compiler_static_FC='-non_shared'
19899        ;;
19900      xl*)
19901	# IBM XL C 8.0/Fortran 10.1 on PPC
19902	lt_prog_compiler_wl_FC='-Wl,'
19903	lt_prog_compiler_pic_FC='-qpic'
19904	lt_prog_compiler_static_FC='-qstaticlink'
19905	;;
19906      *)
19907	case `$CC -V 2>&1 | sed 5q` in
19908	*Sun\ C*)
19909	  # Sun C 5.9
19910	  lt_prog_compiler_pic_FC='-KPIC'
19911	  lt_prog_compiler_static_FC='-Bstatic'
19912	  lt_prog_compiler_wl_FC='-Wl,'
19913	  ;;
19914	*Sun\ F*)
19915	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
19916	  lt_prog_compiler_pic_FC='-KPIC'
19917	  lt_prog_compiler_static_FC='-Bstatic'
19918	  lt_prog_compiler_wl_FC=''
19919	  ;;
19920	esac
19921	;;
19922      esac
19923      ;;
19924
19925    newsos6)
19926      lt_prog_compiler_pic_FC='-KPIC'
19927      lt_prog_compiler_static_FC='-Bstatic'
19928      ;;
19929
19930    *nto* | *qnx*)
19931      # QNX uses GNU C++, but need to define -shared option too, otherwise
19932      # it will coredump.
19933      lt_prog_compiler_pic_FC='-fPIC -shared'
19934      ;;
19935
19936    osf3* | osf4* | osf5*)
19937      lt_prog_compiler_wl_FC='-Wl,'
19938      # All OSF/1 code is PIC.
19939      lt_prog_compiler_static_FC='-non_shared'
19940      ;;
19941
19942    rdos*)
19943      lt_prog_compiler_static_FC='-non_shared'
19944      ;;
19945
19946    solaris*)
19947      lt_prog_compiler_pic_FC='-KPIC'
19948      lt_prog_compiler_static_FC='-Bstatic'
19949      case $cc_basename in
19950      f77* | f90* | f95*)
19951	lt_prog_compiler_wl_FC='-Qoption ld ';;
19952      *)
19953	lt_prog_compiler_wl_FC='-Wl,';;
19954      esac
19955      ;;
19956
19957    sunos4*)
19958      lt_prog_compiler_wl_FC='-Qoption ld '
19959      lt_prog_compiler_pic_FC='-PIC'
19960      lt_prog_compiler_static_FC='-Bstatic'
19961      ;;
19962
19963    sysv4 | sysv4.2uw2* | sysv4.3*)
19964      lt_prog_compiler_wl_FC='-Wl,'
19965      lt_prog_compiler_pic_FC='-KPIC'
19966      lt_prog_compiler_static_FC='-Bstatic'
19967      ;;
19968
19969    sysv4*MP*)
19970      if test -d /usr/nec ;then
19971	lt_prog_compiler_pic_FC='-Kconform_pic'
19972	lt_prog_compiler_static_FC='-Bstatic'
19973      fi
19974      ;;
19975
19976    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19977      lt_prog_compiler_wl_FC='-Wl,'
19978      lt_prog_compiler_pic_FC='-KPIC'
19979      lt_prog_compiler_static_FC='-Bstatic'
19980      ;;
19981
19982    unicos*)
19983      lt_prog_compiler_wl_FC='-Wl,'
19984      lt_prog_compiler_can_build_shared_FC=no
19985      ;;
19986
19987    uts4*)
19988      lt_prog_compiler_pic_FC='-pic'
19989      lt_prog_compiler_static_FC='-Bstatic'
19990      ;;
19991
19992    *)
19993      lt_prog_compiler_can_build_shared_FC=no
19994      ;;
19995    esac
19996  fi
19997
19998case $host_os in
19999  # For platforms which do not support PIC, -DPIC is meaningless:
20000  *djgpp*)
20001    lt_prog_compiler_pic_FC=
20002    ;;
20003  *)
20004    lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
20005    ;;
20006esac
20007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
20008$as_echo "$lt_prog_compiler_pic_FC" >&6; }
20009
20010
20011
20012#
20013# Check to make sure the PIC flag actually works.
20014#
20015if test -n "$lt_prog_compiler_pic_FC"; then
20016  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
20017$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
20018if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
20019  $as_echo_n "(cached) " >&6
20020else
20021  lt_cv_prog_compiler_pic_works_FC=no
20022   ac_outfile=conftest.$ac_objext
20023   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20024   lt_compiler_flag="$lt_prog_compiler_pic_FC"
20025   # Insert the option either (1) after the last *FLAGS variable, or
20026   # (2) before a word containing "conftest.", or (3) at the end.
20027   # Note that $ac_compile itself does not contain backslashes and begins
20028   # with a dollar sign (not a hyphen), so the echo should work correctly.
20029   # The option is referenced via a variable to avoid confusing sed.
20030   lt_compile=`echo "$ac_compile" | $SED \
20031   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20032   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20033   -e 's:$: $lt_compiler_flag:'`
20034   (eval echo "\"\$as_me:20034: $lt_compile\"" >&5)
20035   (eval "$lt_compile" 2>conftest.err)
20036   ac_status=$?
20037   cat conftest.err >&5
20038   echo "$as_me:20038: \$? = $ac_status" >&5
20039   if (exit $ac_status) && test -s "$ac_outfile"; then
20040     # The compiler can only warn and ignore the option if not recognized
20041     # So say no if there are warnings other than the usual output.
20042     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20043     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20044     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20045       lt_cv_prog_compiler_pic_works_FC=yes
20046     fi
20047   fi
20048   $RM conftest*
20049
20050fi
20051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
20052$as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
20053
20054if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
20055    case $lt_prog_compiler_pic_FC in
20056     "" | " "*) ;;
20057     *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
20058     esac
20059else
20060    lt_prog_compiler_pic_FC=
20061     lt_prog_compiler_can_build_shared_FC=no
20062fi
20063
20064fi
20065
20066
20067
20068#
20069# Check to make sure the static flag actually works.
20070#
20071wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
20072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20073$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20074if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
20075  $as_echo_n "(cached) " >&6
20076else
20077  lt_cv_prog_compiler_static_works_FC=no
20078   save_LDFLAGS="$LDFLAGS"
20079   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20080   echo "$lt_simple_link_test_code" > conftest.$ac_ext
20081   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20082     # The linker can only warn and ignore the option if not recognized
20083     # So say no if there are warnings
20084     if test -s conftest.err; then
20085       # Append any errors to the config.log.
20086       cat conftest.err 1>&5
20087       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20088       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20089       if diff conftest.exp conftest.er2 >/dev/null; then
20090         lt_cv_prog_compiler_static_works_FC=yes
20091       fi
20092     else
20093       lt_cv_prog_compiler_static_works_FC=yes
20094     fi
20095   fi
20096   $RM -r conftest*
20097   LDFLAGS="$save_LDFLAGS"
20098
20099fi
20100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
20101$as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
20102
20103if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
20104    :
20105else
20106    lt_prog_compiler_static_FC=
20107fi
20108
20109
20110
20111
20112    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20113$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20114if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
20115  $as_echo_n "(cached) " >&6
20116else
20117  lt_cv_prog_compiler_c_o_FC=no
20118   $RM -r conftest 2>/dev/null
20119   mkdir conftest
20120   cd conftest
20121   mkdir out
20122   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20123
20124   lt_compiler_flag="-o out/conftest2.$ac_objext"
20125   # Insert the option either (1) after the last *FLAGS variable, or
20126   # (2) before a word containing "conftest.", or (3) at the end.
20127   # Note that $ac_compile itself does not contain backslashes and begins
20128   # with a dollar sign (not a hyphen), so the echo should work correctly.
20129   lt_compile=`echo "$ac_compile" | $SED \
20130   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20131   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20132   -e 's:$: $lt_compiler_flag:'`
20133   (eval echo "\"\$as_me:20133: $lt_compile\"" >&5)
20134   (eval "$lt_compile" 2>out/conftest.err)
20135   ac_status=$?
20136   cat out/conftest.err >&5
20137   echo "$as_me:20137: \$? = $ac_status" >&5
20138   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20139   then
20140     # The compiler can only warn and ignore the option if not recognized
20141     # So say no if there are warnings
20142     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20143     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20144     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20145       lt_cv_prog_compiler_c_o_FC=yes
20146     fi
20147   fi
20148   chmod u+w . 2>&5
20149   $RM conftest*
20150   # SGI C++ compiler will create directory out/ii_files/ for
20151   # template instantiation
20152   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20153   $RM out/* && rmdir out
20154   cd ..
20155   $RM -r conftest
20156   $RM conftest*
20157
20158fi
20159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
20160$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
20161
20162
20163
20164    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20165$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20166if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
20167  $as_echo_n "(cached) " >&6
20168else
20169  lt_cv_prog_compiler_c_o_FC=no
20170   $RM -r conftest 2>/dev/null
20171   mkdir conftest
20172   cd conftest
20173   mkdir out
20174   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20175
20176   lt_compiler_flag="-o out/conftest2.$ac_objext"
20177   # Insert the option either (1) after the last *FLAGS variable, or
20178   # (2) before a word containing "conftest.", or (3) at the end.
20179   # Note that $ac_compile itself does not contain backslashes and begins
20180   # with a dollar sign (not a hyphen), so the echo should work correctly.
20181   lt_compile=`echo "$ac_compile" | $SED \
20182   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20183   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20184   -e 's:$: $lt_compiler_flag:'`
20185   (eval echo "\"\$as_me:20185: $lt_compile\"" >&5)
20186   (eval "$lt_compile" 2>out/conftest.err)
20187   ac_status=$?
20188   cat out/conftest.err >&5
20189   echo "$as_me:20189: \$? = $ac_status" >&5
20190   if (exit $ac_status) && test -s out/conftest2.$ac_objext
20191   then
20192     # The compiler can only warn and ignore the option if not recognized
20193     # So say no if there are warnings
20194     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20195     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20196     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20197       lt_cv_prog_compiler_c_o_FC=yes
20198     fi
20199   fi
20200   chmod u+w . 2>&5
20201   $RM conftest*
20202   # SGI C++ compiler will create directory out/ii_files/ for
20203   # template instantiation
20204   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20205   $RM out/* && rmdir out
20206   cd ..
20207   $RM -r conftest
20208   $RM conftest*
20209
20210fi
20211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
20212$as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
20213
20214
20215
20216
20217hard_links="nottested"
20218if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
20219  # do not overwrite the value of need_locks provided by the user
20220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20221$as_echo_n "checking if we can lock with hard links... " >&6; }
20222  hard_links=yes
20223  $RM conftest*
20224  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20225  touch conftest.a
20226  ln conftest.a conftest.b 2>&5 || hard_links=no
20227  ln conftest.a conftest.b 2>/dev/null && hard_links=no
20228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20229$as_echo "$hard_links" >&6; }
20230  if test "$hard_links" = no; then
20231    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20232$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20233    need_locks=warn
20234  fi
20235else
20236  need_locks=no
20237fi
20238
20239
20240
20241    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20242$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20243
20244  runpath_var=
20245  allow_undefined_flag_FC=
20246  always_export_symbols_FC=no
20247  archive_cmds_FC=
20248  archive_expsym_cmds_FC=
20249  compiler_needs_object_FC=no
20250  enable_shared_with_static_runtimes_FC=no
20251  export_dynamic_flag_spec_FC=
20252  export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20253  hardcode_automatic_FC=no
20254  hardcode_direct_FC=no
20255  hardcode_direct_absolute_FC=no
20256  hardcode_libdir_flag_spec_FC=
20257  hardcode_libdir_flag_spec_ld_FC=
20258  hardcode_libdir_separator_FC=
20259  hardcode_minus_L_FC=no
20260  hardcode_shlibpath_var_FC=unsupported
20261  inherit_rpath_FC=no
20262  link_all_deplibs_FC=unknown
20263  module_cmds_FC=
20264  module_expsym_cmds_FC=
20265  old_archive_from_new_cmds_FC=
20266  old_archive_from_expsyms_cmds_FC=
20267  thread_safe_flag_spec_FC=
20268  whole_archive_flag_spec_FC=
20269  # include_expsyms should be a list of space-separated symbols to be *always*
20270  # included in the symbol list
20271  include_expsyms_FC=
20272  # exclude_expsyms can be an extended regexp of symbols to exclude
20273  # it will be wrapped by ` (' and `)$', so one must not match beginning or
20274  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
20275  # as well as any symbol that contains `d'.
20276  exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20277  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
20278  # platforms (ab)use it in PIC code, but their linkers get confused if
20279  # the symbol is explicitly referenced.  Since portable code cannot
20280  # rely on this symbol name, it's probably fine to never include it in
20281  # preloaded symbol tables.
20282  # Exclude shared library initialization/finalization symbols.
20283  extract_expsyms_cmds=
20284
20285  case $host_os in
20286  cygwin* | mingw* | pw32* | cegcc*)
20287    # FIXME: the MSVC++ port hasn't been tested in a loooong time
20288    # When not using gcc, we currently assume that we are using
20289    # Microsoft Visual C++.
20290    if test "$GCC" != yes; then
20291      with_gnu_ld=no
20292    fi
20293    ;;
20294  interix*)
20295    # we just hope/assume this is gcc and not c89 (= MSVC++)
20296    with_gnu_ld=yes
20297    ;;
20298  openbsd*)
20299    with_gnu_ld=no
20300    ;;
20301  linux* | k*bsd*-gnu)
20302    link_all_deplibs_FC=no
20303    ;;
20304  esac
20305
20306  ld_shlibs_FC=yes
20307  if test "$with_gnu_ld" = yes; then
20308    # If archive_cmds runs LD, not CC, wlarc should be empty
20309    wlarc='${wl}'
20310
20311    # Set some defaults for GNU ld with shared library support. These
20312    # are reset later if shared libraries are not supported. Putting them
20313    # here allows them to be overridden if necessary.
20314    runpath_var=LD_RUN_PATH
20315    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
20316    export_dynamic_flag_spec_FC='${wl}--export-dynamic'
20317    # ancient GNU ld didn't support --whole-archive et. al.
20318    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
20319      whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
20320    else
20321      whole_archive_flag_spec_FC=
20322    fi
20323    supports_anon_versioning=no
20324    case `$LD -v 2>&1` in
20325      *GNU\ gold*) supports_anon_versioning=yes ;;
20326      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
20327      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
20328      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
20329      *\ 2.11.*) ;; # other 2.11 versions
20330      *) supports_anon_versioning=yes ;;
20331    esac
20332
20333    # See if GNU ld supports shared libraries.
20334    case $host_os in
20335    aix[3-9]*)
20336      # On AIX/PPC, the GNU linker is very broken
20337      if test "$host_cpu" != ia64; then
20338	ld_shlibs_FC=no
20339	cat <<_LT_EOF 1>&2
20340
20341*** Warning: the GNU linker, at least up to release 2.9.1, is reported
20342*** to be unable to reliably create shared libraries on AIX.
20343*** Therefore, libtool is disabling shared libraries support.  If you
20344*** really care for shared libraries, you may want to modify your PATH
20345*** so that a non-GNU linker is found, and then restart.
20346
20347_LT_EOF
20348      fi
20349      ;;
20350
20351    amigaos*)
20352      case $host_cpu in
20353      powerpc)
20354            # see comment about AmigaOS4 .so support
20355            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20356            archive_expsym_cmds_FC=''
20357        ;;
20358      m68k)
20359            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)'
20360            hardcode_libdir_flag_spec_FC='-L$libdir'
20361            hardcode_minus_L_FC=yes
20362        ;;
20363      esac
20364      ;;
20365
20366    beos*)
20367      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20368	allow_undefined_flag_FC=unsupported
20369	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
20370	# support --undefined.  This deserves some investigation.  FIXME
20371	archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20372      else
20373	ld_shlibs_FC=no
20374      fi
20375      ;;
20376
20377    cygwin* | mingw* | pw32* | cegcc*)
20378      # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
20379      # as there is no search path for DLLs.
20380      hardcode_libdir_flag_spec_FC='-L$libdir'
20381      allow_undefined_flag_FC=unsupported
20382      always_export_symbols_FC=no
20383      enable_shared_with_static_runtimes_FC=yes
20384      export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
20385
20386      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20387        archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20388	# If the export-symbols file already is a .def file (1st line
20389	# is EXPORTS), use it as is; otherwise, prepend...
20390	archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
20391	  cp $export_symbols $output_objdir/$soname.def;
20392	else
20393	  echo EXPORTS > $output_objdir/$soname.def;
20394	  cat $export_symbols >> $output_objdir/$soname.def;
20395	fi~
20396	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
20397      else
20398	ld_shlibs_FC=no
20399      fi
20400      ;;
20401
20402    interix[3-9]*)
20403      hardcode_direct_FC=no
20404      hardcode_shlibpath_var_FC=no
20405      hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
20406      export_dynamic_flag_spec_FC='${wl}-E'
20407      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20408      # Instead, shared libraries are loaded at an image base (0x10000000 by
20409      # default) and relocated if they conflict, which is a slow very memory
20410      # consuming and fragmenting process.  To avoid this, we pick a random,
20411      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20412      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20413      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'
20414      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'
20415      ;;
20416
20417    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
20418      tmp_diet=no
20419      if test "$host_os" = linux-dietlibc; then
20420	case $cc_basename in
20421	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
20422	esac
20423      fi
20424      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
20425	 && test "$tmp_diet" = no
20426      then
20427	tmp_addflag=
20428	tmp_sharedflag='-shared'
20429	case $cc_basename,$host_cpu in
20430        pgcc*)				# Portland Group C compiler
20431	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
20432	  tmp_addflag=' $pic_flag'
20433	  ;;
20434	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
20435	  whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
20436	  tmp_addflag=' $pic_flag -Mnomain' ;;
20437	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
20438	  tmp_addflag=' -i_dynamic' ;;
20439	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
20440	  tmp_addflag=' -i_dynamic -nofor_main' ;;
20441	ifc* | ifort*)			# Intel Fortran compiler
20442	  tmp_addflag=' -nofor_main' ;;
20443	lf95*)				# Lahey Fortran 8.1
20444	  whole_archive_flag_spec_FC=
20445	  tmp_sharedflag='--shared' ;;
20446	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
20447	  tmp_sharedflag='-qmkshrobj'
20448	  tmp_addflag= ;;
20449	esac
20450	case `$CC -V 2>&1 | sed 5q` in
20451	*Sun\ C*)			# Sun C 5.9
20452	  whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
20453	  compiler_needs_object_FC=yes
20454	  tmp_sharedflag='-G' ;;
20455	*Sun\ F*)			# Sun Fortran 8.3
20456	  tmp_sharedflag='-G' ;;
20457	esac
20458	archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20459
20460        if test "x$supports_anon_versioning" = xyes; then
20461          archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
20462	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20463	    echo "local: *; };" >> $output_objdir/$libname.ver~
20464	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
20465        fi
20466
20467	case $cc_basename in
20468	xlf*)
20469	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
20470	  whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
20471	  hardcode_libdir_flag_spec_FC=
20472	  hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
20473	  archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
20474	  if test "x$supports_anon_versioning" = xyes; then
20475	    archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
20476	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20477	      echo "local: *; };" >> $output_objdir/$libname.ver~
20478	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
20479	  fi
20480	  ;;
20481	esac
20482      else
20483        ld_shlibs_FC=no
20484      fi
20485      ;;
20486
20487    netbsd* | netbsdelf*-gnu)
20488      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20489	archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
20490	wlarc=
20491      else
20492	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20493	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20494      fi
20495      ;;
20496
20497    solaris*)
20498      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
20499	ld_shlibs_FC=no
20500	cat <<_LT_EOF 1>&2
20501
20502*** Warning: The releases 2.8.* of the GNU linker cannot reliably
20503*** create shared libraries on Solaris systems.  Therefore, libtool
20504*** is disabling shared libraries support.  We urge you to upgrade GNU
20505*** binutils to release 2.9.1 or newer.  Another option is to modify
20506*** your PATH or compiler configuration so that the native linker is
20507*** used, and then restart.
20508
20509_LT_EOF
20510      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20511	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20512	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20513      else
20514	ld_shlibs_FC=no
20515      fi
20516      ;;
20517
20518    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
20519      case `$LD -v 2>&1` in
20520        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
20521	ld_shlibs_FC=no
20522	cat <<_LT_EOF 1>&2
20523
20524*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
20525*** reliably create shared libraries on SCO systems.  Therefore, libtool
20526*** is disabling shared libraries support.  We urge you to upgrade GNU
20527*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
20528*** your PATH or compiler configuration so that the native linker is
20529*** used, and then restart.
20530
20531_LT_EOF
20532	;;
20533	*)
20534	  # For security reasons, it is highly recommended that you always
20535	  # use absolute paths for naming shared libraries, and exclude the
20536	  # DT_RUNPATH tag from executables and libraries.  But doing so
20537	  # requires that you compile everything twice, which is a pain.
20538	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20539	    hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
20540	    archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20541	    archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20542	  else
20543	    ld_shlibs_FC=no
20544	  fi
20545	;;
20546      esac
20547      ;;
20548
20549    sunos4*)
20550      archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20551      wlarc=
20552      hardcode_direct_FC=yes
20553      hardcode_shlibpath_var_FC=no
20554      ;;
20555
20556    *)
20557      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
20558	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20559	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
20560      else
20561	ld_shlibs_FC=no
20562      fi
20563      ;;
20564    esac
20565
20566    if test "$ld_shlibs_FC" = no; then
20567      runpath_var=
20568      hardcode_libdir_flag_spec_FC=
20569      export_dynamic_flag_spec_FC=
20570      whole_archive_flag_spec_FC=
20571    fi
20572  else
20573    # PORTME fill in a description of your system's linker (not GNU ld)
20574    case $host_os in
20575    aix3*)
20576      allow_undefined_flag_FC=unsupported
20577      always_export_symbols_FC=yes
20578      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'
20579      # Note: this linker hardcodes the directories in LIBPATH if there
20580      # are no directories specified by -L.
20581      hardcode_minus_L_FC=yes
20582      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
20583	# Neither direct hardcoding nor static linking is supported with a
20584	# broken collect2.
20585	hardcode_direct_FC=unsupported
20586      fi
20587      ;;
20588
20589    aix[4-9]*)
20590      if test "$host_cpu" = ia64; then
20591	# On IA64, the linker does run time linking by default, so we don't
20592	# have to do anything special.
20593	aix_use_runtimelinking=no
20594	exp_sym_flag='-Bexport'
20595	no_entry_flag=""
20596      else
20597	# If we're using GNU nm, then we don't want the "-C" option.
20598	# -C means demangle to AIX nm, but means don't demangle with GNU nm
20599	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20600	  export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
20601	else
20602	  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'
20603	fi
20604	aix_use_runtimelinking=no
20605
20606	# Test if we are trying to use run time linking or normal
20607	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
20608	# need to do runtime linking.
20609	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20610	  for ld_flag in $LDFLAGS; do
20611	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
20612	    aix_use_runtimelinking=yes
20613	    break
20614	  fi
20615	  done
20616	  ;;
20617	esac
20618
20619	exp_sym_flag='-bexport'
20620	no_entry_flag='-bnoentry'
20621      fi
20622
20623      # When large executables or shared objects are built, AIX ld can
20624      # have problems creating the table of contents.  If linking a library
20625      # or program results in "error TOC overflow" add -mminimal-toc to
20626      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20627      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20628
20629      archive_cmds_FC=''
20630      hardcode_direct_FC=yes
20631      hardcode_direct_absolute_FC=yes
20632      hardcode_libdir_separator_FC=':'
20633      link_all_deplibs_FC=yes
20634      file_list_spec_FC='${wl}-f,'
20635
20636      if test "$GCC" = yes; then
20637	case $host_os in aix4.[012]|aix4.[012].*)
20638	# We only want to do this on AIX 4.2 and lower, the check
20639	# below for broken collect2 doesn't work under 4.3+
20640	  collect2name=`${CC} -print-prog-name=collect2`
20641	  if test -f "$collect2name" &&
20642	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20643	  then
20644	  # We have reworked collect2
20645	  :
20646	  else
20647	  # We have old collect2
20648	  hardcode_direct_FC=unsupported
20649	  # It fails to find uninstalled libraries when the uninstalled
20650	  # path is not listed in the libpath.  Setting hardcode_minus_L
20651	  # to unsupported forces relinking
20652	  hardcode_minus_L_FC=yes
20653	  hardcode_libdir_flag_spec_FC='-L$libdir'
20654	  hardcode_libdir_separator_FC=
20655	  fi
20656	  ;;
20657	esac
20658	shared_flag='-shared'
20659	if test "$aix_use_runtimelinking" = yes; then
20660	  shared_flag="$shared_flag "'${wl}-G'
20661	fi
20662	link_all_deplibs_FC=no
20663      else
20664	# not using gcc
20665	if test "$host_cpu" = ia64; then
20666	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20667	# chokes on -Wl,-G. The following line is correct:
20668	  shared_flag='-G'
20669	else
20670	  if test "$aix_use_runtimelinking" = yes; then
20671	    shared_flag='${wl}-G'
20672	  else
20673	    shared_flag='${wl}-bM:SRE'
20674	  fi
20675	fi
20676      fi
20677
20678      export_dynamic_flag_spec_FC='${wl}-bexpall'
20679      # It seems that -bexpall does not export symbols beginning with
20680      # underscore (_), so it is better to generate a list of symbols to export.
20681      always_export_symbols_FC=yes
20682      if test "$aix_use_runtimelinking" = yes; then
20683	# Warning - without using the other runtime loading flags (-brtl),
20684	# -berok will link without error, but may produce a broken library.
20685	allow_undefined_flag_FC='-berok'
20686        # Determine the default libpath from the value encoded in an
20687        # empty executable.
20688        cat > conftest.$ac_ext <<_ACEOF
20689      program main
20690
20691      end
20692_ACEOF
20693if ac_fn_fc_try_link "$LINENO"; then :
20694
20695lt_aix_libpath_sed='
20696    /Import File Strings/,/^$/ {
20697	/^0/ {
20698	    s/^0  *\(.*\)$/\1/
20699	    p
20700	}
20701    }'
20702aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20703# Check for a 64-bit object if we didn't find anything.
20704if test -z "$aix_libpath"; then
20705  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20706fi
20707fi
20708rm -f core conftest.err conftest.$ac_objext \
20709    conftest$ac_exeext conftest.$ac_ext
20710if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20711
20712        hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
20713        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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
20714      else
20715	if test "$host_cpu" = ia64; then
20716	  hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
20717	  allow_undefined_flag_FC="-z nodefs"
20718	  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"
20719	else
20720	 # Determine the default libpath from the value encoded in an
20721	 # empty executable.
20722	 cat > conftest.$ac_ext <<_ACEOF
20723      program main
20724
20725      end
20726_ACEOF
20727if ac_fn_fc_try_link "$LINENO"; then :
20728
20729lt_aix_libpath_sed='
20730    /Import File Strings/,/^$/ {
20731	/^0/ {
20732	    s/^0  *\(.*\)$/\1/
20733	    p
20734	}
20735    }'
20736aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20737# Check for a 64-bit object if we didn't find anything.
20738if test -z "$aix_libpath"; then
20739  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20740fi
20741fi
20742rm -f core conftest.err conftest.$ac_objext \
20743    conftest$ac_exeext conftest.$ac_ext
20744if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20745
20746	 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
20747	  # Warning - without using the other run time loading flags,
20748	  # -berok will link without error, but may produce a broken library.
20749	  no_undefined_flag_FC=' ${wl}-bernotok'
20750	  allow_undefined_flag_FC=' ${wl}-berok'
20751	  # Exported symbols can be pulled into shared objects from archives
20752	  whole_archive_flag_spec_FC='$convenience'
20753	  archive_cmds_need_lc_FC=yes
20754	  # This is similar to how AIX traditionally builds its shared libraries.
20755	  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'
20756	fi
20757      fi
20758      ;;
20759
20760    amigaos*)
20761      case $host_cpu in
20762      powerpc)
20763            # see comment about AmigaOS4 .so support
20764            archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
20765            archive_expsym_cmds_FC=''
20766        ;;
20767      m68k)
20768            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)'
20769            hardcode_libdir_flag_spec_FC='-L$libdir'
20770            hardcode_minus_L_FC=yes
20771        ;;
20772      esac
20773      ;;
20774
20775    bsdi[45]*)
20776      export_dynamic_flag_spec_FC=-rdynamic
20777      ;;
20778
20779    cygwin* | mingw* | pw32* | cegcc*)
20780      # When not using gcc, we currently assume that we are using
20781      # Microsoft Visual C++.
20782      # hardcode_libdir_flag_spec is actually meaningless, as there is
20783      # no search path for DLLs.
20784      hardcode_libdir_flag_spec_FC=' '
20785      allow_undefined_flag_FC=unsupported
20786      # Tell ltmain to make .lib files, not .a files.
20787      libext=lib
20788      # Tell ltmain to make .dll files, not .so files.
20789      shrext_cmds=".dll"
20790      # FIXME: Setting linknames here is a bad hack.
20791      archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
20792      # The linker will automatically build a .lib file if we build a DLL.
20793      old_archive_from_new_cmds_FC='true'
20794      # FIXME: Should let the user specify the lib program.
20795      old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
20796      fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
20797      enable_shared_with_static_runtimes_FC=yes
20798      ;;
20799
20800    darwin* | rhapsody*)
20801
20802
20803  archive_cmds_need_lc_FC=no
20804  hardcode_direct_FC=no
20805  hardcode_automatic_FC=yes
20806  hardcode_shlibpath_var_FC=unsupported
20807  whole_archive_flag_spec_FC=''
20808  link_all_deplibs_FC=yes
20809  allow_undefined_flag_FC="$_lt_dar_allow_undefined"
20810  case $cc_basename in
20811     ifort*) _lt_dar_can_shared=yes ;;
20812     *) _lt_dar_can_shared=$GCC ;;
20813  esac
20814  if test "$_lt_dar_can_shared" = "yes"; then
20815    output_verbose_link_cmd=echo
20816    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}"
20817    module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
20818    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}"
20819    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}"
20820
20821  else
20822  ld_shlibs_FC=no
20823  fi
20824
20825      ;;
20826
20827    dgux*)
20828      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20829      hardcode_libdir_flag_spec_FC='-L$libdir'
20830      hardcode_shlibpath_var_FC=no
20831      ;;
20832
20833    freebsd1*)
20834      ld_shlibs_FC=no
20835      ;;
20836
20837    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20838    # support.  Future versions do this automatically, but an explicit c++rt0.o
20839    # does not break anything, and helps significantly (at the cost of a little
20840    # extra space).
20841    freebsd2.2*)
20842      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20843      hardcode_libdir_flag_spec_FC='-R$libdir'
20844      hardcode_direct_FC=yes
20845      hardcode_shlibpath_var_FC=no
20846      ;;
20847
20848    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
20849    freebsd2*)
20850      archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20851      hardcode_direct_FC=yes
20852      hardcode_minus_L_FC=yes
20853      hardcode_shlibpath_var_FC=no
20854      ;;
20855
20856    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20857    freebsd* | dragonfly*)
20858      archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
20859      hardcode_libdir_flag_spec_FC='-R$libdir'
20860      hardcode_direct_FC=yes
20861      hardcode_shlibpath_var_FC=no
20862      ;;
20863
20864    hpux9*)
20865      if test "$GCC" = yes; then
20866	archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
20867      else
20868	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'
20869      fi
20870      hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
20871      hardcode_libdir_separator_FC=:
20872      hardcode_direct_FC=yes
20873
20874      # hardcode_minus_L: Not really in the search PATH,
20875      # but as the default location of the library.
20876      hardcode_minus_L_FC=yes
20877      export_dynamic_flag_spec_FC='${wl}-E'
20878      ;;
20879
20880    hpux10*)
20881      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20882	archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20883      else
20884	archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20885      fi
20886      if test "$with_gnu_ld" = no; then
20887	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
20888	hardcode_libdir_flag_spec_ld_FC='+b $libdir'
20889	hardcode_libdir_separator_FC=:
20890	hardcode_direct_FC=yes
20891	hardcode_direct_absolute_FC=yes
20892	export_dynamic_flag_spec_FC='${wl}-E'
20893	# hardcode_minus_L: Not really in the search PATH,
20894	# but as the default location of the library.
20895	hardcode_minus_L_FC=yes
20896      fi
20897      ;;
20898
20899    hpux11*)
20900      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20901	case $host_cpu in
20902	hppa*64*)
20903	  archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20904	  ;;
20905	ia64*)
20906	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20907	  ;;
20908	*)
20909	  archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20910	  ;;
20911	esac
20912      else
20913	case $host_cpu in
20914	hppa*64*)
20915	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20916	  ;;
20917	ia64*)
20918	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20919	  ;;
20920	*)
20921	  archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20922	  ;;
20923	esac
20924      fi
20925      if test "$with_gnu_ld" = no; then
20926	hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
20927	hardcode_libdir_separator_FC=:
20928
20929	case $host_cpu in
20930	hppa*64*|ia64*)
20931	  hardcode_direct_FC=no
20932	  hardcode_shlibpath_var_FC=no
20933	  ;;
20934	*)
20935	  hardcode_direct_FC=yes
20936	  hardcode_direct_absolute_FC=yes
20937	  export_dynamic_flag_spec_FC='${wl}-E'
20938
20939	  # hardcode_minus_L: Not really in the search PATH,
20940	  # but as the default location of the library.
20941	  hardcode_minus_L_FC=yes
20942	  ;;
20943	esac
20944      fi
20945      ;;
20946
20947    irix5* | irix6* | nonstopux*)
20948      if test "$GCC" = yes; then
20949	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20950	# Try to use the -exported_symbol ld option, if it does not
20951	# work, assume that -exports_file does not work either and
20952	# implicitly export all symbols.
20953        save_LDFLAGS="$LDFLAGS"
20954        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
20955        cat > conftest.$ac_ext <<_ACEOF
20956int foo(void) {}
20957_ACEOF
20958if ac_fn_fc_try_link "$LINENO"; then :
20959  archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
20960
20961fi
20962rm -f core conftest.err conftest.$ac_objext \
20963    conftest$ac_exeext conftest.$ac_ext
20964        LDFLAGS="$save_LDFLAGS"
20965      else
20966	archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
20967	archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
20968      fi
20969      archive_cmds_need_lc_FC='no'
20970      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
20971      hardcode_libdir_separator_FC=:
20972      inherit_rpath_FC=yes
20973      link_all_deplibs_FC=yes
20974      ;;
20975
20976    netbsd* | netbsdelf*-gnu)
20977      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20978	archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
20979      else
20980	archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
20981      fi
20982      hardcode_libdir_flag_spec_FC='-R$libdir'
20983      hardcode_direct_FC=yes
20984      hardcode_shlibpath_var_FC=no
20985      ;;
20986
20987    newsos6)
20988      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20989      hardcode_direct_FC=yes
20990      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
20991      hardcode_libdir_separator_FC=:
20992      hardcode_shlibpath_var_FC=no
20993      ;;
20994
20995    *nto* | *qnx*)
20996      ;;
20997
20998    openbsd*)
20999      if test -f /usr/libexec/ld.so; then
21000	hardcode_direct_FC=yes
21001	hardcode_shlibpath_var_FC=no
21002	hardcode_direct_absolute_FC=yes
21003	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21004	  archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21005	  archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
21006	  hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
21007	  export_dynamic_flag_spec_FC='${wl}-E'
21008	else
21009	  case $host_os in
21010	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21011	     archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21012	     hardcode_libdir_flag_spec_FC='-R$libdir'
21013	     ;;
21014	   *)
21015	     archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21016	     hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
21017	     ;;
21018	  esac
21019	fi
21020      else
21021	ld_shlibs_FC=no
21022      fi
21023      ;;
21024
21025    os2*)
21026      hardcode_libdir_flag_spec_FC='-L$libdir'
21027      hardcode_minus_L_FC=yes
21028      allow_undefined_flag_FC=unsupported
21029      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'
21030      old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21031      ;;
21032
21033    osf3*)
21034      if test "$GCC" = yes; then
21035	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
21036	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21037      else
21038	allow_undefined_flag_FC=' -expect_unresolved \*'
21039	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
21040      fi
21041      archive_cmds_need_lc_FC='no'
21042      hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
21043      hardcode_libdir_separator_FC=:
21044      ;;
21045
21046    osf4* | osf5*)	# as osf3* with the addition of -msym flag
21047      if test "$GCC" = yes; then
21048	allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
21049	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
21050	hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
21051      else
21052	allow_undefined_flag_FC=' -expect_unresolved \*'
21053	archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
21054	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~
21055	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
21056
21057	# Both c and cxx compiler support -rpath directly
21058	hardcode_libdir_flag_spec_FC='-rpath $libdir'
21059      fi
21060      archive_cmds_need_lc_FC='no'
21061      hardcode_libdir_separator_FC=:
21062      ;;
21063
21064    solaris*)
21065      no_undefined_flag_FC=' -z defs'
21066      if test "$GCC" = yes; then
21067	wlarc='${wl}'
21068	archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21069	archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21070	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21071      else
21072	case `$CC -V 2>&1` in
21073	*"Compilers 5.0"*)
21074	  wlarc=''
21075	  archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
21076	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21077	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
21078	  ;;
21079	*)
21080	  wlarc='${wl}'
21081	  archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
21082	  archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21083	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
21084	  ;;
21085	esac
21086      fi
21087      hardcode_libdir_flag_spec_FC='-R$libdir'
21088      hardcode_shlibpath_var_FC=no
21089      case $host_os in
21090      solaris2.[0-5] | solaris2.[0-5].*) ;;
21091      *)
21092	# The compiler driver will combine and reorder linker options,
21093	# but understands `-z linker_flag'.  GCC discards it without `$wl',
21094	# but is careful enough not to reorder.
21095	# Supported since Solaris 2.6 (maybe 2.5.1?)
21096	if test "$GCC" = yes; then
21097	  whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
21098	else
21099	  whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
21100	fi
21101	;;
21102      esac
21103      link_all_deplibs_FC=yes
21104      ;;
21105
21106    sunos4*)
21107      if test "x$host_vendor" = xsequent; then
21108	# Use $CC to link under sequent, because it throws in some extra .o
21109	# files that make .init and .fini sections work.
21110	archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21111      else
21112	archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21113      fi
21114      hardcode_libdir_flag_spec_FC='-L$libdir'
21115      hardcode_direct_FC=yes
21116      hardcode_minus_L_FC=yes
21117      hardcode_shlibpath_var_FC=no
21118      ;;
21119
21120    sysv4)
21121      case $host_vendor in
21122	sni)
21123	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21124	  hardcode_direct_FC=yes # is this really true???
21125	;;
21126	siemens)
21127	  ## LD is ld it makes a PLAMLIB
21128	  ## CC just makes a GrossModule.
21129	  archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
21130	  reload_cmds_FC='$CC -r -o $output$reload_objs'
21131	  hardcode_direct_FC=no
21132        ;;
21133	motorola)
21134	  archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21135	  hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
21136	;;
21137      esac
21138      runpath_var='LD_RUN_PATH'
21139      hardcode_shlibpath_var_FC=no
21140      ;;
21141
21142    sysv4.3*)
21143      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21144      hardcode_shlibpath_var_FC=no
21145      export_dynamic_flag_spec_FC='-Bexport'
21146      ;;
21147
21148    sysv4*MP*)
21149      if test -d /usr/nec; then
21150	archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21151	hardcode_shlibpath_var_FC=no
21152	runpath_var=LD_RUN_PATH
21153	hardcode_runpath_var=yes
21154	ld_shlibs_FC=yes
21155      fi
21156      ;;
21157
21158    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21159      no_undefined_flag_FC='${wl}-z,text'
21160      archive_cmds_need_lc_FC=no
21161      hardcode_shlibpath_var_FC=no
21162      runpath_var='LD_RUN_PATH'
21163
21164      if test "$GCC" = yes; then
21165	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21166	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21167      else
21168	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21169	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21170      fi
21171      ;;
21172
21173    sysv5* | sco3.2v5* | sco5v6*)
21174      # Note: We can NOT use -z defs as we might desire, because we do not
21175      # link with -lc, and that would cause any symbols used from libc to
21176      # always be unresolved, which means just about no library would
21177      # ever link correctly.  If we're not using GNU ld we use -z text
21178      # though, which does catch some bad symbols but isn't as heavy-handed
21179      # as -z defs.
21180      no_undefined_flag_FC='${wl}-z,text'
21181      allow_undefined_flag_FC='${wl}-z,nodefs'
21182      archive_cmds_need_lc_FC=no
21183      hardcode_shlibpath_var_FC=no
21184      hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
21185      hardcode_libdir_separator_FC=':'
21186      link_all_deplibs_FC=yes
21187      export_dynamic_flag_spec_FC='${wl}-Bexport'
21188      runpath_var='LD_RUN_PATH'
21189
21190      if test "$GCC" = yes; then
21191	archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21192	archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21193      else
21194	archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21195	archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21196      fi
21197      ;;
21198
21199    uts4*)
21200      archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21201      hardcode_libdir_flag_spec_FC='-L$libdir'
21202      hardcode_shlibpath_var_FC=no
21203      ;;
21204
21205    *)
21206      ld_shlibs_FC=no
21207      ;;
21208    esac
21209
21210    if test x$host_vendor = xsni; then
21211      case $host in
21212      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21213	export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
21214	;;
21215      esac
21216    fi
21217  fi
21218
21219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
21220$as_echo "$ld_shlibs_FC" >&6; }
21221test "$ld_shlibs_FC" = no && can_build_shared=no
21222
21223with_gnu_ld_FC=$with_gnu_ld
21224
21225
21226
21227
21228
21229
21230#
21231# Do we need to explicitly link libc?
21232#
21233case "x$archive_cmds_need_lc_FC" in
21234x|xyes)
21235  # Assume -lc should be added
21236  archive_cmds_need_lc_FC=yes
21237
21238  if test "$enable_shared" = yes && test "$GCC" = yes; then
21239    case $archive_cmds_FC in
21240    *'~'*)
21241      # FIXME: we may have to deal with multi-command sequences.
21242      ;;
21243    '$CC '*)
21244      # Test whether the compiler implicitly links with -lc since on some
21245      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21246      # to ld, don't add -lc before -lgcc.
21247      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21248$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21249      $RM conftest*
21250      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21251
21252      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21253  (eval $ac_compile) 2>&5
21254  ac_status=$?
21255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21256  test $ac_status = 0; } 2>conftest.err; then
21257        soname=conftest
21258        lib=conftest
21259        libobjs=conftest.$ac_objext
21260        deplibs=
21261        wl=$lt_prog_compiler_wl_FC
21262	pic_flag=$lt_prog_compiler_pic_FC
21263        compiler_flags=-v
21264        linker_flags=-v
21265        verstring=
21266        output_objdir=.
21267        libname=conftest
21268        lt_save_allow_undefined_flag=$allow_undefined_flag_FC
21269        allow_undefined_flag_FC=
21270        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21271  (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21272  ac_status=$?
21273  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21274  test $ac_status = 0; }
21275        then
21276	  archive_cmds_need_lc_FC=no
21277        else
21278	  archive_cmds_need_lc_FC=yes
21279        fi
21280        allow_undefined_flag_FC=$lt_save_allow_undefined_flag
21281      else
21282        cat conftest.err 1>&5
21283      fi
21284      $RM conftest*
21285      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_FC" >&5
21286$as_echo "$archive_cmds_need_lc_FC" >&6; }
21287      ;;
21288    esac
21289  fi
21290  ;;
21291esac
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21357$as_echo_n "checking dynamic linker characteristics... " >&6; }
21358
21359library_names_spec=
21360libname_spec='lib$name'
21361soname_spec=
21362shrext_cmds=".so"
21363postinstall_cmds=
21364postuninstall_cmds=
21365finish_cmds=
21366finish_eval=
21367shlibpath_var=
21368shlibpath_overrides_runpath=unknown
21369version_type=none
21370dynamic_linker="$host_os ld.so"
21371sys_lib_dlsearch_path_spec="/lib /usr/lib"
21372need_lib_prefix=unknown
21373hardcode_into_libs=no
21374
21375# when you set need_version to no, make sure it does not cause -set_version
21376# flags to be left without arguments
21377need_version=unknown
21378
21379case $host_os in
21380aix3*)
21381  version_type=linux
21382  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
21383  shlibpath_var=LIBPATH
21384
21385  # AIX 3 has no versioning support, so we append a major version to the name.
21386  soname_spec='${libname}${release}${shared_ext}$major'
21387  ;;
21388
21389aix[4-9]*)
21390  version_type=linux
21391  need_lib_prefix=no
21392  need_version=no
21393  hardcode_into_libs=yes
21394  if test "$host_cpu" = ia64; then
21395    # AIX 5 supports IA64
21396    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
21397    shlibpath_var=LD_LIBRARY_PATH
21398  else
21399    # With GCC up to 2.95.x, collect2 would create an import file
21400    # for dependence libraries.  The import file would start with
21401    # the line `#! .'.  This would cause the generated library to
21402    # depend on `.', always an invalid library.  This was fixed in
21403    # development snapshots of GCC prior to 3.0.
21404    case $host_os in
21405      aix4 | aix4.[01] | aix4.[01].*)
21406      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21407	   echo ' yes '
21408	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
21409	:
21410      else
21411	can_build_shared=no
21412      fi
21413      ;;
21414    esac
21415    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
21416    # soname into executable. Probably we can add versioning support to
21417    # collect2, so additional links can be useful in future.
21418    if test "$aix_use_runtimelinking" = yes; then
21419      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21420      # instead of lib<name>.a to let people know that these are not
21421      # typical AIX shared libraries.
21422      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21423    else
21424      # We preserve .a as extension for shared libraries through AIX4.2
21425      # and later when we are not doing run time linking.
21426      library_names_spec='${libname}${release}.a $libname.a'
21427      soname_spec='${libname}${release}${shared_ext}$major'
21428    fi
21429    shlibpath_var=LIBPATH
21430  fi
21431  ;;
21432
21433amigaos*)
21434  case $host_cpu in
21435  powerpc)
21436    # Since July 2007 AmigaOS4 officially supports .so libraries.
21437    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21438    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21439    ;;
21440  m68k)
21441    library_names_spec='$libname.ixlibrary $libname.a'
21442    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21443    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
21444    ;;
21445  esac
21446  ;;
21447
21448beos*)
21449  library_names_spec='${libname}${shared_ext}'
21450  dynamic_linker="$host_os ld.so"
21451  shlibpath_var=LIBRARY_PATH
21452  ;;
21453
21454bsdi[45]*)
21455  version_type=linux
21456  need_version=no
21457  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21458  soname_spec='${libname}${release}${shared_ext}$major'
21459  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21460  shlibpath_var=LD_LIBRARY_PATH
21461  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21462  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21463  # the default ld.so.conf also contains /usr/contrib/lib and
21464  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21465  # libtool to hard-code these into programs
21466  ;;
21467
21468cygwin* | mingw* | pw32* | cegcc*)
21469  version_type=windows
21470  shrext_cmds=".dll"
21471  need_version=no
21472  need_lib_prefix=no
21473
21474  case $GCC,$host_os in
21475  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
21476    library_names_spec='$libname.dll.a'
21477    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21478    postinstall_cmds='base_file=`basename \${file}`~
21479      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
21480      dldir=$destdir/`dirname \$dlpath`~
21481      test -d \$dldir || mkdir -p \$dldir~
21482      $install_prog $dir/$dlname \$dldir/$dlname~
21483      chmod a+x \$dldir/$dlname~
21484      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21485        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21486      fi'
21487    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21488      dlpath=$dir/\$dldll~
21489       $RM \$dlpath'
21490    shlibpath_overrides_runpath=yes
21491
21492    case $host_os in
21493    cygwin*)
21494      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21495      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21496      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
21497      ;;
21498    mingw* | cegcc*)
21499      # MinGW DLLs use traditional 'lib' prefix
21500      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21501      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
21502      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21503        # It is most probably a Windows format PATH printed by
21504        # mingw gcc, but we are running on Cygwin. Gcc prints its search
21505        # path with ; separators, and with drive letters. We can handle the
21506        # drive letters (cygwin fileutils understands them), so leave them,
21507        # especially as we might pass files found there to a mingw objdump,
21508        # which wouldn't understand a cygwinified path. Ahh.
21509        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21510      else
21511        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
21512      fi
21513      ;;
21514    pw32*)
21515      # pw32 DLLs use 'pw' prefix rather than 'lib'
21516      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
21517      ;;
21518    esac
21519    ;;
21520
21521  *)
21522    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
21523    ;;
21524  esac
21525  dynamic_linker='Win32 ld.exe'
21526  # FIXME: first we should search . and the directory the executable is in
21527  shlibpath_var=PATH
21528  ;;
21529
21530darwin* | rhapsody*)
21531  dynamic_linker="$host_os dyld"
21532  version_type=darwin
21533  need_lib_prefix=no
21534  need_version=no
21535  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
21536  soname_spec='${libname}${release}${major}$shared_ext'
21537  shlibpath_overrides_runpath=yes
21538  shlibpath_var=DYLD_LIBRARY_PATH
21539  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21540
21541  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21542  ;;
21543
21544dgux*)
21545  version_type=linux
21546  need_lib_prefix=no
21547  need_version=no
21548  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
21549  soname_spec='${libname}${release}${shared_ext}$major'
21550  shlibpath_var=LD_LIBRARY_PATH
21551  ;;
21552
21553freebsd1*)
21554  dynamic_linker=no
21555  ;;
21556
21557freebsd* | dragonfly*)
21558  # DragonFly does not have aout.  When/if they implement a new
21559  # versioning mechanism, adjust this.
21560  if test -x /usr/bin/objformat; then
21561    objformat=`/usr/bin/objformat`
21562  else
21563    case $host_os in
21564    freebsd[123]*) objformat=aout ;;
21565    *) objformat=elf ;;
21566    esac
21567  fi
21568  version_type=freebsd-$objformat
21569  case $version_type in
21570    freebsd-elf*)
21571      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21572      need_version=no
21573      need_lib_prefix=no
21574      ;;
21575    freebsd-*)
21576      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
21577      need_version=yes
21578      ;;
21579  esac
21580  shlibpath_var=LD_LIBRARY_PATH
21581  case $host_os in
21582  freebsd2*)
21583    shlibpath_overrides_runpath=yes
21584    ;;
21585  freebsd3.[01]* | freebsdelf3.[01]*)
21586    shlibpath_overrides_runpath=yes
21587    hardcode_into_libs=yes
21588    ;;
21589  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21590  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21591    shlibpath_overrides_runpath=no
21592    hardcode_into_libs=yes
21593    ;;
21594  *) # from 4.6 on, and DragonFly
21595    shlibpath_overrides_runpath=yes
21596    hardcode_into_libs=yes
21597    ;;
21598  esac
21599  ;;
21600
21601gnu*)
21602  version_type=linux
21603  need_lib_prefix=no
21604  need_version=no
21605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
21606  soname_spec='${libname}${release}${shared_ext}$major'
21607  shlibpath_var=LD_LIBRARY_PATH
21608  hardcode_into_libs=yes
21609  ;;
21610
21611hpux9* | hpux10* | hpux11*)
21612  # Give a soname corresponding to the major version so that dld.sl refuses to
21613  # link against other versions.
21614  version_type=sunos
21615  need_lib_prefix=no
21616  need_version=no
21617  case $host_cpu in
21618  ia64*)
21619    shrext_cmds='.so'
21620    hardcode_into_libs=yes
21621    dynamic_linker="$host_os dld.so"
21622    shlibpath_var=LD_LIBRARY_PATH
21623    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21624    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21625    soname_spec='${libname}${release}${shared_ext}$major'
21626    if test "X$HPUX_IA64_MODE" = X32; then
21627      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
21628    else
21629      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
21630    fi
21631    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21632    ;;
21633  hppa*64*)
21634    shrext_cmds='.sl'
21635    hardcode_into_libs=yes
21636    dynamic_linker="$host_os dld.sl"
21637    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21638    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
21639    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21640    soname_spec='${libname}${release}${shared_ext}$major'
21641    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21642    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21643    ;;
21644  *)
21645    shrext_cmds='.sl'
21646    dynamic_linker="$host_os dld.sl"
21647    shlibpath_var=SHLIB_PATH
21648    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
21649    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21650    soname_spec='${libname}${release}${shared_ext}$major'
21651    ;;
21652  esac
21653  # HP-UX runs *really* slowly unless shared libraries are mode 555.
21654  postinstall_cmds='chmod 555 $lib'
21655  ;;
21656
21657interix[3-9]*)
21658  version_type=linux
21659  need_lib_prefix=no
21660  need_version=no
21661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21662  soname_spec='${libname}${release}${shared_ext}$major'
21663  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21664  shlibpath_var=LD_LIBRARY_PATH
21665  shlibpath_overrides_runpath=no
21666  hardcode_into_libs=yes
21667  ;;
21668
21669irix5* | irix6* | nonstopux*)
21670  case $host_os in
21671    nonstopux*) version_type=nonstopux ;;
21672    *)
21673	if test "$lt_cv_prog_gnu_ld" = yes; then
21674		version_type=linux
21675	else
21676		version_type=irix
21677	fi ;;
21678  esac
21679  need_lib_prefix=no
21680  need_version=no
21681  soname_spec='${libname}${release}${shared_ext}$major'
21682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
21683  case $host_os in
21684  irix5* | nonstopux*)
21685    libsuff= shlibsuff=
21686    ;;
21687  *)
21688    case $LD in # libtool.m4 will add one of these switches to LD
21689    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21690      libsuff= shlibsuff= libmagic=32-bit;;
21691    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21692      libsuff=32 shlibsuff=N32 libmagic=N32;;
21693    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21694      libsuff=64 shlibsuff=64 libmagic=64-bit;;
21695    *) libsuff= shlibsuff= libmagic=never-match;;
21696    esac
21697    ;;
21698  esac
21699  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21700  shlibpath_overrides_runpath=no
21701  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
21702  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
21703  hardcode_into_libs=yes
21704  ;;
21705
21706# No shared lib support for Linux oldld, aout, or coff.
21707linux*oldld* | linux*aout* | linux*coff*)
21708  dynamic_linker=no
21709  ;;
21710
21711# This must be Linux ELF.
21712linux* | k*bsd*-gnu | kopensolaris*-gnu)
21713  version_type=linux
21714  need_lib_prefix=no
21715  need_version=no
21716  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21717  soname_spec='${libname}${release}${shared_ext}$major'
21718  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21719  shlibpath_var=LD_LIBRARY_PATH
21720  shlibpath_overrides_runpath=no
21721  # Some binutils ld are patched to set DT_RUNPATH
21722  save_LDFLAGS=$LDFLAGS
21723  save_libdir=$libdir
21724  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
21725       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
21726  cat > conftest.$ac_ext <<_ACEOF
21727      program main
21728
21729      end
21730_ACEOF
21731if ac_fn_fc_try_link "$LINENO"; then :
21732  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
21733  shlibpath_overrides_runpath=yes
21734fi
21735fi
21736rm -f core conftest.err conftest.$ac_objext \
21737    conftest$ac_exeext conftest.$ac_ext
21738  LDFLAGS=$save_LDFLAGS
21739  libdir=$save_libdir
21740
21741  # This implies no fast_install, which is unacceptable.
21742  # Some rework will be needed to allow for fast_install
21743  # before this can be enabled.
21744  hardcode_into_libs=yes
21745
21746  # Append ld.so.conf contents to the search path
21747  if test -f /etc/ld.so.conf; then
21748    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;/^$/d' | tr '\n' ' '`
21749    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
21750  fi
21751
21752  # We used to test for /lib/ld.so.1 and disable shared libraries on
21753  # powerpc, because MkLinux only supported shared libraries with the
21754  # GNU dynamic linker.  Since this was broken with cross compilers,
21755  # most powerpc-linux boxes support dynamic linking these days and
21756  # people can always --disable-shared, the test was removed, and we
21757  # assume the GNU/Linux dynamic linker is in use.
21758  dynamic_linker='GNU/Linux ld.so'
21759  ;;
21760
21761netbsdelf*-gnu)
21762  version_type=linux
21763  need_lib_prefix=no
21764  need_version=no
21765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21766  soname_spec='${libname}${release}${shared_ext}$major'
21767  shlibpath_var=LD_LIBRARY_PATH
21768  shlibpath_overrides_runpath=no
21769  hardcode_into_libs=yes
21770  dynamic_linker='NetBSD ld.elf_so'
21771  ;;
21772
21773netbsd*)
21774  version_type=sunos
21775  need_lib_prefix=no
21776  need_version=no
21777  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21778    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21779    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21780    dynamic_linker='NetBSD (a.out) ld.so'
21781  else
21782    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
21783    soname_spec='${libname}${release}${shared_ext}$major'
21784    dynamic_linker='NetBSD ld.elf_so'
21785  fi
21786  shlibpath_var=LD_LIBRARY_PATH
21787  shlibpath_overrides_runpath=yes
21788  hardcode_into_libs=yes
21789  ;;
21790
21791newsos6)
21792  version_type=linux
21793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21794  shlibpath_var=LD_LIBRARY_PATH
21795  shlibpath_overrides_runpath=yes
21796  ;;
21797
21798*nto* | *qnx*)
21799  version_type=qnx
21800  need_lib_prefix=no
21801  need_version=no
21802  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21803  soname_spec='${libname}${release}${shared_ext}$major'
21804  shlibpath_var=LD_LIBRARY_PATH
21805  shlibpath_overrides_runpath=no
21806  hardcode_into_libs=yes
21807  dynamic_linker='ldqnx.so'
21808  ;;
21809
21810openbsd*)
21811  version_type=sunos
21812  sys_lib_dlsearch_path_spec="/usr/lib"
21813  need_lib_prefix=no
21814  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
21815  case $host_os in
21816    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
21817    *)				need_version=no  ;;
21818  esac
21819  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21820  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21821  shlibpath_var=LD_LIBRARY_PATH
21822  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21823    case $host_os in
21824      openbsd2.[89] | openbsd2.[89].*)
21825	shlibpath_overrides_runpath=no
21826	;;
21827      *)
21828	shlibpath_overrides_runpath=yes
21829	;;
21830      esac
21831  else
21832    shlibpath_overrides_runpath=yes
21833  fi
21834  ;;
21835
21836os2*)
21837  libname_spec='$name'
21838  shrext_cmds=".dll"
21839  need_lib_prefix=no
21840  library_names_spec='$libname${shared_ext} $libname.a'
21841  dynamic_linker='OS/2 ld.exe'
21842  shlibpath_var=LIBPATH
21843  ;;
21844
21845osf3* | osf4* | osf5*)
21846  version_type=osf
21847  need_lib_prefix=no
21848  need_version=no
21849  soname_spec='${libname}${release}${shared_ext}$major'
21850  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21851  shlibpath_var=LD_LIBRARY_PATH
21852  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21853  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21854  ;;
21855
21856rdos*)
21857  dynamic_linker=no
21858  ;;
21859
21860solaris*)
21861  version_type=linux
21862  need_lib_prefix=no
21863  need_version=no
21864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21865  soname_spec='${libname}${release}${shared_ext}$major'
21866  shlibpath_var=LD_LIBRARY_PATH
21867  shlibpath_overrides_runpath=yes
21868  hardcode_into_libs=yes
21869  # ldd complains unless libraries are executable
21870  postinstall_cmds='chmod +x $lib'
21871  ;;
21872
21873sunos4*)
21874  version_type=sunos
21875  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21876  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21877  shlibpath_var=LD_LIBRARY_PATH
21878  shlibpath_overrides_runpath=yes
21879  if test "$with_gnu_ld" = yes; then
21880    need_lib_prefix=no
21881  fi
21882  need_version=yes
21883  ;;
21884
21885sysv4 | sysv4.3*)
21886  version_type=linux
21887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21888  soname_spec='${libname}${release}${shared_ext}$major'
21889  shlibpath_var=LD_LIBRARY_PATH
21890  case $host_vendor in
21891    sni)
21892      shlibpath_overrides_runpath=no
21893      need_lib_prefix=no
21894      runpath_var=LD_RUN_PATH
21895      ;;
21896    siemens)
21897      need_lib_prefix=no
21898      ;;
21899    motorola)
21900      need_lib_prefix=no
21901      need_version=no
21902      shlibpath_overrides_runpath=no
21903      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21904      ;;
21905  esac
21906  ;;
21907
21908sysv4*MP*)
21909  if test -d /usr/nec ;then
21910    version_type=linux
21911    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21912    soname_spec='$libname${shared_ext}.$major'
21913    shlibpath_var=LD_LIBRARY_PATH
21914  fi
21915  ;;
21916
21917sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21918  version_type=freebsd-elf
21919  need_lib_prefix=no
21920  need_version=no
21921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21922  soname_spec='${libname}${release}${shared_ext}$major'
21923  shlibpath_var=LD_LIBRARY_PATH
21924  shlibpath_overrides_runpath=yes
21925  hardcode_into_libs=yes
21926  if test "$with_gnu_ld" = yes; then
21927    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21928  else
21929    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21930    case $host_os in
21931      sco3.2v5*)
21932        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21933	;;
21934    esac
21935  fi
21936  sys_lib_dlsearch_path_spec='/usr/lib'
21937  ;;
21938
21939tpf*)
21940  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
21941  version_type=linux
21942  need_lib_prefix=no
21943  need_version=no
21944  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21945  shlibpath_var=LD_LIBRARY_PATH
21946  shlibpath_overrides_runpath=no
21947  hardcode_into_libs=yes
21948  ;;
21949
21950uts4*)
21951  version_type=linux
21952  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21953  soname_spec='${libname}${release}${shared_ext}$major'
21954  shlibpath_var=LD_LIBRARY_PATH
21955  ;;
21956
21957*)
21958  dynamic_linker=no
21959  ;;
21960esac
21961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21962$as_echo "$dynamic_linker" >&6; }
21963test "$dynamic_linker" = no && can_build_shared=no
21964
21965variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21966if test "$GCC" = yes; then
21967  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21968fi
21969
21970if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21971  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21972fi
21973if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21974  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21975fi
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009
22010
22011
22012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22013$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22014hardcode_action_FC=
22015if test -n "$hardcode_libdir_flag_spec_FC" ||
22016   test -n "$runpath_var_FC" ||
22017   test "X$hardcode_automatic_FC" = "Xyes" ; then
22018
22019  # We can hardcode non-existent directories.
22020  if test "$hardcode_direct_FC" != no &&
22021     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22022     # have to relink, otherwise we might link with an installed library
22023     # when we should be linking with a yet-to-be-installed one
22024     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
22025     test "$hardcode_minus_L_FC" != no; then
22026    # Linking always hardcodes the temporary library directory.
22027    hardcode_action_FC=relink
22028  else
22029    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22030    hardcode_action_FC=immediate
22031  fi
22032else
22033  # We cannot hardcode anything, or else we can only hardcode existing
22034  # directories.
22035  hardcode_action_FC=unsupported
22036fi
22037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
22038$as_echo "$hardcode_action_FC" >&6; }
22039
22040if test "$hardcode_action_FC" = relink ||
22041   test "$inherit_rpath_FC" = yes; then
22042  # Fast installation is not supported
22043  enable_fast_install=no
22044elif test "$shlibpath_overrides_runpath" = yes ||
22045     test "$enable_shared" = no; then
22046  # Fast installation is not necessary
22047  enable_fast_install=needless
22048fi
22049
22050
22051
22052
22053
22054
22055
22056  fi # test -n "$compiler"
22057
22058  GCC=$lt_save_GCC
22059  CC="$lt_save_CC"
22060fi # test "$_lt_disable_FC" != yes
22061
22062ac_ext=c
22063ac_cpp='$CPP $CPPFLAGS'
22064ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22065ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22066ac_compiler_gnu=$ac_cv_c_compiler_gnu
22067
22068
22069ac_ext=${ac_fc_srcext-f}
22070ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
22071ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
22072ac_compiler_gnu=$ac_cv_fc_compiler_gnu
22073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $FC" >&5
22074$as_echo_n "checking how to get verbose linking output from $FC... " >&6; }
22075if test "${ac_cv_prog_fc_v+set}" = set; then :
22076  $as_echo_n "(cached) " >&6
22077else
22078  cat > conftest.$ac_ext <<_ACEOF
22079      program main
22080
22081      end
22082_ACEOF
22083if ac_fn_fc_try_compile "$LINENO"; then :
22084  ac_cv_prog_fc_v=
22085# Try some options frequently used verbose output
22086for ac_verb in -v -verbose --verbose -V -\#\#\#; do
22087  cat > conftest.$ac_ext <<_ACEOF
22088      program main
22089
22090      end
22091_ACEOF
22092
22093# Compile and link our simple test program by passing a flag (argument
22094# 1 to this macro) to the Fortran compiler in order to get
22095# "verbose" output that we can then parse for the Fortran linker
22096# flags.
22097ac_save_FCFLAGS=$FCFLAGS
22098FCFLAGS="$FCFLAGS $ac_verb"
22099eval "set x $ac_link"
22100shift
22101$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
22102# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
22103# LIBRARY_PATH; skip all such settings.
22104ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
22105  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
22106$as_echo "$ac_fc_v_output" >&5
22107FCFLAGS=$ac_save_FCFLAGS
22108
22109rm -rf conftest*
22110
22111# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
22112# /foo, /bar, and /baz are search directories for the Fortran linker.
22113# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
22114ac_fc_v_output="`echo $ac_fc_v_output |
22115	grep 'LPATH is:' |
22116	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
22117
22118# FIXME: we keep getting bitten by quoted arguments; a more general fix
22119#        that detects unbalanced quotes in FLIBS should be implemented
22120#        and (ugh) tested at some point.
22121case $ac_fc_v_output in
22122  # If we are using xlf then replace all the commas with spaces.
22123  *xlfentry*)
22124    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
22125
22126  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
22127  # $LIBS confuse us, and the libraries appear later in the output anyway).
22128  *mGLOB_options_string*)
22129    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
22130
22131  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
22132  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
22133  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
22134  *-cmdline\ * | *-ignore\ * | *-def\ *)
22135    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
22136	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
22137	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
22138	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
22139
22140  # If we are using Cray Fortran then delete quotes.
22141  *cft90*)
22142    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
22143esac
22144
22145
22146  # look for -l* and *.a constructs in the output
22147  for ac_arg in $ac_fc_v_output; do
22148     case $ac_arg in
22149	[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
22150	  ac_cv_prog_fc_v=$ac_verb
22151	  break 2 ;;
22152     esac
22153  done
22154done
22155if test -z "$ac_cv_prog_fc_v"; then
22156   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $FC" >&5
22157$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $FC" >&2;}
22158fi
22159else
22160  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
22161$as_echo "$as_me: WARNING: compilation failed" >&2;}
22162fi
22163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22164
22165fi
22166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_v" >&5
22167$as_echo "$ac_cv_prog_fc_v" >&6; }
22168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran libraries of $FC" >&5
22169$as_echo_n "checking for Fortran libraries of $FC... " >&6; }
22170if test "${ac_cv_fc_libs+set}" = set; then :
22171  $as_echo_n "(cached) " >&6
22172else
22173  if test "x$FCLIBS" != "x"; then
22174  ac_cv_fc_libs="$FCLIBS" # Let the user override the test.
22175else
22176
22177cat > conftest.$ac_ext <<_ACEOF
22178      program main
22179
22180      end
22181_ACEOF
22182
22183# Compile and link our simple test program by passing a flag (argument
22184# 1 to this macro) to the Fortran compiler in order to get
22185# "verbose" output that we can then parse for the Fortran linker
22186# flags.
22187ac_save_FCFLAGS=$FCFLAGS
22188FCFLAGS="$FCFLAGS $ac_cv_prog_fc_v"
22189eval "set x $ac_link"
22190shift
22191$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
22192# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
22193# LIBRARY_PATH; skip all such settings.
22194ac_fc_v_output=`eval $ac_link 5>&1 2>&1 |
22195  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
22196$as_echo "$ac_fc_v_output" >&5
22197FCFLAGS=$ac_save_FCFLAGS
22198
22199rm -rf conftest*
22200
22201# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
22202# /foo, /bar, and /baz are search directories for the Fortran linker.
22203# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
22204ac_fc_v_output="`echo $ac_fc_v_output |
22205	grep 'LPATH is:' |
22206	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_fc_v_output"
22207
22208# FIXME: we keep getting bitten by quoted arguments; a more general fix
22209#        that detects unbalanced quotes in FLIBS should be implemented
22210#        and (ugh) tested at some point.
22211case $ac_fc_v_output in
22212  # If we are using xlf then replace all the commas with spaces.
22213  *xlfentry*)
22214    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/,/ /g'` ;;
22215
22216  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
22217  # $LIBS confuse us, and the libraries appear later in the output anyway).
22218  *mGLOB_options_string*)
22219    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
22220
22221  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
22222  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
22223  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
22224  *-cmdline\ * | *-ignore\ * | *-def\ *)
22225    ac_fc_v_output=`echo $ac_fc_v_output | sed "\
22226	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
22227	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
22228	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
22229
22230  # If we are using Cray Fortran then delete quotes.
22231  *cft90*)
22232    ac_fc_v_output=`echo $ac_fc_v_output | sed 's/"//g'` ;;
22233esac
22234
22235
22236
22237ac_cv_fc_libs=
22238
22239# Save positional arguments (if any)
22240ac_save_positional="$@"
22241
22242set X $ac_fc_v_output
22243while test $# != 1; do
22244  shift
22245  ac_arg=$1
22246  case $ac_arg in
22247	[\\/]*.a | ?:[\\/]*.a)
22248	    ac_exists=false
22249  for ac_i in $ac_cv_fc_libs; do
22250    if test x"$ac_arg" = x"$ac_i"; then
22251      ac_exists=true
22252      break
22253    fi
22254  done
22255
22256  if test x"$ac_exists" = xtrue; then :
22257
22258else
22259  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
22260fi
22261	  ;;
22262	-bI:*)
22263	    ac_exists=false
22264  for ac_i in $ac_cv_fc_libs; do
22265    if test x"$ac_arg" = x"$ac_i"; then
22266      ac_exists=true
22267      break
22268    fi
22269  done
22270
22271  if test x"$ac_exists" = xtrue; then :
22272
22273else
22274  if test "$ac_compiler_gnu" = yes; then
22275  for ac_link_opt in $ac_arg; do
22276    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
22277  done
22278else
22279  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
22280fi
22281fi
22282	  ;;
22283	  # Ignore these flags.
22284	-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
22285	  |-LANG:=* | -LIST:* | -LNO:*)
22286	  ;;
22287	-lkernel32)
22288	  test x"$CYGWIN" != xyes && ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
22289	  ;;
22290	-[LRuYz])
22291	  # These flags, when seen by themselves, take an argument.
22292	  # We remove the space between option and argument and re-iterate
22293	  # unless we find an empty arg or a new option (starting with -)
22294	  case $2 in
22295	     "" | -*);;
22296	     *)
22297		ac_arg="$ac_arg$2"
22298		shift; shift
22299		set X $ac_arg "$@"
22300		;;
22301	  esac
22302	  ;;
22303	-YP,*)
22304	  for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
22305	      ac_exists=false
22306  for ac_i in $ac_cv_fc_libs; do
22307    if test x"$ac_j" = x"$ac_i"; then
22308      ac_exists=true
22309      break
22310    fi
22311  done
22312
22313  if test x"$ac_exists" = xtrue; then :
22314
22315else
22316  ac_arg="$ac_arg $ac_j"
22317			       ac_cv_fc_libs="$ac_cv_fc_libs $ac_j"
22318fi
22319	  done
22320	  ;;
22321	-[lLR]*)
22322	    ac_exists=false
22323  for ac_i in $ac_cv_fc_libs; do
22324    if test x"$ac_arg" = x"$ac_i"; then
22325      ac_exists=true
22326      break
22327    fi
22328  done
22329
22330  if test x"$ac_exists" = xtrue; then :
22331
22332else
22333  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
22334fi
22335	  ;;
22336	-zallextract*| -zdefaultextract)
22337	  ac_cv_fc_libs="$ac_cv_fc_libs $ac_arg"
22338	  ;;
22339	  # Ignore everything else.
22340  esac
22341done
22342# restore positional arguments
22343set X $ac_save_positional; shift
22344
22345# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
22346# then we insist that the "run path" must be an absolute path (i.e. it
22347# must begin with a "/").
22348case `(uname -sr) 2>/dev/null` in
22349   "SunOS 5"*)
22350      ac_ld_run_path=`$as_echo "$ac_fc_v_output" |
22351			sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
22352      test "x$ac_ld_run_path" != x &&
22353	if test "$ac_compiler_gnu" = yes; then
22354  for ac_link_opt in $ac_ld_run_path; do
22355    ac_cv_fc_libs="$ac_cv_fc_libs -Xlinker $ac_link_opt"
22356  done
22357else
22358  ac_cv_fc_libs="$ac_cv_fc_libs $ac_ld_run_path"
22359fi
22360      ;;
22361esac
22362fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
22363
22364fi
22365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_libs" >&5
22366$as_echo "$ac_cv_fc_libs" >&6; }
22367FCLIBS="$ac_cv_fc_libs"
22368
22369
22370ac_ext=c
22371ac_cpp='$CPP $CPPFLAGS'
22372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22374ac_compiler_gnu=$ac_cv_c_compiler_gnu
22375
22376ac_ext=${ac_fc_srcext-f}
22377ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
22378ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
22379ac_compiler_gnu=$ac_cv_fc_compiler_gnu
22380
22381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran libraries" >&5
22382$as_echo_n "checking for dummy main to link with Fortran libraries... " >&6; }
22383if test "${ac_cv_fc_dummy_main+set}" = set; then :
22384  $as_echo_n "(cached) " >&6
22385else
22386  ac_fc_dm_save_LIBS=$LIBS
22387 LIBS="$LIBS $FCLIBS"
22388 ac_fortran_dm_var=FC_DUMMY_MAIN
22389 ac_ext=c
22390ac_cpp='$CPP $CPPFLAGS'
22391ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22392ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22393ac_compiler_gnu=$ac_cv_c_compiler_gnu
22394
22395 # First, try linking without a dummy main:
22396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22397/* end confdefs.h.  */
22398
22399#ifdef FC_DUMMY_MAIN
22400#ifndef FC_DUMMY_MAIN_EQ_F77
22401#  ifdef __cplusplus
22402     extern "C"
22403#  endif
22404   int FC_DUMMY_MAIN() { return 1; }
22405#endif
22406#endif
22407int
22408main ()
22409{
22410
22411  ;
22412  return 0;
22413}
22414_ACEOF
22415if ac_fn_c_try_link "$LINENO"; then :
22416  ac_cv_fortran_dummy_main=none
22417else
22418  ac_cv_fortran_dummy_main=unknown
22419fi
22420rm -f core conftest.err conftest.$ac_objext \
22421    conftest$ac_exeext conftest.$ac_ext
22422
22423 if test $ac_cv_fortran_dummy_main = unknown; then
22424   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
22425     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22426/* end confdefs.h.  */
22427#define $ac_fortran_dm_var $ac_func
22428#ifdef FC_DUMMY_MAIN
22429#ifndef FC_DUMMY_MAIN_EQ_F77
22430#  ifdef __cplusplus
22431     extern "C"
22432#  endif
22433   int FC_DUMMY_MAIN() { return 1; }
22434#endif
22435#endif
22436int
22437main ()
22438{
22439
22440  ;
22441  return 0;
22442}
22443_ACEOF
22444if ac_fn_c_try_link "$LINENO"; then :
22445  ac_cv_fortran_dummy_main=$ac_func; break
22446fi
22447rm -f core conftest.err conftest.$ac_objext \
22448    conftest$ac_exeext conftest.$ac_ext
22449   done
22450 fi
22451 ac_ext=${ac_fc_srcext-f}
22452ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
22453ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
22454ac_compiler_gnu=$ac_cv_fc_compiler_gnu
22455 ac_cv_fc_dummy_main=$ac_cv_fortran_dummy_main
22456 rm -rf conftest*
22457 LIBS=$ac_fc_dm_save_LIBS
22458
22459fi
22460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_dummy_main" >&5
22461$as_echo "$ac_cv_fc_dummy_main" >&6; }
22462FC_DUMMY_MAIN=$ac_cv_fc_dummy_main
22463if test "$FC_DUMMY_MAIN" != unknown; then :
22464  if test $FC_DUMMY_MAIN != none; then
22465
22466cat >>confdefs.h <<_ACEOF
22467#define FC_DUMMY_MAIN $FC_DUMMY_MAIN
22468_ACEOF
22469
22470  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
22471
22472$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
22473
22474  fi
22475fi
22476else
22477  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22479as_fn_error "linking to Fortran libraries from C fails
22480See \`config.log' for more details." "$LINENO" 5; }
22481fi
22482
22483ac_ext=c
22484ac_cpp='$CPP $CPPFLAGS'
22485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22487ac_compiler_gnu=$ac_cv_c_compiler_gnu
22488
22489
22490ac_ext=f
22491ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22492ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22493ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get verbose linking output from $F77" >&5
22495$as_echo_n "checking how to get verbose linking output from $F77... " >&6; }
22496if test "${ac_cv_prog_f77_v+set}" = set; then :
22497  $as_echo_n "(cached) " >&6
22498else
22499  cat > conftest.$ac_ext <<_ACEOF
22500      program main
22501
22502      end
22503_ACEOF
22504if ac_fn_f77_try_compile "$LINENO"; then :
22505  ac_cv_prog_f77_v=
22506# Try some options frequently used verbose output
22507for ac_verb in -v -verbose --verbose -V -\#\#\#; do
22508  cat > conftest.$ac_ext <<_ACEOF
22509      program main
22510
22511      end
22512_ACEOF
22513
22514# Compile and link our simple test program by passing a flag (argument
22515# 1 to this macro) to the Fortran compiler in order to get
22516# "verbose" output that we can then parse for the Fortran linker
22517# flags.
22518ac_save_FFLAGS=$FFLAGS
22519FFLAGS="$FFLAGS $ac_verb"
22520eval "set x $ac_link"
22521shift
22522$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
22523# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
22524# LIBRARY_PATH; skip all such settings.
22525ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
22526  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
22527$as_echo "$ac_f77_v_output" >&5
22528FFLAGS=$ac_save_FFLAGS
22529
22530rm -rf conftest*
22531
22532# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
22533# /foo, /bar, and /baz are search directories for the Fortran linker.
22534# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
22535ac_f77_v_output="`echo $ac_f77_v_output |
22536	grep 'LPATH is:' |
22537	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
22538
22539# FIXME: we keep getting bitten by quoted arguments; a more general fix
22540#        that detects unbalanced quotes in FLIBS should be implemented
22541#        and (ugh) tested at some point.
22542case $ac_f77_v_output in
22543  # If we are using xlf then replace all the commas with spaces.
22544  *xlfentry*)
22545    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
22546
22547  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
22548  # $LIBS confuse us, and the libraries appear later in the output anyway).
22549  *mGLOB_options_string*)
22550    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
22551
22552  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
22553  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
22554  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
22555  *-cmdline\ * | *-ignore\ * | *-def\ *)
22556    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
22557	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
22558	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
22559	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
22560
22561  # If we are using Cray Fortran then delete quotes.
22562  *cft90*)
22563    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
22564esac
22565
22566
22567  # look for -l* and *.a constructs in the output
22568  for ac_arg in $ac_f77_v_output; do
22569     case $ac_arg in
22570	[\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
22571	  ac_cv_prog_f77_v=$ac_verb
22572	  break 2 ;;
22573     esac
22574  done
22575done
22576if test -z "$ac_cv_prog_f77_v"; then
22577   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine how to obtain linking information from $F77" >&5
22578$as_echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
22579fi
22580else
22581  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compilation failed" >&5
22582$as_echo "$as_me: WARNING: compilation failed" >&2;}
22583fi
22584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22585
22586fi
22587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_v" >&5
22588$as_echo "$ac_cv_prog_f77_v" >&6; }
22589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 libraries of $F77" >&5
22590$as_echo_n "checking for Fortran 77 libraries of $F77... " >&6; }
22591if test "${ac_cv_f77_libs+set}" = set; then :
22592  $as_echo_n "(cached) " >&6
22593else
22594  if test "x$FLIBS" != "x"; then
22595  ac_cv_f77_libs="$FLIBS" # Let the user override the test.
22596else
22597
22598cat > conftest.$ac_ext <<_ACEOF
22599      program main
22600
22601      end
22602_ACEOF
22603
22604# Compile and link our simple test program by passing a flag (argument
22605# 1 to this macro) to the Fortran compiler in order to get
22606# "verbose" output that we can then parse for the Fortran linker
22607# flags.
22608ac_save_FFLAGS=$FFLAGS
22609FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
22610eval "set x $ac_link"
22611shift
22612$as_echo "$as_me:${as_lineno-$LINENO}: $*" >&5
22613# gfortran 4.3 outputs lines setting COLLECT_GCC_OPTIONS, COMPILER_PATH,
22614# LIBRARY_PATH; skip all such settings.
22615ac_f77_v_output=`eval $ac_link 5>&1 2>&1 |
22616  grep -v 'Driving:' | grep -v "^[_$as_cr_Letters][_$as_cr_alnum]*="`
22617$as_echo "$ac_f77_v_output" >&5
22618FFLAGS=$ac_save_FFLAGS
22619
22620rm -rf conftest*
22621
22622# On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
22623# /foo, /bar, and /baz are search directories for the Fortran linker.
22624# Here, we change these into -L/foo -L/bar -L/baz (and put it first):
22625ac_f77_v_output="`echo $ac_f77_v_output |
22626	grep 'LPATH is:' |
22627	sed 's|.*LPATH is\(: *[^ ]*\).*|\1|;s|: */| -L/|g'` $ac_f77_v_output"
22628
22629# FIXME: we keep getting bitten by quoted arguments; a more general fix
22630#        that detects unbalanced quotes in FLIBS should be implemented
22631#        and (ugh) tested at some point.
22632case $ac_f77_v_output in
22633  # If we are using xlf then replace all the commas with spaces.
22634  *xlfentry*)
22635    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
22636
22637  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
22638  # $LIBS confuse us, and the libraries appear later in the output anyway).
22639  *mGLOB_options_string*)
22640    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"-mGLOB[^"]*"/ /g'` ;;
22641
22642  # Portland Group compiler has singly- or doubly-quoted -cmdline argument
22643  # Singly-quoted arguments were reported for versions 5.2-4 and 6.0-4.
22644  # Doubly-quoted arguments were reported for "PGF90/x86 Linux/x86 5.0-2".
22645  *-cmdline\ * | *-ignore\ * | *-def\ *)
22646    ac_f77_v_output=`echo $ac_f77_v_output | sed "\
22647	s/-cmdline  *'[^']*'/ /g; s/-cmdline  *\"[^\"]*\"/ /g
22648	s/-ignore  *'[^']*'/ /g; s/-ignore  *\"[^\"]*\"/ /g
22649	s/-def  *'[^']*'/ /g; s/-def  *\"[^\"]*\"/ /g"` ;;
22650
22651  # If we are using Cray Fortran then delete quotes.
22652  *cft90*)
22653    ac_f77_v_output=`echo $ac_f77_v_output | sed 's/"//g'` ;;
22654esac
22655
22656
22657
22658ac_cv_f77_libs=
22659
22660# Save positional arguments (if any)
22661ac_save_positional="$@"
22662
22663set X $ac_f77_v_output
22664while test $# != 1; do
22665  shift
22666  ac_arg=$1
22667  case $ac_arg in
22668	[\\/]*.a | ?:[\\/]*.a)
22669	    ac_exists=false
22670  for ac_i in $ac_cv_f77_libs; do
22671    if test x"$ac_arg" = x"$ac_i"; then
22672      ac_exists=true
22673      break
22674    fi
22675  done
22676
22677  if test x"$ac_exists" = xtrue; then :
22678
22679else
22680  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
22681fi
22682	  ;;
22683	-bI:*)
22684	    ac_exists=false
22685  for ac_i in $ac_cv_f77_libs; do
22686    if test x"$ac_arg" = x"$ac_i"; then
22687      ac_exists=true
22688      break
22689    fi
22690  done
22691
22692  if test x"$ac_exists" = xtrue; then :
22693
22694else
22695  if test "$ac_compiler_gnu" = yes; then
22696  for ac_link_opt in $ac_arg; do
22697    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
22698  done
22699else
22700  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
22701fi
22702fi
22703	  ;;
22704	  # Ignore these flags.
22705	-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little \
22706	  |-LANG:=* | -LIST:* | -LNO:*)
22707	  ;;
22708	-lkernel32)
22709	  test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
22710	  ;;
22711	-[LRuYz])
22712	  # These flags, when seen by themselves, take an argument.
22713	  # We remove the space between option and argument and re-iterate
22714	  # unless we find an empty arg or a new option (starting with -)
22715	  case $2 in
22716	     "" | -*);;
22717	     *)
22718		ac_arg="$ac_arg$2"
22719		shift; shift
22720		set X $ac_arg "$@"
22721		;;
22722	  esac
22723	  ;;
22724	-YP,*)
22725	  for ac_j in `$as_echo "$ac_arg" | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
22726	      ac_exists=false
22727  for ac_i in $ac_cv_f77_libs; do
22728    if test x"$ac_j" = x"$ac_i"; then
22729      ac_exists=true
22730      break
22731    fi
22732  done
22733
22734  if test x"$ac_exists" = xtrue; then :
22735
22736else
22737  ac_arg="$ac_arg $ac_j"
22738			       ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
22739fi
22740	  done
22741	  ;;
22742	-[lLR]*)
22743	    ac_exists=false
22744  for ac_i in $ac_cv_f77_libs; do
22745    if test x"$ac_arg" = x"$ac_i"; then
22746      ac_exists=true
22747      break
22748    fi
22749  done
22750
22751  if test x"$ac_exists" = xtrue; then :
22752
22753else
22754  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
22755fi
22756	  ;;
22757	-zallextract*| -zdefaultextract)
22758	  ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
22759	  ;;
22760	  # Ignore everything else.
22761  esac
22762done
22763# restore positional arguments
22764set X $ac_save_positional; shift
22765
22766# We only consider "LD_RUN_PATH" on Solaris systems.  If this is seen,
22767# then we insist that the "run path" must be an absolute path (i.e. it
22768# must begin with a "/").
22769case `(uname -sr) 2>/dev/null` in
22770   "SunOS 5"*)
22771      ac_ld_run_path=`$as_echo "$ac_f77_v_output" |
22772			sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
22773      test "x$ac_ld_run_path" != x &&
22774	if test "$ac_compiler_gnu" = yes; then
22775  for ac_link_opt in $ac_ld_run_path; do
22776    ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
22777  done
22778else
22779  ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
22780fi
22781      ;;
22782esac
22783fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
22784
22785fi
22786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_libs" >&5
22787$as_echo "$ac_cv_f77_libs" >&6; }
22788FLIBS="$ac_cv_f77_libs"
22789
22790
22791ac_ext=c
22792ac_cpp='$CPP $CPPFLAGS'
22793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22795ac_compiler_gnu=$ac_cv_c_compiler_gnu
22796
22797ac_ext=f
22798ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22799ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22800ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22801
22802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dummy main to link with Fortran 77 libraries" >&5
22803$as_echo_n "checking for dummy main to link with Fortran 77 libraries... " >&6; }
22804if test "${ac_cv_f77_dummy_main+set}" = set; then :
22805  $as_echo_n "(cached) " >&6
22806else
22807  ac_f77_dm_save_LIBS=$LIBS
22808 LIBS="$LIBS $FLIBS"
22809 ac_fortran_dm_var=F77_DUMMY_MAIN
22810 ac_ext=c
22811ac_cpp='$CPP $CPPFLAGS'
22812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22814ac_compiler_gnu=$ac_cv_c_compiler_gnu
22815
22816 # First, try linking without a dummy main:
22817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22818/* end confdefs.h.  */
22819
22820#ifdef F77_DUMMY_MAIN
22821
22822#  ifdef __cplusplus
22823     extern "C"
22824#  endif
22825   int F77_DUMMY_MAIN() { return 1; }
22826
22827#endif
22828#ifdef FC_DUMMY_MAIN
22829#ifndef FC_DUMMY_MAIN_EQ_F77
22830#  ifdef __cplusplus
22831     extern "C"
22832#  endif
22833   int FC_DUMMY_MAIN() { return 1; }
22834#endif
22835#endif
22836int
22837main ()
22838{
22839
22840  ;
22841  return 0;
22842}
22843_ACEOF
22844if ac_fn_c_try_link "$LINENO"; then :
22845  ac_cv_fortran_dummy_main=none
22846else
22847  ac_cv_fortran_dummy_main=unknown
22848fi
22849rm -f core conftest.err conftest.$ac_objext \
22850    conftest$ac_exeext conftest.$ac_ext
22851
22852 if test $ac_cv_fortran_dummy_main = unknown; then
22853   for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
22854     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22855/* end confdefs.h.  */
22856#define $ac_fortran_dm_var $ac_func
22857#ifdef F77_DUMMY_MAIN
22858
22859#  ifdef __cplusplus
22860     extern "C"
22861#  endif
22862   int F77_DUMMY_MAIN() { return 1; }
22863
22864#endif
22865#ifdef FC_DUMMY_MAIN
22866#ifndef FC_DUMMY_MAIN_EQ_F77
22867#  ifdef __cplusplus
22868     extern "C"
22869#  endif
22870   int FC_DUMMY_MAIN() { return 1; }
22871#endif
22872#endif
22873int
22874main ()
22875{
22876
22877  ;
22878  return 0;
22879}
22880_ACEOF
22881if ac_fn_c_try_link "$LINENO"; then :
22882  ac_cv_fortran_dummy_main=$ac_func; break
22883fi
22884rm -f core conftest.err conftest.$ac_objext \
22885    conftest$ac_exeext conftest.$ac_ext
22886   done
22887 fi
22888 ac_ext=f
22889ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22890ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22891ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22892 ac_cv_f77_dummy_main=$ac_cv_fortran_dummy_main
22893 rm -rf conftest*
22894 LIBS=$ac_f77_dm_save_LIBS
22895
22896fi
22897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_dummy_main" >&5
22898$as_echo "$ac_cv_f77_dummy_main" >&6; }
22899F77_DUMMY_MAIN=$ac_cv_f77_dummy_main
22900if test "$F77_DUMMY_MAIN" != unknown; then :
22901  if test $F77_DUMMY_MAIN != none; then
22902
22903cat >>confdefs.h <<_ACEOF
22904#define F77_DUMMY_MAIN $F77_DUMMY_MAIN
22905_ACEOF
22906
22907  if test "x$ac_cv_fc_dummy_main" = "x$ac_cv_f77_dummy_main"; then
22908
22909$as_echo "#define FC_DUMMY_MAIN_EQ_F77 1" >>confdefs.h
22910
22911  fi
22912fi
22913else
22914  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22916as_fn_error "linking to Fortran libraries from C fails
22917See \`config.log' for more details." "$LINENO" 5; }
22918fi
22919
22920ac_ext=c
22921ac_cpp='$CPP $CPPFLAGS'
22922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22924ac_compiler_gnu=$ac_cv_c_compiler_gnu
22925
22926ac_ext=f
22927ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
22928ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22929ac_compiler_gnu=$ac_cv_f77_compiler_gnu
22930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 name-mangling scheme" >&5
22931$as_echo_n "checking for Fortran 77 name-mangling scheme... " >&6; }
22932if test "${ac_cv_f77_mangling+set}" = set; then :
22933  $as_echo_n "(cached) " >&6
22934else
22935  cat > conftest.$ac_ext <<_ACEOF
22936      subroutine foobar()
22937      return
22938      end
22939      subroutine foo_bar()
22940      return
22941      end
22942_ACEOF
22943if ac_fn_f77_try_compile "$LINENO"; then :
22944  mv conftest.$ac_objext cfortran_test.$ac_objext
22945
22946  ac_save_LIBS=$LIBS
22947  LIBS="cfortran_test.$ac_objext $LIBS $FLIBS"
22948
22949  ac_ext=c
22950ac_cpp='$CPP $CPPFLAGS'
22951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22953ac_compiler_gnu=$ac_cv_c_compiler_gnu
22954  ac_success=no
22955  for ac_foobar in foobar FOOBAR; do
22956    for ac_underscore in "" "_"; do
22957      ac_func="$ac_foobar$ac_underscore"
22958      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22959/* end confdefs.h.  */
22960
22961/* Override any GCC internal prototype to avoid an error.
22962   Use char because int might match the return type of a GCC
22963   builtin and then its argument prototype would still apply.  */
22964#ifdef __cplusplus
22965extern "C"
22966#endif
22967char $ac_func ();
22968#ifdef F77_DUMMY_MAIN
22969
22970#  ifdef __cplusplus
22971     extern "C"
22972#  endif
22973   int F77_DUMMY_MAIN() { return 1; }
22974
22975#endif
22976#ifdef FC_DUMMY_MAIN
22977#ifndef FC_DUMMY_MAIN_EQ_F77
22978#  ifdef __cplusplus
22979     extern "C"
22980#  endif
22981   int FC_DUMMY_MAIN() { return 1; }
22982#endif
22983#endif
22984int
22985main ()
22986{
22987return $ac_func ();
22988  ;
22989  return 0;
22990}
22991_ACEOF
22992if ac_fn_c_try_link "$LINENO"; then :
22993  ac_success=yes; break 2
22994fi
22995rm -f core conftest.err conftest.$ac_objext \
22996    conftest$ac_exeext conftest.$ac_ext
22997    done
22998  done
22999  ac_ext=f
23000ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23001ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23002ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23003
23004  if test "$ac_success" = "yes"; then
23005     case $ac_foobar in
23006	foobar)
23007	   ac_case=lower
23008	   ac_foo_bar=foo_bar
23009	   ;;
23010	FOOBAR)
23011	   ac_case=upper
23012	   ac_foo_bar=FOO_BAR
23013	   ;;
23014     esac
23015
23016     ac_ext=c
23017ac_cpp='$CPP $CPPFLAGS'
23018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23020ac_compiler_gnu=$ac_cv_c_compiler_gnu
23021     ac_success_extra=no
23022     for ac_extra in "" "_"; do
23023	ac_func="$ac_foo_bar$ac_underscore$ac_extra"
23024	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23025/* end confdefs.h.  */
23026
23027/* Override any GCC internal prototype to avoid an error.
23028   Use char because int might match the return type of a GCC
23029   builtin and then its argument prototype would still apply.  */
23030#ifdef __cplusplus
23031extern "C"
23032#endif
23033char $ac_func ();
23034#ifdef F77_DUMMY_MAIN
23035
23036#  ifdef __cplusplus
23037     extern "C"
23038#  endif
23039   int F77_DUMMY_MAIN() { return 1; }
23040
23041#endif
23042#ifdef FC_DUMMY_MAIN
23043#ifndef FC_DUMMY_MAIN_EQ_F77
23044#  ifdef __cplusplus
23045     extern "C"
23046#  endif
23047   int FC_DUMMY_MAIN() { return 1; }
23048#endif
23049#endif
23050int
23051main ()
23052{
23053return $ac_func ();
23054  ;
23055  return 0;
23056}
23057_ACEOF
23058if ac_fn_c_try_link "$LINENO"; then :
23059  ac_success_extra=yes; break
23060fi
23061rm -f core conftest.err conftest.$ac_objext \
23062    conftest$ac_exeext conftest.$ac_ext
23063     done
23064     ac_ext=f
23065ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23066ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23067ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23068
23069     if test "$ac_success_extra" = "yes"; then
23070	ac_cv_f77_mangling="$ac_case case"
23071	if test -z "$ac_underscore"; then
23072	   ac_cv_f77_mangling="$ac_cv_f77_mangling, no underscore"
23073	else
23074	   ac_cv_f77_mangling="$ac_cv_f77_mangling, underscore"
23075	fi
23076	if test -z "$ac_extra"; then
23077	   ac_cv_f77_mangling="$ac_cv_f77_mangling, no extra underscore"
23078	else
23079	   ac_cv_f77_mangling="$ac_cv_f77_mangling, extra underscore"
23080	fi
23081      else
23082	ac_cv_f77_mangling="unknown"
23083      fi
23084  else
23085     ac_cv_f77_mangling="unknown"
23086  fi
23087
23088  LIBS=$ac_save_LIBS
23089  rm -rf conftest*
23090  rm -f cfortran_test*
23091else
23092  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23094as_fn_error "cannot compile a simple Fortran program
23095See \`config.log' for more details." "$LINENO" 5; }
23096fi
23097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098
23099fi
23100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_mangling" >&5
23101$as_echo "$ac_cv_f77_mangling" >&6; }
23102
23103ac_ext=c
23104ac_cpp='$CPP $CPPFLAGS'
23105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23107ac_compiler_gnu=$ac_cv_c_compiler_gnu
23108
23109
23110
23111
23112acx_blas_ok=no
23113
23114
23115# Check whether --with-blas was given.
23116if test "${with_blas+set}" = set; then :
23117  withval=$with_blas; case $withval in
23118	  yes | "") ;;
23119	  no) acx_blas_ok=disable ;;
23120	  -* | */* | *.a | *.so | *.so.* | *.o) BLAS_LIBS="$withval" ;;
23121	  *) BLAS_LIBS="-l$withval" ;;
23122	esac
23123fi
23124
23125
23126# Get fortran linker names of BLAS functions to check for.
23127ac_ext=f
23128ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23129ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23130ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23131case $ac_cv_f77_mangling in
23132  upper*) ac_val="SGEMM" ;;
23133  lower*) ac_val="sgemm" ;;
23134  *)      ac_val="unknown" ;;
23135esac
23136case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
23137
23138sgemm="$ac_val"
23139
23140ac_ext=c
23141ac_cpp='$CPP $CPPFLAGS'
23142ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23143ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23144ac_compiler_gnu=$ac_cv_c_compiler_gnu
23145
23146ac_ext=f
23147ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
23148ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23149ac_compiler_gnu=$ac_cv_f77_compiler_gnu
23150case $ac_cv_f77_mangling in
23151  upper*) ac_val="DGEMM" ;;
23152  lower*) ac_val="dgemm" ;;
23153  *)      ac_val="unknown" ;;
23154esac
23155case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
23156
23157dgemm="$ac_val"
23158
23159ac_ext=c
23160ac_cpp='$CPP $CPPFLAGS'
23161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23163ac_compiler_gnu=$ac_cv_c_compiler_gnu
23164
23165
23166acx_blas_save_LIBS="$LIBS"
23167LIBS="$LIBS $FLIBS"
23168
23169# First, check BLAS_LIBS environment variable
23170if test $acx_blas_ok = no; then
23171if test "x$BLAS_LIBS" != x; then
23172	save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
23173	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in $BLAS_LIBS" >&5
23174$as_echo_n "checking for $sgemm in $BLAS_LIBS... " >&6; }
23175	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23176/* end confdefs.h.  */
23177
23178/* Override any GCC internal prototype to avoid an error.
23179   Use char because int might match the return type of a GCC
23180   builtin and then its argument prototype would still apply.  */
23181#ifdef __cplusplus
23182extern "C"
23183#endif
23184char $sgemm ();
23185#ifdef F77_DUMMY_MAIN
23186
23187#  ifdef __cplusplus
23188     extern "C"
23189#  endif
23190   int F77_DUMMY_MAIN() { return 1; }
23191
23192#endif
23193#ifdef FC_DUMMY_MAIN
23194#ifndef FC_DUMMY_MAIN_EQ_F77
23195#  ifdef __cplusplus
23196     extern "C"
23197#  endif
23198   int FC_DUMMY_MAIN() { return 1; }
23199#endif
23200#endif
23201int
23202main ()
23203{
23204return $sgemm ();
23205  ;
23206  return 0;
23207}
23208_ACEOF
23209if ac_fn_c_try_link "$LINENO"; then :
23210  acx_blas_ok=yes
23211else
23212  BLAS_LIBS=""
23213fi
23214rm -f core conftest.err conftest.$ac_objext \
23215    conftest$ac_exeext conftest.$ac_ext
23216	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_blas_ok" >&5
23217$as_echo "$acx_blas_ok" >&6; }
23218	LIBS="$save_LIBS"
23219fi
23220fi
23221
23222# BLAS linked to by default?  (happens on some supercomputers)
23223if test $acx_blas_ok = no; then
23224	save_LIBS="$LIBS"; LIBS="$LIBS"
23225	as_ac_var=`$as_echo "ac_cv_func_$sgemm" | $as_tr_sh`
23226ac_fn_c_check_func "$LINENO" "$sgemm" "$as_ac_var"
23227eval as_val=\$$as_ac_var
23228   if test "x$as_val" = x""yes; then :
23229  acx_blas_ok=yes
23230fi
23231
23232	LIBS="$save_LIBS"
23233fi
23234
23235# BLAS in ATLAS library? (http://math-atlas.sourceforge.net/)
23236
23237
23238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if ATLAS should be used" >&5
23239$as_echo_n "checking if ATLAS should be used... " >&6; }
23240# Check whether --enable-atlas was given.
23241if test "${enable_atlas+set}" = set; then :
23242  enableval=$enable_atlas; enable_atlas="$enableval"
23243else
23244  enable_atlas="yes"
23245fi
23246
23247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_atlas" >&5
23248$as_echo "$enable_atlas" >&6; }
23249
23250atlas_bad=no
23251
23252if test "$enable_atlas" != "no"; then
23253
23254
23255# Check whether --with-atlas-libs was given.
23256if test "${with_atlas_libs+set}" = set; then :
23257  withval=$with_atlas_libs; atlas_search_lib_dirs="$withval"
23258else
23259  atlas_search_lib_dirs="/usr/lib \
23260		       /usr/local/lib \
23261		       /usr/lib/atlas/lib \
23262		       /usr/local/atlas/lib \
23263		       /lib"
23264fi
23265
23266
23267
23268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ATLAS library" >&5
23269$as_echo_n "checking for ATLAS library... " >&6; }
23270atlas_search_lib_names="libatlas.so \
23271                        libatlas.so.* \
23272                        libatlas.a"
23273
23274for d in $atlas_search_lib_dirs; do
23275
23276found_file=""
23277ls=""$d""
23278ld="$atlas_search_lib_names"
23279lf=""
23280for li in $ld; do
23281    lf2=`find "$ls" -maxdepth 1 -name "$li" 2>/dev/null`
23282    lf="$lf $lf2"
23283done
23284for li in $lf; do
23285    if test -r "$li"; then
23286	found_file=`basename "$li"`
23287	break
23288    fi
23289done
23290
23291  if test -n "$found_file" ; then
23292     case "$found_file" in
23293       *a)
23294         atlas_lib="$d/$found_file"
23295         ;;
23296       *)
23297         atlas_libraries="-L$d"
23298         atlas_lib="-l`echo $found_file | sed 's/lib//;s/\.so*//;s/\.a//'`"
23299         ;;
23300       esac
23301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d ($found_file)" >&5
23302$as_echo "$d ($found_file)" >&6; }
23303     break
23304  fi
23305done
23306if test -z "atlas_lib"; then
23307  atlas_bad=yes
23308  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not found" >&5
23309$as_echo "$as_me: WARNING: not found" >&2;}
23310fi
23311
23312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for f77blas library" >&5
23313$as_echo_n "checking for f77blas library... " >&6; }
23314atlas_search_lib_names="libf77blas.so \
23315                        libf77blas.so.* \
23316                        libf77blas.a"
23317
23318
23319found_file=""
23320ls=""$d""
23321ld="$atlas_search_lib_names"
23322lf=""
23323for li in $ld; do
23324    lf2=`find "$ls" -maxdepth 1 -name "$li" 2>/dev/null`
23325    lf="$lf $lf2"
23326done
23327for li in $lf; do
23328    if test -r "$li"; then
23329	found_file=`basename "$li"`
23330	break
23331    fi
23332done
23333
23334if test -n "$found_file" ; then
23335   case "$found_file" in
23336     *a)
23337       atlas_lib="$d/$found_file $atlas_lib "
23338       ;;
23339     *)
23340       atlas_lib="-l`echo $found_file | sed 's/lib//;s/\.so*//;s/\.a//'` $atlas_lib"
23341       ;;
23342   esac
23343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d ($found_file)" >&5
23344$as_echo "$d ($found_file)" >&6; }
23345else
23346  atlas_bad=yes
23347  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not found" >&5
23348$as_echo "$as_me: WARNING: not found" >&2;}
23349fi
23350
23351
23352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cblas library" >&5
23353$as_echo_n "checking for cblas library... " >&6; }
23354atlas_search_lib_names="libcblas.so \
23355                        libcblas.so.* \
23356                        libcblas.a"
23357
23358
23359found_file=""
23360ls=""$d""
23361ld="$atlas_search_lib_names"
23362lf=""
23363for li in $ld; do
23364    lf2=`find "$ls" -maxdepth 1 -name "$li" 2>/dev/null`
23365    lf="$lf $lf2"
23366done
23367for li in $lf; do
23368    if test -r "$li"; then
23369	found_file=`basename "$li"`
23370	break
23371    fi
23372done
23373
23374if test -n "$found_file" ; then
23375   case "$found_file" in
23376     *a)
23377       atlas_lib="$d/$found_file $atlas_lib"
23378       ;;
23379     *)
23380       atlas_lib="-l`echo $found_file | sed 's/lib//;s/\.so*//;s/\.a//'` $atlas_lib"
23381       ;;
23382   esac
23383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $d ($found_file)" >&5
23384$as_echo "$d ($found_file)" >&6; }
23385else
23386  atlas_bad=yes
23387  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not found" >&5
23388$as_echo "$as_me: WARNING: not found" >&2;}
23389fi
23390
23391
23392
23393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ATLAS is usable" >&5
23394$as_echo_n "checking whether ATLAS is usable... " >&6; }
23395if test -z "$atlas_lib" -o "$atlas_bad" = "yes"; then
23396    atlas_available="no"
23397    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
23398$as_echo "$as_me: WARNING: no" >&2;}
23399else
23400    atlas_available="yes"
23401    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23402$as_echo "yes" >&6; }
23403fi
23404
23405
23406# end of "if enable-atlas"
23407fi
23408
23409
23410
23411if test "$atlas_available" = "yes"; then
23412  BLAS_LIBS="$atlas_libraries $atlas_lib"
23413  acx_blas_ok=yes
23414fi
23415
23416# BLAS in PhiPACK libraries? (requires generic BLAS lib, too)
23417if test "$acx_blas_ok" = "no"; then
23418	as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
23419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
23420$as_echo_n "checking for $sgemm in -lblas... " >&6; }
23421if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23422  $as_echo_n "(cached) " >&6
23423else
23424  ac_check_lib_save_LIBS=$LIBS
23425LIBS="-lblas  $LIBS"
23426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23427/* end confdefs.h.  */
23428
23429/* Override any GCC internal prototype to avoid an error.
23430   Use char because int might match the return type of a GCC
23431   builtin and then its argument prototype would still apply.  */
23432#ifdef __cplusplus
23433extern "C"
23434#endif
23435char $sgemm ();
23436#ifdef F77_DUMMY_MAIN
23437
23438#  ifdef __cplusplus
23439     extern "C"
23440#  endif
23441   int F77_DUMMY_MAIN() { return 1; }
23442
23443#endif
23444#ifdef FC_DUMMY_MAIN
23445#ifndef FC_DUMMY_MAIN_EQ_F77
23446#  ifdef __cplusplus
23447     extern "C"
23448#  endif
23449   int FC_DUMMY_MAIN() { return 1; }
23450#endif
23451#endif
23452int
23453main ()
23454{
23455return $sgemm ();
23456  ;
23457  return 0;
23458}
23459_ACEOF
23460if ac_fn_c_try_link "$LINENO"; then :
23461  eval "$as_ac_Lib=yes"
23462else
23463  eval "$as_ac_Lib=no"
23464fi
23465rm -f core conftest.err conftest.$ac_objext \
23466    conftest$ac_exeext conftest.$ac_ext
23467LIBS=$ac_check_lib_save_LIBS
23468fi
23469eval ac_res=\$$as_ac_Lib
23470	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23471$as_echo "$ac_res" >&6; }
23472eval as_val=\$$as_ac_Lib
23473   if test "x$as_val" = x""yes; then :
23474  as_ac_Lib=`$as_echo "ac_cv_lib_dgemm_$dgemm" | $as_tr_sh`
23475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dgemm in -ldgemm" >&5
23476$as_echo_n "checking for $dgemm in -ldgemm... " >&6; }
23477if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23478  $as_echo_n "(cached) " >&6
23479else
23480  ac_check_lib_save_LIBS=$LIBS
23481LIBS="-ldgemm -lblas $LIBS"
23482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23483/* end confdefs.h.  */
23484
23485/* Override any GCC internal prototype to avoid an error.
23486   Use char because int might match the return type of a GCC
23487   builtin and then its argument prototype would still apply.  */
23488#ifdef __cplusplus
23489extern "C"
23490#endif
23491char $dgemm ();
23492#ifdef F77_DUMMY_MAIN
23493
23494#  ifdef __cplusplus
23495     extern "C"
23496#  endif
23497   int F77_DUMMY_MAIN() { return 1; }
23498
23499#endif
23500#ifdef FC_DUMMY_MAIN
23501#ifndef FC_DUMMY_MAIN_EQ_F77
23502#  ifdef __cplusplus
23503     extern "C"
23504#  endif
23505   int FC_DUMMY_MAIN() { return 1; }
23506#endif
23507#endif
23508int
23509main ()
23510{
23511return $dgemm ();
23512  ;
23513  return 0;
23514}
23515_ACEOF
23516if ac_fn_c_try_link "$LINENO"; then :
23517  eval "$as_ac_Lib=yes"
23518else
23519  eval "$as_ac_Lib=no"
23520fi
23521rm -f core conftest.err conftest.$ac_objext \
23522    conftest$ac_exeext conftest.$ac_ext
23523LIBS=$ac_check_lib_save_LIBS
23524fi
23525eval ac_res=\$$as_ac_Lib
23526	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23527$as_echo "$ac_res" >&6; }
23528eval as_val=\$$as_ac_Lib
23529   if test "x$as_val" = x""yes; then :
23530  as_ac_Lib=`$as_echo "ac_cv_lib_sgemm_$sgemm" | $as_tr_sh`
23531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsgemm" >&5
23532$as_echo_n "checking for $sgemm in -lsgemm... " >&6; }
23533if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23534  $as_echo_n "(cached) " >&6
23535else
23536  ac_check_lib_save_LIBS=$LIBS
23537LIBS="-lsgemm -lblas $LIBS"
23538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23539/* end confdefs.h.  */
23540
23541/* Override any GCC internal prototype to avoid an error.
23542   Use char because int might match the return type of a GCC
23543   builtin and then its argument prototype would still apply.  */
23544#ifdef __cplusplus
23545extern "C"
23546#endif
23547char $sgemm ();
23548#ifdef F77_DUMMY_MAIN
23549
23550#  ifdef __cplusplus
23551     extern "C"
23552#  endif
23553   int F77_DUMMY_MAIN() { return 1; }
23554
23555#endif
23556#ifdef FC_DUMMY_MAIN
23557#ifndef FC_DUMMY_MAIN_EQ_F77
23558#  ifdef __cplusplus
23559     extern "C"
23560#  endif
23561   int FC_DUMMY_MAIN() { return 1; }
23562#endif
23563#endif
23564int
23565main ()
23566{
23567return $sgemm ();
23568  ;
23569  return 0;
23570}
23571_ACEOF
23572if ac_fn_c_try_link "$LINENO"; then :
23573  eval "$as_ac_Lib=yes"
23574else
23575  eval "$as_ac_Lib=no"
23576fi
23577rm -f core conftest.err conftest.$ac_objext \
23578    conftest$ac_exeext conftest.$ac_ext
23579LIBS=$ac_check_lib_save_LIBS
23580fi
23581eval ac_res=\$$as_ac_Lib
23582	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23583$as_echo "$ac_res" >&6; }
23584eval as_val=\$$as_ac_Lib
23585   if test "x$as_val" = x""yes; then :
23586  acx_blas_ok=yes; BLAS_LIBS="-lsgemm -ldgemm -lblas"
23587fi
23588
23589fi
23590
23591fi
23592
23593fi
23594
23595# BLAS in Alpha CXML library?
23596if test "$acx_blas_ok" = "no"; then
23597	as_ac_Lib=`$as_echo "ac_cv_lib_cxml_$sgemm" | $as_tr_sh`
23598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcxml" >&5
23599$as_echo_n "checking for $sgemm in -lcxml... " >&6; }
23600if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23601  $as_echo_n "(cached) " >&6
23602else
23603  ac_check_lib_save_LIBS=$LIBS
23604LIBS="-lcxml  $LIBS"
23605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23606/* end confdefs.h.  */
23607
23608/* Override any GCC internal prototype to avoid an error.
23609   Use char because int might match the return type of a GCC
23610   builtin and then its argument prototype would still apply.  */
23611#ifdef __cplusplus
23612extern "C"
23613#endif
23614char $sgemm ();
23615#ifdef F77_DUMMY_MAIN
23616
23617#  ifdef __cplusplus
23618     extern "C"
23619#  endif
23620   int F77_DUMMY_MAIN() { return 1; }
23621
23622#endif
23623#ifdef FC_DUMMY_MAIN
23624#ifndef FC_DUMMY_MAIN_EQ_F77
23625#  ifdef __cplusplus
23626     extern "C"
23627#  endif
23628   int FC_DUMMY_MAIN() { return 1; }
23629#endif
23630#endif
23631int
23632main ()
23633{
23634return $sgemm ();
23635  ;
23636  return 0;
23637}
23638_ACEOF
23639if ac_fn_c_try_link "$LINENO"; then :
23640  eval "$as_ac_Lib=yes"
23641else
23642  eval "$as_ac_Lib=no"
23643fi
23644rm -f core conftest.err conftest.$ac_objext \
23645    conftest$ac_exeext conftest.$ac_ext
23646LIBS=$ac_check_lib_save_LIBS
23647fi
23648eval ac_res=\$$as_ac_Lib
23649	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23650$as_echo "$ac_res" >&6; }
23651eval as_val=\$$as_ac_Lib
23652   if test "x$as_val" = x""yes; then :
23653  acx_blas_ok=yes;BLAS_LIBS="-lcxml"
23654fi
23655
23656fi
23657
23658# BLAS in Alpha DXML library? (now called CXML, see above)
23659if test "$acx_blas_ok" = "no"; then
23660	as_ac_Lib=`$as_echo "ac_cv_lib_dxml_$sgemm" | $as_tr_sh`
23661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -ldxml" >&5
23662$as_echo_n "checking for $sgemm in -ldxml... " >&6; }
23663if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23664  $as_echo_n "(cached) " >&6
23665else
23666  ac_check_lib_save_LIBS=$LIBS
23667LIBS="-ldxml  $LIBS"
23668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23669/* end confdefs.h.  */
23670
23671/* Override any GCC internal prototype to avoid an error.
23672   Use char because int might match the return type of a GCC
23673   builtin and then its argument prototype would still apply.  */
23674#ifdef __cplusplus
23675extern "C"
23676#endif
23677char $sgemm ();
23678#ifdef F77_DUMMY_MAIN
23679
23680#  ifdef __cplusplus
23681     extern "C"
23682#  endif
23683   int F77_DUMMY_MAIN() { return 1; }
23684
23685#endif
23686#ifdef FC_DUMMY_MAIN
23687#ifndef FC_DUMMY_MAIN_EQ_F77
23688#  ifdef __cplusplus
23689     extern "C"
23690#  endif
23691   int FC_DUMMY_MAIN() { return 1; }
23692#endif
23693#endif
23694int
23695main ()
23696{
23697return $sgemm ();
23698  ;
23699  return 0;
23700}
23701_ACEOF
23702if ac_fn_c_try_link "$LINENO"; then :
23703  eval "$as_ac_Lib=yes"
23704else
23705  eval "$as_ac_Lib=no"
23706fi
23707rm -f core conftest.err conftest.$ac_objext \
23708    conftest$ac_exeext conftest.$ac_ext
23709LIBS=$ac_check_lib_save_LIBS
23710fi
23711eval ac_res=\$$as_ac_Lib
23712	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23713$as_echo "$ac_res" >&6; }
23714eval as_val=\$$as_ac_Lib
23715   if test "x$as_val" = x""yes; then :
23716  acx_blas_ok=yes;BLAS_LIBS="-ldxml"
23717fi
23718
23719fi
23720
23721# BLAS in Sun Performance library?
23722if test "$acx_blas_ok" = "no"; then
23723	if test "x$GCC" != xyes; then # only works with Sun CC
23724		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosp in -lsunmath" >&5
23725$as_echo_n "checking for acosp in -lsunmath... " >&6; }
23726if test "${ac_cv_lib_sunmath_acosp+set}" = set; then :
23727  $as_echo_n "(cached) " >&6
23728else
23729  ac_check_lib_save_LIBS=$LIBS
23730LIBS="-lsunmath  $LIBS"
23731cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23732/* end confdefs.h.  */
23733
23734/* Override any GCC internal prototype to avoid an error.
23735   Use char because int might match the return type of a GCC
23736   builtin and then its argument prototype would still apply.  */
23737#ifdef __cplusplus
23738extern "C"
23739#endif
23740char acosp ();
23741#ifdef F77_DUMMY_MAIN
23742
23743#  ifdef __cplusplus
23744     extern "C"
23745#  endif
23746   int F77_DUMMY_MAIN() { return 1; }
23747
23748#endif
23749#ifdef FC_DUMMY_MAIN
23750#ifndef FC_DUMMY_MAIN_EQ_F77
23751#  ifdef __cplusplus
23752     extern "C"
23753#  endif
23754   int FC_DUMMY_MAIN() { return 1; }
23755#endif
23756#endif
23757int
23758main ()
23759{
23760return acosp ();
23761  ;
23762  return 0;
23763}
23764_ACEOF
23765if ac_fn_c_try_link "$LINENO"; then :
23766  ac_cv_lib_sunmath_acosp=yes
23767else
23768  ac_cv_lib_sunmath_acosp=no
23769fi
23770rm -f core conftest.err conftest.$ac_objext \
23771    conftest$ac_exeext conftest.$ac_ext
23772LIBS=$ac_check_lib_save_LIBS
23773fi
23774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sunmath_acosp" >&5
23775$as_echo "$ac_cv_lib_sunmath_acosp" >&6; }
23776if test "x$ac_cv_lib_sunmath_acosp" = x""yes; then :
23777  as_ac_Lib=`$as_echo "ac_cv_lib_sunperf_$sgemm" | $as_tr_sh`
23778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lsunperf" >&5
23779$as_echo_n "checking for $sgemm in -lsunperf... " >&6; }
23780if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23781  $as_echo_n "(cached) " >&6
23782else
23783  ac_check_lib_save_LIBS=$LIBS
23784LIBS="-lsunperf -lsunmath $LIBS"
23785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786/* end confdefs.h.  */
23787
23788/* Override any GCC internal prototype to avoid an error.
23789   Use char because int might match the return type of a GCC
23790   builtin and then its argument prototype would still apply.  */
23791#ifdef __cplusplus
23792extern "C"
23793#endif
23794char $sgemm ();
23795#ifdef F77_DUMMY_MAIN
23796
23797#  ifdef __cplusplus
23798     extern "C"
23799#  endif
23800   int F77_DUMMY_MAIN() { return 1; }
23801
23802#endif
23803#ifdef FC_DUMMY_MAIN
23804#ifndef FC_DUMMY_MAIN_EQ_F77
23805#  ifdef __cplusplus
23806     extern "C"
23807#  endif
23808   int FC_DUMMY_MAIN() { return 1; }
23809#endif
23810#endif
23811int
23812main ()
23813{
23814return $sgemm ();
23815  ;
23816  return 0;
23817}
23818_ACEOF
23819if ac_fn_c_try_link "$LINENO"; then :
23820  eval "$as_ac_Lib=yes"
23821else
23822  eval "$as_ac_Lib=no"
23823fi
23824rm -f core conftest.err conftest.$ac_objext \
23825    conftest$ac_exeext conftest.$ac_ext
23826LIBS=$ac_check_lib_save_LIBS
23827fi
23828eval ac_res=\$$as_ac_Lib
23829	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23830$as_echo "$ac_res" >&6; }
23831eval as_val=\$$as_ac_Lib
23832   if test "x$as_val" = x""yes; then :
23833  BLAS_LIBS="-xlic_lib=sunperf -lsunmath"
23834                                 acx_blas_ok=yes
23835fi
23836
23837fi
23838
23839	fi
23840fi
23841
23842# BLAS in SCSL library?  (SGI/Cray Scientific Library)
23843if test "$acx_blas_ok" = "no"; then
23844	as_ac_Lib=`$as_echo "ac_cv_lib_scs_$sgemm" | $as_tr_sh`
23845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lscs" >&5
23846$as_echo_n "checking for $sgemm in -lscs... " >&6; }
23847if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23848  $as_echo_n "(cached) " >&6
23849else
23850  ac_check_lib_save_LIBS=$LIBS
23851LIBS="-lscs  $LIBS"
23852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23853/* end confdefs.h.  */
23854
23855/* Override any GCC internal prototype to avoid an error.
23856   Use char because int might match the return type of a GCC
23857   builtin and then its argument prototype would still apply.  */
23858#ifdef __cplusplus
23859extern "C"
23860#endif
23861char $sgemm ();
23862#ifdef F77_DUMMY_MAIN
23863
23864#  ifdef __cplusplus
23865     extern "C"
23866#  endif
23867   int F77_DUMMY_MAIN() { return 1; }
23868
23869#endif
23870#ifdef FC_DUMMY_MAIN
23871#ifndef FC_DUMMY_MAIN_EQ_F77
23872#  ifdef __cplusplus
23873     extern "C"
23874#  endif
23875   int FC_DUMMY_MAIN() { return 1; }
23876#endif
23877#endif
23878int
23879main ()
23880{
23881return $sgemm ();
23882  ;
23883  return 0;
23884}
23885_ACEOF
23886if ac_fn_c_try_link "$LINENO"; then :
23887  eval "$as_ac_Lib=yes"
23888else
23889  eval "$as_ac_Lib=no"
23890fi
23891rm -f core conftest.err conftest.$ac_objext \
23892    conftest$ac_exeext conftest.$ac_ext
23893LIBS=$ac_check_lib_save_LIBS
23894fi
23895eval ac_res=\$$as_ac_Lib
23896	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23897$as_echo "$ac_res" >&6; }
23898eval as_val=\$$as_ac_Lib
23899   if test "x$as_val" = x""yes; then :
23900  acx_blas_ok=yes; BLAS_LIBS="-lscs"
23901fi
23902
23903fi
23904
23905# BLAS in SGIMATH library?
23906if test "$acx_blas_ok" = "no"; then
23907	as_ac_Lib=`$as_echo "ac_cv_lib_complib.sgimath_$sgemm" | $as_tr_sh`
23908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lcomplib.sgimath" >&5
23909$as_echo_n "checking for $sgemm in -lcomplib.sgimath... " >&6; }
23910if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23911  $as_echo_n "(cached) " >&6
23912else
23913  ac_check_lib_save_LIBS=$LIBS
23914LIBS="-lcomplib.sgimath  $LIBS"
23915cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23916/* end confdefs.h.  */
23917
23918/* Override any GCC internal prototype to avoid an error.
23919   Use char because int might match the return type of a GCC
23920   builtin and then its argument prototype would still apply.  */
23921#ifdef __cplusplus
23922extern "C"
23923#endif
23924char $sgemm ();
23925#ifdef F77_DUMMY_MAIN
23926
23927#  ifdef __cplusplus
23928     extern "C"
23929#  endif
23930   int F77_DUMMY_MAIN() { return 1; }
23931
23932#endif
23933#ifdef FC_DUMMY_MAIN
23934#ifndef FC_DUMMY_MAIN_EQ_F77
23935#  ifdef __cplusplus
23936     extern "C"
23937#  endif
23938   int FC_DUMMY_MAIN() { return 1; }
23939#endif
23940#endif
23941int
23942main ()
23943{
23944return $sgemm ();
23945  ;
23946  return 0;
23947}
23948_ACEOF
23949if ac_fn_c_try_link "$LINENO"; then :
23950  eval "$as_ac_Lib=yes"
23951else
23952  eval "$as_ac_Lib=no"
23953fi
23954rm -f core conftest.err conftest.$ac_objext \
23955    conftest$ac_exeext conftest.$ac_ext
23956LIBS=$ac_check_lib_save_LIBS
23957fi
23958eval ac_res=\$$as_ac_Lib
23959	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23960$as_echo "$ac_res" >&6; }
23961eval as_val=\$$as_ac_Lib
23962   if test "x$as_val" = x""yes; then :
23963  acx_blas_ok=yes; BLAS_LIBS="-lcomplib.sgimath"
23964fi
23965
23966fi
23967
23968# BLAS in IBM ESSL library? (requires generic BLAS lib, too)
23969if test "$acx_blas_ok" = "no"; then
23970	as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
23971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
23972$as_echo_n "checking for $sgemm in -lblas... " >&6; }
23973if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
23974  $as_echo_n "(cached) " >&6
23975else
23976  ac_check_lib_save_LIBS=$LIBS
23977LIBS="-lblas  $LIBS"
23978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23979/* end confdefs.h.  */
23980
23981/* Override any GCC internal prototype to avoid an error.
23982   Use char because int might match the return type of a GCC
23983   builtin and then its argument prototype would still apply.  */
23984#ifdef __cplusplus
23985extern "C"
23986#endif
23987char $sgemm ();
23988#ifdef F77_DUMMY_MAIN
23989
23990#  ifdef __cplusplus
23991     extern "C"
23992#  endif
23993   int F77_DUMMY_MAIN() { return 1; }
23994
23995#endif
23996#ifdef FC_DUMMY_MAIN
23997#ifndef FC_DUMMY_MAIN_EQ_F77
23998#  ifdef __cplusplus
23999     extern "C"
24000#  endif
24001   int FC_DUMMY_MAIN() { return 1; }
24002#endif
24003#endif
24004int
24005main ()
24006{
24007return $sgemm ();
24008  ;
24009  return 0;
24010}
24011_ACEOF
24012if ac_fn_c_try_link "$LINENO"; then :
24013  eval "$as_ac_Lib=yes"
24014else
24015  eval "$as_ac_Lib=no"
24016fi
24017rm -f core conftest.err conftest.$ac_objext \
24018    conftest$ac_exeext conftest.$ac_ext
24019LIBS=$ac_check_lib_save_LIBS
24020fi
24021eval ac_res=\$$as_ac_Lib
24022	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24023$as_echo "$ac_res" >&6; }
24024eval as_val=\$$as_ac_Lib
24025   if test "x$as_val" = x""yes; then :
24026  as_ac_Lib=`$as_echo "ac_cv_lib_essl_$sgemm" | $as_tr_sh`
24027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lessl" >&5
24028$as_echo_n "checking for $sgemm in -lessl... " >&6; }
24029if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
24030  $as_echo_n "(cached) " >&6
24031else
24032  ac_check_lib_save_LIBS=$LIBS
24033LIBS="-lessl -lblas $FLIBS $LIBS"
24034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24035/* end confdefs.h.  */
24036
24037/* Override any GCC internal prototype to avoid an error.
24038   Use char because int might match the return type of a GCC
24039   builtin and then its argument prototype would still apply.  */
24040#ifdef __cplusplus
24041extern "C"
24042#endif
24043char $sgemm ();
24044#ifdef F77_DUMMY_MAIN
24045
24046#  ifdef __cplusplus
24047     extern "C"
24048#  endif
24049   int F77_DUMMY_MAIN() { return 1; }
24050
24051#endif
24052#ifdef FC_DUMMY_MAIN
24053#ifndef FC_DUMMY_MAIN_EQ_F77
24054#  ifdef __cplusplus
24055     extern "C"
24056#  endif
24057   int FC_DUMMY_MAIN() { return 1; }
24058#endif
24059#endif
24060int
24061main ()
24062{
24063return $sgemm ();
24064  ;
24065  return 0;
24066}
24067_ACEOF
24068if ac_fn_c_try_link "$LINENO"; then :
24069  eval "$as_ac_Lib=yes"
24070else
24071  eval "$as_ac_Lib=no"
24072fi
24073rm -f core conftest.err conftest.$ac_objext \
24074    conftest$ac_exeext conftest.$ac_ext
24075LIBS=$ac_check_lib_save_LIBS
24076fi
24077eval ac_res=\$$as_ac_Lib
24078	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24079$as_echo "$ac_res" >&6; }
24080eval as_val=\$$as_ac_Lib
24081   if test "x$as_val" = x""yes; then :
24082  acx_blas_ok=yes; BLAS_LIBS="-lessl -lblas"
24083fi
24084
24085fi
24086
24087fi
24088
24089# Generic BLAS library?
24090if test "$acx_blas_ok" = "no"; then
24091	as_ac_Lib=`$as_echo "ac_cv_lib_blas_$sgemm" | $as_tr_sh`
24092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas" >&5
24093$as_echo_n "checking for $sgemm in -lblas... " >&6; }
24094if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
24095  $as_echo_n "(cached) " >&6
24096else
24097  ac_check_lib_save_LIBS=$LIBS
24098LIBS="-lblas  $LIBS"
24099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24100/* end confdefs.h.  */
24101
24102/* Override any GCC internal prototype to avoid an error.
24103   Use char because int might match the return type of a GCC
24104   builtin and then its argument prototype would still apply.  */
24105#ifdef __cplusplus
24106extern "C"
24107#endif
24108char $sgemm ();
24109#ifdef F77_DUMMY_MAIN
24110
24111#  ifdef __cplusplus
24112     extern "C"
24113#  endif
24114   int F77_DUMMY_MAIN() { return 1; }
24115
24116#endif
24117#ifdef FC_DUMMY_MAIN
24118#ifndef FC_DUMMY_MAIN_EQ_F77
24119#  ifdef __cplusplus
24120     extern "C"
24121#  endif
24122   int FC_DUMMY_MAIN() { return 1; }
24123#endif
24124#endif
24125int
24126main ()
24127{
24128return $sgemm ();
24129  ;
24130  return 0;
24131}
24132_ACEOF
24133if ac_fn_c_try_link "$LINENO"; then :
24134  eval "$as_ac_Lib=yes"
24135else
24136  eval "$as_ac_Lib=no"
24137fi
24138rm -f core conftest.err conftest.$ac_objext \
24139    conftest$ac_exeext conftest.$ac_ext
24140LIBS=$ac_check_lib_save_LIBS
24141fi
24142eval ac_res=\$$as_ac_Lib
24143	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24144$as_echo "$ac_res" >&6; }
24145eval as_val=\$$as_ac_Lib
24146   if test "x$as_val" = x""yes; then :
24147  acx_blas_ok=yes; BLAS_LIBS="-lblas"
24148fi
24149
24150fi
24151
24152# Generic BLAS DLL?
24153if test "$acx_blas_ok" = "no"; then
24154	#save_LIBS="$LIBS"; LIBS="$LIBS -L/c/windows" # doesnt help though
24155	as_ac_Lib=`$as_echo "ac_cv_lib_blas32_$sgemm" | $as_tr_sh`
24156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $sgemm in -lblas32" >&5
24157$as_echo_n "checking for $sgemm in -lblas32... " >&6; }
24158if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
24159  $as_echo_n "(cached) " >&6
24160else
24161  ac_check_lib_save_LIBS=$LIBS
24162LIBS="-lblas32  $LIBS"
24163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24164/* end confdefs.h.  */
24165
24166/* Override any GCC internal prototype to avoid an error.
24167   Use char because int might match the return type of a GCC
24168   builtin and then its argument prototype would still apply.  */
24169#ifdef __cplusplus
24170extern "C"
24171#endif
24172char $sgemm ();
24173#ifdef F77_DUMMY_MAIN
24174
24175#  ifdef __cplusplus
24176     extern "C"
24177#  endif
24178   int F77_DUMMY_MAIN() { return 1; }
24179
24180#endif
24181#ifdef FC_DUMMY_MAIN
24182#ifndef FC_DUMMY_MAIN_EQ_F77
24183#  ifdef __cplusplus
24184     extern "C"
24185#  endif
24186   int FC_DUMMY_MAIN() { return 1; }
24187#endif
24188#endif
24189int
24190main ()
24191{
24192return $sgemm ();
24193  ;
24194  return 0;
24195}
24196_ACEOF
24197if ac_fn_c_try_link "$LINENO"; then :
24198  eval "$as_ac_Lib=yes"
24199else
24200  eval "$as_ac_Lib=no"
24201fi
24202rm -f core conftest.err conftest.$ac_objext \
24203    conftest$ac_exeext conftest.$ac_ext
24204LIBS=$ac_check_lib_save_LIBS
24205fi
24206eval ac_res=\$$as_ac_Lib
24207	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24208$as_echo "$ac_res" >&6; }
24209eval as_val=\$$as_ac_Lib
24210   if test "x$as_val" = x""yes; then :
24211  acx_blas_ok=yes; BLAS_LIBS="-lblas32"
24212fi
24213
24214fi
24215
24216
24217
24218LIBS="$acx_blas_save_LIBS"
24219
24220# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
24221if test x"$acx_blas_ok" = xyes; then
24222
24223$as_echo "#define HAVE_BLAS 1" >>confdefs.h
24224
24225        :
24226else
24227        acx_blas_ok=no
24228
24229fi
24230
24231
24232
24233acx_lapack_ok=no
24234
24235
24236# Check whether --with-lapack was given.
24237if test "${with_lapack+set}" = set; then :
24238  withval=$with_lapack; case $withval in
24239          yes | "") ;;
24240          no) acx_lapack_ok=disable ;;
24241          -* | */* | *.a | *.so | *.so.* | *.o) LAPACK_LIBS="$withval" ;;
24242          *) LAPACK_LIBS="-l$withval" ;;
24243	esac
24244fi
24245
24246
24247# Get fortran linker name of LAPACK function to check for.
24248ac_ext=f
24249ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
24250ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24251ac_compiler_gnu=$ac_cv_f77_compiler_gnu
24252case $ac_cv_f77_mangling in
24253  upper*) ac_val="CHEEV" ;;
24254  lower*) ac_val="cheev" ;;
24255  *)      ac_val="unknown" ;;
24256esac
24257case $ac_cv_f77_mangling in *," underscore"*) ac_val="$ac_val"_ ;; esac
24258
24259cheev="$ac_val"
24260
24261ac_ext=c
24262ac_cpp='$CPP $CPPFLAGS'
24263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24265ac_compiler_gnu=$ac_cv_c_compiler_gnu
24266
24267
24268# We cannot use LAPACK if BLAS is not found
24269if test "x$acx_blas_ok" != xyes; then
24270        acx_lapack_ok=noblas
24271fi
24272
24273# First, check LAPACK_LIBS environment variable
24274if test "x$LAPACK_LIBS" != x; then
24275        save_LIBS="$LIBS"; LIBS="$LAPACK_LIBS $BLAS_LIBS $LIBS $FLIBS"
24276        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in $LAPACK_LIBS" >&5
24277$as_echo_n "checking for $cheev in $LAPACK_LIBS... " >&6; }
24278        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24279/* end confdefs.h.  */
24280
24281/* Override any GCC internal prototype to avoid an error.
24282   Use char because int might match the return type of a GCC
24283   builtin and then its argument prototype would still apply.  */
24284#ifdef __cplusplus
24285extern "C"
24286#endif
24287char $cheev ();
24288#ifdef F77_DUMMY_MAIN
24289
24290#  ifdef __cplusplus
24291     extern "C"
24292#  endif
24293   int F77_DUMMY_MAIN() { return 1; }
24294
24295#endif
24296#ifdef FC_DUMMY_MAIN
24297#ifndef FC_DUMMY_MAIN_EQ_F77
24298#  ifdef __cplusplus
24299     extern "C"
24300#  endif
24301   int FC_DUMMY_MAIN() { return 1; }
24302#endif
24303#endif
24304int
24305main ()
24306{
24307return $cheev ();
24308  ;
24309  return 0;
24310}
24311_ACEOF
24312if ac_fn_c_try_link "$LINENO"; then :
24313  acx_lapack_ok=yes
24314else
24315  LAPACK_LIBS=""
24316fi
24317rm -f core conftest.err conftest.$ac_objext \
24318    conftest$ac_exeext conftest.$ac_ext
24319        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_lapack_ok" >&5
24320$as_echo "$acx_lapack_ok" >&6; }
24321        LIBS="$save_LIBS"
24322        if test acx_lapack_ok = no; then
24323                LAPACK_LIBS=""
24324        fi
24325fi
24326
24327# LAPACK linked to by default?  (is sometimes included in BLAS lib)
24328if test $acx_lapack_ok = no; then
24329        save_LIBS="$LIBS"; LIBS="$LIBS $BLAS_LIBS $FLIBS"
24330        as_ac_var=`$as_echo "ac_cv_func_$cheev" | $as_tr_sh`
24331ac_fn_c_check_func "$LINENO" "$cheev" "$as_ac_var"
24332eval as_val=\$$as_ac_var
24333   if test "x$as_val" = x""yes; then :
24334  acx_lapack_ok=yes
24335fi
24336
24337        LIBS="$save_LIBS"
24338fi
24339
24340# Generic LAPACK library?
24341for lapack in lapack lapack32 lapack_rs6k; do
24342        if test $acx_lapack_ok = no; then
24343                save_LIBS="$LIBS"; LIBS="$BLAS_LIBS $LIBS"
24344                as_ac_Lib=`$as_echo "ac_cv_lib_$lapack''_$cheev" | $as_tr_sh`
24345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cheev in -l$lapack" >&5
24346$as_echo_n "checking for $cheev in -l$lapack... " >&6; }
24347if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
24348  $as_echo_n "(cached) " >&6
24349else
24350  ac_check_lib_save_LIBS=$LIBS
24351LIBS="-l$lapack $FLIBS $LIBS"
24352cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24353/* end confdefs.h.  */
24354
24355/* Override any GCC internal prototype to avoid an error.
24356   Use char because int might match the return type of a GCC
24357   builtin and then its argument prototype would still apply.  */
24358#ifdef __cplusplus
24359extern "C"
24360#endif
24361char $cheev ();
24362#ifdef F77_DUMMY_MAIN
24363
24364#  ifdef __cplusplus
24365     extern "C"
24366#  endif
24367   int F77_DUMMY_MAIN() { return 1; }
24368
24369#endif
24370#ifdef FC_DUMMY_MAIN
24371#ifndef FC_DUMMY_MAIN_EQ_F77
24372#  ifdef __cplusplus
24373     extern "C"
24374#  endif
24375   int FC_DUMMY_MAIN() { return 1; }
24376#endif
24377#endif
24378int
24379main ()
24380{
24381return $cheev ();
24382  ;
24383  return 0;
24384}
24385_ACEOF
24386if ac_fn_c_try_link "$LINENO"; then :
24387  eval "$as_ac_Lib=yes"
24388else
24389  eval "$as_ac_Lib=no"
24390fi
24391rm -f core conftest.err conftest.$ac_objext \
24392    conftest$ac_exeext conftest.$ac_ext
24393LIBS=$ac_check_lib_save_LIBS
24394fi
24395eval ac_res=\$$as_ac_Lib
24396	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24397$as_echo "$ac_res" >&6; }
24398eval as_val=\$$as_ac_Lib
24399   if test "x$as_val" = x""yes; then :
24400  acx_lapack_ok=yes; LAPACK_LIBS="-l$lapack"
24401fi
24402
24403                LIBS="$save_LIBS"
24404        fi
24405done
24406
24407
24408if test $acx_lapack_ok = no; then
24409  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any lapack library" >&5
24410$as_echo_n "checking for any lapack library... " >&6; }
24411
24412# Check whether --with-lapack-libs was given.
24413if test "${with_lapack_libs+set}" = set; then :
24414  withval=$with_lapack_libs; lapack_search_lib_dirs="$withval"
24415else
24416  lapack_search_lib_dirs="/usr/lib \
24417                         /usr/local/lib \
24418                         /usr/lib/atlas/lib \
24419                         /usr/local/atlas/lib \
24420                         /lib"
24421fi
24422
24423
24424
24425  lapack_search_lib_names="liblapack.so \
24426                           liblapack.so.* \
24427                           liblapack.a"
24428
24429    for d in $lapack_search_lib_dirs; do
24430
24431found_file=""
24432ls=""$d""
24433ld="$lapack_search_lib_names"
24434lf=""
24435for li in $ld; do
24436    lf2=`find "$ls" -maxdepth 1 -name "$li" 2>/dev/null`
24437    lf="$lf $lf2"
24438done
24439for li in $lf; do
24440    if test -r "$li"; then
24441	found_file=`basename "$li"`
24442	break
24443    fi
24444done
24445
24446    if test -n "$found_file" ; then
24447       acx_lapack_ok=yes
24448       case "$found_file" in
24449         *a)
24450           acx_lapack_ok=yes;
24451           LAPACK_LIBS="$d/$found_file"
24452           ;;
24453         *)
24454           lapack_libraries="-L$d"
24455           LAPACK_LIBS="-l`echo $found_file | sed 's/lib//;s/\.so*//;s/\.a//'`"
24456           ;;
24457         esac
24458       break
24459    fi
24460  done
24461  if test "$acx_lapack_ok" = "yes"; then
24462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LAPACK_LIBS" >&5
24463$as_echo "$LAPACK_LIBS" >&6; }
24464  else
24465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none found" >&5
24466$as_echo "none found" >&6; }
24467  fi
24468fi
24469
24470
24471
24472
24473# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
24474if test x"$acx_lapack_ok" = xyes; then
24475
24476
24477$as_echo "#define HAVE_LAPACKPP 1" >>confdefs.h
24478
24479  # This defines LAPACK_LIBS, BLAS_LIBS, and FLIBS
24480
24481        :
24482else
24483        acx_lapack_ok=no
24484
24485    as_fn_error "Blas/Lapack was not found.
24486*** This means Lapack++ and matrix support cannot be compiled.
24487*** This makes this library unusable. Please get blas and lapack
24488*** installed. If you do have these installed, use the options
24489*** --with-blas=<libname> or --with-lapack=<libname> and/or set
24490*** the env variable LDFLAGS to include the appropriate linker
24491*** flags." "$LINENO" 5
24492
24493fi
24494
24495
24496FLIBS=`echo ${FLIBS} | ${SED} 's/-lgfortranbegin//' `
24497
24498### -------------------------------------------------------------
24499### Check the return value behaviour of zdotc()
24500### -------------------------------------------------------------
24501save_LIBS=$LIBS
24502LIBS="$LIBS $BLAS_LIBS $FLIBS"
24503
24504# Try the return value on stack (will segfault if wrong zdotc prototype)
24505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zdotc() returns result on stack" >&5
24506$as_echo_n "checking whether zdotc() returns result on stack... " >&6; }
24507if test "$cross_compiling" = yes; then :
24508  res_with_stack=unknown
24509else
24510  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24511/* end confdefs.h.  */
24512
24513 #include <math.h>
24514 #define F77NAME(x) x##_
24515 typedef struct { double r, i; } doublecomplex;
24516 doublecomplex F77NAME(zdotc)(
24517		   const int *n,
24518		   const doublecomplex *cx,
24519		   const int *incx, const doublecomplex *cy,
24520		   const int *incy);
24521
24522#ifdef F77_DUMMY_MAIN
24523
24524#  ifdef __cplusplus
24525     extern "C"
24526#  endif
24527   int F77_DUMMY_MAIN() { return 1; }
24528
24529#endif
24530#ifdef FC_DUMMY_MAIN
24531#ifndef FC_DUMMY_MAIN_EQ_F77
24532#  ifdef __cplusplus
24533     extern "C"
24534#  endif
24535   int FC_DUMMY_MAIN() { return 1; }
24536#endif
24537#endif
24538int
24539main ()
24540{
24541
24542    doublecomplex cx[1], cy[1], tmp;
24543    int n = 1, incx = 1, incy = 1;
24544    cx[0].r = 2; cx[0].i = 0;
24545    cy[0].r = 3; cy[0].i = 0;
24546    tmp = F77NAME(zdotc)(&n, cx, &incx, cy, &incy);
24547    /* printf("Result: (%f,%f)\n", tmp.r, tmp.i); */
24548    return (fabs(tmp.r - 6.0) < 0.1) ? 0 : 1;
24549
24550  ;
24551  return 0;
24552}
24553_ACEOF
24554if ac_fn_c_try_run "$LINENO"; then :
24555  res_with_stack=yes
24556else
24557  res_with_stack=no
24558fi
24559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24560  conftest.$ac_objext conftest.beam conftest.$ac_ext
24561fi
24562
24563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_with_stack" >&5
24564$as_echo "$res_with_stack" >&6; }
24565
24566# And now the return value as first argument (will segfault if wrong
24567# zdotc prototype)
24568if test x$res_with_stack = "xno" ; then
24569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether zdotc() returns result as first argument" >&5
24570$as_echo_n "checking whether zdotc() returns result as first argument... " >&6; }
24571if test "$cross_compiling" = yes; then :
24572  res_no_stack=unknown
24573else
24574  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24575/* end confdefs.h.  */
24576
24577 #include <math.h>
24578 #define F77NAME(x) x##_
24579 typedef struct { double r, i; } doublecomplex;
24580 void F77NAME(zdotc)(doublecomplex *c,
24581		   const int *n,
24582		   const doublecomplex *cx,
24583		   const int *incx, const doublecomplex *cy,
24584		   const int *incy);
24585
24586#ifdef F77_DUMMY_MAIN
24587
24588#  ifdef __cplusplus
24589     extern "C"
24590#  endif
24591   int F77_DUMMY_MAIN() { return 1; }
24592
24593#endif
24594#ifdef FC_DUMMY_MAIN
24595#ifndef FC_DUMMY_MAIN_EQ_F77
24596#  ifdef __cplusplus
24597     extern "C"
24598#  endif
24599   int FC_DUMMY_MAIN() { return 1; }
24600#endif
24601#endif
24602int
24603main ()
24604{
24605
24606    doublecomplex cx[1], cy[1], tmp;
24607    int n = 1, incx = 1, incy = 1;
24608    cx[0].r = 2; cx[0].i = 0;
24609    cy[0].r = 3; cy[0].i = 0;
24610    F77NAME(zdotc)(&tmp, &n, cx, &incx, cy, &incy);
24611    /* printf("Result: (%f,%f)", tmp.r, tmp.i); */
24612    return (fabs(tmp.r - 6.0) < 0.1) ? 0 : 1;
24613
24614  ;
24615  return 0;
24616}
24617_ACEOF
24618if ac_fn_c_try_run "$LINENO"; then :
24619  res_no_stack=yes
24620else
24621  res_no_stack=no
24622fi
24623rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24624  conftest.$ac_objext conftest.beam conftest.$ac_ext
24625fi
24626
24627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $res_no_stack" >&5
24628$as_echo "$res_no_stack" >&6; }
24629else
24630  res_no_stack=no
24631fi
24632
24633if test x$res_with_stack = "xyes" -a x$res_no_stack = "xno"; then
24634  HAVE_ZDOTC_WITH_RV=1
24635else
24636  if test x$res_with_stack = "xno" -a x$res_no_stack = "xyes"; then
24637    HAVE_ZDOTC_WITH_RV=0
24638  else
24639    case "$target" in
24640      *-mingw32*)
24641	HAVE_ZDOTC_WITH_RV=1
24642	;;
24643      *)
24644        if test x$res_with_stack = "xyes" -a x$res_no_stack = "xyes"; then
24645	  as_fn_error "Both checks ran successful - we cannot determine the actual return value." "$LINENO" 5
24646          HAVE_ZDOTC_WITH_RV=0
24647        else
24648	  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Return value behaviour of ZDOTC is unknown. Guessing as first argument." >&5
24649$as_echo "$as_me: WARNING: Return value behaviour of ZDOTC is unknown. Guessing as first argument." >&2;}
24650          HAVE_ZDOTC_WITH_RV=1
24651	fi
24652	;;
24653    esac
24654  fi
24655fi
24656
24657
24658LIBS=$save_LIBS
24659
24660### -------------------------------------------------------------
24661### system specifics
24662### -------------------------------------------------------------
24663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system type" >&5
24664$as_echo_n "checking for system type... " >&6; }
24665LAPACK_OS_WIN32=0
24666LAPACKPP_INCLUDES="-I${pkgincludedir} -DLA_COMPLEX_SUPPORT"
24667LAPACKPP_INTERNAL_LIBFILE="\${top_builddir}/src/liblapackpp.la"
24668LAPACKPP_LIBS="-llapackpp"
24669LAPACKPP_LDFLAGS="-L${libdir}"
24670case "$target" in
24671    *-mingw32*)
24672      LAPACKPP_LDFLAGS="-L${WIN_PATH_WINDOWS_MINGW} -L${bindir}"
24673      ARCH="WIN32"
24674      LAPACK_OS_WIN32=1
24675
24676$as_echo "#define OS_WIN32 1" >>confdefs.h
24677
24678
24679cat >>confdefs.h <<_ACEOF
24680#define BUILDING_LAPACK_DLL 1
24681_ACEOF
24682
24683      ;;
24684    *-linux*)
24685      ARCH="Linux"
24686      ;;
24687    *)
24688      ARCH="OS_${target_os}"
24689      # Workaround for bogus system names
24690      ARCH=` echo ${ARCH} | ${SED} 's/[^A-Za-z0-9_]//g' `
24691      ;;
24692esac
24693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH" >&5
24694$as_echo "$ARCH" >&6; }
24695
24696
24697 if test "$ARCH" = "WIN32"; then
24698  IS_WINDOWS_TRUE=
24699  IS_WINDOWS_FALSE='#'
24700else
24701  IS_WINDOWS_TRUE='#'
24702  IS_WINDOWS_FALSE=
24703fi
24704
24705
24706# These are the INCLUDES and LDFLAGS as an application should use them.
24707
24708
24709
24710
24711
24712# These are the variables for the internal tests.
24713# For whatever reason, the variable top_srcdir needs to be quoted here.
24714more_defs="-DLA_COMPLEX_SUPPORT -D${ARCH}"
24715all_libraries="-L\${top_builddir}/src ${LAPACKPP_LIBS}"
24716all_includes="-I\${top_srcdir}/include ${more_defs}"
24717
24718
24719
24720
24721### -------------------------------------------------------------
24722### Configuration flags
24723### -------------------------------------------------------------
24724
24725
24726
24727if test -z " "; then
24728  default_debug_arg="-g"; else
24729  default_debug_arg=" ";
24730fi
24731
24732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler arguments" >&5
24733$as_echo_n "checking for compiler arguments... " >&6; }
24734
24735# Check whether --enable-debug was given.
24736if test "${enable_debug+set}" = set; then :
24737  enableval=$enable_debug; case "${enableval}" in
24738     yes)   CXXFLAGS="${CXXFLAGS} -g"
24739	    # Remove -O2
24740	    CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's/-O2//'`
24741	    CFLAGS="${CFLAGS} -g"
24742	    LDFLAGS="${LDFLAGS} -g"
24743
24744$as_echo "#define DEBUG 1" >>confdefs.h
24745 ;;
24746     no) ;;
24747     *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
24748   esac
24749
24750else
24751
24752	# Default value if the argument was not given
24753	CXXFLAGS="${CXXFLAGS} ${default_debug_arg}"
24754	CFLAGS="${CFLAGS} ${default_debug_arg}"
24755	LDFLAGS="${LDFLAGS} ${default_debug_arg}"
24756
24757fi
24758
24759
24760if test ${GCC}x = yesx; then
24761
24762    # Check whether --enable-warnings was given.
24763if test "${enable_warnings+set}" = set; then :
24764  enableval=$enable_warnings; case "${enableval}" in
24765       yes) CXXFLAGS="${CXXFLAGS} -Wall -pedantic -ansi"
24766	    CFLAGS="${CFLAGS} -Wall -pedantic" ;;
24767       all) CXXFLAGS="${CXXFLAGS} -Wall -pedantic -ansi"
24768	    CFLAGS="${CFLAGS} -Wall -pedantic -ansi" ;;
24769       no) ;;
24770       *) as_fn_error "bad value ${enableval} for --enable-warnings" "$LINENO" 5 ;;
24771     esac
24772
24773else
24774
24775     # Default value if the argument was not given
24776     CXXFLAGS="${CXXFLAGS} -Wall"
24777     CFLAGS="${CFLAGS} -Wall"
24778
24779fi
24780
24781
24782        GCC_VERSION=`${CC} -dumpversion`
24783  if test `echo ${GCC_VERSION} | cut -d. -f1` -ge 3; then
24784     # This is gcc >= 3.x.x
24785     if test `echo ${GCC_VERSION} | cut -d. -f2` -ge 4; then
24786	# This is gcc >= 3.4.x
24787	CFLAGS="${CFLAGS} -Wdeclaration-after-statement"
24788     fi
24789  fi
24790
24791    # Check whether --enable-error-on-warning was given.
24792if test "${enable_error_on_warning+set}" = set; then :
24793  enableval=$enable_error_on_warning; case "${enableval}" in
24794       yes) CXXFLAGS="${CXXFLAGS} -Werror"
24795	    CFLAGS="${CFLAGS} -Werror" ;;
24796       no) ;;
24797       *) as_fn_error "bad value ${enableval} for --enable-error-on-warning" "$LINENO" 5 ;;
24798     esac
24799
24800else
24801
24802     # Default value if the argument was not given
24803     CXXFLAGS="${CXXFLAGS}"
24804     CFLAGS="${CFLAGS}"
24805
24806fi
24807
24808fi
24809
24810# Beautify the CXXFLAGS: remove extra spaces, remove double -g
24811CXXFLAGS=`echo "${CXXFLAGS}" | sed -e 's/   */ /g' | sed -e 's/-g -g/-g/'`
24812
24813# Print the result
24814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXFLAGS" >&5
24815$as_echo "$CXXFLAGS" >&6; }
24816
24817
24818
24819
24820# Check whether --with-msvc-dll was given.
24821if test "${with_msvc_dll+set}" = set; then :
24822  withval=$with_msvc_dll;
24823fi
24824
24825if test "x$with_msvc_dll" = "xyes"; then
24826  ISCC_WITH_DLL=""
24827  ISCC_WITHOUT_DLL=";"
24828else
24829  ISCC_WITH_DLL=";"
24830  ISCC_WITHOUT_DLL=""
24831fi
24832
24833
24834
24835
24836### -------------------------------------------------------------
24837
24838ac_config_files="$ac_config_files Makefile lapackpp.iss mainpage.doxygen lapackpp.spec lapackpp.pc src/ressource.rc blaspp/Makefile blaspp/src/Makefile blaspp/testing/Makefile contrib/Makefile include/Makefile include/laversion.h macros/Makefile matrix/Makefile matrix/src/Makefile matrix/testing/Makefile src/Makefile testing/Makefile"
24839
24840cat >confcache <<\_ACEOF
24841# This file is a shell script that caches the results of configure
24842# tests run on this system so they can be shared between configure
24843# scripts and configure runs, see configure's option --config-cache.
24844# It is not useful on other systems.  If it contains results you don't
24845# want to keep, you may remove or edit it.
24846#
24847# config.status only pays attention to the cache file if you give it
24848# the --recheck option to rerun configure.
24849#
24850# `ac_cv_env_foo' variables (set or unset) will be overridden when
24851# loading this file, other *unset* `ac_cv_foo' will be assigned the
24852# following values.
24853
24854_ACEOF
24855
24856# The following way of writing the cache mishandles newlines in values,
24857# but we know of no workaround that is simple, portable, and efficient.
24858# So, we kill variables containing newlines.
24859# Ultrix sh set writes to stderr and can't be redirected directly,
24860# and sets the high bit in the cache file unless we assign to the vars.
24861(
24862  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24863    eval ac_val=\$$ac_var
24864    case $ac_val in #(
24865    *${as_nl}*)
24866      case $ac_var in #(
24867      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24868$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24869      esac
24870      case $ac_var in #(
24871      _ | IFS | as_nl) ;; #(
24872      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24873      *) { eval $ac_var=; unset $ac_var;} ;;
24874      esac ;;
24875    esac
24876  done
24877
24878  (set) 2>&1 |
24879    case $as_nl`(ac_space=' '; set) 2>&1` in #(
24880    *${as_nl}ac_space=\ *)
24881      # `set' does not quote correctly, so add quotes: double-quote
24882      # substitution turns \\\\ into \\, and sed turns \\ into \.
24883      sed -n \
24884	"s/'/'\\\\''/g;
24885	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24886      ;; #(
24887    *)
24888      # `set' quotes correctly as required by POSIX, so do not add quotes.
24889      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24890      ;;
24891    esac |
24892    sort
24893) |
24894  sed '
24895     /^ac_cv_env_/b end
24896     t clear
24897     :clear
24898     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24899     t end
24900     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24901     :end' >>confcache
24902if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24903  if test -w "$cache_file"; then
24904    test "x$cache_file" != "x/dev/null" &&
24905      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24906$as_echo "$as_me: updating cache $cache_file" >&6;}
24907    cat confcache >$cache_file
24908  else
24909    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24910$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24911  fi
24912fi
24913rm -f confcache
24914
24915test "x$prefix" = xNONE && prefix=$ac_default_prefix
24916# Let make expand exec_prefix.
24917test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24918
24919DEFS=-DHAVE_CONFIG_H
24920
24921ac_libobjs=
24922ac_ltlibobjs=
24923for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24924  # 1. Remove the extension, and $U if already installed.
24925  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24926  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24927  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24928  #    will be set to the directory where LIBOBJS objects are built.
24929  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24930  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24931done
24932LIBOBJS=$ac_libobjs
24933
24934LTLIBOBJS=$ac_ltlibobjs
24935
24936
24937 if test -n "$EXEEXT"; then
24938  am__EXEEXT_TRUE=
24939  am__EXEEXT_FALSE='#'
24940else
24941  am__EXEEXT_TRUE='#'
24942  am__EXEEXT_FALSE=
24943fi
24944
24945if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24946  as_fn_error "conditional \"AMDEP\" was never defined.
24947Usually this means the macro was only invoked conditionally." "$LINENO" 5
24948fi
24949if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24950  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24951Usually this means the macro was only invoked conditionally." "$LINENO" 5
24952fi
24953if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24954  as_fn_error "conditional \"am__fastdepCC\" was never defined.
24955Usually this means the macro was only invoked conditionally." "$LINENO" 5
24956fi
24957if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24958  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24959Usually this means the macro was only invoked conditionally." "$LINENO" 5
24960fi
24961if test -z "${IS_WINDOWS_TRUE}" && test -z "${IS_WINDOWS_FALSE}"; then
24962  as_fn_error "conditional \"IS_WINDOWS\" was never defined.
24963Usually this means the macro was only invoked conditionally." "$LINENO" 5
24964fi
24965
24966: ${CONFIG_STATUS=./config.status}
24967ac_write_fail=0
24968ac_clean_files_save=$ac_clean_files
24969ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24970{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24971$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24972as_write_fail=0
24973cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24974#! $SHELL
24975# Generated by $as_me.
24976# Run this file to recreate the current configuration.
24977# Compiler output produced by configure, useful for debugging
24978# configure, is in config.log if it exists.
24979
24980debug=false
24981ac_cs_recheck=false
24982ac_cs_silent=false
24983
24984SHELL=\${CONFIG_SHELL-$SHELL}
24985export SHELL
24986_ASEOF
24987cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24988## -------------------- ##
24989## M4sh Initialization. ##
24990## -------------------- ##
24991
24992# Be more Bourne compatible
24993DUALCASE=1; export DUALCASE # for MKS sh
24994if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24995  emulate sh
24996  NULLCMD=:
24997  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24998  # is contrary to our usage.  Disable this feature.
24999  alias -g '${1+"$@"}'='"$@"'
25000  setopt NO_GLOB_SUBST
25001else
25002  case `(set -o) 2>/dev/null` in #(
25003  *posix*) :
25004    set -o posix ;; #(
25005  *) :
25006     ;;
25007esac
25008fi
25009
25010
25011as_nl='
25012'
25013export as_nl
25014# Printing a long string crashes Solaris 7 /usr/bin/printf.
25015as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25016as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25017as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25018# Prefer a ksh shell builtin over an external printf program on Solaris,
25019# but without wasting forks for bash or zsh.
25020if test -z "$BASH_VERSION$ZSH_VERSION" \
25021    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25022  as_echo='print -r --'
25023  as_echo_n='print -rn --'
25024elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25025  as_echo='printf %s\n'
25026  as_echo_n='printf %s'
25027else
25028  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25029    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25030    as_echo_n='/usr/ucb/echo -n'
25031  else
25032    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25033    as_echo_n_body='eval
25034      arg=$1;
25035      case $arg in #(
25036      *"$as_nl"*)
25037	expr "X$arg" : "X\\(.*\\)$as_nl";
25038	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25039      esac;
25040      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25041    '
25042    export as_echo_n_body
25043    as_echo_n='sh -c $as_echo_n_body as_echo'
25044  fi
25045  export as_echo_body
25046  as_echo='sh -c $as_echo_body as_echo'
25047fi
25048
25049# The user is always right.
25050if test "${PATH_SEPARATOR+set}" != set; then
25051  PATH_SEPARATOR=:
25052  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25053    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25054      PATH_SEPARATOR=';'
25055  }
25056fi
25057
25058
25059# IFS
25060# We need space, tab and new line, in precisely that order.  Quoting is
25061# there to prevent editors from complaining about space-tab.
25062# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25063# splitting by setting IFS to empty value.)
25064IFS=" ""	$as_nl"
25065
25066# Find who we are.  Look in the path if we contain no directory separator.
25067case $0 in #((
25068  *[\\/]* ) as_myself=$0 ;;
25069  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25070for as_dir in $PATH
25071do
25072  IFS=$as_save_IFS
25073  test -z "$as_dir" && as_dir=.
25074    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25075  done
25076IFS=$as_save_IFS
25077
25078     ;;
25079esac
25080# We did not find ourselves, most probably we were run as `sh COMMAND'
25081# in which case we are not to be found in the path.
25082if test "x$as_myself" = x; then
25083  as_myself=$0
25084fi
25085if test ! -f "$as_myself"; then
25086  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25087  exit 1
25088fi
25089
25090# Unset variables that we do not need and which cause bugs (e.g. in
25091# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25092# suppresses any "Segmentation fault" message there.  '((' could
25093# trigger a bug in pdksh 5.2.14.
25094for as_var in BASH_ENV ENV MAIL MAILPATH
25095do eval test x\${$as_var+set} = xset \
25096  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25097done
25098PS1='$ '
25099PS2='> '
25100PS4='+ '
25101
25102# NLS nuisances.
25103LC_ALL=C
25104export LC_ALL
25105LANGUAGE=C
25106export LANGUAGE
25107
25108# CDPATH.
25109(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25110
25111
25112# as_fn_error ERROR [LINENO LOG_FD]
25113# ---------------------------------
25114# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25115# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25116# script with status $?, using 1 if that was 0.
25117as_fn_error ()
25118{
25119  as_status=$?; test $as_status -eq 0 && as_status=1
25120  if test "$3"; then
25121    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25122    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25123  fi
25124  $as_echo "$as_me: error: $1" >&2
25125  as_fn_exit $as_status
25126} # as_fn_error
25127
25128
25129# as_fn_set_status STATUS
25130# -----------------------
25131# Set $? to STATUS, without forking.
25132as_fn_set_status ()
25133{
25134  return $1
25135} # as_fn_set_status
25136
25137# as_fn_exit STATUS
25138# -----------------
25139# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25140as_fn_exit ()
25141{
25142  set +e
25143  as_fn_set_status $1
25144  exit $1
25145} # as_fn_exit
25146
25147# as_fn_unset VAR
25148# ---------------
25149# Portably unset VAR.
25150as_fn_unset ()
25151{
25152  { eval $1=; unset $1;}
25153}
25154as_unset=as_fn_unset
25155# as_fn_append VAR VALUE
25156# ----------------------
25157# Append the text in VALUE to the end of the definition contained in VAR. Take
25158# advantage of any shell optimizations that allow amortized linear growth over
25159# repeated appends, instead of the typical quadratic growth present in naive
25160# implementations.
25161if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25162  eval 'as_fn_append ()
25163  {
25164    eval $1+=\$2
25165  }'
25166else
25167  as_fn_append ()
25168  {
25169    eval $1=\$$1\$2
25170  }
25171fi # as_fn_append
25172
25173# as_fn_arith ARG...
25174# ------------------
25175# Perform arithmetic evaluation on the ARGs, and store the result in the
25176# global $as_val. Take advantage of shells that can avoid forks. The arguments
25177# must be portable across $(()) and expr.
25178if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25179  eval 'as_fn_arith ()
25180  {
25181    as_val=$(( $* ))
25182  }'
25183else
25184  as_fn_arith ()
25185  {
25186    as_val=`expr "$@" || test $? -eq 1`
25187  }
25188fi # as_fn_arith
25189
25190
25191if expr a : '\(a\)' >/dev/null 2>&1 &&
25192   test "X`expr 00001 : '.*\(...\)'`" = X001; then
25193  as_expr=expr
25194else
25195  as_expr=false
25196fi
25197
25198if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25199  as_basename=basename
25200else
25201  as_basename=false
25202fi
25203
25204if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25205  as_dirname=dirname
25206else
25207  as_dirname=false
25208fi
25209
25210as_me=`$as_basename -- "$0" ||
25211$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25212	 X"$0" : 'X\(//\)$' \| \
25213	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25214$as_echo X/"$0" |
25215    sed '/^.*\/\([^/][^/]*\)\/*$/{
25216	    s//\1/
25217	    q
25218	  }
25219	  /^X\/\(\/\/\)$/{
25220	    s//\1/
25221	    q
25222	  }
25223	  /^X\/\(\/\).*/{
25224	    s//\1/
25225	    q
25226	  }
25227	  s/.*/./; q'`
25228
25229# Avoid depending upon Character Ranges.
25230as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25231as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25232as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25233as_cr_digits='0123456789'
25234as_cr_alnum=$as_cr_Letters$as_cr_digits
25235
25236ECHO_C= ECHO_N= ECHO_T=
25237case `echo -n x` in #(((((
25238-n*)
25239  case `echo 'xy\c'` in
25240  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
25241  xy)  ECHO_C='\c';;
25242  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25243       ECHO_T='	';;
25244  esac;;
25245*)
25246  ECHO_N='-n';;
25247esac
25248
25249rm -f conf$$ conf$$.exe conf$$.file
25250if test -d conf$$.dir; then
25251  rm -f conf$$.dir/conf$$.file
25252else
25253  rm -f conf$$.dir
25254  mkdir conf$$.dir 2>/dev/null
25255fi
25256if (echo >conf$$.file) 2>/dev/null; then
25257  if ln -s conf$$.file conf$$ 2>/dev/null; then
25258    as_ln_s='ln -s'
25259    # ... but there are two gotchas:
25260    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25261    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25262    # In both cases, we have to default to `cp -p'.
25263    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25264      as_ln_s='cp -p'
25265  elif ln conf$$.file conf$$ 2>/dev/null; then
25266    as_ln_s=ln
25267  else
25268    as_ln_s='cp -p'
25269  fi
25270else
25271  as_ln_s='cp -p'
25272fi
25273rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25274rmdir conf$$.dir 2>/dev/null
25275
25276
25277# as_fn_mkdir_p
25278# -------------
25279# Create "$as_dir" as a directory, including parents if necessary.
25280as_fn_mkdir_p ()
25281{
25282
25283  case $as_dir in #(
25284  -*) as_dir=./$as_dir;;
25285  esac
25286  test -d "$as_dir" || eval $as_mkdir_p || {
25287    as_dirs=
25288    while :; do
25289      case $as_dir in #(
25290      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25291      *) as_qdir=$as_dir;;
25292      esac
25293      as_dirs="'$as_qdir' $as_dirs"
25294      as_dir=`$as_dirname -- "$as_dir" ||
25295$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25296	 X"$as_dir" : 'X\(//\)[^/]' \| \
25297	 X"$as_dir" : 'X\(//\)$' \| \
25298	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25299$as_echo X"$as_dir" |
25300    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25301	    s//\1/
25302	    q
25303	  }
25304	  /^X\(\/\/\)[^/].*/{
25305	    s//\1/
25306	    q
25307	  }
25308	  /^X\(\/\/\)$/{
25309	    s//\1/
25310	    q
25311	  }
25312	  /^X\(\/\).*/{
25313	    s//\1/
25314	    q
25315	  }
25316	  s/.*/./; q'`
25317      test -d "$as_dir" && break
25318    done
25319    test -z "$as_dirs" || eval "mkdir $as_dirs"
25320  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25321
25322
25323} # as_fn_mkdir_p
25324if mkdir -p . 2>/dev/null; then
25325  as_mkdir_p='mkdir -p "$as_dir"'
25326else
25327  test -d ./-p && rmdir ./-p
25328  as_mkdir_p=false
25329fi
25330
25331if test -x / >/dev/null 2>&1; then
25332  as_test_x='test -x'
25333else
25334  if ls -dL / >/dev/null 2>&1; then
25335    as_ls_L_option=L
25336  else
25337    as_ls_L_option=
25338  fi
25339  as_test_x='
25340    eval sh -c '\''
25341      if test -d "$1"; then
25342	test -d "$1/.";
25343      else
25344	case $1 in #(
25345	-*)set "./$1";;
25346	esac;
25347	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25348	???[sx]*):;;*)false;;esac;fi
25349    '\'' sh
25350  '
25351fi
25352as_executable_p=$as_test_x
25353
25354# Sed expression to map a string onto a valid CPP name.
25355as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25356
25357# Sed expression to map a string onto a valid variable name.
25358as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25359
25360
25361exec 6>&1
25362## ----------------------------------- ##
25363## Main body of $CONFIG_STATUS script. ##
25364## ----------------------------------- ##
25365_ASEOF
25366test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25367
25368cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25369# Save the log message, to keep $0 and so on meaningful, and to
25370# report actual input values of CONFIG_FILES etc. instead of their
25371# values after options handling.
25372ac_log="
25373This file was extended by $as_me, which was
25374generated by GNU Autoconf 2.65.  Invocation command line was
25375
25376  CONFIG_FILES    = $CONFIG_FILES
25377  CONFIG_HEADERS  = $CONFIG_HEADERS
25378  CONFIG_LINKS    = $CONFIG_LINKS
25379  CONFIG_COMMANDS = $CONFIG_COMMANDS
25380  $ $0 $@
25381
25382on `(hostname || uname -n) 2>/dev/null | sed 1q`
25383"
25384
25385_ACEOF
25386
25387case $ac_config_files in *"
25388"*) set x $ac_config_files; shift; ac_config_files=$*;;
25389esac
25390
25391case $ac_config_headers in *"
25392"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25393esac
25394
25395
25396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25397# Files that config.status was made for.
25398config_files="$ac_config_files"
25399config_headers="$ac_config_headers"
25400config_commands="$ac_config_commands"
25401
25402_ACEOF
25403
25404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25405ac_cs_usage="\
25406\`$as_me' instantiates files and other configuration actions
25407from templates according to the current configuration.  Unless the files
25408and actions are specified as TAGs, all are instantiated by default.
25409
25410Usage: $0 [OPTION]... [TAG]...
25411
25412  -h, --help       print this help, then exit
25413  -V, --version    print version number and configuration settings, then exit
25414      --config     print configuration, then exit
25415  -q, --quiet, --silent
25416                   do not print progress messages
25417  -d, --debug      don't remove temporary files
25418      --recheck    update $as_me by reconfiguring in the same conditions
25419      --file=FILE[:TEMPLATE]
25420                   instantiate the configuration file FILE
25421      --header=FILE[:TEMPLATE]
25422                   instantiate the configuration header FILE
25423
25424Configuration files:
25425$config_files
25426
25427Configuration headers:
25428$config_headers
25429
25430Configuration commands:
25431$config_commands
25432
25433Report bugs to the package provider."
25434
25435_ACEOF
25436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25437ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25438ac_cs_version="\\
25439config.status
25440configured by $0, generated by GNU Autoconf 2.65,
25441  with options \\"\$ac_cs_config\\"
25442
25443Copyright (C) 2009 Free Software Foundation, Inc.
25444This config.status script is free software; the Free Software Foundation
25445gives unlimited permission to copy, distribute and modify it."
25446
25447ac_pwd='$ac_pwd'
25448srcdir='$srcdir'
25449INSTALL='$INSTALL'
25450MKDIR_P='$MKDIR_P'
25451AWK='$AWK'
25452test -n "\$AWK" || AWK=awk
25453_ACEOF
25454
25455cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25456# The default lists apply if the user does not specify any file.
25457ac_need_defaults=:
25458while test $# != 0
25459do
25460  case $1 in
25461  --*=*)
25462    ac_option=`expr "X$1" : 'X\([^=]*\)='`
25463    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25464    ac_shift=:
25465    ;;
25466  *)
25467    ac_option=$1
25468    ac_optarg=$2
25469    ac_shift=shift
25470    ;;
25471  esac
25472
25473  case $ac_option in
25474  # Handling of the options.
25475  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25476    ac_cs_recheck=: ;;
25477  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25478    $as_echo "$ac_cs_version"; exit ;;
25479  --config | --confi | --conf | --con | --co | --c )
25480    $as_echo "$ac_cs_config"; exit ;;
25481  --debug | --debu | --deb | --de | --d | -d )
25482    debug=: ;;
25483  --file | --fil | --fi | --f )
25484    $ac_shift
25485    case $ac_optarg in
25486    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25487    esac
25488    as_fn_append CONFIG_FILES " '$ac_optarg'"
25489    ac_need_defaults=false;;
25490  --header | --heade | --head | --hea )
25491    $ac_shift
25492    case $ac_optarg in
25493    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25494    esac
25495    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25496    ac_need_defaults=false;;
25497  --he | --h)
25498    # Conflict between --help and --header
25499    as_fn_error "ambiguous option: \`$1'
25500Try \`$0 --help' for more information.";;
25501  --help | --hel | -h )
25502    $as_echo "$ac_cs_usage"; exit ;;
25503  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25504  | -silent | --silent | --silen | --sile | --sil | --si | --s)
25505    ac_cs_silent=: ;;
25506
25507  # This is an error.
25508  -*) as_fn_error "unrecognized option: \`$1'
25509Try \`$0 --help' for more information." ;;
25510
25511  *) as_fn_append ac_config_targets " $1"
25512     ac_need_defaults=false ;;
25513
25514  esac
25515  shift
25516done
25517
25518ac_configure_extra_args=
25519
25520if $ac_cs_silent; then
25521  exec 6>/dev/null
25522  ac_configure_extra_args="$ac_configure_extra_args --silent"
25523fi
25524
25525_ACEOF
25526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25527if \$ac_cs_recheck; then
25528  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25529  shift
25530  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25531  CONFIG_SHELL='$SHELL'
25532  export CONFIG_SHELL
25533  exec "\$@"
25534fi
25535
25536_ACEOF
25537cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25538exec 5>>config.log
25539{
25540  echo
25541  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25542## Running $as_me. ##
25543_ASBOX
25544  $as_echo "$ac_log"
25545} >&5
25546
25547_ACEOF
25548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25549#
25550# INIT-COMMANDS
25551#
25552AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25553
25554
25555# The HP-UX ksh and POSIX shell print the target directory to stdout
25556# if CDPATH is set.
25557(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25558
25559sed_quote_subst='$sed_quote_subst'
25560double_quote_subst='$double_quote_subst'
25561delay_variable_subst='$delay_variable_subst'
25562enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25563enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25564AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
25565DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25566OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25567macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25568macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25569enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25570pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25571host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25572host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25573host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25574build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25575build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25576build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25577SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25578Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25579GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25580EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25581FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25582LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25583NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25584LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25585max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25586ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25587exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25588lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25589lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25590lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25591reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25592reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25593deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25594file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25595AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25596AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25597STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25598RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25599old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25600old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25601old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25602CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25603CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25604compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25605GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25606lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25607lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25608lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
25609lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25610objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25611SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25612ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25613MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25614lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25615lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25616lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25617lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25618lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25619need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25620DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25621NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25622LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25623OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25624OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25625libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25626shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25627extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25628archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25629enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25630export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25631whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25632compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25633old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25634old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25635archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25636archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25637module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25638module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25639with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25640allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25641no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25642hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25643hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25644hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25645hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25646hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25647hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25648hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25649hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25650inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25651link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25652fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25653always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25654export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25655exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25656include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25657prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25658file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25659variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25660need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25661need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25662version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25663runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25664shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25665shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25666libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25667library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25668soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25669postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25670postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25671finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25672finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25673hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25674sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25675sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25676hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25677enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25678enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25679enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25680old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25681striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25682compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
25683predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25684postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25685predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
25686postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
25687compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
25688LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25689LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
25690LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`'
25691old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25692old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
25693old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
25694compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25695compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
25696compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`'
25697GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25698GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
25699GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`'
25700lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25701lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
25702lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
25703lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25704lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
25705lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`'
25706lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25707lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
25708lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`'
25709lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25710lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
25711lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`'
25712lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25713lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
25714lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`'
25715archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25716archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
25717archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`'
25718enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25719enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
25720enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`'
25721export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25722export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
25723export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
25724whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25725whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
25726whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
25727compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25728compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
25729compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`'
25730old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25731old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
25732old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
25733old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25734old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
25735old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
25736archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25737archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
25738archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
25739archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25740archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
25741archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
25742module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25743module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
25744module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
25745module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25746module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
25747module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
25748with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25749with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
25750with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
25751allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25752allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
25753allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
25754no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25755no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
25756no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`'
25757hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25758hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
25759hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
25760hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25761hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
25762hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`'
25763hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25764hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
25765hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`'
25766hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25767hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
25768hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`'
25769hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25770hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
25771hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`'
25772hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25773hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
25774hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`'
25775hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25776hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
25777hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`'
25778hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25779hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
25780hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`'
25781inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25782inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
25783inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`'
25784link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25785link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
25786link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`'
25787fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25788fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
25789fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
25790always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25791always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
25792always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`'
25793export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25794export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
25795export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
25796exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25797exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
25798exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
25799include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25800include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
25801include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`'
25802prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25803prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
25804prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`'
25805file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25806file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
25807file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`'
25808hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25809hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
25810hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`'
25811compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25812compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
25813compiler_lib_search_dirs_FC='`$ECHO "X$compiler_lib_search_dirs_FC" | $Xsed -e "$delay_single_quote_subst"`'
25814predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25815predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
25816predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
25817postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25818postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
25819postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`'
25820predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25821predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
25822predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
25823postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25824postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
25825postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`'
25826compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25827compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
25828compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`'
25829
25830LTCC='$LTCC'
25831LTCFLAGS='$LTCFLAGS'
25832compiler='$compiler_DEFAULT'
25833
25834# Quote evaled strings.
25835for var in SED \
25836GREP \
25837EGREP \
25838FGREP \
25839LD \
25840NM \
25841LN_S \
25842lt_SP2NL \
25843lt_NL2SP \
25844reload_flag \
25845deplibs_check_method \
25846file_magic_cmd \
25847AR \
25848AR_FLAGS \
25849STRIP \
25850RANLIB \
25851CC \
25852CFLAGS \
25853compiler \
25854lt_cv_sys_global_symbol_pipe \
25855lt_cv_sys_global_symbol_to_cdecl \
25856lt_cv_sys_global_symbol_to_c_name_address \
25857lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25858SHELL \
25859ECHO \
25860lt_prog_compiler_no_builtin_flag \
25861lt_prog_compiler_wl \
25862lt_prog_compiler_pic \
25863lt_prog_compiler_static \
25864lt_cv_prog_compiler_c_o \
25865need_locks \
25866DSYMUTIL \
25867NMEDIT \
25868LIPO \
25869OTOOL \
25870OTOOL64 \
25871shrext_cmds \
25872export_dynamic_flag_spec \
25873whole_archive_flag_spec \
25874compiler_needs_object \
25875with_gnu_ld \
25876allow_undefined_flag \
25877no_undefined_flag \
25878hardcode_libdir_flag_spec \
25879hardcode_libdir_flag_spec_ld \
25880hardcode_libdir_separator \
25881fix_srcfile_path \
25882exclude_expsyms \
25883include_expsyms \
25884file_list_spec \
25885variables_saved_for_relink \
25886libname_spec \
25887library_names_spec \
25888soname_spec \
25889finish_eval \
25890old_striplib \
25891striplib \
25892compiler_lib_search_dirs \
25893predep_objects \
25894postdep_objects \
25895predeps \
25896postdeps \
25897compiler_lib_search_path \
25898LD_CXX \
25899LD_F77 \
25900LD_FC \
25901compiler_CXX \
25902compiler_F77 \
25903compiler_FC \
25904lt_prog_compiler_no_builtin_flag_CXX \
25905lt_prog_compiler_no_builtin_flag_F77 \
25906lt_prog_compiler_no_builtin_flag_FC \
25907lt_prog_compiler_wl_CXX \
25908lt_prog_compiler_wl_F77 \
25909lt_prog_compiler_wl_FC \
25910lt_prog_compiler_pic_CXX \
25911lt_prog_compiler_pic_F77 \
25912lt_prog_compiler_pic_FC \
25913lt_prog_compiler_static_CXX \
25914lt_prog_compiler_static_F77 \
25915lt_prog_compiler_static_FC \
25916lt_cv_prog_compiler_c_o_CXX \
25917lt_cv_prog_compiler_c_o_F77 \
25918lt_cv_prog_compiler_c_o_FC \
25919export_dynamic_flag_spec_CXX \
25920export_dynamic_flag_spec_F77 \
25921export_dynamic_flag_spec_FC \
25922whole_archive_flag_spec_CXX \
25923whole_archive_flag_spec_F77 \
25924whole_archive_flag_spec_FC \
25925compiler_needs_object_CXX \
25926compiler_needs_object_F77 \
25927compiler_needs_object_FC \
25928with_gnu_ld_CXX \
25929with_gnu_ld_F77 \
25930with_gnu_ld_FC \
25931allow_undefined_flag_CXX \
25932allow_undefined_flag_F77 \
25933allow_undefined_flag_FC \
25934no_undefined_flag_CXX \
25935no_undefined_flag_F77 \
25936no_undefined_flag_FC \
25937hardcode_libdir_flag_spec_CXX \
25938hardcode_libdir_flag_spec_F77 \
25939hardcode_libdir_flag_spec_FC \
25940hardcode_libdir_flag_spec_ld_CXX \
25941hardcode_libdir_flag_spec_ld_F77 \
25942hardcode_libdir_flag_spec_ld_FC \
25943hardcode_libdir_separator_CXX \
25944hardcode_libdir_separator_F77 \
25945hardcode_libdir_separator_FC \
25946fix_srcfile_path_CXX \
25947fix_srcfile_path_F77 \
25948fix_srcfile_path_FC \
25949exclude_expsyms_CXX \
25950exclude_expsyms_F77 \
25951exclude_expsyms_FC \
25952include_expsyms_CXX \
25953include_expsyms_F77 \
25954include_expsyms_FC \
25955file_list_spec_CXX \
25956file_list_spec_F77 \
25957file_list_spec_FC \
25958compiler_lib_search_dirs_CXX \
25959compiler_lib_search_dirs_F77 \
25960compiler_lib_search_dirs_FC \
25961predep_objects_CXX \
25962predep_objects_F77 \
25963predep_objects_FC \
25964postdep_objects_CXX \
25965postdep_objects_F77 \
25966postdep_objects_FC \
25967predeps_CXX \
25968predeps_F77 \
25969predeps_FC \
25970postdeps_CXX \
25971postdeps_F77 \
25972postdeps_FC \
25973compiler_lib_search_path_CXX \
25974compiler_lib_search_path_F77 \
25975compiler_lib_search_path_FC; do
25976    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25977    *[\\\\\\\`\\"\\\$]*)
25978      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25979      ;;
25980    *)
25981      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25982      ;;
25983    esac
25984done
25985
25986# Double-quote double-evaled strings.
25987for var in reload_cmds \
25988old_postinstall_cmds \
25989old_postuninstall_cmds \
25990old_archive_cmds \
25991extract_expsyms_cmds \
25992old_archive_from_new_cmds \
25993old_archive_from_expsyms_cmds \
25994archive_cmds \
25995archive_expsym_cmds \
25996module_cmds \
25997module_expsym_cmds \
25998export_symbols_cmds \
25999prelink_cmds \
26000postinstall_cmds \
26001postuninstall_cmds \
26002finish_cmds \
26003sys_lib_search_path_spec \
26004sys_lib_dlsearch_path_spec \
26005old_archive_cmds_CXX \
26006old_archive_cmds_F77 \
26007old_archive_cmds_FC \
26008old_archive_from_new_cmds_CXX \
26009old_archive_from_new_cmds_F77 \
26010old_archive_from_new_cmds_FC \
26011old_archive_from_expsyms_cmds_CXX \
26012old_archive_from_expsyms_cmds_F77 \
26013old_archive_from_expsyms_cmds_FC \
26014archive_cmds_CXX \
26015archive_cmds_F77 \
26016archive_cmds_FC \
26017archive_expsym_cmds_CXX \
26018archive_expsym_cmds_F77 \
26019archive_expsym_cmds_FC \
26020module_cmds_CXX \
26021module_cmds_F77 \
26022module_cmds_FC \
26023module_expsym_cmds_CXX \
26024module_expsym_cmds_F77 \
26025module_expsym_cmds_FC \
26026export_symbols_cmds_CXX \
26027export_symbols_cmds_F77 \
26028export_symbols_cmds_FC \
26029prelink_cmds_CXX \
26030prelink_cmds_F77 \
26031prelink_cmds_FC; do
26032    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
26033    *[\\\\\\\`\\"\\\$]*)
26034      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26035      ;;
26036    *)
26037      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26038      ;;
26039    esac
26040done
26041
26042# Fix-up fallback echo if it was mangled by the above quoting rules.
26043case \$lt_ECHO in
26044*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
26045  ;;
26046esac
26047
26048ac_aux_dir='$ac_aux_dir'
26049xsi_shell='$xsi_shell'
26050lt_shell_append='$lt_shell_append'
26051
26052# See if we are running on zsh, and set the options which allow our
26053# commands through without removal of \ escapes INIT.
26054if test -n "\${ZSH_VERSION+set}" ; then
26055   setopt NO_GLOB_SUBST
26056fi
26057
26058
26059    PACKAGE='$PACKAGE'
26060    VERSION='$VERSION'
26061    TIMESTAMP='$TIMESTAMP'
26062    RM='$RM'
26063    ofile='$ofile'
26064
26065
26066
26067
26068
26069
26070
26071
26072
26073
26074_ACEOF
26075
26076cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26077
26078# Handling of arguments.
26079for ac_config_target in $ac_config_targets
26080do
26081  case $ac_config_target in
26082    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26083    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26084    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26085    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26086    "lapackpp.iss") CONFIG_FILES="$CONFIG_FILES lapackpp.iss" ;;
26087    "mainpage.doxygen") CONFIG_FILES="$CONFIG_FILES mainpage.doxygen" ;;
26088    "lapackpp.spec") CONFIG_FILES="$CONFIG_FILES lapackpp.spec" ;;
26089    "lapackpp.pc") CONFIG_FILES="$CONFIG_FILES lapackpp.pc" ;;
26090    "src/ressource.rc") CONFIG_FILES="$CONFIG_FILES src/ressource.rc" ;;
26091    "blaspp/Makefile") CONFIG_FILES="$CONFIG_FILES blaspp/Makefile" ;;
26092    "blaspp/src/Makefile") CONFIG_FILES="$CONFIG_FILES blaspp/src/Makefile" ;;
26093    "blaspp/testing/Makefile") CONFIG_FILES="$CONFIG_FILES blaspp/testing/Makefile" ;;
26094    "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
26095    "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26096    "include/laversion.h") CONFIG_FILES="$CONFIG_FILES include/laversion.h" ;;
26097    "macros/Makefile") CONFIG_FILES="$CONFIG_FILES macros/Makefile" ;;
26098    "matrix/Makefile") CONFIG_FILES="$CONFIG_FILES matrix/Makefile" ;;
26099    "matrix/src/Makefile") CONFIG_FILES="$CONFIG_FILES matrix/src/Makefile" ;;
26100    "matrix/testing/Makefile") CONFIG_FILES="$CONFIG_FILES matrix/testing/Makefile" ;;
26101    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26102    "testing/Makefile") CONFIG_FILES="$CONFIG_FILES testing/Makefile" ;;
26103
26104  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26105  esac
26106done
26107
26108
26109# If the user did not use the arguments to specify the items to instantiate,
26110# then the envvar interface is used.  Set only those that are not.
26111# We use the long form for the default assignment because of an extremely
26112# bizarre bug on SunOS 4.1.3.
26113if $ac_need_defaults; then
26114  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26115  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26116  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26117fi
26118
26119# Have a temporary directory for convenience.  Make it in the build tree
26120# simply because there is no reason against having it here, and in addition,
26121# creating and moving files from /tmp can sometimes cause problems.
26122# Hook for its removal unless debugging.
26123# Note that there is a small window in which the directory will not be cleaned:
26124# after its creation but before its name has been assigned to `$tmp'.
26125$debug ||
26126{
26127  tmp=
26128  trap 'exit_status=$?
26129  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26130' 0
26131  trap 'as_fn_exit 1' 1 2 13 15
26132}
26133# Create a (secure) tmp directory for tmp files.
26134
26135{
26136  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26137  test -n "$tmp" && test -d "$tmp"
26138}  ||
26139{
26140  tmp=./conf$$-$RANDOM
26141  (umask 077 && mkdir "$tmp")
26142} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26143
26144# Set up the scripts for CONFIG_FILES section.
26145# No need to generate them if there are no CONFIG_FILES.
26146# This happens for instance with `./config.status config.h'.
26147if test -n "$CONFIG_FILES"; then
26148
26149
26150ac_cr=`echo X | tr X '\015'`
26151# On cygwin, bash can eat \r inside `` if the user requested igncr.
26152# But we know of no other shell where ac_cr would be empty at this
26153# point, so we can use a bashism as a fallback.
26154if test "x$ac_cr" = x; then
26155  eval ac_cr=\$\'\\r\'
26156fi
26157ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26158if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26159  ac_cs_awk_cr='\r'
26160else
26161  ac_cs_awk_cr=$ac_cr
26162fi
26163
26164echo 'BEGIN {' >"$tmp/subs1.awk" &&
26165_ACEOF
26166
26167
26168{
26169  echo "cat >conf$$subs.awk <<_ACEOF" &&
26170  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26171  echo "_ACEOF"
26172} >conf$$subs.sh ||
26173  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26174ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26175ac_delim='%!_!# '
26176for ac_last_try in false false false false false :; do
26177  . ./conf$$subs.sh ||
26178    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26179
26180  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26181  if test $ac_delim_n = $ac_delim_num; then
26182    break
26183  elif $ac_last_try; then
26184    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26185  else
26186    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26187  fi
26188done
26189rm -f conf$$subs.sh
26190
26191cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26192cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26193_ACEOF
26194sed -n '
26195h
26196s/^/S["/; s/!.*/"]=/
26197p
26198g
26199s/^[^!]*!//
26200:repl
26201t repl
26202s/'"$ac_delim"'$//
26203t delim
26204:nl
26205h
26206s/\(.\{148\}\)..*/\1/
26207t more1
26208s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26209p
26210n
26211b repl
26212:more1
26213s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26214p
26215g
26216s/.\{148\}//
26217t nl
26218:delim
26219h
26220s/\(.\{148\}\)..*/\1/
26221t more2
26222s/["\\]/\\&/g; s/^/"/; s/$/"/
26223p
26224b
26225:more2
26226s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26227p
26228g
26229s/.\{148\}//
26230t delim
26231' <conf$$subs.awk | sed '
26232/^[^""]/{
26233  N
26234  s/\n//
26235}
26236' >>$CONFIG_STATUS || ac_write_fail=1
26237rm -f conf$$subs.awk
26238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26239_ACAWK
26240cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26241  for (key in S) S_is_set[key] = 1
26242  FS = ""
26243
26244}
26245{
26246  line = $ 0
26247  nfields = split(line, field, "@")
26248  substed = 0
26249  len = length(field[1])
26250  for (i = 2; i < nfields; i++) {
26251    key = field[i]
26252    keylen = length(key)
26253    if (S_is_set[key]) {
26254      value = S[key]
26255      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26256      len += length(value) + length(field[++i])
26257      substed = 1
26258    } else
26259      len += 1 + keylen
26260  }
26261
26262  print line
26263}
26264
26265_ACAWK
26266_ACEOF
26267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26268if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26269  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26270else
26271  cat
26272fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26273  || as_fn_error "could not setup config files machinery" "$LINENO" 5
26274_ACEOF
26275
26276# VPATH may cause trouble with some makes, so we remove $(srcdir),
26277# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26278# trailing colons and then remove the whole line if VPATH becomes empty
26279# (actually we leave an empty line to preserve line numbers).
26280if test "x$srcdir" = x.; then
26281  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
26282s/:*\$(srcdir):*/:/
26283s/:*\${srcdir}:*/:/
26284s/:*@srcdir@:*/:/
26285s/^\([^=]*=[	 ]*\):*/\1/
26286s/:*$//
26287s/^[^=]*=[	 ]*$//
26288}'
26289fi
26290
26291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26292fi # test -n "$CONFIG_FILES"
26293
26294# Set up the scripts for CONFIG_HEADERS section.
26295# No need to generate them if there are no CONFIG_HEADERS.
26296# This happens for instance with `./config.status Makefile'.
26297if test -n "$CONFIG_HEADERS"; then
26298cat >"$tmp/defines.awk" <<\_ACAWK ||
26299BEGIN {
26300_ACEOF
26301
26302# Transform confdefs.h into an awk script `defines.awk', embedded as
26303# here-document in config.status, that substitutes the proper values into
26304# config.h.in to produce config.h.
26305
26306# Create a delimiter string that does not exist in confdefs.h, to ease
26307# handling of long lines.
26308ac_delim='%!_!# '
26309for ac_last_try in false false :; do
26310  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26311  if test -z "$ac_t"; then
26312    break
26313  elif $ac_last_try; then
26314    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26315  else
26316    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26317  fi
26318done
26319
26320# For the awk script, D is an array of macro values keyed by name,
26321# likewise P contains macro parameters if any.  Preserve backslash
26322# newline sequences.
26323
26324ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26325sed -n '
26326s/.\{148\}/&'"$ac_delim"'/g
26327t rset
26328:rset
26329s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
26330t def
26331d
26332:def
26333s/\\$//
26334t bsnl
26335s/["\\]/\\&/g
26336s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26337D["\1"]=" \3"/p
26338s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
26339d
26340:bsnl
26341s/["\\]/\\&/g
26342s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
26343D["\1"]=" \3\\\\\\n"\\/p
26344t cont
26345s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26346t cont
26347d
26348:cont
26349n
26350s/.\{148\}/&'"$ac_delim"'/g
26351t clear
26352:clear
26353s/\\$//
26354t bsnlc
26355s/["\\]/\\&/g; s/^/"/; s/$/"/p
26356d
26357:bsnlc
26358s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26359b cont
26360' <confdefs.h | sed '
26361s/'"$ac_delim"'/"\\\
26362"/g' >>$CONFIG_STATUS || ac_write_fail=1
26363
26364cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26365  for (key in D) D_is_set[key] = 1
26366  FS = ""
26367}
26368/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26369  line = \$ 0
26370  split(line, arg, " ")
26371  if (arg[1] == "#") {
26372    defundef = arg[2]
26373    mac1 = arg[3]
26374  } else {
26375    defundef = substr(arg[1], 2)
26376    mac1 = arg[2]
26377  }
26378  split(mac1, mac2, "(") #)
26379  macro = mac2[1]
26380  prefix = substr(line, 1, index(line, defundef) - 1)
26381  if (D_is_set[macro]) {
26382    # Preserve the white space surrounding the "#".
26383    print prefix "define", macro P[macro] D[macro]
26384    next
26385  } else {
26386    # Replace #undef with comments.  This is necessary, for example,
26387    # in the case of _POSIX_SOURCE, which is predefined and required
26388    # on some systems where configure will not decide to define it.
26389    if (defundef == "undef") {
26390      print "/*", prefix defundef, macro, "*/"
26391      next
26392    }
26393  }
26394}
26395{ print }
26396_ACAWK
26397_ACEOF
26398cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26399  as_fn_error "could not setup config headers machinery" "$LINENO" 5
26400fi # test -n "$CONFIG_HEADERS"
26401
26402
26403eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
26404shift
26405for ac_tag
26406do
26407  case $ac_tag in
26408  :[FHLC]) ac_mode=$ac_tag; continue;;
26409  esac
26410  case $ac_mode$ac_tag in
26411  :[FHL]*:*);;
26412  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26413  :[FH]-) ac_tag=-:-;;
26414  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26415  esac
26416  ac_save_IFS=$IFS
26417  IFS=:
26418  set x $ac_tag
26419  IFS=$ac_save_IFS
26420  shift
26421  ac_file=$1
26422  shift
26423
26424  case $ac_mode in
26425  :L) ac_source=$1;;
26426  :[FH])
26427    ac_file_inputs=
26428    for ac_f
26429    do
26430      case $ac_f in
26431      -) ac_f="$tmp/stdin";;
26432      *) # Look for the file first in the build tree, then in the source tree
26433	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
26434	 # because $ac_f cannot contain `:'.
26435	 test -f "$ac_f" ||
26436	   case $ac_f in
26437	   [\\/$]*) false;;
26438	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26439	   esac ||
26440	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26441      esac
26442      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26443      as_fn_append ac_file_inputs " '$ac_f'"
26444    done
26445
26446    # Let's still pretend it is `configure' which instantiates (i.e., don't
26447    # use $as_me), people would be surprised to read:
26448    #    /* config.h.  Generated by config.status.  */
26449    configure_input='Generated from '`
26450	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26451	`' by configure.'
26452    if test x"$ac_file" != x-; then
26453      configure_input="$ac_file.  $configure_input"
26454      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26455$as_echo "$as_me: creating $ac_file" >&6;}
26456    fi
26457    # Neutralize special characters interpreted by sed in replacement strings.
26458    case $configure_input in #(
26459    *\&* | *\|* | *\\* )
26460       ac_sed_conf_input=`$as_echo "$configure_input" |
26461       sed 's/[\\\\&|]/\\\\&/g'`;; #(
26462    *) ac_sed_conf_input=$configure_input;;
26463    esac
26464
26465    case $ac_tag in
26466    *:-:* | *:-) cat >"$tmp/stdin" \
26467      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26468    esac
26469    ;;
26470  esac
26471
26472  ac_dir=`$as_dirname -- "$ac_file" ||
26473$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26474	 X"$ac_file" : 'X\(//\)[^/]' \| \
26475	 X"$ac_file" : 'X\(//\)$' \| \
26476	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26477$as_echo X"$ac_file" |
26478    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26479	    s//\1/
26480	    q
26481	  }
26482	  /^X\(\/\/\)[^/].*/{
26483	    s//\1/
26484	    q
26485	  }
26486	  /^X\(\/\/\)$/{
26487	    s//\1/
26488	    q
26489	  }
26490	  /^X\(\/\).*/{
26491	    s//\1/
26492	    q
26493	  }
26494	  s/.*/./; q'`
26495  as_dir="$ac_dir"; as_fn_mkdir_p
26496  ac_builddir=.
26497
26498case "$ac_dir" in
26499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26500*)
26501  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26502  # A ".." for each directory in $ac_dir_suffix.
26503  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26504  case $ac_top_builddir_sub in
26505  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26506  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26507  esac ;;
26508esac
26509ac_abs_top_builddir=$ac_pwd
26510ac_abs_builddir=$ac_pwd$ac_dir_suffix
26511# for backward compatibility:
26512ac_top_builddir=$ac_top_build_prefix
26513
26514case $srcdir in
26515  .)  # We are building in place.
26516    ac_srcdir=.
26517    ac_top_srcdir=$ac_top_builddir_sub
26518    ac_abs_top_srcdir=$ac_pwd ;;
26519  [\\/]* | ?:[\\/]* )  # Absolute name.
26520    ac_srcdir=$srcdir$ac_dir_suffix;
26521    ac_top_srcdir=$srcdir
26522    ac_abs_top_srcdir=$srcdir ;;
26523  *) # Relative name.
26524    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26525    ac_top_srcdir=$ac_top_build_prefix$srcdir
26526    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26527esac
26528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26529
26530
26531  case $ac_mode in
26532  :F)
26533  #
26534  # CONFIG_FILE
26535  #
26536
26537  case $INSTALL in
26538  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26539  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26540  esac
26541  ac_MKDIR_P=$MKDIR_P
26542  case $MKDIR_P in
26543  [\\/$]* | ?:[\\/]* ) ;;
26544  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26545  esac
26546_ACEOF
26547
26548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26549# If the template does not know about datarootdir, expand it.
26550# FIXME: This hack should be removed a few years after 2.60.
26551ac_datarootdir_hack=; ac_datarootdir_seen=
26552ac_sed_dataroot='
26553/datarootdir/ {
26554  p
26555  q
26556}
26557/@datadir@/p
26558/@docdir@/p
26559/@infodir@/p
26560/@localedir@/p
26561/@mandir@/p'
26562case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26563*datarootdir*) ac_datarootdir_seen=yes;;
26564*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26565  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26566$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26567_ACEOF
26568cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26569  ac_datarootdir_hack='
26570  s&@datadir@&$datadir&g
26571  s&@docdir@&$docdir&g
26572  s&@infodir@&$infodir&g
26573  s&@localedir@&$localedir&g
26574  s&@mandir@&$mandir&g
26575  s&\\\${datarootdir}&$datarootdir&g' ;;
26576esac
26577_ACEOF
26578
26579# Neutralize VPATH when `$srcdir' = `.'.
26580# Shell code in configure.ac might set extrasub.
26581# FIXME: do we really want to maintain this feature?
26582cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26583ac_sed_extra="$ac_vpsub
26584$extrasub
26585_ACEOF
26586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26587:t
26588/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26589s|@configure_input@|$ac_sed_conf_input|;t t
26590s&@top_builddir@&$ac_top_builddir_sub&;t t
26591s&@top_build_prefix@&$ac_top_build_prefix&;t t
26592s&@srcdir@&$ac_srcdir&;t t
26593s&@abs_srcdir@&$ac_abs_srcdir&;t t
26594s&@top_srcdir@&$ac_top_srcdir&;t t
26595s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26596s&@builddir@&$ac_builddir&;t t
26597s&@abs_builddir@&$ac_abs_builddir&;t t
26598s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26599s&@INSTALL@&$ac_INSTALL&;t t
26600s&@MKDIR_P@&$ac_MKDIR_P&;t t
26601$ac_datarootdir_hack
26602"
26603eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26604  || as_fn_error "could not create $ac_file" "$LINENO" 5
26605
26606test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26607  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26608  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26609  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26610which seems to be undefined.  Please make sure it is defined." >&5
26611$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26612which seems to be undefined.  Please make sure it is defined." >&2;}
26613
26614  rm -f "$tmp/stdin"
26615  case $ac_file in
26616  -) cat "$tmp/out" && rm -f "$tmp/out";;
26617  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26618  esac \
26619  || as_fn_error "could not create $ac_file" "$LINENO" 5
26620 ;;
26621  :H)
26622  #
26623  # CONFIG_HEADER
26624  #
26625  if test x"$ac_file" != x-; then
26626    {
26627      $as_echo "/* $configure_input  */" \
26628      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26629    } >"$tmp/config.h" \
26630      || as_fn_error "could not create $ac_file" "$LINENO" 5
26631    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26632      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26633$as_echo "$as_me: $ac_file is unchanged" >&6;}
26634    else
26635      rm -f "$ac_file"
26636      mv "$tmp/config.h" "$ac_file" \
26637	|| as_fn_error "could not create $ac_file" "$LINENO" 5
26638    fi
26639  else
26640    $as_echo "/* $configure_input  */" \
26641      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26642      || as_fn_error "could not create -" "$LINENO" 5
26643  fi
26644# Compute "$ac_file"'s index in $config_headers.
26645_am_arg="$ac_file"
26646_am_stamp_count=1
26647for _am_header in $config_headers :; do
26648  case $_am_header in
26649    $_am_arg | $_am_arg:* )
26650      break ;;
26651    * )
26652      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26653  esac
26654done
26655echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26656$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26657	 X"$_am_arg" : 'X\(//\)[^/]' \| \
26658	 X"$_am_arg" : 'X\(//\)$' \| \
26659	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26660$as_echo X"$_am_arg" |
26661    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26662	    s//\1/
26663	    q
26664	  }
26665	  /^X\(\/\/\)[^/].*/{
26666	    s//\1/
26667	    q
26668	  }
26669	  /^X\(\/\/\)$/{
26670	    s//\1/
26671	    q
26672	  }
26673	  /^X\(\/\).*/{
26674	    s//\1/
26675	    q
26676	  }
26677	  s/.*/./; q'`/stamp-h$_am_stamp_count
26678 ;;
26679
26680  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26681$as_echo "$as_me: executing $ac_file commands" >&6;}
26682 ;;
26683  esac
26684
26685
26686  case $ac_file$ac_mode in
26687    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26688  # Autoconf 2.62 quotes --file arguments for eval, but not when files
26689  # are listed without --file.  Let's play safe and only enable the eval
26690  # if we detect the quoting.
26691  case $CONFIG_FILES in
26692  *\'*) eval set x "$CONFIG_FILES" ;;
26693  *)   set x $CONFIG_FILES ;;
26694  esac
26695  shift
26696  for mf
26697  do
26698    # Strip MF so we end up with the name of the file.
26699    mf=`echo "$mf" | sed -e 's/:.*$//'`
26700    # Check whether this is an Automake generated Makefile or not.
26701    # We used to match only the files named `Makefile.in', but
26702    # some people rename them; so instead we look at the file content.
26703    # Grep'ing the first line is not enough: some people post-process
26704    # each Makefile.in and add a new line on top of each file to say so.
26705    # Grep'ing the whole file is not good either: AIX grep has a line
26706    # limit of 2048, but all sed's we know have understand at least 4000.
26707    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26708      dirpart=`$as_dirname -- "$mf" ||
26709$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26710	 X"$mf" : 'X\(//\)[^/]' \| \
26711	 X"$mf" : 'X\(//\)$' \| \
26712	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26713$as_echo X"$mf" |
26714    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26715	    s//\1/
26716	    q
26717	  }
26718	  /^X\(\/\/\)[^/].*/{
26719	    s//\1/
26720	    q
26721	  }
26722	  /^X\(\/\/\)$/{
26723	    s//\1/
26724	    q
26725	  }
26726	  /^X\(\/\).*/{
26727	    s//\1/
26728	    q
26729	  }
26730	  s/.*/./; q'`
26731    else
26732      continue
26733    fi
26734    # Extract the definition of DEPDIR, am__include, and am__quote
26735    # from the Makefile without running `make'.
26736    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26737    test -z "$DEPDIR" && continue
26738    am__include=`sed -n 's/^am__include = //p' < "$mf"`
26739    test -z "am__include" && continue
26740    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26741    # When using ansi2knr, U may be empty or an underscore; expand it
26742    U=`sed -n 's/^U = //p' < "$mf"`
26743    # Find all dependency output files, they are included files with
26744    # $(DEPDIR) in their names.  We invoke sed twice because it is the
26745    # simplest approach to changing $(DEPDIR) to its actual value in the
26746    # expansion.
26747    for file in `sed -n "
26748      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26749	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26750      # Make sure the directory exists.
26751      test -f "$dirpart/$file" && continue
26752      fdir=`$as_dirname -- "$file" ||
26753$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26754	 X"$file" : 'X\(//\)[^/]' \| \
26755	 X"$file" : 'X\(//\)$' \| \
26756	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26757$as_echo X"$file" |
26758    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26759	    s//\1/
26760	    q
26761	  }
26762	  /^X\(\/\/\)[^/].*/{
26763	    s//\1/
26764	    q
26765	  }
26766	  /^X\(\/\/\)$/{
26767	    s//\1/
26768	    q
26769	  }
26770	  /^X\(\/\).*/{
26771	    s//\1/
26772	    q
26773	  }
26774	  s/.*/./; q'`
26775      as_dir=$dirpart/$fdir; as_fn_mkdir_p
26776      # echo "creating $dirpart/$file"
26777      echo '# dummy' > "$dirpart/$file"
26778    done
26779  done
26780}
26781 ;;
26782    "libtool":C)
26783
26784    # See if we are running on zsh, and set the options which allow our
26785    # commands through without removal of \ escapes.
26786    if test -n "${ZSH_VERSION+set}" ; then
26787      setopt NO_GLOB_SUBST
26788    fi
26789
26790    cfgfile="${ofile}T"
26791    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26792    $RM "$cfgfile"
26793
26794    cat <<_LT_EOF >> "$cfgfile"
26795#! $SHELL
26796
26797# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26798# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26799# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26800# NOTE: Changes made to this file will be lost: look at ltmain.sh.
26801#
26802#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26803#                 2006, 2007, 2008 Free Software Foundation, Inc.
26804#   Written by Gordon Matzigkeit, 1996
26805#
26806#   This file is part of GNU Libtool.
26807#
26808# GNU Libtool is free software; you can redistribute it and/or
26809# modify it under the terms of the GNU General Public License as
26810# published by the Free Software Foundation; either version 2 of
26811# the License, or (at your option) any later version.
26812#
26813# As a special exception to the GNU General Public License,
26814# if you distribute this file as part of a program or library that
26815# is built using GNU Libtool, you may include this file under the
26816# same distribution terms that you use for the rest of that program.
26817#
26818# GNU Libtool is distributed in the hope that it will be useful,
26819# but WITHOUT ANY WARRANTY; without even the implied warranty of
26820# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26821# GNU General Public License for more details.
26822#
26823# You should have received a copy of the GNU General Public License
26824# along with GNU Libtool; see the file COPYING.  If not, a copy
26825# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26826# obtained by writing to the Free Software Foundation, Inc.,
26827# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26828
26829
26830# The names of the tagged configurations supported by this script.
26831available_tags="CXX F77 FC "
26832
26833# ### BEGIN LIBTOOL CONFIG
26834
26835# Whether or not to optimize for fast installation.
26836fast_install=$enable_fast_install
26837
26838# Whether or not to build static libraries.
26839build_old_libs=$enable_static
26840
26841# Assembler program.
26842AS=$AS
26843
26844# DLL creation program.
26845DLLTOOL=$DLLTOOL
26846
26847# Object dumper program.
26848OBJDUMP=$OBJDUMP
26849
26850# Which release of libtool.m4 was used?
26851macro_version=$macro_version
26852macro_revision=$macro_revision
26853
26854# Whether or not to build shared libraries.
26855build_libtool_libs=$enable_shared
26856
26857# What type of objects to build.
26858pic_mode=$pic_mode
26859
26860# The host system.
26861host_alias=$host_alias
26862host=$host
26863host_os=$host_os
26864
26865# The build system.
26866build_alias=$build_alias
26867build=$build
26868build_os=$build_os
26869
26870# A sed program that does not truncate output.
26871SED=$lt_SED
26872
26873# Sed that helps us avoid accidentally triggering echo(1) options like -n.
26874Xsed="\$SED -e 1s/^X//"
26875
26876# A grep program that handles long lines.
26877GREP=$lt_GREP
26878
26879# An ERE matcher.
26880EGREP=$lt_EGREP
26881
26882# A literal string matcher.
26883FGREP=$lt_FGREP
26884
26885# A BSD- or MS-compatible name lister.
26886NM=$lt_NM
26887
26888# Whether we need soft or hard links.
26889LN_S=$lt_LN_S
26890
26891# What is the maximum length of a command?
26892max_cmd_len=$max_cmd_len
26893
26894# Object file suffix (normally "o").
26895objext=$ac_objext
26896
26897# Executable file suffix (normally "").
26898exeext=$exeext
26899
26900# whether the shell understands "unset".
26901lt_unset=$lt_unset
26902
26903# turn spaces into newlines.
26904SP2NL=$lt_lt_SP2NL
26905
26906# turn newlines into spaces.
26907NL2SP=$lt_lt_NL2SP
26908
26909# How to create reloadable object files.
26910reload_flag=$lt_reload_flag
26911reload_cmds=$lt_reload_cmds
26912
26913# Method to check whether dependent libraries are shared objects.
26914deplibs_check_method=$lt_deplibs_check_method
26915
26916# Command to use when deplibs_check_method == "file_magic".
26917file_magic_cmd=$lt_file_magic_cmd
26918
26919# The archiver.
26920AR=$lt_AR
26921AR_FLAGS=$lt_AR_FLAGS
26922
26923# A symbol stripping program.
26924STRIP=$lt_STRIP
26925
26926# Commands used to install an old-style archive.
26927RANLIB=$lt_RANLIB
26928old_postinstall_cmds=$lt_old_postinstall_cmds
26929old_postuninstall_cmds=$lt_old_postuninstall_cmds
26930
26931# A C compiler.
26932LTCC=$lt_CC
26933
26934# LTCC compiler flags.
26935LTCFLAGS=$lt_CFLAGS
26936
26937# Take the output of nm and produce a listing of raw symbols and C names.
26938global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26939
26940# Transform the output of nm in a proper C declaration.
26941global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26942
26943# Transform the output of nm in a C name address pair.
26944global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26945
26946# Transform the output of nm in a C name address pair when lib prefix is needed.
26947global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26948
26949# The name of the directory that contains temporary libtool files.
26950objdir=$objdir
26951
26952# Shell to use when invoking shell scripts.
26953SHELL=$lt_SHELL
26954
26955# An echo program that does not interpret backslashes.
26956ECHO=$lt_ECHO
26957
26958# Used to examine libraries when file_magic_cmd begins with "file".
26959MAGIC_CMD=$MAGIC_CMD
26960
26961# Must we lock files when doing compilation?
26962need_locks=$lt_need_locks
26963
26964# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26965DSYMUTIL=$lt_DSYMUTIL
26966
26967# Tool to change global to local symbols on Mac OS X.
26968NMEDIT=$lt_NMEDIT
26969
26970# Tool to manipulate fat objects and archives on Mac OS X.
26971LIPO=$lt_LIPO
26972
26973# ldd/readelf like tool for Mach-O binaries on Mac OS X.
26974OTOOL=$lt_OTOOL
26975
26976# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26977OTOOL64=$lt_OTOOL64
26978
26979# Old archive suffix (normally "a").
26980libext=$libext
26981
26982# Shared library suffix (normally ".so").
26983shrext_cmds=$lt_shrext_cmds
26984
26985# The commands to extract the exported symbol list from a shared archive.
26986extract_expsyms_cmds=$lt_extract_expsyms_cmds
26987
26988# Variables whose values should be saved in libtool wrapper scripts and
26989# restored at link time.
26990variables_saved_for_relink=$lt_variables_saved_for_relink
26991
26992# Do we need the "lib" prefix for modules?
26993need_lib_prefix=$need_lib_prefix
26994
26995# Do we need a version for libraries?
26996need_version=$need_version
26997
26998# Library versioning type.
26999version_type=$version_type
27000
27001# Shared library runtime path variable.
27002runpath_var=$runpath_var
27003
27004# Shared library path variable.
27005shlibpath_var=$shlibpath_var
27006
27007# Is shlibpath searched before the hard-coded library search path?
27008shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27009
27010# Format of library name prefix.
27011libname_spec=$lt_libname_spec
27012
27013# List of archive names.  First name is the real one, the rest are links.
27014# The last name is the one that the linker finds with -lNAME
27015library_names_spec=$lt_library_names_spec
27016
27017# The coded name of the library, if different from the real name.
27018soname_spec=$lt_soname_spec
27019
27020# Command to use after installation of a shared archive.
27021postinstall_cmds=$lt_postinstall_cmds
27022
27023# Command to use after uninstallation of a shared archive.
27024postuninstall_cmds=$lt_postuninstall_cmds
27025
27026# Commands used to finish a libtool library installation in a directory.
27027finish_cmds=$lt_finish_cmds
27028
27029# As "finish_cmds", except a single script fragment to be evaled but
27030# not shown.
27031finish_eval=$lt_finish_eval
27032
27033# Whether we should hardcode library paths into libraries.
27034hardcode_into_libs=$hardcode_into_libs
27035
27036# Compile-time system search path for libraries.
27037sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27038
27039# Run-time system search path for libraries.
27040sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27041
27042# Whether dlopen is supported.
27043dlopen_support=$enable_dlopen
27044
27045# Whether dlopen of programs is supported.
27046dlopen_self=$enable_dlopen_self
27047
27048# Whether dlopen of statically linked programs is supported.
27049dlopen_self_static=$enable_dlopen_self_static
27050
27051# Commands to strip libraries.
27052old_striplib=$lt_old_striplib
27053striplib=$lt_striplib
27054
27055
27056# The linker used to build libraries.
27057LD=$lt_LD
27058
27059# Commands used to build an old-style archive.
27060old_archive_cmds=$lt_old_archive_cmds
27061
27062# A language specific compiler.
27063CC=$lt_compiler
27064
27065# Is the compiler the GNU compiler?
27066with_gcc=$GCC
27067
27068# Compiler flag to turn off builtin functions.
27069no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27070
27071# How to pass a linker flag through the compiler.
27072wl=$lt_lt_prog_compiler_wl
27073
27074# Additional compiler flags for building library objects.
27075pic_flag=$lt_lt_prog_compiler_pic
27076
27077# Compiler flag to prevent dynamic linking.
27078link_static_flag=$lt_lt_prog_compiler_static
27079
27080# Does compiler simultaneously support -c and -o options?
27081compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27082
27083# Whether or not to add -lc for building shared libraries.
27084build_libtool_need_lc=$archive_cmds_need_lc
27085
27086# Whether or not to disallow shared libs when runtime libs are static.
27087allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27088
27089# Compiler flag to allow reflexive dlopens.
27090export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27091
27092# Compiler flag to generate shared objects directly from archives.
27093whole_archive_flag_spec=$lt_whole_archive_flag_spec
27094
27095# Whether the compiler copes with passing no objects directly.
27096compiler_needs_object=$lt_compiler_needs_object
27097
27098# Create an old-style archive from a shared archive.
27099old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27100
27101# Create a temporary old-style archive to link instead of a shared archive.
27102old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27103
27104# Commands used to build a shared archive.
27105archive_cmds=$lt_archive_cmds
27106archive_expsym_cmds=$lt_archive_expsym_cmds
27107
27108# Commands used to build a loadable module if different from building
27109# a shared archive.
27110module_cmds=$lt_module_cmds
27111module_expsym_cmds=$lt_module_expsym_cmds
27112
27113# Whether we are building with GNU ld or not.
27114with_gnu_ld=$lt_with_gnu_ld
27115
27116# Flag that allows shared libraries with undefined symbols to be built.
27117allow_undefined_flag=$lt_allow_undefined_flag
27118
27119# Flag that enforces no undefined symbols.
27120no_undefined_flag=$lt_no_undefined_flag
27121
27122# Flag to hardcode \$libdir into a binary during linking.
27123# This must work even if \$libdir does not exist
27124hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27125
27126# If ld is used when linking, flag to hardcode \$libdir into a binary
27127# during linking.  This must work even if \$libdir does not exist.
27128hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27129
27130# Whether we need a single "-rpath" flag with a separated argument.
27131hardcode_libdir_separator=$lt_hardcode_libdir_separator
27132
27133# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27134# DIR into the resulting binary.
27135hardcode_direct=$hardcode_direct
27136
27137# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27138# DIR into the resulting binary and the resulting library dependency is
27139# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27140# library is relocated.
27141hardcode_direct_absolute=$hardcode_direct_absolute
27142
27143# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27144# into the resulting binary.
27145hardcode_minus_L=$hardcode_minus_L
27146
27147# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27148# into the resulting binary.
27149hardcode_shlibpath_var=$hardcode_shlibpath_var
27150
27151# Set to "yes" if building a shared library automatically hardcodes DIR
27152# into the library and all subsequent libraries and executables linked
27153# against it.
27154hardcode_automatic=$hardcode_automatic
27155
27156# Set to yes if linker adds runtime paths of dependent libraries
27157# to runtime path list.
27158inherit_rpath=$inherit_rpath
27159
27160# Whether libtool must link a program against all its dependency libraries.
27161link_all_deplibs=$link_all_deplibs
27162
27163# Fix the shell variable \$srcfile for the compiler.
27164fix_srcfile_path=$lt_fix_srcfile_path
27165
27166# Set to "yes" if exported symbols are required.
27167always_export_symbols=$always_export_symbols
27168
27169# The commands to list exported symbols.
27170export_symbols_cmds=$lt_export_symbols_cmds
27171
27172# Symbols that should not be listed in the preloaded symbols.
27173exclude_expsyms=$lt_exclude_expsyms
27174
27175# Symbols that must always be exported.
27176include_expsyms=$lt_include_expsyms
27177
27178# Commands necessary for linking programs (against libraries) with templates.
27179prelink_cmds=$lt_prelink_cmds
27180
27181# Specify filename containing input files.
27182file_list_spec=$lt_file_list_spec
27183
27184# How to hardcode a shared library path into an executable.
27185hardcode_action=$hardcode_action
27186
27187# The directories searched by this compiler when creating a shared library.
27188compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27189
27190# Dependencies to place before and after the objects being linked to
27191# create a shared library.
27192predep_objects=$lt_predep_objects
27193postdep_objects=$lt_postdep_objects
27194predeps=$lt_predeps
27195postdeps=$lt_postdeps
27196
27197# The library search path used internally by the compiler when linking
27198# a shared library.
27199compiler_lib_search_path=$lt_compiler_lib_search_path
27200
27201# ### END LIBTOOL CONFIG
27202
27203_LT_EOF
27204
27205  case $host_os in
27206  aix3*)
27207    cat <<\_LT_EOF >> "$cfgfile"
27208# AIX sometimes has problems with the GCC collect2 program.  For some
27209# reason, if we set the COLLECT_NAMES environment variable, the problems
27210# vanish in a puff of smoke.
27211if test "X${COLLECT_NAMES+set}" != Xset; then
27212  COLLECT_NAMES=
27213  export COLLECT_NAMES
27214fi
27215_LT_EOF
27216    ;;
27217  esac
27218
27219
27220ltmain="$ac_aux_dir/ltmain.sh"
27221
27222
27223  # We use sed instead of cat because bash on DJGPP gets confused if
27224  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27225  # text mode, it properly converts lines to CR/LF.  This bash problem
27226  # is reportedly fixed, but why not run on old versions too?
27227  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27228    || (rm -f "$cfgfile"; exit 1)
27229
27230  case $xsi_shell in
27231  yes)
27232    cat << \_LT_EOF >> "$cfgfile"
27233
27234# func_dirname file append nondir_replacement
27235# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27236# otherwise set result to NONDIR_REPLACEMENT.
27237func_dirname ()
27238{
27239  case ${1} in
27240    */*) func_dirname_result="${1%/*}${2}" ;;
27241    *  ) func_dirname_result="${3}" ;;
27242  esac
27243}
27244
27245# func_basename file
27246func_basename ()
27247{
27248  func_basename_result="${1##*/}"
27249}
27250
27251# func_dirname_and_basename file append nondir_replacement
27252# perform func_basename and func_dirname in a single function
27253# call:
27254#   dirname:  Compute the dirname of FILE.  If nonempty,
27255#             add APPEND to the result, otherwise set result
27256#             to NONDIR_REPLACEMENT.
27257#             value returned in "$func_dirname_result"
27258#   basename: Compute filename of FILE.
27259#             value retuned in "$func_basename_result"
27260# Implementation must be kept synchronized with func_dirname
27261# and func_basename. For efficiency, we do not delegate to
27262# those functions but instead duplicate the functionality here.
27263func_dirname_and_basename ()
27264{
27265  case ${1} in
27266    */*) func_dirname_result="${1%/*}${2}" ;;
27267    *  ) func_dirname_result="${3}" ;;
27268  esac
27269  func_basename_result="${1##*/}"
27270}
27271
27272# func_stripname prefix suffix name
27273# strip PREFIX and SUFFIX off of NAME.
27274# PREFIX and SUFFIX must not contain globbing or regex special
27275# characters, hashes, percent signs, but SUFFIX may contain a leading
27276# dot (in which case that matches only a dot).
27277func_stripname ()
27278{
27279  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27280  # positional parameters, so assign one to ordinary parameter first.
27281  func_stripname_result=${3}
27282  func_stripname_result=${func_stripname_result#"${1}"}
27283  func_stripname_result=${func_stripname_result%"${2}"}
27284}
27285
27286# func_opt_split
27287func_opt_split ()
27288{
27289  func_opt_split_opt=${1%%=*}
27290  func_opt_split_arg=${1#*=}
27291}
27292
27293# func_lo2o object
27294func_lo2o ()
27295{
27296  case ${1} in
27297    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27298    *)    func_lo2o_result=${1} ;;
27299  esac
27300}
27301
27302# func_xform libobj-or-source
27303func_xform ()
27304{
27305  func_xform_result=${1%.*}.lo
27306}
27307
27308# func_arith arithmetic-term...
27309func_arith ()
27310{
27311  func_arith_result=$(( $* ))
27312}
27313
27314# func_len string
27315# STRING may not start with a hyphen.
27316func_len ()
27317{
27318  func_len_result=${#1}
27319}
27320
27321_LT_EOF
27322    ;;
27323  *) # Bourne compatible functions.
27324    cat << \_LT_EOF >> "$cfgfile"
27325
27326# func_dirname file append nondir_replacement
27327# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27328# otherwise set result to NONDIR_REPLACEMENT.
27329func_dirname ()
27330{
27331  # Extract subdirectory from the argument.
27332  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27333  if test "X$func_dirname_result" = "X${1}"; then
27334    func_dirname_result="${3}"
27335  else
27336    func_dirname_result="$func_dirname_result${2}"
27337  fi
27338}
27339
27340# func_basename file
27341func_basename ()
27342{
27343  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27344}
27345
27346
27347# func_stripname prefix suffix name
27348# strip PREFIX and SUFFIX off of NAME.
27349# PREFIX and SUFFIX must not contain globbing or regex special
27350# characters, hashes, percent signs, but SUFFIX may contain a leading
27351# dot (in which case that matches only a dot).
27352# func_strip_suffix prefix name
27353func_stripname ()
27354{
27355  case ${2} in
27356    .*) func_stripname_result=`$ECHO "X${3}" \
27357           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27358    *)  func_stripname_result=`$ECHO "X${3}" \
27359           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27360  esac
27361}
27362
27363# sed scripts:
27364my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27365my_sed_long_arg='1s/^-[^=]*=//'
27366
27367# func_opt_split
27368func_opt_split ()
27369{
27370  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27371  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27372}
27373
27374# func_lo2o object
27375func_lo2o ()
27376{
27377  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27378}
27379
27380# func_xform libobj-or-source
27381func_xform ()
27382{
27383  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27384}
27385
27386# func_arith arithmetic-term...
27387func_arith ()
27388{
27389  func_arith_result=`expr "$@"`
27390}
27391
27392# func_len string
27393# STRING may not start with a hyphen.
27394func_len ()
27395{
27396  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27397}
27398
27399_LT_EOF
27400esac
27401
27402case $lt_shell_append in
27403  yes)
27404    cat << \_LT_EOF >> "$cfgfile"
27405
27406# func_append var value
27407# Append VALUE to the end of shell variable VAR.
27408func_append ()
27409{
27410  eval "$1+=\$2"
27411}
27412_LT_EOF
27413    ;;
27414  *)
27415    cat << \_LT_EOF >> "$cfgfile"
27416
27417# func_append var value
27418# Append VALUE to the end of shell variable VAR.
27419func_append ()
27420{
27421  eval "$1=\$$1\$2"
27422}
27423
27424_LT_EOF
27425    ;;
27426  esac
27427
27428
27429  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27430    || (rm -f "$cfgfile"; exit 1)
27431
27432  mv -f "$cfgfile" "$ofile" ||
27433    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27434  chmod +x "$ofile"
27435
27436
27437    cat <<_LT_EOF >> "$ofile"
27438
27439# ### BEGIN LIBTOOL TAG CONFIG: CXX
27440
27441# The linker used to build libraries.
27442LD=$lt_LD_CXX
27443
27444# Commands used to build an old-style archive.
27445old_archive_cmds=$lt_old_archive_cmds_CXX
27446
27447# A language specific compiler.
27448CC=$lt_compiler_CXX
27449
27450# Is the compiler the GNU compiler?
27451with_gcc=$GCC_CXX
27452
27453# Compiler flag to turn off builtin functions.
27454no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27455
27456# How to pass a linker flag through the compiler.
27457wl=$lt_lt_prog_compiler_wl_CXX
27458
27459# Additional compiler flags for building library objects.
27460pic_flag=$lt_lt_prog_compiler_pic_CXX
27461
27462# Compiler flag to prevent dynamic linking.
27463link_static_flag=$lt_lt_prog_compiler_static_CXX
27464
27465# Does compiler simultaneously support -c and -o options?
27466compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27467
27468# Whether or not to add -lc for building shared libraries.
27469build_libtool_need_lc=$archive_cmds_need_lc_CXX
27470
27471# Whether or not to disallow shared libs when runtime libs are static.
27472allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27473
27474# Compiler flag to allow reflexive dlopens.
27475export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27476
27477# Compiler flag to generate shared objects directly from archives.
27478whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27479
27480# Whether the compiler copes with passing no objects directly.
27481compiler_needs_object=$lt_compiler_needs_object_CXX
27482
27483# Create an old-style archive from a shared archive.
27484old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27485
27486# Create a temporary old-style archive to link instead of a shared archive.
27487old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27488
27489# Commands used to build a shared archive.
27490archive_cmds=$lt_archive_cmds_CXX
27491archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27492
27493# Commands used to build a loadable module if different from building
27494# a shared archive.
27495module_cmds=$lt_module_cmds_CXX
27496module_expsym_cmds=$lt_module_expsym_cmds_CXX
27497
27498# Whether we are building with GNU ld or not.
27499with_gnu_ld=$lt_with_gnu_ld_CXX
27500
27501# Flag that allows shared libraries with undefined symbols to be built.
27502allow_undefined_flag=$lt_allow_undefined_flag_CXX
27503
27504# Flag that enforces no undefined symbols.
27505no_undefined_flag=$lt_no_undefined_flag_CXX
27506
27507# Flag to hardcode \$libdir into a binary during linking.
27508# This must work even if \$libdir does not exist
27509hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27510
27511# If ld is used when linking, flag to hardcode \$libdir into a binary
27512# during linking.  This must work even if \$libdir does not exist.
27513hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27514
27515# Whether we need a single "-rpath" flag with a separated argument.
27516hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27517
27518# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27519# DIR into the resulting binary.
27520hardcode_direct=$hardcode_direct_CXX
27521
27522# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27523# DIR into the resulting binary and the resulting library dependency is
27524# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27525# library is relocated.
27526hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27527
27528# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27529# into the resulting binary.
27530hardcode_minus_L=$hardcode_minus_L_CXX
27531
27532# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27533# into the resulting binary.
27534hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27535
27536# Set to "yes" if building a shared library automatically hardcodes DIR
27537# into the library and all subsequent libraries and executables linked
27538# against it.
27539hardcode_automatic=$hardcode_automatic_CXX
27540
27541# Set to yes if linker adds runtime paths of dependent libraries
27542# to runtime path list.
27543inherit_rpath=$inherit_rpath_CXX
27544
27545# Whether libtool must link a program against all its dependency libraries.
27546link_all_deplibs=$link_all_deplibs_CXX
27547
27548# Fix the shell variable \$srcfile for the compiler.
27549fix_srcfile_path=$lt_fix_srcfile_path_CXX
27550
27551# Set to "yes" if exported symbols are required.
27552always_export_symbols=$always_export_symbols_CXX
27553
27554# The commands to list exported symbols.
27555export_symbols_cmds=$lt_export_symbols_cmds_CXX
27556
27557# Symbols that should not be listed in the preloaded symbols.
27558exclude_expsyms=$lt_exclude_expsyms_CXX
27559
27560# Symbols that must always be exported.
27561include_expsyms=$lt_include_expsyms_CXX
27562
27563# Commands necessary for linking programs (against libraries) with templates.
27564prelink_cmds=$lt_prelink_cmds_CXX
27565
27566# Specify filename containing input files.
27567file_list_spec=$lt_file_list_spec_CXX
27568
27569# How to hardcode a shared library path into an executable.
27570hardcode_action=$hardcode_action_CXX
27571
27572# The directories searched by this compiler when creating a shared library.
27573compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27574
27575# Dependencies to place before and after the objects being linked to
27576# create a shared library.
27577predep_objects=$lt_predep_objects_CXX
27578postdep_objects=$lt_postdep_objects_CXX
27579predeps=$lt_predeps_CXX
27580postdeps=$lt_postdeps_CXX
27581
27582# The library search path used internally by the compiler when linking
27583# a shared library.
27584compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27585
27586# ### END LIBTOOL TAG CONFIG: CXX
27587_LT_EOF
27588
27589
27590    cat <<_LT_EOF >> "$ofile"
27591
27592# ### BEGIN LIBTOOL TAG CONFIG: F77
27593
27594# The linker used to build libraries.
27595LD=$lt_LD_F77
27596
27597# Commands used to build an old-style archive.
27598old_archive_cmds=$lt_old_archive_cmds_F77
27599
27600# A language specific compiler.
27601CC=$lt_compiler_F77
27602
27603# Is the compiler the GNU compiler?
27604with_gcc=$GCC_F77
27605
27606# Compiler flag to turn off builtin functions.
27607no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
27608
27609# How to pass a linker flag through the compiler.
27610wl=$lt_lt_prog_compiler_wl_F77
27611
27612# Additional compiler flags for building library objects.
27613pic_flag=$lt_lt_prog_compiler_pic_F77
27614
27615# Compiler flag to prevent dynamic linking.
27616link_static_flag=$lt_lt_prog_compiler_static_F77
27617
27618# Does compiler simultaneously support -c and -o options?
27619compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
27620
27621# Whether or not to add -lc for building shared libraries.
27622build_libtool_need_lc=$archive_cmds_need_lc_F77
27623
27624# Whether or not to disallow shared libs when runtime libs are static.
27625allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
27626
27627# Compiler flag to allow reflexive dlopens.
27628export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
27629
27630# Compiler flag to generate shared objects directly from archives.
27631whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
27632
27633# Whether the compiler copes with passing no objects directly.
27634compiler_needs_object=$lt_compiler_needs_object_F77
27635
27636# Create an old-style archive from a shared archive.
27637old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
27638
27639# Create a temporary old-style archive to link instead of a shared archive.
27640old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
27641
27642# Commands used to build a shared archive.
27643archive_cmds=$lt_archive_cmds_F77
27644archive_expsym_cmds=$lt_archive_expsym_cmds_F77
27645
27646# Commands used to build a loadable module if different from building
27647# a shared archive.
27648module_cmds=$lt_module_cmds_F77
27649module_expsym_cmds=$lt_module_expsym_cmds_F77
27650
27651# Whether we are building with GNU ld or not.
27652with_gnu_ld=$lt_with_gnu_ld_F77
27653
27654# Flag that allows shared libraries with undefined symbols to be built.
27655allow_undefined_flag=$lt_allow_undefined_flag_F77
27656
27657# Flag that enforces no undefined symbols.
27658no_undefined_flag=$lt_no_undefined_flag_F77
27659
27660# Flag to hardcode \$libdir into a binary during linking.
27661# This must work even if \$libdir does not exist
27662hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
27663
27664# If ld is used when linking, flag to hardcode \$libdir into a binary
27665# during linking.  This must work even if \$libdir does not exist.
27666hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
27667
27668# Whether we need a single "-rpath" flag with a separated argument.
27669hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
27670
27671# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27672# DIR into the resulting binary.
27673hardcode_direct=$hardcode_direct_F77
27674
27675# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27676# DIR into the resulting binary and the resulting library dependency is
27677# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27678# library is relocated.
27679hardcode_direct_absolute=$hardcode_direct_absolute_F77
27680
27681# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27682# into the resulting binary.
27683hardcode_minus_L=$hardcode_minus_L_F77
27684
27685# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27686# into the resulting binary.
27687hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
27688
27689# Set to "yes" if building a shared library automatically hardcodes DIR
27690# into the library and all subsequent libraries and executables linked
27691# against it.
27692hardcode_automatic=$hardcode_automatic_F77
27693
27694# Set to yes if linker adds runtime paths of dependent libraries
27695# to runtime path list.
27696inherit_rpath=$inherit_rpath_F77
27697
27698# Whether libtool must link a program against all its dependency libraries.
27699link_all_deplibs=$link_all_deplibs_F77
27700
27701# Fix the shell variable \$srcfile for the compiler.
27702fix_srcfile_path=$lt_fix_srcfile_path_F77
27703
27704# Set to "yes" if exported symbols are required.
27705always_export_symbols=$always_export_symbols_F77
27706
27707# The commands to list exported symbols.
27708export_symbols_cmds=$lt_export_symbols_cmds_F77
27709
27710# Symbols that should not be listed in the preloaded symbols.
27711exclude_expsyms=$lt_exclude_expsyms_F77
27712
27713# Symbols that must always be exported.
27714include_expsyms=$lt_include_expsyms_F77
27715
27716# Commands necessary for linking programs (against libraries) with templates.
27717prelink_cmds=$lt_prelink_cmds_F77
27718
27719# Specify filename containing input files.
27720file_list_spec=$lt_file_list_spec_F77
27721
27722# How to hardcode a shared library path into an executable.
27723hardcode_action=$hardcode_action_F77
27724
27725# The directories searched by this compiler when creating a shared library.
27726compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
27727
27728# Dependencies to place before and after the objects being linked to
27729# create a shared library.
27730predep_objects=$lt_predep_objects_F77
27731postdep_objects=$lt_postdep_objects_F77
27732predeps=$lt_predeps_F77
27733postdeps=$lt_postdeps_F77
27734
27735# The library search path used internally by the compiler when linking
27736# a shared library.
27737compiler_lib_search_path=$lt_compiler_lib_search_path_F77
27738
27739# ### END LIBTOOL TAG CONFIG: F77
27740_LT_EOF
27741
27742
27743    cat <<_LT_EOF >> "$ofile"
27744
27745# ### BEGIN LIBTOOL TAG CONFIG: FC
27746
27747# The linker used to build libraries.
27748LD=$lt_LD_FC
27749
27750# Commands used to build an old-style archive.
27751old_archive_cmds=$lt_old_archive_cmds_FC
27752
27753# A language specific compiler.
27754CC=$lt_compiler_FC
27755
27756# Is the compiler the GNU compiler?
27757with_gcc=$GCC_FC
27758
27759# Compiler flag to turn off builtin functions.
27760no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
27761
27762# How to pass a linker flag through the compiler.
27763wl=$lt_lt_prog_compiler_wl_FC
27764
27765# Additional compiler flags for building library objects.
27766pic_flag=$lt_lt_prog_compiler_pic_FC
27767
27768# Compiler flag to prevent dynamic linking.
27769link_static_flag=$lt_lt_prog_compiler_static_FC
27770
27771# Does compiler simultaneously support -c and -o options?
27772compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
27773
27774# Whether or not to add -lc for building shared libraries.
27775build_libtool_need_lc=$archive_cmds_need_lc_FC
27776
27777# Whether or not to disallow shared libs when runtime libs are static.
27778allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
27779
27780# Compiler flag to allow reflexive dlopens.
27781export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
27782
27783# Compiler flag to generate shared objects directly from archives.
27784whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
27785
27786# Whether the compiler copes with passing no objects directly.
27787compiler_needs_object=$lt_compiler_needs_object_FC
27788
27789# Create an old-style archive from a shared archive.
27790old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
27791
27792# Create a temporary old-style archive to link instead of a shared archive.
27793old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
27794
27795# Commands used to build a shared archive.
27796archive_cmds=$lt_archive_cmds_FC
27797archive_expsym_cmds=$lt_archive_expsym_cmds_FC
27798
27799# Commands used to build a loadable module if different from building
27800# a shared archive.
27801module_cmds=$lt_module_cmds_FC
27802module_expsym_cmds=$lt_module_expsym_cmds_FC
27803
27804# Whether we are building with GNU ld or not.
27805with_gnu_ld=$lt_with_gnu_ld_FC
27806
27807# Flag that allows shared libraries with undefined symbols to be built.
27808allow_undefined_flag=$lt_allow_undefined_flag_FC
27809
27810# Flag that enforces no undefined symbols.
27811no_undefined_flag=$lt_no_undefined_flag_FC
27812
27813# Flag to hardcode \$libdir into a binary during linking.
27814# This must work even if \$libdir does not exist
27815hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
27816
27817# If ld is used when linking, flag to hardcode \$libdir into a binary
27818# during linking.  This must work even if \$libdir does not exist.
27819hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
27820
27821# Whether we need a single "-rpath" flag with a separated argument.
27822hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
27823
27824# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27825# DIR into the resulting binary.
27826hardcode_direct=$hardcode_direct_FC
27827
27828# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27829# DIR into the resulting binary and the resulting library dependency is
27830# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27831# library is relocated.
27832hardcode_direct_absolute=$hardcode_direct_absolute_FC
27833
27834# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27835# into the resulting binary.
27836hardcode_minus_L=$hardcode_minus_L_FC
27837
27838# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27839# into the resulting binary.
27840hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
27841
27842# Set to "yes" if building a shared library automatically hardcodes DIR
27843# into the library and all subsequent libraries and executables linked
27844# against it.
27845hardcode_automatic=$hardcode_automatic_FC
27846
27847# Set to yes if linker adds runtime paths of dependent libraries
27848# to runtime path list.
27849inherit_rpath=$inherit_rpath_FC
27850
27851# Whether libtool must link a program against all its dependency libraries.
27852link_all_deplibs=$link_all_deplibs_FC
27853
27854# Fix the shell variable \$srcfile for the compiler.
27855fix_srcfile_path=$lt_fix_srcfile_path_FC
27856
27857# Set to "yes" if exported symbols are required.
27858always_export_symbols=$always_export_symbols_FC
27859
27860# The commands to list exported symbols.
27861export_symbols_cmds=$lt_export_symbols_cmds_FC
27862
27863# Symbols that should not be listed in the preloaded symbols.
27864exclude_expsyms=$lt_exclude_expsyms_FC
27865
27866# Symbols that must always be exported.
27867include_expsyms=$lt_include_expsyms_FC
27868
27869# Commands necessary for linking programs (against libraries) with templates.
27870prelink_cmds=$lt_prelink_cmds_FC
27871
27872# Specify filename containing input files.
27873file_list_spec=$lt_file_list_spec_FC
27874
27875# How to hardcode a shared library path into an executable.
27876hardcode_action=$hardcode_action_FC
27877
27878# The directories searched by this compiler when creating a shared library.
27879compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
27880
27881# Dependencies to place before and after the objects being linked to
27882# create a shared library.
27883predep_objects=$lt_predep_objects_FC
27884postdep_objects=$lt_postdep_objects_FC
27885predeps=$lt_predeps_FC
27886postdeps=$lt_postdeps_FC
27887
27888# The library search path used internally by the compiler when linking
27889# a shared library.
27890compiler_lib_search_path=$lt_compiler_lib_search_path_FC
27891
27892# ### END LIBTOOL TAG CONFIG: FC
27893_LT_EOF
27894
27895 ;;
27896
27897  esac
27898done # for ac_tag
27899
27900
27901as_fn_exit 0
27902_ACEOF
27903ac_clean_files=$ac_clean_files_save
27904
27905test $ac_write_fail = 0 ||
27906  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27907
27908
27909# configure is writing to config.log, and then calls config.status.
27910# config.status does its own redirection, appending to config.log.
27911# Unfortunately, on DOS this fails, as config.log is still kept open
27912# by configure, so config.status won't be able to write to it; its
27913# output is simply discarded.  So we exec the FD to /dev/null,
27914# effectively closing config.log, so it can be properly (re)opened and
27915# appended to by config.status.  When coming back to configure, we
27916# need to make the FD available again.
27917if test "$no_create" != yes; then
27918  ac_cs_success=:
27919  ac_config_status_args=
27920  test "$silent" = yes &&
27921    ac_config_status_args="$ac_config_status_args --quiet"
27922  exec 5>/dev/null
27923  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27924  exec 5>>config.log
27925  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27926  # would make configure fail if this is the last instruction.
27927  $ac_cs_success || as_fn_exit $?
27928fi
27929if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27930  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27931$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27932fi
27933
27934
27935