source: trunk/configure @ 25

Last change on this file since 25 was 25, checked in by awalther, 11 years ago

bug in taylor.c for da=l-1 fixed

File size: 733.4 KB
Line 
1#! /bin/sh
2# From configure.ac Revision: 289 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for adolc 2.0.0-trunk.
5#
6# Report bugs to <adol-c@tu-dresden.de>.
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization.  ##
14## --------------------- ##
15
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24  setopt NO_GLOB_SUBST
25else
26  case `(set -o) 2>/dev/null` in
27  *posix*) set -o posix ;;
28esac
29
30fi
31
32
33
34
35# PATH needs CR
36# Avoid depending upon Character Ranges.
37as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40as_cr_digits='0123456789'
41as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43# The user is always right.
44if test "${PATH_SEPARATOR+set}" != set; then
45  echo "#! /bin/sh" >conf$$.sh
46  echo  "exit 0"   >>conf$$.sh
47  chmod +x conf$$.sh
48  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49    PATH_SEPARATOR=';'
50  else
51    PATH_SEPARATOR=:
52  fi
53  rm -f conf$$.sh
54fi
55
56# Support unset when possible.
57if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58  as_unset=unset
59else
60  as_unset=false
61fi
62
63
64# IFS
65# We need space, tab and new line, in precisely that order.  Quoting is
66# there to prevent editors from complaining about space-tab.
67# (If _AS_PATH_WALK were called with IFS unset, it would disable word
68# splitting by setting IFS to empty value.)
69as_nl='
70'
71IFS=" ""        $as_nl"
72
73# Find who we are.  Look in the path if we contain no directory separator.
74case $0 in
75  *[\\/]* ) as_myself=$0 ;;
76  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77for as_dir in $PATH
78do
79  IFS=$as_save_IFS
80  test -z "$as_dir" && as_dir=.
81  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
82done
83IFS=$as_save_IFS
84
85     ;;
86esac
87# We did not find ourselves, most probably we were run as `sh COMMAND'
88# in which case we are not to be found in the path.
89if test "x$as_myself" = x; then
90  as_myself=$0
91fi
92if test ! -f "$as_myself"; then
93  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94  { (exit 1); exit 1; }
95fi
96
97# Work around bugs in pre-3.0 UWIN ksh.
98for as_var in ENV MAIL MAILPATH
99do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
100done
101PS1='$ '
102PS2='> '
103PS4='+ '
104
105# NLS nuisances.
106for as_var in \
107  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
109  LC_TELEPHONE LC_TIME
110do
111  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112    eval $as_var=C; export $as_var
113  else
114    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115  fi
116done
117
118# Required to use basename.
119if expr a : '\(a\)' >/dev/null 2>&1 &&
120   test "X`expr 00001 : '.*\(...\)'`" = X001; then
121  as_expr=expr
122else
123  as_expr=false
124fi
125
126if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
127  as_basename=basename
128else
129  as_basename=false
130fi
131
132
133# Name of the executable.
134as_me=`$as_basename -- "$0" ||
135$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136         X"$0" : 'X\(//\)$' \| \
137         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138echo X/"$0" |
139    sed '/^.*\/\([^/][^/]*\)\/*$/{
140            s//\1/
141            q
142          }
143          /^X\/\(\/\/\)$/{
144            s//\1/
145            q
146          }
147          /^X\/\(\/\).*/{
148            s//\1/
149            q
150          }
151          s/.*/./; q'`
152
153# CDPATH.
154$as_unset CDPATH
155
156
157if test "x$CONFIG_SHELL" = x; then
158  if (eval ":") 2>/dev/null; then
159  as_have_required=yes
160else
161  as_have_required=no
162fi
163
164  if test $as_have_required = yes &&     (eval ":
165(as_func_return () {
166  (exit \$1)
167}
168as_func_success () {
169  as_func_return 0
170}
171as_func_failure () {
172  as_func_return 1
173}
174as_func_ret_success () {
175  return 0
176}
177as_func_ret_failure () {
178  return 1
179}
180
181exitcode=0
182if as_func_success; then
183  :
184else
185  exitcode=1
186  echo as_func_success failed.
187fi
188
189if as_func_failure; then
190  exitcode=1
191  echo as_func_failure succeeded.
192fi
193
194if as_func_ret_success; then
195  :
196else
197  exitcode=1
198  echo as_func_ret_success failed.
199fi
200
201if as_func_ret_failure; then
202  exitcode=1
203  echo as_func_ret_failure succeeded.
204fi
205
206if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207  :
208else
209  exitcode=1
210  echo positional parameters were not saved.
211fi
212
213test \$exitcode = 0) || { (exit 1); exit 1; }
214
215(
216  as_lineno_1=\$LINENO
217  as_lineno_2=\$LINENO
218  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220") 2> /dev/null; then
221  :
222else
223  as_candidate_shells=
224    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
226do
227  IFS=$as_save_IFS
228  test -z "$as_dir" && as_dir=.
229  case $as_dir in
230         /*)
231           for as_base in sh bash ksh sh5; do
232             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
233           done;;
234       esac
235done
236IFS=$as_save_IFS
237
238
239      for as_shell in $as_candidate_shells $SHELL; do
240         # Try only shells that exist, to save several forks.
241         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242                { ("$as_shell") 2> /dev/null <<\_ASEOF
243if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244  emulate sh
245  NULLCMD=:
246  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247  # is contrary to our usage.  Disable this feature.
248  alias -g '${1+"$@"}'='"$@"'
249  setopt NO_GLOB_SUBST
250else
251  case `(set -o) 2>/dev/null` in
252  *posix*) set -o posix ;;
253esac
254
255fi
256
257
258:
259_ASEOF
260}; then
261  CONFIG_SHELL=$as_shell
262               as_have_required=yes
263               if { "$as_shell" 2> /dev/null <<\_ASEOF
264if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
265  emulate sh
266  NULLCMD=:
267  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268  # is contrary to our usage.  Disable this feature.
269  alias -g '${1+"$@"}'='"$@"'
270  setopt NO_GLOB_SUBST
271else
272  case `(set -o) 2>/dev/null` in
273  *posix*) set -o posix ;;
274esac
275
276fi
277
278
279:
280(as_func_return () {
281  (exit $1)
282}
283as_func_success () {
284  as_func_return 0
285}
286as_func_failure () {
287  as_func_return 1
288}
289as_func_ret_success () {
290  return 0
291}
292as_func_ret_failure () {
293  return 1
294}
295
296exitcode=0
297if as_func_success; then
298  :
299else
300  exitcode=1
301  echo as_func_success failed.
302fi
303
304if as_func_failure; then
305  exitcode=1
306  echo as_func_failure succeeded.
307fi
308
309if as_func_ret_success; then
310  :
311else
312  exitcode=1
313  echo as_func_ret_success failed.
314fi
315
316if as_func_ret_failure; then
317  exitcode=1
318  echo as_func_ret_failure succeeded.
319fi
320
321if ( set x; as_func_ret_success y && test x = "$1" ); then
322  :
323else
324  exitcode=1
325  echo positional parameters were not saved.
326fi
327
328test $exitcode = 0) || { (exit 1); exit 1; }
329
330(
331  as_lineno_1=$LINENO
332  as_lineno_2=$LINENO
333  test "x$as_lineno_1" != "x$as_lineno_2" &&
334  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
335
336_ASEOF
337}; then
338  break
339fi
340
341fi
342
343      done
344
345      if test "x$CONFIG_SHELL" != x; then
346  for as_var in BASH_ENV ENV
347        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
348        done
349        export CONFIG_SHELL
350        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351fi
352
353
354    if test $as_have_required = no; then
355  echo This script requires a shell more modern than all the
356      echo shells that I found on your system.  Please install a
357      echo modern shell, or manually run the script under such a
358      echo shell if you do have one.
359      { (exit 1); exit 1; }
360fi
361
362
363fi
364
365fi
366
367
368
369(eval "as_func_return () {
370  (exit \$1)
371}
372as_func_success () {
373  as_func_return 0
374}
375as_func_failure () {
376  as_func_return 1
377}
378as_func_ret_success () {
379  return 0
380}
381as_func_ret_failure () {
382  return 1
383}
384
385exitcode=0
386if as_func_success; then
387  :
388else
389  exitcode=1
390  echo as_func_success failed.
391fi
392
393if as_func_failure; then
394  exitcode=1
395  echo as_func_failure succeeded.
396fi
397
398if as_func_ret_success; then
399  :
400else
401  exitcode=1
402  echo as_func_ret_success failed.
403fi
404
405if as_func_ret_failure; then
406  exitcode=1
407  echo as_func_ret_failure succeeded.
408fi
409
410if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411  :
412else
413  exitcode=1
414  echo positional parameters were not saved.
415fi
416
417test \$exitcode = 0") || {
418  echo No shell found that supports shell functions.
419  echo Please tell autoconf@gnu.org about your system,
420  echo including any error possibly output before this
421  echo message
422}
423
424
425
426  as_lineno_1=$LINENO
427  as_lineno_2=$LINENO
428  test "x$as_lineno_1" != "x$as_lineno_2" &&
429  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
431  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432  # uniformly replaced by the line number.  The first 'sed' inserts a
433  # line-number line after each line using $LINENO; the second 'sed'
434  # does the real work.  The second script uses 'N' to pair each
435  # line-number line with the line containing $LINENO, and appends
436  # trailing '-' during substitution so that $LINENO is not a special
437  # case at line end.
438  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439  # scripts with optimization help from Paolo Bonzini.  Blame Lee
440  # E. McMahon (1931-1989) for sed's syntax.  :-)
441  sed -n '
442    p
443    /[$]LINENO/=
444  ' <$as_myself |
445    sed '
446      s/[$]LINENO.*/&-/
447      t lineno
448      b
449      :lineno
450      N
451      :loop
452      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453      t loop
454      s/-\n.*//
455    ' >$as_me.lineno &&
456  chmod +x "$as_me.lineno" ||
457    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458   { (exit 1); exit 1; }; }
459
460  # Don't try to exec as it changes $[0], causing all sort of problems
461  # (the dirname of $[0] is not the place where we might find the
462  # original and so on.  Autoconf is especially sensitive to this).
463  . "./$as_me.lineno"
464  # Exit status is that of the last command.
465  exit
466}
467
468
469if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470  as_dirname=dirname
471else
472  as_dirname=false
473fi
474
475ECHO_C= ECHO_N= ECHO_T=
476case `echo -n x` in
477-n*)
478  case `echo 'x\c'` in
479  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
480  *)   ECHO_C='\c';;
481  esac;;
482*)
483  ECHO_N='-n';;
484esac
485
486if expr a : '\(a\)' >/dev/null 2>&1 &&
487   test "X`expr 00001 : '.*\(...\)'`" = X001; then
488  as_expr=expr
489else
490  as_expr=false
491fi
492
493rm -f conf$$ conf$$.exe conf$$.file
494if test -d conf$$.dir; then
495  rm -f conf$$.dir/conf$$.file
496else
497  rm -f conf$$.dir
498  mkdir conf$$.dir
499fi
500echo >conf$$.file
501if ln -s conf$$.file conf$$ 2>/dev/null; then
502  as_ln_s='ln -s'
503  # ... but there are two gotchas:
504  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506  # In both cases, we have to default to `cp -p'.
507  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508    as_ln_s='cp -p'
509elif ln conf$$.file conf$$ 2>/dev/null; then
510  as_ln_s=ln
511else
512  as_ln_s='cp -p'
513fi
514rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515rmdir conf$$.dir 2>/dev/null
516
517if mkdir -p . 2>/dev/null; then
518  as_mkdir_p=:
519else
520  test -d ./-p && rmdir ./-p
521  as_mkdir_p=false
522fi
523
524if test -x / >/dev/null 2>&1; then
525  as_test_x='test -x'
526else
527  if ls -dL / >/dev/null 2>&1; then
528    as_ls_L_option=L
529  else
530    as_ls_L_option=
531  fi
532  as_test_x='
533    eval sh -c '\''
534      if test -d "$1"; then
535        test -d "$1/.";
536      else
537        case $1 in
538        -*)set "./$1";;
539        esac;
540        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541        ???[sx]*):;;*)false;;esac;fi
542    '\'' sh
543  '
544fi
545as_executable_p=$as_test_x
546
547# Sed expression to map a string onto a valid CPP name.
548as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
550# Sed expression to map a string onto a valid variable name.
551as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552
553
554
555
556# Check that we are running under the correct shell.
557SHELL=${CONFIG_SHELL-/bin/sh}
558
559case X$ECHO in
560X*--fallback-echo)
561  # Remove one level of quotation (which was required for Make).
562  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
563  ;;
564esac
565
566echo=${ECHO-echo}
567if test "X$1" = X--no-reexec; then
568  # Discard the --no-reexec flag, and continue.
569  shift
570elif test "X$1" = X--fallback-echo; then
571  # Avoid inline document here, it may be left over
572  :
573elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
574  # Yippee, $echo works!
575  :
576else
577  # Restart under the correct shell.
578  exec $SHELL "$0" --no-reexec ${1+"$@"}
579fi
580
581if test "X$1" = X--fallback-echo; then
582  # used as fallback echo
583  shift
584  cat <<EOF
585$*
586EOF
587  exit 0
588fi
589
590# The HP-UX ksh and POSIX shell print the target directory to stdout
591# if CDPATH is set.
592(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
594if test -z "$ECHO"; then
595if test "X${echo_test_string+set}" != Xset; then
596# find a string as large as possible, as long as the shell can cope with it
597  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
598    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
599    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
600       echo_test_string=`eval $cmd` &&
601       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
602    then
603      break
604    fi
605  done
606fi
607
608if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
609   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
610   test "X$echo_testing_string" = "X$echo_test_string"; then
611  :
612else
613  # The Solaris, AIX, and Digital Unix default echo programs unquote
614  # backslashes.  This makes it impossible to quote backslashes using
615  #   echo "$something" | sed 's/\\/\\\\/g'
616  #
617  # So, first we look for a working echo in the user's PATH.
618
619  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
620  for dir in $PATH /usr/ucb; do
621    IFS="$lt_save_ifs"
622    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
623       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
624       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
625       test "X$echo_testing_string" = "X$echo_test_string"; then
626      echo="$dir/echo"
627      break
628    fi
629  done
630  IFS="$lt_save_ifs"
631
632  if test "X$echo" = Xecho; then
633    # We didn't find a better echo, so look for alternatives.
634    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
635       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
636       test "X$echo_testing_string" = "X$echo_test_string"; then
637      # This shell has a builtin print -r that does the trick.
638      echo='print -r'
639    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
640         test "X$CONFIG_SHELL" != X/bin/ksh; then
641      # If we have ksh, try running configure again with it.
642      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
643      export ORIGINAL_CONFIG_SHELL
644      CONFIG_SHELL=/bin/ksh
645      export CONFIG_SHELL
646      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647    else
648      # Try using printf.
649      echo='printf %s\n'
650      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
651         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
652         test "X$echo_testing_string" = "X$echo_test_string"; then
653        # Cool, printf works
654        :
655      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
656           test "X$echo_testing_string" = 'X\t' &&
657           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
658           test "X$echo_testing_string" = "X$echo_test_string"; then
659        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660        export CONFIG_SHELL
661        SHELL="$CONFIG_SHELL"
662        export SHELL
663        echo="$CONFIG_SHELL $0 --fallback-echo"
664      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
665           test "X$echo_testing_string" = 'X\t' &&
666           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
667           test "X$echo_testing_string" = "X$echo_test_string"; then
668        echo="$CONFIG_SHELL $0 --fallback-echo"
669      else
670        # maybe with a smaller string...
671        prev=:
672
673        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
674          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
675          then
676            break
677          fi
678          prev="$cmd"
679        done
680
681        if test "$prev" != 'sed 50q "$0"'; then
682          echo_test_string=`eval $prev`
683          export echo_test_string
684          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685        else
686          # Oops.  We lost completely, so just stick with echo.
687          echo=echo
688        fi
689      fi
690    fi
691  fi
692fi
693fi
694
695# Copy echo and quote the copy suitably for passing to libtool from
696# the Makefile, instead of quoting the original, which is used later.
697ECHO=$echo
698if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
699   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
700fi
701
702
703
704
705tagnames=${tagnames+${tagnames},}CXX
706
707tagnames=${tagnames+${tagnames},}F77
708
709exec 7<&0 </dev/null 6>&1
710
711# Name of the host.
712# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
713# so uname gets run too.
714ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
715
716#
717# Initializations.
718#
719ac_default_prefix=/usr/local
720ac_clean_files=
721ac_config_libobj_dir=.
722LIBOBJS=
723cross_compiling=no
724subdirs=
725MFLAGS=
726MAKEFLAGS=
727SHELL=${CONFIG_SHELL-/bin/sh}
728
729# Identity of this package.
730PACKAGE_NAME='adolc'
731PACKAGE_TARNAME='adolc'
732PACKAGE_VERSION='2.0.0-trunk'
733PACKAGE_STRING='adolc 2.0.0-trunk'
734PACKAGE_BUGREPORT='adol-c@tu-dresden.de'
735
736ac_unique_file="adolc/adolc.h"
737ac_default_prefix=${HOME}/adolc_base
738# Factoring default headers for most tests.
739ac_includes_default="\
740#include <stdio.h>
741#ifdef HAVE_SYS_TYPES_H
742# include <sys/types.h>
743#endif
744#ifdef HAVE_SYS_STAT_H
745# include <sys/stat.h>
746#endif
747#ifdef STDC_HEADERS
748# include <stdlib.h>
749# include <stddef.h>
750#else
751# ifdef HAVE_STDLIB_H
752#  include <stdlib.h>
753# endif
754#endif
755#ifdef HAVE_STRING_H
756# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757#  include <memory.h>
758# endif
759# include <string.h>
760#endif
761#ifdef HAVE_STRINGS_H
762# include <strings.h>
763#endif
764#ifdef HAVE_INTTYPES_H
765# include <inttypes.h>
766#endif
767#ifdef HAVE_STDINT_H
768# include <stdint.h>
769#endif
770#ifdef HAVE_UNISTD_H
771# include <unistd.h>
772#endif"
773
774ac_subst_vars='SHELL
775PATH_SEPARATOR
776PACKAGE_NAME
777PACKAGE_TARNAME
778PACKAGE_VERSION
779PACKAGE_STRING
780PACKAGE_BUGREPORT
781exec_prefix
782prefix
783program_transform_name
784bindir
785sbindir
786libexecdir
787datarootdir
788datadir
789sysconfdir
790sharedstatedir
791localstatedir
792includedir
793oldincludedir
794docdir
795infodir
796htmldir
797dvidir
798pdfdir
799psdir
800libdir
801localedir
802mandir
803DEFS
804ECHO_C
805ECHO_N
806ECHO_T
807LIBS
808build_alias
809host_alias
810target_alias
811INSTALL_PROGRAM
812INSTALL_SCRIPT
813INSTALL_DATA
814CYGPATH_W
815PACKAGE
816VERSION
817ACLOCAL
818AUTOCONF
819AUTOMAKE
820AUTOHEADER
821MAKEINFO
822install_sh
823STRIP
824INSTALL_STRIP_PROGRAM
825mkdir_p
826AWK
827SET_MAKE
828am__leading_dot
829AMTAR
830am__tar
831am__untar
832CXX
833CXXFLAGS
834LDFLAGS
835CPPFLAGS
836ac_ct_CXX
837EXEEXT
838OBJEXT
839DEPDIR
840am__include
841am__quote
842AMDEP_TRUE
843AMDEP_FALSE
844AMDEPBACKSLASH
845CXXDEPMODE
846am__fastdepCXX_TRUE
847am__fastdepCXX_FALSE
848CC
849CFLAGS
850ac_ct_CC
851CCDEPMODE
852am__fastdepCC_TRUE
853am__fastdepCC_FALSE
854CPP
855LN_S
856RANLIB
857build
858build_cpu
859build_vendor
860build_os
861host
862host_cpu
863host_vendor
864host_os
865SED
866GREP
867EGREP
868ECHO
869AR
870DLLTOOL
871AS
872OBJDUMP
873CXXCPP
874F77
875FFLAGS
876ac_ct_F77
877LIBTOOL
878LIBOBJS
879ac_aux_dir
880SPARSE_TRUE
881SPARSE_FALSE
882DOCEXA_TRUE
883DOCEXA_FALSE
884ADDEXA_TRUE
885ADDEXA_FALSE
886PAREXA_TRUE
887PAREXA_FALSE
888ac_adolc_cflags
889ac_adolc_cxxflags
890LTLIBOBJS'
891ac_subst_files=''
892      ac_precious_vars='build_alias
893host_alias
894target_alias
895CXX
896CXXFLAGS
897LDFLAGS
898LIBS
899CPPFLAGS
900CCC
901CC
902CFLAGS
903CPP
904CXXCPP
905F77
906FFLAGS'
907
908
909# Initialize some variables set by options.
910ac_init_help=
911ac_init_version=false
912# The variables have the same names as the options, with
913# dashes changed to underlines.
914cache_file=/dev/null
915exec_prefix=NONE
916no_create=
917no_recursion=
918prefix=NONE
919program_prefix=NONE
920program_suffix=NONE
921program_transform_name=s,x,x,
922silent=
923site=
924srcdir=
925verbose=
926x_includes=NONE
927x_libraries=NONE
928
929# Installation directory options.
930# These are left unexpanded so users can "make install exec_prefix=/foo"
931# and all the variables that are supposed to be based on exec_prefix
932# by default will actually change.
933# Use braces instead of parens because sh, perl, etc. also accept them.
934# (The list follows the same order as the GNU Coding Standards.)
935bindir='${exec_prefix}/bin'
936sbindir='${exec_prefix}/sbin'
937libexecdir='${exec_prefix}/libexec'
938datarootdir='${prefix}/share'
939datadir='${datarootdir}'
940sysconfdir='${prefix}/etc'
941sharedstatedir='${prefix}/com'
942localstatedir='${prefix}/var'
943includedir='${prefix}/include'
944oldincludedir='/usr/include'
945docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946infodir='${datarootdir}/info'
947htmldir='${docdir}'
948dvidir='${docdir}'
949pdfdir='${docdir}'
950psdir='${docdir}'
951libdir='${exec_prefix}/lib'
952localedir='${datarootdir}/locale'
953mandir='${datarootdir}/man'
954
955ac_prev=
956ac_dashdash=
957for ac_option
958do
959  # If the previous option needs an argument, assign it.
960  if test -n "$ac_prev"; then
961    eval $ac_prev=\$ac_option
962    ac_prev=
963    continue
964  fi
965
966  case $ac_option in
967  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968  *)    ac_optarg=yes ;;
969  esac
970
971  # Accept the important Cygnus configure options, so we can diagnose typos.
972
973  case $ac_dashdash$ac_option in
974  --)
975    ac_dashdash=yes ;;
976
977  -bindir | --bindir | --bindi | --bind | --bin | --bi)
978    ac_prev=bindir ;;
979  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980    bindir=$ac_optarg ;;
981
982  -build | --build | --buil | --bui | --bu)
983    ac_prev=build_alias ;;
984  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985    build_alias=$ac_optarg ;;
986
987  -cache-file | --cache-file | --cache-fil | --cache-fi \
988  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989    ac_prev=cache_file ;;
990  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992    cache_file=$ac_optarg ;;
993
994  --config-cache | -C)
995    cache_file=config.cache ;;
996
997  -datadir | --datadir | --datadi | --datad)
998    ac_prev=datadir ;;
999  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000    datadir=$ac_optarg ;;
1001
1002  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003  | --dataroo | --dataro | --datar)
1004    ac_prev=datarootdir ;;
1005  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007    datarootdir=$ac_optarg ;;
1008
1009  -disable-* | --disable-*)
1010    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011    # Reject names that are not valid shell variable names.
1012    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1013      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1014   { (exit 1); exit 1; }; }
1015    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1016    eval enable_$ac_feature=no ;;
1017
1018  -docdir | --docdir | --docdi | --doc | --do)
1019    ac_prev=docdir ;;
1020  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021    docdir=$ac_optarg ;;
1022
1023  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024    ac_prev=dvidir ;;
1025  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026    dvidir=$ac_optarg ;;
1027
1028  -enable-* | --enable-*)
1029    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030    # Reject names that are not valid shell variable names.
1031    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1032      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1033   { (exit 1); exit 1; }; }
1034    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1035    eval enable_$ac_feature=\$ac_optarg ;;
1036
1037  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1038  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1039  | --exec | --exe | --ex)
1040    ac_prev=exec_prefix ;;
1041  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1042  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1043  | --exec=* | --exe=* | --ex=*)
1044    exec_prefix=$ac_optarg ;;
1045
1046  -gas | --gas | --ga | --g)
1047    # Obsolete; use --with-gas.
1048    with_gas=yes ;;
1049
1050  -help | --help | --hel | --he | -h)
1051    ac_init_help=long ;;
1052  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1053    ac_init_help=recursive ;;
1054  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1055    ac_init_help=short ;;
1056
1057  -host | --host | --hos | --ho)
1058    ac_prev=host_alias ;;
1059  -host=* | --host=* | --hos=* | --ho=*)
1060    host_alias=$ac_optarg ;;
1061
1062  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063    ac_prev=htmldir ;;
1064  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065  | --ht=*)
1066    htmldir=$ac_optarg ;;
1067
1068  -includedir | --includedir | --includedi | --included | --include \
1069  | --includ | --inclu | --incl | --inc)
1070    ac_prev=includedir ;;
1071  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1072  | --includ=* | --inclu=* | --incl=* | --inc=*)
1073    includedir=$ac_optarg ;;
1074
1075  -infodir | --infodir | --infodi | --infod | --info | --inf)
1076    ac_prev=infodir ;;
1077  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1078    infodir=$ac_optarg ;;
1079
1080  -libdir | --libdir | --libdi | --libd)
1081    ac_prev=libdir ;;
1082  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1083    libdir=$ac_optarg ;;
1084
1085  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1086  | --libexe | --libex | --libe)
1087    ac_prev=libexecdir ;;
1088  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1089  | --libexe=* | --libex=* | --libe=*)
1090    libexecdir=$ac_optarg ;;
1091
1092  -localedir | --localedir | --localedi | --localed | --locale)
1093    ac_prev=localedir ;;
1094  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1095    localedir=$ac_optarg ;;
1096
1097  -localstatedir | --localstatedir | --localstatedi | --localstated \
1098  | --localstate | --localstat | --localsta | --localst | --locals)
1099    ac_prev=localstatedir ;;
1100  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1101  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1102    localstatedir=$ac_optarg ;;
1103
1104  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105    ac_prev=mandir ;;
1106  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1107    mandir=$ac_optarg ;;
1108
1109  -nfp | --nfp | --nf)
1110    # Obsolete; use --without-fp.
1111    with_fp=no ;;
1112
1113  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1114  | --no-cr | --no-c | -n)
1115    no_create=yes ;;
1116
1117  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1118  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119    no_recursion=yes ;;
1120
1121  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1122  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1123  | --oldin | --oldi | --old | --ol | --o)
1124    ac_prev=oldincludedir ;;
1125  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1126  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1127  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1128    oldincludedir=$ac_optarg ;;
1129
1130  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131    ac_prev=prefix ;;
1132  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1133    prefix=$ac_optarg ;;
1134
1135  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1136  | --program-pre | --program-pr | --program-p)
1137    ac_prev=program_prefix ;;
1138  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1139  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1140    program_prefix=$ac_optarg ;;
1141
1142  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1143  | --program-suf | --program-su | --program-s)
1144    ac_prev=program_suffix ;;
1145  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1146  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1147    program_suffix=$ac_optarg ;;
1148
1149  -program-transform-name | --program-transform-name \
1150  | --program-transform-nam | --program-transform-na \
1151  | --program-transform-n | --program-transform- \
1152  | --program-transform | --program-transfor \
1153  | --program-transfo | --program-transf \
1154  | --program-trans | --program-tran \
1155  | --progr-tra | --program-tr | --program-t)
1156    ac_prev=program_transform_name ;;
1157  -program-transform-name=* | --program-transform-name=* \
1158  | --program-transform-nam=* | --program-transform-na=* \
1159  | --program-transform-n=* | --program-transform-=* \
1160  | --program-transform=* | --program-transfor=* \
1161  | --program-transfo=* | --program-transf=* \
1162  | --program-trans=* | --program-tran=* \
1163  | --progr-tra=* | --program-tr=* | --program-t=*)
1164    program_transform_name=$ac_optarg ;;
1165
1166  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167    ac_prev=pdfdir ;;
1168  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1169    pdfdir=$ac_optarg ;;
1170
1171  -psdir | --psdir | --psdi | --psd | --ps)
1172    ac_prev=psdir ;;
1173  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174    psdir=$ac_optarg ;;
1175
1176  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1177  | -silent | --silent | --silen | --sile | --sil)
1178    silent=yes ;;
1179
1180  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181    ac_prev=sbindir ;;
1182  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183  | --sbi=* | --sb=*)
1184    sbindir=$ac_optarg ;;
1185
1186  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1187  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1188  | --sharedst | --shareds | --shared | --share | --shar \
1189  | --sha | --sh)
1190    ac_prev=sharedstatedir ;;
1191  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1192  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1193  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194  | --sha=* | --sh=*)
1195    sharedstatedir=$ac_optarg ;;
1196
1197  -site | --site | --sit)
1198    ac_prev=site ;;
1199  -site=* | --site=* | --sit=*)
1200    site=$ac_optarg ;;
1201
1202  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203    ac_prev=srcdir ;;
1204  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1205    srcdir=$ac_optarg ;;
1206
1207  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1208  | --syscon | --sysco | --sysc | --sys | --sy)
1209    ac_prev=sysconfdir ;;
1210  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1211  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1212    sysconfdir=$ac_optarg ;;
1213
1214  -target | --target | --targe | --targ | --tar | --ta | --t)
1215    ac_prev=target_alias ;;
1216  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1217    target_alias=$ac_optarg ;;
1218
1219  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220    verbose=yes ;;
1221
1222  -version | --version | --versio | --versi | --vers | -V)
1223    ac_init_version=: ;;
1224
1225  -with-* | --with-*)
1226    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1227    # Reject names that are not valid shell variable names.
1228    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1229      { echo "$as_me: error: invalid package name: $ac_package" >&2
1230   { (exit 1); exit 1; }; }
1231    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1232    eval with_$ac_package=\$ac_optarg ;;
1233
1234  -without-* | --without-*)
1235    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236    # Reject names that are not valid shell variable names.
1237    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238      { echo "$as_me: error: invalid package name: $ac_package" >&2
1239   { (exit 1); exit 1; }; }
1240    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1241    eval with_$ac_package=no ;;
1242
1243  --x)
1244    # Obsolete; use --with-x.
1245    with_x=yes ;;
1246
1247  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1248  | --x-incl | --x-inc | --x-in | --x-i)
1249    ac_prev=x_includes ;;
1250  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1251  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1252    x_includes=$ac_optarg ;;
1253
1254  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1255  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1256    ac_prev=x_libraries ;;
1257  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1258  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1259    x_libraries=$ac_optarg ;;
1260
1261  -*) { echo "$as_me: error: unrecognized option: $ac_option
1262Try \`$0 --help' for more information." >&2
1263   { (exit 1); exit 1; }; }
1264    ;;
1265
1266  *=*)
1267    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268    # Reject names that are not valid shell variable names.
1269    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1270      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1271   { (exit 1); exit 1; }; }
1272    eval $ac_envvar=\$ac_optarg
1273    export $ac_envvar ;;
1274
1275  *)
1276    # FIXME: should be removed in autoconf 3.0.
1277    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1278    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1280    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1281    ;;
1282
1283  esac
1284done
1285
1286if test -n "$ac_prev"; then
1287  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1288  { echo "$as_me: error: missing argument to $ac_option" >&2
1289   { (exit 1); exit 1; }; }
1290fi
1291
1292# Be sure to have absolute directory names.
1293for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1294                datadir sysconfdir sharedstatedir localstatedir includedir \
1295                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1296                libdir localedir mandir
1297do
1298  eval ac_val=\$$ac_var
1299  case $ac_val in
1300    [\\/$]* | ?:[\\/]* )  continue;;
1301    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302  esac
1303  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1304   { (exit 1); exit 1; }; }
1305done
1306
1307# There might be people who depend on the old broken behavior: `$host'
1308# used to hold the argument of --host etc.
1309# FIXME: To remove some day.
1310build=$build_alias
1311host=$host_alias
1312target=$target_alias
1313
1314# FIXME: To remove some day.
1315if test "x$host_alias" != x; then
1316  if test "x$build_alias" = x; then
1317    cross_compiling=maybe
1318    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1319    If a cross compiler is detected then cross compile mode will be used." >&2
1320  elif test "x$build_alias" != "x$host_alias"; then
1321    cross_compiling=yes
1322  fi
1323fi
1324
1325ac_tool_prefix=
1326test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327
1328test "$silent" = yes && exec 6>/dev/null
1329
1330
1331ac_pwd=`pwd` && test -n "$ac_pwd" &&
1332ac_ls_di=`ls -di .` &&
1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1334  { echo "$as_me: error: Working directory cannot be determined" >&2
1335   { (exit 1); exit 1; }; }
1336test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337  { echo "$as_me: error: pwd does not report name of working directory" >&2
1338   { (exit 1); exit 1; }; }
1339
1340
1341# Find the source files, if location was not specified.
1342if test -z "$srcdir"; then
1343  ac_srcdir_defaulted=yes
1344  # Try the directory containing this script, then the parent directory.
1345  ac_confdir=`$as_dirname -- "$0" ||
1346$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1347         X"$0" : 'X\(//\)[^/]' \| \
1348         X"$0" : 'X\(//\)$' \| \
1349         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1350echo X"$0" |
1351    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1352            s//\1/
1353            q
1354          }
1355          /^X\(\/\/\)[^/].*/{
1356            s//\1/
1357            q
1358          }
1359          /^X\(\/\/\)$/{
1360            s//\1/
1361            q
1362          }
1363          /^X\(\/\).*/{
1364            s//\1/
1365            q
1366          }
1367          s/.*/./; q'`
1368  srcdir=$ac_confdir
1369  if test ! -r "$srcdir/$ac_unique_file"; then
1370    srcdir=..
1371  fi
1372else
1373  ac_srcdir_defaulted=no
1374fi
1375if test ! -r "$srcdir/$ac_unique_file"; then
1376  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1377  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1378   { (exit 1); exit 1; }; }
1379fi
1380ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381ac_abs_confdir=`(
1382        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1383   { (exit 1); exit 1; }; }
1384        pwd)`
1385# When building in place, set srcdir=.
1386if test "$ac_abs_confdir" = "$ac_pwd"; then
1387  srcdir=.
1388fi
1389# Remove unnecessary trailing slashes from srcdir.
1390# Double slashes in file names in object file debugging info
1391# mess up M-x gdb in Emacs.
1392case $srcdir in
1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394esac
1395for ac_var in $ac_precious_vars; do
1396  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1397  eval ac_env_${ac_var}_value=\$${ac_var}
1398  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1399  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1400done
1401
1402#
1403# Report the --help message.
1404#
1405if test "$ac_init_help" = "long"; then
1406  # Omit some internal or obsolete options to make the list less imposing.
1407  # This message is too long to be a string in the A/UX 3.1 sh.
1408  cat <<_ACEOF
1409\`configure' configures adolc 2.0.0-trunk to adapt to many kinds of systems.
1410
1411Usage: $0 [OPTION]... [VAR=VALUE]...
1412
1413To assign environment variables (e.g., CC, CFLAGS...), specify them as
1414VAR=VALUE.  See below for descriptions of some of the useful variables.
1415
1416Defaults for the options are specified in brackets.
1417
1418Configuration:
1419  -h, --help              display this help and exit
1420      --help=short        display options specific to this package
1421      --help=recursive    display the short help of all the included packages
1422  -V, --version           display version information and exit
1423  -q, --quiet, --silent   do not print \`checking...' messages
1424      --cache-file=FILE   cache test results in FILE [disabled]
1425  -C, --config-cache      alias for \`--cache-file=config.cache'
1426  -n, --no-create         do not create output files
1427      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1428
1429Installation directories:
1430  --prefix=PREFIX         install architecture-independent files in PREFIX
1431                          [$ac_default_prefix]
1432  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1433                          [PREFIX]
1434
1435By default, \`make install' will install all the files in
1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1437an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1438for instance \`--prefix=\$HOME'.
1439
1440For better control, use the options below.
1441
1442Fine tuning of the installation directories:
1443  --bindir=DIR           user executables [EPREFIX/bin]
1444  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1445  --libexecdir=DIR       program executables [EPREFIX/libexec]
1446  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1447  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1448  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1449  --libdir=DIR           object code libraries [EPREFIX/lib]
1450  --includedir=DIR       C header files [PREFIX/include]
1451  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1452  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1453  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1454  --infodir=DIR          info documentation [DATAROOTDIR/info]
1455  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1456  --mandir=DIR           man documentation [DATAROOTDIR/man]
1457  --docdir=DIR           documentation root [DATAROOTDIR/doc/adolc]
1458  --htmldir=DIR          html documentation [DOCDIR]
1459  --dvidir=DIR           dvi documentation [DOCDIR]
1460  --pdfdir=DIR           pdf documentation [DOCDIR]
1461  --psdir=DIR            ps documentation [DOCDIR]
1462_ACEOF
1463
1464  cat <<\_ACEOF
1465
1466Program names:
1467  --program-prefix=PREFIX            prepend PREFIX to installed program names
1468  --program-suffix=SUFFIX            append SUFFIX to installed program names
1469  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1470
1471System types:
1472  --build=BUILD     configure for building on BUILD [guessed]
1473  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478  case $ac_init_help in
1479     short | recursive ) echo "Configuration of adolc 2.0.0-trunk:";;
1480   esac
1481  cat <<\_ACEOF
1482
1483Optional Features:
1484  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1485  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1486  --disable-dependency-tracking  speeds up one-time build
1487  --enable-dependency-tracking   do not reject slow dependency extractors
1488  --enable-shared[=PKGS]  build shared libraries [default=yes]
1489  --enable-static[=PKGS]  build static libraries [default=yes]
1490  --enable-fast-install[=PKGS]
1491                          optimize for fast installation [default=yes]
1492  --disable-libtool-lock  avoid locking (might break parallel builds)
1493
1494  --enable-debug          enable ADOL-C debug mode [default=no]
1495
1496  --enable-harddebug      enable ADOL-C hard debug mode [default=no]
1497
1498  --enable-stdczero       adouble standard constructor zeros value (at the
1499                          cost of performance) [default=no]
1500
1501  --enable-tserrno        use errno as thread number cache [default=no]
1502
1503  --enable-safe-extern    backup all adoubles before calling an external
1504                          function [default=no]
1505
1506Optional Packages:
1507  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1510  --with-pic              try to use only PIC/non-PIC objects [default=use
1511                          both]
1512  --with-tags[=TAGS]      include additional configurations [automatic]
1513
1514  --with-sparse           build sparse drivers [default=no]
1515
1516  --with-docexa           build documented examples [default=no]
1517  --with-addexa           build additional examples [default=no]
1518  --with-parexa           build parallel example [default=no], if yes
1519                          -with-openmp-flag=FLAG required
1520  --with-openmp-flag=FLAG use FLAG to enable OpenMP at compile time
1521                          [default=none]
1522  --with-cflags=FLAGS     use CFLAGS=FLAGS (default: -O3 -Wall -ansi)
1523  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O3 -Wall)
1524
1525Some influential environment variables:
1526  CXX         C++ compiler command
1527  CXXFLAGS    C++ compiler flags
1528  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1529              nonstandard directory <lib dir>
1530  LIBS        libraries to pass to the linker, e.g. -l<library>
1531  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1532              you have headers in a nonstandard directory <include dir>
1533  CC          C compiler command
1534  CFLAGS      C compiler flags
1535  CPP         C preprocessor
1536  CXXCPP      C++ preprocessor
1537  F77         Fortran 77 compiler command
1538  FFLAGS      Fortran 77 compiler flags
1539
1540Use these variables to override the choices made by `configure' or to help
1541it to find libraries and programs with nonstandard names/locations.
1542
1543Report bugs to <adol-c@tu-dresden.de>.
1544_ACEOF
1545ac_status=$?
1546fi
1547
1548if test "$ac_init_help" = "recursive"; then
1549  # If there are subdirs, report their specific --help.
1550  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551    test -d "$ac_dir" || continue
1552    ac_builddir=.
1553
1554case "$ac_dir" in
1555.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556*)
1557  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1558  # A ".." for each directory in $ac_dir_suffix.
1559  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1560  case $ac_top_builddir_sub in
1561  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563  esac ;;
1564esac
1565ac_abs_top_builddir=$ac_pwd
1566ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567# for backward compatibility:
1568ac_top_builddir=$ac_top_build_prefix
1569
1570case $srcdir in
1571  .)  # We are building in place.
1572    ac_srcdir=.
1573    ac_top_srcdir=$ac_top_builddir_sub
1574    ac_abs_top_srcdir=$ac_pwd ;;
1575  [\\/]* | ?:[\\/]* )  # Absolute name.
1576    ac_srcdir=$srcdir$ac_dir_suffix;
1577    ac_top_srcdir=$srcdir
1578    ac_abs_top_srcdir=$srcdir ;;
1579  *) # Relative name.
1580    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581    ac_top_srcdir=$ac_top_build_prefix$srcdir
1582    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583esac
1584ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586    cd "$ac_dir" || { ac_status=$?; continue; }
1587    # Check for guested configure.
1588    if test -f "$ac_srcdir/configure.gnu"; then
1589      echo &&
1590      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591    elif test -f "$ac_srcdir/configure"; then
1592      echo &&
1593      $SHELL "$ac_srcdir/configure" --help=recursive
1594    else
1595      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596    fi || ac_status=$?
1597    cd "$ac_pwd" || { ac_status=$?; break; }
1598  done
1599fi
1600
1601test -n "$ac_init_help" && exit $ac_status
1602if $ac_init_version; then
1603  cat <<\_ACEOF
1604adolc configure 2.0.0-trunk
1605generated by GNU Autoconf 2.61
1606
1607Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16082002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1609This configure script is free software; the Free Software Foundation
1610gives unlimited permission to copy, distribute and modify it.
1611_ACEOF
1612  exit
1613fi
1614cat >config.log <<_ACEOF
1615This file contains any messages produced by compilers while
1616running configure, to aid debugging if configure makes a mistake.
1617
1618It was created by adolc $as_me 2.0.0-trunk, which was
1619generated by GNU Autoconf 2.61.  Invocation command line was
1620
1621  $ $0 $@
1622
1623_ACEOF
1624exec 5>>config.log
1625{
1626cat <<_ASUNAME
1627## --------- ##
1628## Platform. ##
1629## --------- ##
1630
1631hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1632uname -m = `(uname -m) 2>/dev/null || echo unknown`
1633uname -r = `(uname -r) 2>/dev/null || echo unknown`
1634uname -s = `(uname -s) 2>/dev/null || echo unknown`
1635uname -v = `(uname -v) 2>/dev/null || echo unknown`
1636
1637/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1638/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1639
1640/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1641/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1642/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1643/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1644/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1645/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1646/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1647
1648_ASUNAME
1649
1650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1651for as_dir in $PATH
1652do
1653  IFS=$as_save_IFS
1654  test -z "$as_dir" && as_dir=.
1655  echo "PATH: $as_dir"
1656done
1657IFS=$as_save_IFS
1658
1659} >&5
1660
1661cat >&5 <<_ACEOF
1662
1663
1664## ----------- ##
1665## Core tests. ##
1666## ----------- ##
1667
1668_ACEOF
1669
1670
1671# Keep a trace of the command line.
1672# Strip out --no-create and --no-recursion so they do not pile up.
1673# Strip out --silent because we don't want to record it for future runs.
1674# Also quote any args containing shell meta-characters.
1675# Make two passes to allow for proper duplicate-argument suppression.
1676ac_configure_args=
1677ac_configure_args0=
1678ac_configure_args1=
1679ac_must_keep_next=false
1680for ac_pass in 1 2
1681do
1682  for ac_arg
1683  do
1684    case $ac_arg in
1685    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1686    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1687    | -silent | --silent | --silen | --sile | --sil)
1688      continue ;;
1689    *\'*)
1690      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1691    esac
1692    case $ac_pass in
1693    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1694    2)
1695      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1696      if test $ac_must_keep_next = true; then
1697        ac_must_keep_next=false # Got value, back to normal.
1698      else
1699        case $ac_arg in
1700          *=* | --config-cache | -C | -disable-* | --disable-* \
1701          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1702          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1703          | -with-* | --with-* | -without-* | --without-* | --x)
1704            case "$ac_configure_args0 " in
1705              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1706            esac
1707            ;;
1708          -* ) ac_must_keep_next=true ;;
1709        esac
1710      fi
1711      ac_configure_args="$ac_configure_args '$ac_arg'"
1712      ;;
1713    esac
1714  done
1715done
1716$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1717$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1718
1719# When interrupted or exit'd, cleanup temporary files, and complete
1720# config.log.  We remove comments because anyway the quotes in there
1721# would cause problems or look ugly.
1722# WARNING: Use '\'' to represent an apostrophe within the trap.
1723# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1724trap 'exit_status=$?
1725  # Save into config.log some information that might help in debugging.
1726  {
1727    echo
1728
1729    cat <<\_ASBOX
1730## ---------------- ##
1731## Cache variables. ##
1732## ---------------- ##
1733_ASBOX
1734    echo
1735    # The following way of writing the cache mishandles newlines in values,
1736(
1737  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1738    eval ac_val=\$$ac_var
1739    case $ac_val in #(
1740    *${as_nl}*)
1741      case $ac_var in #(
1742      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1743echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1744      esac
1745      case $ac_var in #(
1746      _ | IFS | as_nl) ;; #(
1747      *) $as_unset $ac_var ;;
1748      esac ;;
1749    esac
1750  done
1751  (set) 2>&1 |
1752    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1753    *${as_nl}ac_space=\ *)
1754      sed -n \
1755        "s/'\''/'\''\\\\'\'''\''/g;
1756          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1757      ;; #(
1758    *)
1759      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1760      ;;
1761    esac |
1762    sort
1763)
1764    echo
1765
1766    cat <<\_ASBOX
1767## ----------------- ##
1768## Output variables. ##
1769## ----------------- ##
1770_ASBOX
1771    echo
1772    for ac_var in $ac_subst_vars
1773    do
1774      eval ac_val=\$$ac_var
1775      case $ac_val in
1776      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777      esac
1778      echo "$ac_var='\''$ac_val'\''"
1779    done | sort
1780    echo
1781
1782    if test -n "$ac_subst_files"; then
1783      cat <<\_ASBOX
1784## ------------------- ##
1785## File substitutions. ##
1786## ------------------- ##
1787_ASBOX
1788      echo
1789      for ac_var in $ac_subst_files
1790      do
1791        eval ac_val=\$$ac_var
1792        case $ac_val in
1793        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794        esac
1795        echo "$ac_var='\''$ac_val'\''"
1796      done | sort
1797      echo
1798    fi
1799
1800    if test -s confdefs.h; then
1801      cat <<\_ASBOX
1802## ----------- ##
1803## confdefs.h. ##
1804## ----------- ##
1805_ASBOX
1806      echo
1807      cat confdefs.h
1808      echo
1809    fi
1810    test "$ac_signal" != 0 &&
1811      echo "$as_me: caught signal $ac_signal"
1812    echo "$as_me: exit $exit_status"
1813  } >&5
1814  rm -f core *.core core.conftest.* &&
1815    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1816    exit $exit_status
1817' 0
1818for ac_signal in 1 2 13 15; do
1819  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1820done
1821ac_signal=0
1822
1823# confdefs.h avoids OS command line length limits that DEFS can exceed.
1824rm -f -r conftest* confdefs.h
1825
1826# Predefined preprocessor variables.
1827
1828cat >>confdefs.h <<_ACEOF
1829#define PACKAGE_NAME "$PACKAGE_NAME"
1830_ACEOF
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1835_ACEOF
1836
1837
1838cat >>confdefs.h <<_ACEOF
1839#define PACKAGE_VERSION "$PACKAGE_VERSION"
1840_ACEOF
1841
1842
1843cat >>confdefs.h <<_ACEOF
1844#define PACKAGE_STRING "$PACKAGE_STRING"
1845_ACEOF
1846
1847
1848cat >>confdefs.h <<_ACEOF
1849#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1850_ACEOF
1851
1852
1853# Let the site file select an alternate cache file if it wants to.
1854# Prefer explicitly selected file to automatically selected ones.
1855if test -n "$CONFIG_SITE"; then
1856  set x "$CONFIG_SITE"
1857elif test "x$prefix" != xNONE; then
1858  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1859else
1860  set x "$ac_default_prefix/share/config.site" \
1861        "$ac_default_prefix/etc/config.site"
1862fi
1863shift
1864for ac_site_file
1865do
1866  if test -r "$ac_site_file"; then
1867    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1868echo "$as_me: loading site script $ac_site_file" >&6;}
1869    sed 's/^/| /' "$ac_site_file" >&5
1870    . "$ac_site_file"
1871  fi
1872done
1873
1874if test -r "$cache_file"; then
1875  # Some versions of bash will fail to source /dev/null (special
1876  # files actually), so we avoid doing that.
1877  if test -f "$cache_file"; then
1878    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1879echo "$as_me: loading cache $cache_file" >&6;}
1880    case $cache_file in
1881      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1882      *)                      . "./$cache_file";;
1883    esac
1884  fi
1885else
1886  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1887echo "$as_me: creating cache $cache_file" >&6;}
1888  >$cache_file
1889fi
1890
1891# Check that the precious variables saved in the cache have kept the same
1892# value.
1893ac_cache_corrupted=false
1894for ac_var in $ac_precious_vars; do
1895  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1896  eval ac_new_set=\$ac_env_${ac_var}_set
1897  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1898  eval ac_new_val=\$ac_env_${ac_var}_value
1899  case $ac_old_set,$ac_new_set in
1900    set,)
1901      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1902echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1903      ac_cache_corrupted=: ;;
1904    ,set)
1905      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1906echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1907      ac_cache_corrupted=: ;;
1908    ,);;
1909    *)
1910      if test "x$ac_old_val" != "x$ac_new_val"; then
1911        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1913        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1914echo "$as_me:   former value:  $ac_old_val" >&2;}
1915        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1916echo "$as_me:   current value: $ac_new_val" >&2;}
1917        ac_cache_corrupted=:
1918      fi;;
1919  esac
1920  # Pass precious variables to config.status.
1921  if test "$ac_new_set" = set; then
1922    case $ac_new_val in
1923    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1924    *) ac_arg=$ac_var=$ac_new_val ;;
1925    esac
1926    case " $ac_configure_args " in
1927      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1928      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1929    esac
1930  fi
1931done
1932if $ac_cache_corrupted; then
1933  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1934echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1935  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1936echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1937   { (exit 1); exit 1; }; }
1938fi
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964ac_ext=c
1965ac_cpp='$CPP $CPPFLAGS'
1966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969
1970
1971
1972
1973ac_aux_dir=
1974for ac_dir in autoconf "$srcdir"/autoconf; do
1975  if test -f "$ac_dir/install-sh"; then
1976    ac_aux_dir=$ac_dir
1977    ac_install_sh="$ac_aux_dir/install-sh -c"
1978    break
1979  elif test -f "$ac_dir/install.sh"; then
1980    ac_aux_dir=$ac_dir
1981    ac_install_sh="$ac_aux_dir/install.sh -c"
1982    break
1983  elif test -f "$ac_dir/shtool"; then
1984    ac_aux_dir=$ac_dir
1985    ac_install_sh="$ac_aux_dir/shtool install -c"
1986    break
1987  fi
1988done
1989if test -z "$ac_aux_dir"; then
1990  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1991echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1992   { (exit 1); exit 1; }; }
1993fi
1994
1995# These three variables are undocumented and unsupported,
1996# and are intended to be withdrawn in a future Autoconf release.
1997# They can cause serious problems if a builder's source tree is in a directory
1998# whose full name contains unusual characters.
1999ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2000ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2001ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2002
2003
2004ac_config_headers="$ac_config_headers adolc/config.h"
2005
2006
2007am__api_version="1.9"
2008# Find a good install program.  We prefer a C program (faster),
2009# so one script is as good as another.  But avoid the broken or
2010# incompatible versions:
2011# SysV /etc/install, /usr/sbin/install
2012# SunOS /usr/etc/install
2013# IRIX /sbin/install
2014# AIX /bin/install
2015# AmigaOS /C/install, which installs bootblocks on floppy discs
2016# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2017# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2018# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2019# OS/2's system install, which has a completely different semantic
2020# ./install, which can be erroneously created by make from ./install.sh.
2021{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2022echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2023if test -z "$INSTALL"; then
2024if test "${ac_cv_path_install+set}" = set; then
2025  echo $ECHO_N "(cached) $ECHO_C" >&6
2026else
2027  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028for as_dir in $PATH
2029do
2030  IFS=$as_save_IFS
2031  test -z "$as_dir" && as_dir=.
2032  # Account for people who put trailing slashes in PATH elements.
2033case $as_dir/ in
2034  ./ | .// | /cC/* | \
2035  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2036  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2037  /usr/ucb/* ) ;;
2038  *)
2039    # OSF1 and SCO ODT 3.0 have their own names for install.
2040    # Don't use installbsd from OSF since it installs stuff as root
2041    # by default.
2042    for ac_prog in ginstall scoinst install; do
2043      for ac_exec_ext in '' $ac_executable_extensions; do
2044        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2045          if test $ac_prog = install &&
2046            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2047            # AIX install.  It has an incompatible calling convention.
2048            :
2049          elif test $ac_prog = install &&
2050            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2051            # program-specific install script used by HP pwplus--don't use.
2052            :
2053          else
2054            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2055            break 3
2056          fi
2057        fi
2058      done
2059    done
2060    ;;
2061esac
2062done
2063IFS=$as_save_IFS
2064
2065
2066fi
2067  if test "${ac_cv_path_install+set}" = set; then
2068    INSTALL=$ac_cv_path_install
2069  else
2070    # As a last resort, use the slow shell script.  Don't cache a
2071    # value for INSTALL within a source directory, because that will
2072    # break other packages using the cache if that directory is
2073    # removed, or if the value is a relative name.
2074    INSTALL=$ac_install_sh
2075  fi
2076fi
2077{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2078echo "${ECHO_T}$INSTALL" >&6; }
2079
2080# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2081# It thinks the first close brace ends the variable substitution.
2082test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2083
2084test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2085
2086test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2087
2088{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2089echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2090# Just in case
2091sleep 1
2092echo timestamp > conftest.file
2093# Do `set' in a subshell so we don't clobber the current shell's
2094# arguments.  Must try -L first in case configure is actually a
2095# symlink; some systems play weird games with the mod time of symlinks
2096# (eg FreeBSD returns the mod time of the symlink's containing
2097# directory).
2098if (
2099   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2100   if test "$*" = "X"; then
2101      # -L didn't work.
2102      set X `ls -t $srcdir/configure conftest.file`
2103   fi
2104   rm -f conftest.file
2105   if test "$*" != "X $srcdir/configure conftest.file" \
2106      && test "$*" != "X conftest.file $srcdir/configure"; then
2107
2108      # If neither matched, then we have a broken ls.  This can happen
2109      # if, for instance, CONFIG_SHELL is bash and it inherits a
2110      # broken ls alias from the environment.  This has actually
2111      # happened.  Such a system could not be considered "sane".
2112      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2113alias in your environment" >&5
2114echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2115alias in your environment" >&2;}
2116   { (exit 1); exit 1; }; }
2117   fi
2118
2119   test "$2" = conftest.file
2120   )
2121then
2122   # Ok.
2123   :
2124else
2125   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2126Check your system clock" >&5
2127echo "$as_me: error: newly created file is older than distributed files!
2128Check your system clock" >&2;}
2129   { (exit 1); exit 1; }; }
2130fi
2131{ echo "$as_me:$LINENO: result: yes" >&5
2132echo "${ECHO_T}yes" >&6; }
2133test "$program_prefix" != NONE &&
2134  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2135# Use a double $ so make ignores it.
2136test "$program_suffix" != NONE &&
2137  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2138# Double any \ or $.  echo might interpret backslashes.
2139# By default was `s,x,x', remove it if useless.
2140cat <<\_ACEOF >conftest.sed
2141s/[\\$]/&&/g;s/;s,x,x,$//
2142_ACEOF
2143program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2144rm -f conftest.sed
2145
2146# expand $ac_aux_dir to an absolute path
2147am_aux_dir=`cd $ac_aux_dir && pwd`
2148
2149test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2150# Use eval to expand $SHELL
2151if eval "$MISSING --run true"; then
2152  am_missing_run="$MISSING --run "
2153else
2154  am_missing_run=
2155  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2156echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2157fi
2158
2159if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2160  # We used to keeping the `.' as first argument, in order to
2161  # allow $(mkdir_p) to be used without argument.  As in
2162  #   $(mkdir_p) $(somedir)
2163  # where $(somedir) is conditionally defined.  However this is wrong
2164  # for two reasons:
2165  #  1. if the package is installed by a user who cannot write `.'
2166  #     make install will fail,
2167  #  2. the above comment should most certainly read
2168  #     $(mkdir_p) $(DESTDIR)$(somedir)
2169  #     so it does not work when $(somedir) is undefined and
2170  #     $(DESTDIR) is not.
2171  #  To support the latter case, we have to write
2172  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2173  #  so the `.' trick is pointless.
2174  mkdir_p='mkdir -p --'
2175else
2176  # On NextStep and OpenStep, the `mkdir' command does not
2177  # recognize any option.  It will interpret all options as
2178  # directories to create, and then abort because `.' already
2179  # exists.
2180  for d in ./-p ./--version;
2181  do
2182    test -d $d && rmdir $d
2183  done
2184  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2185  if test -f "$ac_aux_dir/mkinstalldirs"; then
2186    mkdir_p='$(mkinstalldirs)'
2187  else
2188    mkdir_p='$(install_sh) -d'
2189  fi
2190fi
2191
2192for ac_prog in gawk mawk nawk awk
2193do
2194  # Extract the first word of "$ac_prog", so it can be a program name with args.
2195set dummy $ac_prog; ac_word=$2
2196{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2197echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2198if test "${ac_cv_prog_AWK+set}" = set; then
2199  echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201  if test -n "$AWK"; then
2202  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2203else
2204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205for as_dir in $PATH
2206do
2207  IFS=$as_save_IFS
2208  test -z "$as_dir" && as_dir=.
2209  for ac_exec_ext in '' $ac_executable_extensions; do
2210  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211    ac_cv_prog_AWK="$ac_prog"
2212    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213    break 2
2214  fi
2215done
2216done
2217IFS=$as_save_IFS
2218
2219fi
2220fi
2221AWK=$ac_cv_prog_AWK
2222if test -n "$AWK"; then
2223  { echo "$as_me:$LINENO: result: $AWK" >&5
2224echo "${ECHO_T}$AWK" >&6; }
2225else
2226  { echo "$as_me:$LINENO: result: no" >&5
2227echo "${ECHO_T}no" >&6; }
2228fi
2229
2230
2231  test -n "$AWK" && break
2232done
2233
2234{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2235echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2236set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2237if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2238  echo $ECHO_N "(cached) $ECHO_C" >&6
2239else
2240  cat >conftest.make <<\_ACEOF
2241SHELL = /bin/sh
2242all:
2243        @echo '@@@%%%=$(MAKE)=@@@%%%'
2244_ACEOF
2245# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2246case `${MAKE-make} -f conftest.make 2>/dev/null` in
2247  *@@@%%%=?*=@@@%%%*)
2248    eval ac_cv_prog_make_${ac_make}_set=yes;;
2249  *)
2250    eval ac_cv_prog_make_${ac_make}_set=no;;
2251esac
2252rm -f conftest.make
2253fi
2254if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2255  { echo "$as_me:$LINENO: result: yes" >&5
2256echo "${ECHO_T}yes" >&6; }
2257  SET_MAKE=
2258else
2259  { echo "$as_me:$LINENO: result: no" >&5
2260echo "${ECHO_T}no" >&6; }
2261  SET_MAKE="MAKE=${MAKE-make}"
2262fi
2263
2264rm -rf .tst 2>/dev/null
2265mkdir .tst 2>/dev/null
2266if test -d .tst; then
2267  am__leading_dot=.
2268else
2269  am__leading_dot=_
2270fi
2271rmdir .tst 2>/dev/null
2272
2273# test to see if srcdir already configured
2274if test "`cd $srcdir && pwd`" != "`pwd`" &&
2275   test -f $srcdir/config.status; then
2276  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2277echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2278   { (exit 1); exit 1; }; }
2279fi
2280
2281# test whether we have cygpath
2282if test -z "$CYGPATH_W"; then
2283  if (cygpath --version) >/dev/null 2>/dev/null; then
2284    CYGPATH_W='cygpath -w'
2285  else
2286    CYGPATH_W=echo
2287  fi
2288fi
2289
2290
2291# Define the identity of the package.
2292 PACKAGE='adolc'
2293 VERSION='2.0.0-trunk'
2294
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE "$PACKAGE"
2298_ACEOF
2299
2300
2301cat >>confdefs.h <<_ACEOF
2302#define VERSION "$VERSION"
2303_ACEOF
2304
2305# Some tools Automake needs.
2306
2307ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2308
2309
2310AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2311
2312
2313AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2314
2315
2316AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2317
2318
2319MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2320
2321install_sh=${install_sh-"$am_aux_dir/install-sh"}
2322
2323# Installed binaries are usually stripped using `strip' when the user
2324# run `make install-strip'.  However `strip' might not be the right
2325# tool to use in cross-compilation environments, therefore Automake
2326# will honor the `STRIP' environment variable to overrule this program.
2327if test "$cross_compiling" != no; then
2328  if test -n "$ac_tool_prefix"; then
2329  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2330set dummy ${ac_tool_prefix}strip; ac_word=$2
2331{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333if test "${ac_cv_prog_STRIP+set}" = set; then
2334  echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336  if test -n "$STRIP"; then
2337  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2338else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342  IFS=$as_save_IFS
2343  test -z "$as_dir" && as_dir=.
2344  for ac_exec_ext in '' $ac_executable_extensions; do
2345  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348    break 2
2349  fi
2350done
2351done
2352IFS=$as_save_IFS
2353
2354fi
2355fi
2356STRIP=$ac_cv_prog_STRIP
2357if test -n "$STRIP"; then
2358  { echo "$as_me:$LINENO: result: $STRIP" >&5
2359echo "${ECHO_T}$STRIP" >&6; }
2360else
2361  { echo "$as_me:$LINENO: result: no" >&5
2362echo "${ECHO_T}no" >&6; }
2363fi
2364
2365
2366fi
2367if test -z "$ac_cv_prog_STRIP"; then
2368  ac_ct_STRIP=$STRIP
2369  # Extract the first word of "strip", so it can be a program name with args.
2370set dummy strip; ac_word=$2
2371{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2372echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2374  echo $ECHO_N "(cached) $ECHO_C" >&6
2375else
2376  if test -n "$ac_ct_STRIP"; then
2377  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2378else
2379as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2380for as_dir in $PATH
2381do
2382  IFS=$as_save_IFS
2383  test -z "$as_dir" && as_dir=.
2384  for ac_exec_ext in '' $ac_executable_extensions; do
2385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386    ac_cv_prog_ac_ct_STRIP="strip"
2387    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388    break 2
2389  fi
2390done
2391done
2392IFS=$as_save_IFS
2393
2394fi
2395fi
2396ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2397if test -n "$ac_ct_STRIP"; then
2398  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2399echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2400else
2401  { echo "$as_me:$LINENO: result: no" >&5
2402echo "${ECHO_T}no" >&6; }
2403fi
2404
2405  if test "x$ac_ct_STRIP" = x; then
2406    STRIP=":"
2407  else
2408    case $cross_compiling:$ac_tool_warned in
2409yes:)
2410{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2411whose name does not start with the host triplet.  If you think this
2412configuration is useful to you, please write to autoconf@gnu.org." >&5
2413echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2414whose name does not start with the host triplet.  If you think this
2415configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2416ac_tool_warned=yes ;;
2417esac
2418    STRIP=$ac_ct_STRIP
2419  fi
2420else
2421  STRIP="$ac_cv_prog_STRIP"
2422fi
2423
2424fi
2425INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2426
2427# We need awk for the "check" target.  The system "awk" is bad on
2428# some platforms.
2429# Always define AMTAR for backward compatibility.
2430
2431AMTAR=${AMTAR-"${am_missing_run}tar"}
2432
2433am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2434
2435
2436
2437
2438
2439
2440# checks for programs
2441ac_ext=cpp
2442ac_cpp='$CXXCPP $CPPFLAGS'
2443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2446if test -z "$CXX"; then
2447  if test -n "$CCC"; then
2448    CXX=$CCC
2449  else
2450    if test -n "$ac_tool_prefix"; then
2451  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2452  do
2453    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2454set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2455{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2456echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457if test "${ac_cv_prog_CXX+set}" = set; then
2458  echo $ECHO_N "(cached) $ECHO_C" >&6
2459else
2460  if test -n "$CXX"; then
2461  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2462else
2463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464for as_dir in $PATH
2465do
2466  IFS=$as_save_IFS
2467  test -z "$as_dir" && as_dir=.
2468  for ac_exec_ext in '' $ac_executable_extensions; do
2469  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2471    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2472    break 2
2473  fi
2474done
2475done
2476IFS=$as_save_IFS
2477
2478fi
2479fi
2480CXX=$ac_cv_prog_CXX
2481if test -n "$CXX"; then
2482  { echo "$as_me:$LINENO: result: $CXX" >&5
2483echo "${ECHO_T}$CXX" >&6; }
2484else
2485  { echo "$as_me:$LINENO: result: no" >&5
2486echo "${ECHO_T}no" >&6; }
2487fi
2488
2489
2490    test -n "$CXX" && break
2491  done
2492fi
2493if test -z "$CXX"; then
2494  ac_ct_CXX=$CXX
2495  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2496do
2497  # Extract the first word of "$ac_prog", so it can be a program name with args.
2498set dummy $ac_prog; ac_word=$2
2499{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2502  echo $ECHO_N "(cached) $ECHO_C" >&6
2503else
2504  if test -n "$ac_ct_CXX"; then
2505  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2506else
2507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508for as_dir in $PATH
2509do
2510  IFS=$as_save_IFS
2511  test -z "$as_dir" && as_dir=.
2512  for ac_exec_ext in '' $ac_executable_extensions; do
2513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2514    ac_cv_prog_ac_ct_CXX="$ac_prog"
2515    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516    break 2
2517  fi
2518done
2519done
2520IFS=$as_save_IFS
2521
2522fi
2523fi
2524ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2525if test -n "$ac_ct_CXX"; then
2526  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2527echo "${ECHO_T}$ac_ct_CXX" >&6; }
2528else
2529  { echo "$as_me:$LINENO: result: no" >&5
2530echo "${ECHO_T}no" >&6; }
2531fi
2532
2533
2534  test -n "$ac_ct_CXX" && break
2535done
2536
2537  if test "x$ac_ct_CXX" = x; then
2538    CXX="g++"
2539  else
2540    case $cross_compiling:$ac_tool_warned in
2541yes:)
2542{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2543whose name does not start with the host triplet.  If you think this
2544configuration is useful to you, please write to autoconf@gnu.org." >&5
2545echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2546whose name does not start with the host triplet.  If you think this
2547configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2548ac_tool_warned=yes ;;
2549esac
2550    CXX=$ac_ct_CXX
2551  fi
2552fi
2553
2554  fi
2555fi
2556# Provide some information about the compiler.
2557echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2558ac_compiler=`set X $ac_compile; echo $2`
2559{ (ac_try="$ac_compiler --version >&5"
2560case "(($ac_try" in
2561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562  *) ac_try_echo=$ac_try;;
2563esac
2564eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2565  (eval "$ac_compiler --version >&5") 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }
2569{ (ac_try="$ac_compiler -v >&5"
2570case "(($ac_try" in
2571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2572  *) ac_try_echo=$ac_try;;
2573esac
2574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2575  (eval "$ac_compiler -v >&5") 2>&5
2576  ac_status=$?
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); }
2579{ (ac_try="$ac_compiler -V >&5"
2580case "(($ac_try" in
2581  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582  *) ac_try_echo=$ac_try;;
2583esac
2584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585  (eval "$ac_compiler -V >&5") 2>&5
2586  ac_status=$?
2587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588  (exit $ac_status); }
2589
2590cat >conftest.$ac_ext <<_ACEOF
2591/* confdefs.h.  */
2592_ACEOF
2593cat confdefs.h >>conftest.$ac_ext
2594cat >>conftest.$ac_ext <<_ACEOF
2595/* end confdefs.h.  */
2596
2597int
2598main ()
2599{
2600
2601  ;
2602  return 0;
2603}
2604_ACEOF
2605ac_clean_files_save=$ac_clean_files
2606ac_clean_files="$ac_clean_files a.out a.exe b.out"
2607# Try to create an executable without -o first, disregard a.out.
2608# It will help us diagnose broken compilers, and finding out an intuition
2609# of exeext.
2610{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2611echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2612ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2613#
2614# List of possible output files, starting from the most likely.
2615# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2616# only as a last resort.  b.out is created by i960 compilers.
2617ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2618#
2619# The IRIX 6 linker writes into existing files which may not be
2620# executable, retaining their permissions.  Remove them first so a
2621# subsequent execution test works.
2622ac_rmfiles=
2623for ac_file in $ac_files
2624do
2625  case $ac_file in
2626    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2627    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2628  esac
2629done
2630rm -f $ac_rmfiles
2631
2632if { (ac_try="$ac_link_default"
2633case "(($ac_try" in
2634  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635  *) ac_try_echo=$ac_try;;
2636esac
2637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2638  (eval "$ac_link_default") 2>&5
2639  ac_status=$?
2640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2641  (exit $ac_status); }; then
2642  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2643# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2644# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2645# so that the user can short-circuit this test for compilers unknown to
2646# Autoconf.
2647for ac_file in $ac_files ''
2648do
2649  test -f "$ac_file" || continue
2650  case $ac_file in
2651    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2652        ;;
2653    [ab].out )
2654        # We found the default executable, but exeext='' is most
2655        # certainly right.
2656        break;;
2657    *.* )
2658        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2659        then :; else
2660           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2661        fi
2662        # We set ac_cv_exeext here because the later test for it is not
2663        # safe: cross compilers may not add the suffix if given an `-o'
2664        # argument, so we may need to know it at that point already.
2665        # Even if this section looks crufty: it has the advantage of
2666        # actually working.
2667        break;;
2668    * )
2669        break;;
2670  esac
2671done
2672test "$ac_cv_exeext" = no && ac_cv_exeext=
2673
2674else
2675  ac_file=''
2676fi
2677
2678{ echo "$as_me:$LINENO: result: $ac_file" >&5
2679echo "${ECHO_T}$ac_file" >&6; }
2680if test -z "$ac_file"; then
2681  echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2685See \`config.log' for more details." >&5
2686echo "$as_me: error: C++ compiler cannot create executables
2687See \`config.log' for more details." >&2;}
2688   { (exit 77); exit 77; }; }
2689fi
2690
2691ac_exeext=$ac_cv_exeext
2692
2693# Check that the compiler produces executables we can run.  If not, either
2694# the compiler is broken, or we cross compile.
2695{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2696echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2697# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2698# If not cross compiling, check that we can run a simple program.
2699if test "$cross_compiling" != yes; then
2700  if { ac_try='./$ac_file'
2701  { (case "(($ac_try" in
2702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703  *) ac_try_echo=$ac_try;;
2704esac
2705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706  (eval "$ac_try") 2>&5
2707  ac_status=$?
2708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709  (exit $ac_status); }; }; then
2710    cross_compiling=no
2711  else
2712    if test "$cross_compiling" = maybe; then
2713        cross_compiling=yes
2714    else
2715        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2716If you meant to cross compile, use \`--host'.
2717See \`config.log' for more details." >&5
2718echo "$as_me: error: cannot run C++ compiled programs.
2719If you meant to cross compile, use \`--host'.
2720See \`config.log' for more details." >&2;}
2721   { (exit 1); exit 1; }; }
2722    fi
2723  fi
2724fi
2725{ echo "$as_me:$LINENO: result: yes" >&5
2726echo "${ECHO_T}yes" >&6; }
2727
2728rm -f a.out a.exe conftest$ac_cv_exeext b.out
2729ac_clean_files=$ac_clean_files_save
2730# Check that the compiler produces executables we can run.  If not, either
2731# the compiler is broken, or we cross compile.
2732{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2733echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2734{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2735echo "${ECHO_T}$cross_compiling" >&6; }
2736
2737{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2738echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2739if { (ac_try="$ac_link"
2740case "(($ac_try" in
2741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742  *) ac_try_echo=$ac_try;;
2743esac
2744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745  (eval "$ac_link") 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; then
2749  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2750# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2751# work properly (i.e., refer to `conftest.exe'), while it won't with
2752# `rm'.
2753for ac_file in conftest.exe conftest conftest.*; do
2754  test -f "$ac_file" || continue
2755  case $ac_file in
2756    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2757    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2758          break;;
2759    * ) break;;
2760  esac
2761done
2762else
2763  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2764See \`config.log' for more details." >&5
2765echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2766See \`config.log' for more details." >&2;}
2767   { (exit 1); exit 1; }; }
2768fi
2769
2770rm -f conftest$ac_cv_exeext
2771{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2772echo "${ECHO_T}$ac_cv_exeext" >&6; }
2773
2774rm -f conftest.$ac_ext
2775EXEEXT=$ac_cv_exeext
2776ac_exeext=$EXEEXT
2777{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2778echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2779if test "${ac_cv_objext+set}" = set; then
2780  echo $ECHO_N "(cached) $ECHO_C" >&6
2781else
2782  cat >conftest.$ac_ext <<_ACEOF
2783/* confdefs.h.  */
2784_ACEOF
2785cat confdefs.h >>conftest.$ac_ext
2786cat >>conftest.$ac_ext <<_ACEOF
2787/* end confdefs.h.  */
2788
2789int
2790main ()
2791{
2792
2793  ;
2794  return 0;
2795}
2796_ACEOF
2797rm -f conftest.o conftest.obj
2798if { (ac_try="$ac_compile"
2799case "(($ac_try" in
2800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801  *) ac_try_echo=$ac_try;;
2802esac
2803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804  (eval "$ac_compile") 2>&5
2805  ac_status=$?
2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); }; then
2808  for ac_file in conftest.o conftest.obj conftest.*; do
2809  test -f "$ac_file" || continue;
2810  case $ac_file in
2811    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2812    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2813       break;;
2814  esac
2815done
2816else
2817  echo "$as_me: failed program was:" >&5
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
2820{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2821See \`config.log' for more details." >&5
2822echo "$as_me: error: cannot compute suffix of object files: cannot compile
2823See \`config.log' for more details." >&2;}
2824   { (exit 1); exit 1; }; }
2825fi
2826
2827rm -f conftest.$ac_cv_objext conftest.$ac_ext
2828fi
2829{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2830echo "${ECHO_T}$ac_cv_objext" >&6; }
2831OBJEXT=$ac_cv_objext
2832ac_objext=$OBJEXT
2833{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2834echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2835if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2836  echo $ECHO_N "(cached) $ECHO_C" >&6
2837else
2838  cat >conftest.$ac_ext <<_ACEOF
2839/* confdefs.h.  */
2840_ACEOF
2841cat confdefs.h >>conftest.$ac_ext
2842cat >>conftest.$ac_ext <<_ACEOF
2843/* end confdefs.h.  */
2844
2845int
2846main ()
2847{
2848#ifndef __GNUC__
2849       choke me
2850#endif
2851
2852  ;
2853  return 0;
2854}
2855_ACEOF
2856rm -f conftest.$ac_objext
2857if { (ac_try="$ac_compile"
2858case "(($ac_try" in
2859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860  *) ac_try_echo=$ac_try;;
2861esac
2862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863  (eval "$ac_compile") 2>conftest.er1
2864  ac_status=$?
2865  grep -v '^ *+' conftest.er1 >conftest.err
2866  rm -f conftest.er1
2867  cat conftest.err >&5
2868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869  (exit $ac_status); } && {
2870         test -z "$ac_cxx_werror_flag" ||
2871         test ! -s conftest.err
2872       } && test -s conftest.$ac_objext; then
2873  ac_compiler_gnu=yes
2874else
2875  echo "$as_me: failed program was:" >&5
2876sed 's/^/| /' conftest.$ac_ext >&5
2877
2878        ac_compiler_gnu=no
2879fi
2880
2881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2883
2884fi
2885{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2886echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2887GXX=`test $ac_compiler_gnu = yes && echo yes`
2888ac_test_CXXFLAGS=${CXXFLAGS+set}
2889ac_save_CXXFLAGS=$CXXFLAGS
2890{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2891echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2892if test "${ac_cv_prog_cxx_g+set}" = set; then
2893  echo $ECHO_N "(cached) $ECHO_C" >&6
2894else
2895  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2896   ac_cxx_werror_flag=yes
2897   ac_cv_prog_cxx_g=no
2898   CXXFLAGS="-g"
2899   cat >conftest.$ac_ext <<_ACEOF
2900/* confdefs.h.  */
2901_ACEOF
2902cat confdefs.h >>conftest.$ac_ext
2903cat >>conftest.$ac_ext <<_ACEOF
2904/* end confdefs.h.  */
2905
2906int
2907main ()
2908{
2909
2910  ;
2911  return 0;
2912}
2913_ACEOF
2914rm -f conftest.$ac_objext
2915if { (ac_try="$ac_compile"
2916case "(($ac_try" in
2917  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918  *) ac_try_echo=$ac_try;;
2919esac
2920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2921  (eval "$ac_compile") 2>conftest.er1
2922  ac_status=$?
2923  grep -v '^ *+' conftest.er1 >conftest.err
2924  rm -f conftest.er1
2925  cat conftest.err >&5
2926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927  (exit $ac_status); } && {
2928         test -z "$ac_cxx_werror_flag" ||
2929         test ! -s conftest.err
2930       } && test -s conftest.$ac_objext; then
2931  ac_cv_prog_cxx_g=yes
2932else
2933  echo "$as_me: failed program was:" >&5
2934sed 's/^/| /' conftest.$ac_ext >&5
2935
2936        CXXFLAGS=""
2937      cat >conftest.$ac_ext <<_ACEOF
2938/* confdefs.h.  */
2939_ACEOF
2940cat confdefs.h >>conftest.$ac_ext
2941cat >>conftest.$ac_ext <<_ACEOF
2942/* end confdefs.h.  */
2943
2944int
2945main ()
2946{
2947
2948  ;
2949  return 0;
2950}
2951_ACEOF
2952rm -f conftest.$ac_objext
2953if { (ac_try="$ac_compile"
2954case "(($ac_try" in
2955  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956  *) ac_try_echo=$ac_try;;
2957esac
2958eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2959  (eval "$ac_compile") 2>conftest.er1
2960  ac_status=$?
2961  grep -v '^ *+' conftest.er1 >conftest.err
2962  rm -f conftest.er1
2963  cat conftest.err >&5
2964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965  (exit $ac_status); } && {
2966         test -z "$ac_cxx_werror_flag" ||
2967         test ! -s conftest.err
2968       } && test -s conftest.$ac_objext; then
2969  :
2970else
2971  echo "$as_me: failed program was:" >&5
2972sed 's/^/| /' conftest.$ac_ext >&5
2973
2974        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2975         CXXFLAGS="-g"
2976         cat >conftest.$ac_ext <<_ACEOF
2977/* confdefs.h.  */
2978_ACEOF
2979cat confdefs.h >>conftest.$ac_ext
2980cat >>conftest.$ac_ext <<_ACEOF
2981/* end confdefs.h.  */
2982
2983int
2984main ()
2985{
2986
2987  ;
2988  return 0;
2989}
2990_ACEOF
2991rm -f conftest.$ac_objext
2992if { (ac_try="$ac_compile"
2993case "(($ac_try" in
2994  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995  *) ac_try_echo=$ac_try;;
2996esac
2997eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998  (eval "$ac_compile") 2>conftest.er1
2999  ac_status=$?
3000  grep -v '^ *+' conftest.er1 >conftest.err
3001  rm -f conftest.er1
3002  cat conftest.err >&5
3003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004  (exit $ac_status); } && {
3005         test -z "$ac_cxx_werror_flag" ||
3006         test ! -s conftest.err
3007       } && test -s conftest.$ac_objext; then
3008  ac_cv_prog_cxx_g=yes
3009else
3010  echo "$as_me: failed program was:" >&5
3011sed 's/^/| /' conftest.$ac_ext >&5
3012
3013
3014fi
3015
3016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3017fi
3018
3019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3020fi
3021
3022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3024fi
3025{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3026echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3027if test "$ac_test_CXXFLAGS" = set; then
3028  CXXFLAGS=$ac_save_CXXFLAGS
3029elif test $ac_cv_prog_cxx_g = yes; then
3030  if test "$GXX" = yes; then
3031    CXXFLAGS="-g -O2"
3032  else
3033    CXXFLAGS="-g"
3034  fi
3035else
3036  if test "$GXX" = yes; then
3037    CXXFLAGS="-O2"
3038  else
3039    CXXFLAGS=
3040  fi
3041fi
3042ac_ext=c
3043ac_cpp='$CPP $CPPFLAGS'
3044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046ac_compiler_gnu=$ac_cv_c_compiler_gnu
3047DEPDIR="${am__leading_dot}deps"
3048
3049ac_config_commands="$ac_config_commands depfiles"
3050
3051
3052am_make=${MAKE-make}
3053cat > confinc << 'END'
3054am__doit:
3055        @echo done
3056.PHONY: am__doit
3057END
3058# If we don't find an include directive, just comment out the code.
3059{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3060echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3061am__include="#"
3062am__quote=
3063_am_result=none
3064# First try GNU make style include.
3065echo "include confinc" > confmf
3066# We grep out `Entering directory' and `Leaving directory'
3067# messages which can occur if `w' ends up in MAKEFLAGS.
3068# In particular we don't look at `^make:' because GNU make might
3069# be invoked under some other name (usually "gmake"), in which
3070# case it prints its new name instead of `make'.
3071if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3072   am__include=include
3073   am__quote=
3074   _am_result=GNU
3075fi
3076# Now try BSD make style include.
3077if test "$am__include" = "#"; then
3078   echo '.include "confinc"' > confmf
3079   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3080      am__include=.include
3081      am__quote="\""
3082      _am_result=BSD
3083   fi
3084fi
3085
3086
3087{ echo "$as_me:$LINENO: result: $_am_result" >&5
3088echo "${ECHO_T}$_am_result" >&6; }
3089rm -f confinc confmf
3090
3091# Check whether --enable-dependency-tracking was given.
3092if test "${enable_dependency_tracking+set}" = set; then
3093  enableval=$enable_dependency_tracking;
3094fi
3095
3096if test "x$enable_dependency_tracking" != xno; then
3097  am_depcomp="$ac_aux_dir/depcomp"
3098  AMDEPBACKSLASH='\'
3099fi
3100
3101
3102if test "x$enable_dependency_tracking" != xno; then
3103  AMDEP_TRUE=
3104  AMDEP_FALSE='#'
3105else
3106  AMDEP_TRUE='#'
3107  AMDEP_FALSE=
3108fi
3109
3110
3111
3112
3113depcc="$CXX"  am_compiler_list=
3114
3115{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3116echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3117if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3118  echo $ECHO_N "(cached) $ECHO_C" >&6
3119else
3120  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3121  # We make a subdir and do the tests there.  Otherwise we can end up
3122  # making bogus files that we don't know about and never remove.  For
3123  # instance it was reported that on HP-UX the gcc test will end up
3124  # making a dummy file named `D' -- because `-MD' means `put the output
3125  # in D'.
3126  mkdir conftest.dir
3127  # Copy depcomp to subdir because otherwise we won't find it if we're
3128  # using a relative directory.
3129  cp "$am_depcomp" conftest.dir
3130  cd conftest.dir
3131  # We will build objects and dependencies in a subdirectory because
3132  # it helps to detect inapplicable dependency modes.  For instance
3133  # both Tru64's cc and ICC support -MD to output dependencies as a
3134  # side effect of compilation, but ICC will put the dependencies in
3135  # the current directory while Tru64 will put them in the object
3136  # directory.
3137  mkdir sub
3138
3139  am_cv_CXX_dependencies_compiler_type=none
3140  if test "$am_compiler_list" = ""; then
3141     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3142  fi
3143  for depmode in $am_compiler_list; do
3144    # Setup a source with many dependencies, because some compilers
3145    # like to wrap large dependency lists on column 80 (with \), and
3146    # we should not choose a depcomp mode which is confused by this.
3147    #
3148    # We need to recreate these files for each test, as the compiler may
3149    # overwrite some of them when testing with obscure command lines.
3150    # This happens at least with the AIX C compiler.
3151    : > sub/conftest.c
3152    for i in 1 2 3 4 5 6; do
3153      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3154      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3155      # Solaris 8's {/usr,}/bin/sh.
3156      touch sub/conftst$i.h
3157    done
3158    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3159
3160    case $depmode in
3161    nosideeffect)
3162      # after this tag, mechanisms are not by side-effect, so they'll
3163      # only be used when explicitly requested
3164      if test "x$enable_dependency_tracking" = xyes; then
3165        continue
3166      else
3167        break
3168      fi
3169      ;;
3170    none) break ;;
3171    esac
3172    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3173    # mode.  It turns out that the SunPro C++ compiler does not properly
3174    # handle `-M -o', and we need to detect this.
3175    if depmode=$depmode \
3176       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3177       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3178       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3179         >/dev/null 2>conftest.err &&
3180       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3181       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3182       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3183      # icc doesn't choke on unknown options, it will just issue warnings
3184      # or remarks (even with -Werror).  So we grep stderr for any message
3185      # that says an option was ignored or not supported.
3186      # When given -MP, icc 7.0 and 7.1 complain thusly:
3187      #   icc: Command line warning: ignoring option '-M'; no argument required
3188      # The diagnosis changed in icc 8.0:
3189      #   icc: Command line remark: option '-MP' not supported
3190      if (grep 'ignoring option' conftest.err ||
3191          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3192        am_cv_CXX_dependencies_compiler_type=$depmode
3193        break
3194      fi
3195    fi
3196  done
3197
3198  cd ..
3199  rm -rf conftest.dir
3200else
3201  am_cv_CXX_dependencies_compiler_type=none
3202fi
3203
3204fi
3205{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3206echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3207CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3208
3209
3210
3211if
3212  test "x$enable_dependency_tracking" != xno \
3213  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3214  am__fastdepCXX_TRUE=
3215  am__fastdepCXX_FALSE='#'
3216else
3217  am__fastdepCXX_TRUE='#'
3218  am__fastdepCXX_FALSE=
3219fi
3220
3221
3222ac_ext=c
3223ac_cpp='$CPP $CPPFLAGS'
3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227if test -n "$ac_tool_prefix"; then
3228  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3229set dummy ${ac_tool_prefix}gcc; ac_word=$2
3230{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3231echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3232if test "${ac_cv_prog_CC+set}" = set; then
3233  echo $ECHO_N "(cached) $ECHO_C" >&6
3234else
3235  if test -n "$CC"; then
3236  ac_cv_prog_CC="$CC" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243  for ac_exec_ext in '' $ac_executable_extensions; do
3244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3246    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { echo "$as_me:$LINENO: result: $CC" >&5
3258echo "${ECHO_T}$CC" >&6; }
3259else
3260  { echo "$as_me:$LINENO: result: no" >&5
3261echo "${ECHO_T}no" >&6; }
3262fi
3263
3264
3265fi
3266if test -z "$ac_cv_prog_CC"; then
3267  ac_ct_CC=$CC
3268  # Extract the first word of "gcc", so it can be a program name with args.
3269set dummy gcc; ac_word=$2
3270{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3272if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3273  echo $ECHO_N "(cached) $ECHO_C" >&6
3274else
3275  if test -n "$ac_ct_CC"; then
3276  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277else
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH
3280do
3281  IFS=$as_save_IFS
3282  test -z "$as_dir" && as_dir=.
3283  for ac_exec_ext in '' $ac_executable_extensions; do
3284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285    ac_cv_prog_ac_ct_CC="gcc"
3286    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3287    break 2
3288  fi
3289done
3290done
3291IFS=$as_save_IFS
3292
3293fi
3294fi
3295ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296if test -n "$ac_ct_CC"; then
3297  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3298echo "${ECHO_T}$ac_ct_CC" >&6; }
3299else
3300  { echo "$as_me:$LINENO: result: no" >&5
3301echo "${ECHO_T}no" >&6; }
3302fi
3303
3304  if test "x$ac_ct_CC" = x; then
3305    CC=""
3306  else
3307    case $cross_compiling:$ac_tool_warned in
3308yes:)
3309{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3310whose name does not start with the host triplet.  If you think this
3311configuration is useful to you, please write to autoconf@gnu.org." >&5
3312echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3313whose name does not start with the host triplet.  If you think this
3314configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3315ac_tool_warned=yes ;;
3316esac
3317    CC=$ac_ct_CC
3318  fi
3319else
3320  CC="$ac_cv_prog_CC"
3321fi
3322
3323if test -z "$CC"; then
3324          if test -n "$ac_tool_prefix"; then
3325    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3326set dummy ${ac_tool_prefix}cc; ac_word=$2
3327{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329if test "${ac_cv_prog_CC+set}" = set; then
3330  echo $ECHO_N "(cached) $ECHO_C" >&6
3331else
3332  if test -n "$CC"; then
3333  ac_cv_prog_CC="$CC" # Let the user override the test.
3334else
3335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336for as_dir in $PATH
3337do
3338  IFS=$as_save_IFS
3339  test -z "$as_dir" && as_dir=.
3340  for ac_exec_ext in '' $ac_executable_extensions; do
3341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342    ac_cv_prog_CC="${ac_tool_prefix}cc"
3343    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344    break 2
3345  fi
3346done
3347done
3348IFS=$as_save_IFS
3349
3350fi
3351fi
3352CC=$ac_cv_prog_CC
3353if test -n "$CC"; then
3354  { echo "$as_me:$LINENO: result: $CC" >&5
3355echo "${ECHO_T}$CC" >&6; }
3356else
3357  { echo "$as_me:$LINENO: result: no" >&5
3358echo "${ECHO_T}no" >&6; }
3359fi
3360
3361
3362  fi
3363fi
3364if test -z "$CC"; then
3365  # Extract the first word of "cc", so it can be a program name with args.
3366set dummy cc; ac_word=$2
3367{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3368echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3369if test "${ac_cv_prog_CC+set}" = set; then
3370  echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372  if test -n "$CC"; then
3373  ac_cv_prog_CC="$CC" # Let the user override the test.
3374else
3375  ac_prog_rejected=no
3376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377for as_dir in $PATH
3378do
3379  IFS=$as_save_IFS
3380  test -z "$as_dir" && as_dir=.
3381  for ac_exec_ext in '' $ac_executable_extensions; do
3382  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3383    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3384       ac_prog_rejected=yes
3385       continue
3386     fi
3387    ac_cv_prog_CC="cc"
3388    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3389    break 2
3390  fi
3391done
3392done
3393IFS=$as_save_IFS
3394
3395if test $ac_prog_rejected = yes; then
3396  # We found a bogon in the path, so make sure we never use it.
3397  set dummy $ac_cv_prog_CC
3398  shift
3399  if test $# != 0; then
3400    # We chose a different compiler from the bogus one.
3401    # However, it has the same basename, so the bogon will be chosen
3402    # first if we set CC to just the basename; use the full file name.
3403    shift
3404    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3405  fi
3406fi
3407fi
3408fi
3409CC=$ac_cv_prog_CC
3410if test -n "$CC"; then
3411  { echo "$as_me:$LINENO: result: $CC" >&5
3412echo "${ECHO_T}$CC" >&6; }
3413else
3414  { echo "$as_me:$LINENO: result: no" >&5
3415echo "${ECHO_T}no" >&6; }
3416fi
3417
3418
3419fi
3420if test -z "$CC"; then
3421  if test -n "$ac_tool_prefix"; then
3422  for ac_prog in cl.exe
3423  do
3424    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3425set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3426{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3428if test "${ac_cv_prog_CC+set}" = set; then
3429  echo $ECHO_N "(cached) $ECHO_C" >&6
3430else
3431  if test -n "$CC"; then
3432  ac_cv_prog_CC="$CC" # Let the user override the test.
3433else
3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH
3436do
3437  IFS=$as_save_IFS
3438  test -z "$as_dir" && as_dir=.
3439  for ac_exec_ext in '' $ac_executable_extensions; do
3440  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3441    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3442    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3443    break 2
3444  fi
3445done
3446done
3447IFS=$as_save_IFS
3448
3449fi
3450fi
3451CC=$ac_cv_prog_CC
3452if test -n "$CC"; then
3453  { echo "$as_me:$LINENO: result: $CC" >&5
3454echo "${ECHO_T}$CC" >&6; }
3455else
3456  { echo "$as_me:$LINENO: result: no" >&5
3457echo "${ECHO_T}no" >&6; }
3458fi
3459
3460
3461    test -n "$CC" && break
3462  done
3463fi
3464if test -z "$CC"; then
3465  ac_ct_CC=$CC
3466  for ac_prog in cl.exe
3467do
3468  # Extract the first word of "$ac_prog", so it can be a program name with args.
3469set dummy $ac_prog; ac_word=$2
3470{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3471echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3472if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3473  echo $ECHO_N "(cached) $ECHO_C" >&6
3474else
3475  if test -n "$ac_ct_CC"; then
3476  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3477else
3478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479for as_dir in $PATH
3480do
3481  IFS=$as_save_IFS
3482  test -z "$as_dir" && as_dir=.
3483  for ac_exec_ext in '' $ac_executable_extensions; do
3484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485    ac_cv_prog_ac_ct_CC="$ac_prog"
3486    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487    break 2
3488  fi
3489done
3490done
3491IFS=$as_save_IFS
3492
3493fi
3494fi
3495ac_ct_CC=$ac_cv_prog_ac_ct_CC
3496if test -n "$ac_ct_CC"; then
3497  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3498echo "${ECHO_T}$ac_ct_CC" >&6; }
3499else
3500  { echo "$as_me:$LINENO: result: no" >&5
3501echo "${ECHO_T}no" >&6; }
3502fi
3503
3504
3505  test -n "$ac_ct_CC" && break
3506done
3507
3508  if test "x$ac_ct_CC" = x; then
3509    CC=""
3510  else
3511    case $cross_compiling:$ac_tool_warned in
3512yes:)
3513{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3514whose name does not start with the host triplet.  If you think this
3515configuration is useful to you, please write to autoconf@gnu.org." >&5
3516echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3517whose name does not start with the host triplet.  If you think this
3518configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3519ac_tool_warned=yes ;;
3520esac
3521    CC=$ac_ct_CC
3522  fi
3523fi
3524
3525fi
3526
3527
3528test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3529See \`config.log' for more details." >&5
3530echo "$as_me: error: no acceptable C compiler found in \$PATH
3531See \`config.log' for more details." >&2;}
3532   { (exit 1); exit 1; }; }
3533
3534# Provide some information about the compiler.
3535echo "$as_me:$LINENO: checking for C compiler version" >&5
3536ac_compiler=`set X $ac_compile; echo $2`
3537{ (ac_try="$ac_compiler --version >&5"
3538case "(($ac_try" in
3539  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540  *) ac_try_echo=$ac_try;;
3541esac
3542eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543  (eval "$ac_compiler --version >&5") 2>&5
3544  ac_status=$?
3545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546  (exit $ac_status); }
3547{ (ac_try="$ac_compiler -v >&5"
3548case "(($ac_try" in
3549  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550  *) ac_try_echo=$ac_try;;
3551esac
3552eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553  (eval "$ac_compiler -v >&5") 2>&5
3554  ac_status=$?
3555  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556  (exit $ac_status); }
3557{ (ac_try="$ac_compiler -V >&5"
3558case "(($ac_try" in
3559  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560  *) ac_try_echo=$ac_try;;
3561esac
3562eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3563  (eval "$ac_compiler -V >&5") 2>&5
3564  ac_status=$?
3565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566  (exit $ac_status); }
3567
3568{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3569echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3570if test "${ac_cv_c_compiler_gnu+set}" = set; then
3571  echo $ECHO_N "(cached) $ECHO_C" >&6
3572else
3573  cat >conftest.$ac_ext <<_ACEOF
3574/* confdefs.h.  */
3575_ACEOF
3576cat confdefs.h >>conftest.$ac_ext
3577cat >>conftest.$ac_ext <<_ACEOF
3578/* end confdefs.h.  */
3579
3580int
3581main ()
3582{
3583#ifndef __GNUC__
3584       choke me
3585#endif
3586
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591rm -f conftest.$ac_objext
3592if { (ac_try="$ac_compile"
3593case "(($ac_try" in
3594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595  *) ac_try_echo=$ac_try;;
3596esac
3597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598  (eval "$ac_compile") 2>conftest.er1
3599  ac_status=$?
3600  grep -v '^ *+' conftest.er1 >conftest.err
3601  rm -f conftest.er1
3602  cat conftest.err >&5
3603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604  (exit $ac_status); } && {
3605         test -z "$ac_c_werror_flag" ||
3606         test ! -s conftest.err
3607       } && test -s conftest.$ac_objext; then
3608  ac_compiler_gnu=yes
3609else
3610  echo "$as_me: failed program was:" >&5
3611sed 's/^/| /' conftest.$ac_ext >&5
3612
3613        ac_compiler_gnu=no
3614fi
3615
3616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617ac_cv_c_compiler_gnu=$ac_compiler_gnu
3618
3619fi
3620{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3621echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3622GCC=`test $ac_compiler_gnu = yes && echo yes`
3623ac_test_CFLAGS=${CFLAGS+set}
3624ac_save_CFLAGS=$CFLAGS
3625{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3626echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3627if test "${ac_cv_prog_cc_g+set}" = set; then
3628  echo $ECHO_N "(cached) $ECHO_C" >&6
3629else
3630  ac_save_c_werror_flag=$ac_c_werror_flag
3631   ac_c_werror_flag=yes
3632   ac_cv_prog_cc_g=no
3633   CFLAGS="-g"
3634   cat >conftest.$ac_ext <<_ACEOF
3635/* confdefs.h.  */
3636_ACEOF
3637cat confdefs.h >>conftest.$ac_ext
3638cat >>conftest.$ac_ext <<_ACEOF
3639/* end confdefs.h.  */
3640
3641int
3642main ()
3643{
3644
3645  ;
3646  return 0;
3647}
3648_ACEOF
3649rm -f conftest.$ac_objext
3650if { (ac_try="$ac_compile"
3651case "(($ac_try" in
3652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653  *) ac_try_echo=$ac_try;;
3654esac
3655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3656  (eval "$ac_compile") 2>conftest.er1
3657  ac_status=$?
3658  grep -v '^ *+' conftest.er1 >conftest.err
3659  rm -f conftest.er1
3660  cat conftest.err >&5
3661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662  (exit $ac_status); } && {
3663         test -z "$ac_c_werror_flag" ||
3664         test ! -s conftest.err
3665       } && test -s conftest.$ac_objext; then
3666  ac_cv_prog_cc_g=yes
3667else
3668  echo "$as_me: failed program was:" >&5
3669sed 's/^/| /' conftest.$ac_ext >&5
3670
3671        CFLAGS=""
3672      cat >conftest.$ac_ext <<_ACEOF
3673/* confdefs.h.  */
3674_ACEOF
3675cat confdefs.h >>conftest.$ac_ext
3676cat >>conftest.$ac_ext <<_ACEOF
3677/* end confdefs.h.  */
3678
3679int
3680main ()
3681{
3682
3683  ;
3684  return 0;
3685}
3686_ACEOF
3687rm -f conftest.$ac_objext
3688if { (ac_try="$ac_compile"
3689case "(($ac_try" in
3690  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691  *) ac_try_echo=$ac_try;;
3692esac
3693eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3694  (eval "$ac_compile") 2>conftest.er1
3695  ac_status=$?
3696  grep -v '^ *+' conftest.er1 >conftest.err
3697  rm -f conftest.er1
3698  cat conftest.err >&5
3699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700  (exit $ac_status); } && {
3701         test -z "$ac_c_werror_flag" ||
3702         test ! -s conftest.err
3703       } && test -s conftest.$ac_objext; then
3704  :
3705else
3706  echo "$as_me: failed program was:" >&5
3707sed 's/^/| /' conftest.$ac_ext >&5
3708
3709        ac_c_werror_flag=$ac_save_c_werror_flag
3710         CFLAGS="-g"
3711         cat >conftest.$ac_ext <<_ACEOF
3712/* confdefs.h.  */
3713_ACEOF
3714cat confdefs.h >>conftest.$ac_ext
3715cat >>conftest.$ac_ext <<_ACEOF
3716/* end confdefs.h.  */
3717
3718int
3719main ()
3720{
3721
3722  ;
3723  return 0;
3724}
3725_ACEOF
3726rm -f conftest.$ac_objext
3727if { (ac_try="$ac_compile"
3728case "(($ac_try" in
3729  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730  *) ac_try_echo=$ac_try;;
3731esac
3732eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733  (eval "$ac_compile") 2>conftest.er1
3734  ac_status=$?
3735  grep -v '^ *+' conftest.er1 >conftest.err
3736  rm -f conftest.er1
3737  cat conftest.err >&5
3738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739  (exit $ac_status); } && {
3740         test -z "$ac_c_werror_flag" ||
3741         test ! -s conftest.err
3742       } && test -s conftest.$ac_objext; then
3743  ac_cv_prog_cc_g=yes
3744else
3745  echo "$as_me: failed program was:" >&5
3746sed 's/^/| /' conftest.$ac_ext >&5
3747
3748
3749fi
3750
3751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752fi
3753
3754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755fi
3756
3757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758   ac_c_werror_flag=$ac_save_c_werror_flag
3759fi
3760{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3761echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3762if test "$ac_test_CFLAGS" = set; then
3763  CFLAGS=$ac_save_CFLAGS
3764elif test $ac_cv_prog_cc_g = yes; then
3765  if test "$GCC" = yes; then
3766    CFLAGS="-g -O2"
3767  else
3768    CFLAGS="-g"
3769  fi
3770else
3771  if test "$GCC" = yes; then
3772    CFLAGS="-O2"
3773  else
3774    CFLAGS=
3775  fi
3776fi
3777{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3778echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3779if test "${ac_cv_prog_cc_c89+set}" = set; then
3780  echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
3782  ac_cv_prog_cc_c89=no
3783ac_save_CC=$CC
3784cat >conftest.$ac_ext <<_ACEOF
3785/* confdefs.h.  */
3786_ACEOF
3787cat confdefs.h >>conftest.$ac_ext
3788cat >>conftest.$ac_ext <<_ACEOF
3789/* end confdefs.h.  */
3790#include <stdarg.h>
3791#include <stdio.h>
3792#include <sys/types.h>
3793#include <sys/stat.h>
3794/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3795struct buf { int x; };
3796FILE * (*rcsopen) (struct buf *, struct stat *, int);
3797static char *e (p, i)
3798     char **p;
3799     int i;
3800{
3801  return p[i];
3802}
3803static char *f (char * (*g) (char **, int), char **p, ...)
3804{
3805  char *s;
3806  va_list v;
3807  va_start (v,p);
3808  s = g (p, va_arg (v,int));
3809  va_end (v);
3810  return s;
3811}
3812
3813/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3814   function prototypes and stuff, but not '\xHH' hex character constants.
3815   These don't provoke an error unfortunately, instead are silently treated
3816   as 'x'.  The following induces an error, until -std is added to get
3817   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3818   array size at least.  It's necessary to write '\x00'==0 to get something
3819   that's true only with -std.  */
3820int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3821
3822/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3823   inside strings and character constants.  */
3824#define FOO(x) 'x'
3825int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3826
3827int test (int i, double x);
3828struct s1 {int (*f) (int a);};
3829struct s2 {int (*f) (double a);};
3830int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3831int argc;
3832char **argv;
3833int
3834main ()
3835{
3836return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3837  ;
3838  return 0;
3839}
3840_ACEOF
3841for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3842        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3843do
3844  CC="$ac_save_CC $ac_arg"
3845  rm -f conftest.$ac_objext
3846if { (ac_try="$ac_compile"
3847case "(($ac_try" in
3848  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849  *) ac_try_echo=$ac_try;;
3850esac
3851eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852  (eval "$ac_compile") 2>conftest.er1
3853  ac_status=$?
3854  grep -v '^ *+' conftest.er1 >conftest.err
3855  rm -f conftest.er1
3856  cat conftest.err >&5
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); } && {
3859         test -z "$ac_c_werror_flag" ||
3860         test ! -s conftest.err
3861       } && test -s conftest.$ac_objext; then
3862  ac_cv_prog_cc_c89=$ac_arg
3863else
3864  echo "$as_me: failed program was:" >&5
3865sed 's/^/| /' conftest.$ac_ext >&5
3866
3867
3868fi
3869
3870rm -f core conftest.err conftest.$ac_objext
3871  test "x$ac_cv_prog_cc_c89" != "xno" && break
3872done
3873rm -f conftest.$ac_ext
3874CC=$ac_save_CC
3875
3876fi
3877# AC_CACHE_VAL
3878case "x$ac_cv_prog_cc_c89" in
3879  x)
3880    { echo "$as_me:$LINENO: result: none needed" >&5
3881echo "${ECHO_T}none needed" >&6; } ;;
3882  xno)
3883    { echo "$as_me:$LINENO: result: unsupported" >&5
3884echo "${ECHO_T}unsupported" >&6; } ;;
3885  *)
3886    CC="$CC $ac_cv_prog_cc_c89"
3887    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3888echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3889esac
3890
3891
3892ac_ext=c
3893ac_cpp='$CPP $CPPFLAGS'
3894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3896ac_compiler_gnu=$ac_cv_c_compiler_gnu
3897
3898depcc="$CC"   am_compiler_list=
3899
3900{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3901echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3902if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3903  echo $ECHO_N "(cached) $ECHO_C" >&6
3904else
3905  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3906  # We make a subdir and do the tests there.  Otherwise we can end up
3907  # making bogus files that we don't know about and never remove.  For
3908  # instance it was reported that on HP-UX the gcc test will end up
3909  # making a dummy file named `D' -- because `-MD' means `put the output
3910  # in D'.
3911  mkdir conftest.dir
3912  # Copy depcomp to subdir because otherwise we won't find it if we're
3913  # using a relative directory.
3914  cp "$am_depcomp" conftest.dir
3915  cd conftest.dir
3916  # We will build objects and dependencies in a subdirectory because
3917  # it helps to detect inapplicable dependency modes.  For instance
3918  # both Tru64's cc and ICC support -MD to output dependencies as a
3919  # side effect of compilation, but ICC will put the dependencies in
3920  # the current directory while Tru64 will put them in the object
3921  # directory.
3922  mkdir sub
3923
3924  am_cv_CC_dependencies_compiler_type=none
3925  if test "$am_compiler_list" = ""; then
3926     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3927  fi
3928  for depmode in $am_compiler_list; do
3929    # Setup a source with many dependencies, because some compilers
3930    # like to wrap large dependency lists on column 80 (with \), and
3931    # we should not choose a depcomp mode which is confused by this.
3932    #
3933    # We need to recreate these files for each test, as the compiler may
3934    # overwrite some of them when testing with obscure command lines.
3935    # This happens at least with the AIX C compiler.
3936    : > sub/conftest.c
3937    for i in 1 2 3 4 5 6; do
3938      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3939      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3940      # Solaris 8's {/usr,}/bin/sh.
3941      touch sub/conftst$i.h
3942    done
3943    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3944
3945    case $depmode in
3946    nosideeffect)
3947      # after this tag, mechanisms are not by side-effect, so they'll
3948      # only be used when explicitly requested
3949      if test "x$enable_dependency_tracking" = xyes; then
3950        continue
3951      else
3952        break
3953      fi
3954      ;;
3955    none) break ;;
3956    esac
3957    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3958    # mode.  It turns out that the SunPro C++ compiler does not properly
3959    # handle `-M -o', and we need to detect this.
3960    if depmode=$depmode \
3961       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3962       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3963       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3964         >/dev/null 2>conftest.err &&
3965       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3966       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3967       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3968      # icc doesn't choke on unknown options, it will just issue warnings
3969      # or remarks (even with -Werror).  So we grep stderr for any message
3970      # that says an option was ignored or not supported.
3971      # When given -MP, icc 7.0 and 7.1 complain thusly:
3972      #   icc: Command line warning: ignoring option '-M'; no argument required
3973      # The diagnosis changed in icc 8.0:
3974      #   icc: Command line remark: option '-MP' not supported
3975      if (grep 'ignoring option' conftest.err ||
3976          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3977        am_cv_CC_dependencies_compiler_type=$depmode
3978        break
3979      fi
3980    fi
3981  done
3982
3983  cd ..
3984  rm -rf conftest.dir
3985else
3986  am_cv_CC_dependencies_compiler_type=none
3987fi
3988
3989fi
3990{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3991echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3992CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3993
3994
3995
3996if
3997  test "x$enable_dependency_tracking" != xno \
3998  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3999  am__fastdepCC_TRUE=
4000  am__fastdepCC_FALSE='#'
4001else
4002  am__fastdepCC_TRUE='#'
4003  am__fastdepCC_FALSE=
4004fi
4005
4006
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4013echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4014# On Suns, sometimes $CPP names a directory.
4015if test -n "$CPP" && test -d "$CPP"; then
4016  CPP=
4017fi
4018if test -z "$CPP"; then
4019  if test "${ac_cv_prog_CPP+set}" = set; then
4020  echo $ECHO_N "(cached) $ECHO_C" >&6
4021else
4022      # Double quotes because CPP needs to be expanded
4023    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4024    do
4025      ac_preproc_ok=false
4026for ac_c_preproc_warn_flag in '' yes
4027do
4028  # Use a header file that comes with gcc, so configuring glibc
4029  # with a fresh cross-compiler works.
4030  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4031  # <limits.h> exists even on freestanding compilers.
4032  # On the NeXT, cc -E runs the code through the compiler's parser,
4033  # not just through cpp. "Syntax error" is here to catch this case.
4034  cat >conftest.$ac_ext <<_ACEOF
4035/* confdefs.h.  */
4036_ACEOF
4037cat confdefs.h >>conftest.$ac_ext
4038cat >>conftest.$ac_ext <<_ACEOF
4039/* end confdefs.h.  */
4040#ifdef __STDC__
4041# include <limits.h>
4042#else
4043# include <assert.h>
4044#endif
4045                     Syntax error
4046_ACEOF
4047if { (ac_try="$ac_cpp conftest.$ac_ext"
4048case "(($ac_try" in
4049  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4050  *) ac_try_echo=$ac_try;;
4051esac
4052eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4053  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4054  ac_status=$?
4055  grep -v '^ *+' conftest.er1 >conftest.err
4056  rm -f conftest.er1
4057  cat conftest.err >&5
4058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059  (exit $ac_status); } >/dev/null && {
4060         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4061         test ! -s conftest.err
4062       }; then
4063  :
4064else
4065  echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
4067
4068  # Broken: fails on valid input.
4069continue
4070fi
4071
4072rm -f conftest.err conftest.$ac_ext
4073
4074  # OK, works on sane cases.  Now check whether nonexistent headers
4075  # can be detected and how.
4076  cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h.  */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h.  */
4082#include <ac_nonexistent.h>
4083_ACEOF
4084if { (ac_try="$ac_cpp conftest.$ac_ext"
4085case "(($ac_try" in
4086  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087  *) ac_try_echo=$ac_try;;
4088esac
4089eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4090  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4091  ac_status=$?
4092  grep -v '^ *+' conftest.er1 >conftest.err
4093  rm -f conftest.er1
4094  cat conftest.err >&5
4095  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096  (exit $ac_status); } >/dev/null && {
4097         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4098         test ! -s conftest.err
4099       }; then
4100  # Broken: success on invalid input.
4101continue
4102else
4103  echo "$as_me: failed program was:" >&5
4104sed 's/^/| /' conftest.$ac_ext >&5
4105
4106  # Passes both tests.
4107ac_preproc_ok=:
4108break
4109fi
4110
4111rm -f conftest.err conftest.$ac_ext
4112
4113done
4114# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4115rm -f conftest.err conftest.$ac_ext
4116if $ac_preproc_ok; then
4117  break
4118fi
4119
4120    done
4121    ac_cv_prog_CPP=$CPP
4122
4123fi
4124  CPP=$ac_cv_prog_CPP
4125else
4126  ac_cv_prog_CPP=$CPP
4127fi
4128{ echo "$as_me:$LINENO: result: $CPP" >&5
4129echo "${ECHO_T}$CPP" >&6; }
4130ac_preproc_ok=false
4131for ac_c_preproc_warn_flag in '' yes
4132do
4133  # Use a header file that comes with gcc, so configuring glibc
4134  # with a fresh cross-compiler works.
4135  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136  # <limits.h> exists even on freestanding compilers.
4137  # On the NeXT, cc -E runs the code through the compiler's parser,
4138  # not just through cpp. "Syntax error" is here to catch this case.
4139  cat >conftest.$ac_ext <<_ACEOF
4140/* confdefs.h.  */
4141_ACEOF
4142cat confdefs.h >>conftest.$ac_ext
4143cat >>conftest.$ac_ext <<_ACEOF
4144/* end confdefs.h.  */
4145#ifdef __STDC__
4146# include <limits.h>
4147#else
4148# include <assert.h>
4149#endif
4150                     Syntax error
4151_ACEOF
4152if { (ac_try="$ac_cpp conftest.$ac_ext"
4153case "(($ac_try" in
4154  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155  *) ac_try_echo=$ac_try;;
4156esac
4157eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4159  ac_status=$?
4160  grep -v '^ *+' conftest.er1 >conftest.err
4161  rm -f conftest.er1
4162  cat conftest.err >&5
4163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164  (exit $ac_status); } >/dev/null && {
4165         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4166         test ! -s conftest.err
4167       }; then
4168  :
4169else
4170  echo "$as_me: failed program was:" >&5
4171sed 's/^/| /' conftest.$ac_ext >&5
4172
4173  # Broken: fails on valid input.
4174continue
4175fi
4176
4177rm -f conftest.err conftest.$ac_ext
4178
4179  # OK, works on sane cases.  Now check whether nonexistent headers
4180  # can be detected and how.
4181  cat >conftest.$ac_ext <<_ACEOF
4182/* confdefs.h.  */
4183_ACEOF
4184cat confdefs.h >>conftest.$ac_ext
4185cat >>conftest.$ac_ext <<_ACEOF
4186/* end confdefs.h.  */
4187#include <ac_nonexistent.h>
4188_ACEOF
4189if { (ac_try="$ac_cpp conftest.$ac_ext"
4190case "(($ac_try" in
4191  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192  *) ac_try_echo=$ac_try;;
4193esac
4194eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4196  ac_status=$?
4197  grep -v '^ *+' conftest.er1 >conftest.err
4198  rm -f conftest.er1
4199  cat conftest.err >&5
4200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201  (exit $ac_status); } >/dev/null && {
4202         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4203         test ! -s conftest.err
4204       }; then
4205  # Broken: success on invalid input.
4206continue
4207else
4208  echo "$as_me: failed program was:" >&5
4209sed 's/^/| /' conftest.$ac_ext >&5
4210
4211  # Passes both tests.
4212ac_preproc_ok=:
4213break
4214fi
4215
4216rm -f conftest.err conftest.$ac_ext
4217
4218done
4219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4220rm -f conftest.err conftest.$ac_ext
4221if $ac_preproc_ok; then
4222  :
4223else
4224  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4225See \`config.log' for more details." >&5
4226echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4227See \`config.log' for more details." >&2;}
4228   { (exit 1); exit 1; }; }
4229fi
4230
4231ac_ext=c
4232ac_cpp='$CPP $CPPFLAGS'
4233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4235ac_compiler_gnu=$ac_cv_c_compiler_gnu
4236
4237# Find a good install program.  We prefer a C program (faster),
4238# so one script is as good as another.  But avoid the broken or
4239# incompatible versions:
4240# SysV /etc/install, /usr/sbin/install
4241# SunOS /usr/etc/install
4242# IRIX /sbin/install
4243# AIX /bin/install
4244# AmigaOS /C/install, which installs bootblocks on floppy discs
4245# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4246# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4247# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4248# OS/2's system install, which has a completely different semantic
4249# ./install, which can be erroneously created by make from ./install.sh.
4250{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4251echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4252if test -z "$INSTALL"; then
4253if test "${ac_cv_path_install+set}" = set; then
4254  echo $ECHO_N "(cached) $ECHO_C" >&6
4255else
4256  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257for as_dir in $PATH
4258do
4259  IFS=$as_save_IFS
4260  test -z "$as_dir" && as_dir=.
4261  # Account for people who put trailing slashes in PATH elements.
4262case $as_dir/ in
4263  ./ | .// | /cC/* | \
4264  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4265  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4266  /usr/ucb/* ) ;;
4267  *)
4268    # OSF1 and SCO ODT 3.0 have their own names for install.
4269    # Don't use installbsd from OSF since it installs stuff as root
4270    # by default.
4271    for ac_prog in ginstall scoinst install; do
4272      for ac_exec_ext in '' $ac_executable_extensions; do
4273        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4274          if test $ac_prog = install &&
4275            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4276            # AIX install.  It has an incompatible calling convention.
4277            :
4278          elif test $ac_prog = install &&
4279            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4280            # program-specific install script used by HP pwplus--don't use.
4281            :
4282          else
4283            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4284            break 3
4285          fi
4286        fi
4287      done
4288    done
4289    ;;
4290esac
4291done
4292IFS=$as_save_IFS
4293
4294
4295fi
4296  if test "${ac_cv_path_install+set}" = set; then
4297    INSTALL=$ac_cv_path_install
4298  else
4299    # As a last resort, use the slow shell script.  Don't cache a
4300    # value for INSTALL within a source directory, because that will
4301    # break other packages using the cache if that directory is
4302    # removed, or if the value is a relative name.
4303    INSTALL=$ac_install_sh
4304  fi
4305fi
4306{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4307echo "${ECHO_T}$INSTALL" >&6; }
4308
4309# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4310# It thinks the first close brace ends the variable substitution.
4311test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4312
4313test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4314
4315test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4316
4317{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4318echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4319LN_S=$as_ln_s
4320if test "$LN_S" = "ln -s"; then
4321  { echo "$as_me:$LINENO: result: yes" >&5
4322echo "${ECHO_T}yes" >&6; }
4323else
4324  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4325echo "${ECHO_T}no, using $LN_S" >&6; }
4326fi
4327
4328{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4329echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4330set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4331if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4332  echo $ECHO_N "(cached) $ECHO_C" >&6
4333else
4334  cat >conftest.make <<\_ACEOF
4335SHELL = /bin/sh
4336all:
4337        @echo '@@@%%%=$(MAKE)=@@@%%%'
4338_ACEOF
4339# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4340case `${MAKE-make} -f conftest.make 2>/dev/null` in
4341  *@@@%%%=?*=@@@%%%*)
4342    eval ac_cv_prog_make_${ac_make}_set=yes;;
4343  *)
4344    eval ac_cv_prog_make_${ac_make}_set=no;;
4345esac
4346rm -f conftest.make
4347fi
4348if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4349  { echo "$as_me:$LINENO: result: yes" >&5
4350echo "${ECHO_T}yes" >&6; }
4351  SET_MAKE=
4352else
4353  { echo "$as_me:$LINENO: result: no" >&5
4354echo "${ECHO_T}no" >&6; }
4355  SET_MAKE="MAKE=${MAKE-make}"
4356fi
4357
4358if test -n "$ac_tool_prefix"; then
4359  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4360set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4361{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4362echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4363if test "${ac_cv_prog_RANLIB+set}" = set; then
4364  echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366  if test -n "$RANLIB"; then
4367  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4368else
4369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370for as_dir in $PATH
4371do
4372  IFS=$as_save_IFS
4373  test -z "$as_dir" && as_dir=.
4374  for ac_exec_ext in '' $ac_executable_extensions; do
4375  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4377    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4378    break 2
4379  fi
4380done
4381done
4382IFS=$as_save_IFS
4383
4384fi
4385fi
4386RANLIB=$ac_cv_prog_RANLIB
4387if test -n "$RANLIB"; then
4388  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4389echo "${ECHO_T}$RANLIB" >&6; }
4390else
4391  { echo "$as_me:$LINENO: result: no" >&5
4392echo "${ECHO_T}no" >&6; }
4393fi
4394
4395
4396fi
4397if test -z "$ac_cv_prog_RANLIB"; then
4398  ac_ct_RANLIB=$RANLIB
4399  # Extract the first word of "ranlib", so it can be a program name with args.
4400set dummy ranlib; ac_word=$2
4401{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4403if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4404  echo $ECHO_N "(cached) $ECHO_C" >&6
4405else
4406  if test -n "$ac_ct_RANLIB"; then
4407  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4408else
4409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410for as_dir in $PATH
4411do
4412  IFS=$as_save_IFS
4413  test -z "$as_dir" && as_dir=.
4414  for ac_exec_ext in '' $ac_executable_extensions; do
4415  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416    ac_cv_prog_ac_ct_RANLIB="ranlib"
4417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418    break 2
4419  fi
4420done
4421done
4422IFS=$as_save_IFS
4423
4424fi
4425fi
4426ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4427if test -n "$ac_ct_RANLIB"; then
4428  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4429echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4430else
4431  { echo "$as_me:$LINENO: result: no" >&5
4432echo "${ECHO_T}no" >&6; }
4433fi
4434
4435  if test "x$ac_ct_RANLIB" = x; then
4436    RANLIB=":"
4437  else
4438    case $cross_compiling:$ac_tool_warned in
4439yes:)
4440{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4441whose name does not start with the host triplet.  If you think this
4442configuration is useful to you, please write to autoconf@gnu.org." >&5
4443echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4444whose name does not start with the host triplet.  If you think this
4445configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4446ac_tool_warned=yes ;;
4447esac
4448    RANLIB=$ac_ct_RANLIB
4449  fi
4450else
4451  RANLIB="$ac_cv_prog_RANLIB"
4452fi
4453
4454
4455
4456# Check whether --enable-shared was given.
4457if test "${enable_shared+set}" = set; then
4458  enableval=$enable_shared; p=${PACKAGE-default}
4459    case $enableval in
4460    yes) enable_shared=yes ;;
4461    no) enable_shared=no ;;
4462    *)
4463      enable_shared=no
4464      # Look at the argument we got.  We use all the common list separators.
4465      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4466      for pkg in $enableval; do
4467        IFS="$lt_save_ifs"
4468        if test "X$pkg" = "X$p"; then
4469          enable_shared=yes
4470        fi
4471      done
4472      IFS="$lt_save_ifs"
4473      ;;
4474    esac
4475else
4476  enable_shared=yes
4477fi
4478
4479
4480# Check whether --enable-static was given.
4481if test "${enable_static+set}" = set; then
4482  enableval=$enable_static; p=${PACKAGE-default}
4483    case $enableval in
4484    yes) enable_static=yes ;;
4485    no) enable_static=no ;;
4486    *)
4487     enable_static=no
4488      # Look at the argument we got.  We use all the common list separators.
4489      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4490      for pkg in $enableval; do
4491        IFS="$lt_save_ifs"
4492        if test "X$pkg" = "X$p"; then
4493          enable_static=yes
4494        fi
4495      done
4496      IFS="$lt_save_ifs"
4497      ;;
4498    esac
4499else
4500  enable_static=yes
4501fi
4502
4503
4504# Check whether --enable-fast-install was given.
4505if test "${enable_fast_install+set}" = set; then
4506  enableval=$enable_fast_install; p=${PACKAGE-default}
4507    case $enableval in
4508    yes) enable_fast_install=yes ;;
4509    no) enable_fast_install=no ;;
4510    *)
4511      enable_fast_install=no
4512      # Look at the argument we got.  We use all the common list separators.
4513      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4514      for pkg in $enableval; do
4515        IFS="$lt_save_ifs"
4516        if test "X$pkg" = "X$p"; then
4517          enable_fast_install=yes
4518        fi
4519      done
4520      IFS="$lt_save_ifs"
4521      ;;
4522    esac
4523else
4524  enable_fast_install=yes
4525fi
4526
4527
4528# Make sure we can run config.sub.
4529$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4530  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4531echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4532   { (exit 1); exit 1; }; }
4533
4534{ echo "$as_me:$LINENO: checking build system type" >&5
4535echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4536if test "${ac_cv_build+set}" = set; then
4537  echo $ECHO_N "(cached) $ECHO_C" >&6
4538else
4539  ac_build_alias=$build_alias
4540test "x$ac_build_alias" = x &&
4541  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4542test "x$ac_build_alias" = x &&
4543  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4544echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4545   { (exit 1); exit 1; }; }
4546ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4547  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4548echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4549   { (exit 1); exit 1; }; }
4550
4551fi
4552{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4553echo "${ECHO_T}$ac_cv_build" >&6; }
4554case $ac_cv_build in
4555*-*-*) ;;
4556*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4557echo "$as_me: error: invalid value of canonical build" >&2;}
4558   { (exit 1); exit 1; }; };;
4559esac
4560build=$ac_cv_build
4561ac_save_IFS=$IFS; IFS='-'
4562set x $ac_cv_build
4563shift
4564build_cpu=$1
4565build_vendor=$2
4566shift; shift
4567# Remember, the first character of IFS is used to create $*,
4568# except with old shells:
4569build_os=$*
4570IFS=$ac_save_IFS
4571case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4572
4573
4574{ echo "$as_me:$LINENO: checking host system type" >&5
4575echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4576if test "${ac_cv_host+set}" = set; then
4577  echo $ECHO_N "(cached) $ECHO_C" >&6
4578else
4579  if test "x$host_alias" = x; then
4580  ac_cv_host=$ac_cv_build
4581else
4582  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4583    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4584echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4585   { (exit 1); exit 1; }; }
4586fi
4587
4588fi
4589{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4590echo "${ECHO_T}$ac_cv_host" >&6; }
4591case $ac_cv_host in
4592*-*-*) ;;
4593*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4594echo "$as_me: error: invalid value of canonical host" >&2;}
4595   { (exit 1); exit 1; }; };;
4596esac
4597host=$ac_cv_host
4598ac_save_IFS=$IFS; IFS='-'
4599set x $ac_cv_host
4600shift
4601host_cpu=$1
4602host_vendor=$2
4603shift; shift
4604# Remember, the first character of IFS is used to create $*,
4605# except with old shells:
4606host_os=$*
4607IFS=$ac_save_IFS
4608case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4609
4610
4611{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4612echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4613if test "${lt_cv_path_SED+set}" = set; then
4614  echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616  # Loop through the user's path and test for sed and gsed.
4617# Then use that list of sed's as ones to test for truncation.
4618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619for as_dir in $PATH
4620do
4621  IFS=$as_save_IFS
4622  test -z "$as_dir" && as_dir=.
4623  for lt_ac_prog in sed gsed; do
4624    for ac_exec_ext in '' $ac_executable_extensions; do
4625      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4626        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4627      fi
4628    done
4629  done
4630done
4631IFS=$as_save_IFS
4632lt_ac_max=0
4633lt_ac_count=0
4634# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4635# along with /bin/sed that truncates output.
4636for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4637  test ! -f $lt_ac_sed && continue
4638  cat /dev/null > conftest.in
4639  lt_ac_count=0
4640  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4641  # Check for GNU sed and select it if it is found.
4642  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4643    lt_cv_path_SED=$lt_ac_sed
4644    break
4645  fi
4646  while true; do
4647    cat conftest.in conftest.in >conftest.tmp
4648    mv conftest.tmp conftest.in
4649    cp conftest.in conftest.nl
4650    echo >>conftest.nl
4651    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4652    cmp -s conftest.out conftest.nl || break
4653    # 10000 chars as input seems more than enough
4654    test $lt_ac_count -gt 10 && break
4655    lt_ac_count=`expr $lt_ac_count + 1`
4656    if test $lt_ac_count -gt $lt_ac_max; then
4657      lt_ac_max=$lt_ac_count
4658      lt_cv_path_SED=$lt_ac_sed
4659    fi
4660  done
4661done
4662
4663fi
4664
4665SED=$lt_cv_path_SED
4666
4667{ echo "$as_me:$LINENO: result: $SED" >&5
4668echo "${ECHO_T}$SED" >&6; }
4669
4670{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4671echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4672if test "${ac_cv_path_GREP+set}" = set; then
4673  echo $ECHO_N "(cached) $ECHO_C" >&6
4674else
4675  # Extract the first word of "grep ggrep" to use in msg output
4676if test -z "$GREP"; then
4677set dummy grep ggrep; ac_prog_name=$2
4678if test "${ac_cv_path_GREP+set}" = set; then
4679  echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
4681  ac_path_GREP_found=false
4682# Loop through the user's path and test for each of PROGNAME-LIST
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4685do
4686  IFS=$as_save_IFS
4687  test -z "$as_dir" && as_dir=.
4688  for ac_prog in grep ggrep; do
4689  for ac_exec_ext in '' $ac_executable_extensions; do
4690    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4691    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4692    # Check for GNU ac_path_GREP and select it if it is found.
4693  # Check for GNU $ac_path_GREP
4694case `"$ac_path_GREP" --version 2>&1` in
4695*GNU*)
4696  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4697*)
4698  ac_count=0
4699  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4700  while :
4701  do
4702    cat "conftest.in" "conftest.in" >"conftest.tmp"
4703    mv "conftest.tmp" "conftest.in"
4704    cp "conftest.in" "conftest.nl"
4705    echo 'GREP' >> "conftest.nl"
4706    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4707    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4708    ac_count=`expr $ac_count + 1`
4709    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4710      # Best one so far, save it but keep looking for a better one
4711      ac_cv_path_GREP="$ac_path_GREP"
4712      ac_path_GREP_max=$ac_count
4713    fi
4714    # 10*(2^10) chars as input seems more than enough
4715    test $ac_count -gt 10 && break
4716  done
4717  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4718esac
4719
4720
4721    $ac_path_GREP_found && break 3
4722  done
4723done
4724
4725done
4726IFS=$as_save_IFS
4727
4728
4729fi
4730
4731GREP="$ac_cv_path_GREP"
4732if test -z "$GREP"; then
4733  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4734echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4735   { (exit 1); exit 1; }; }
4736fi
4737
4738else
4739  ac_cv_path_GREP=$GREP
4740fi
4741
4742
4743fi
4744{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4745echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4746 GREP="$ac_cv_path_GREP"
4747
4748
4749{ echo "$as_me:$LINENO: checking for egrep" >&5
4750echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4751if test "${ac_cv_path_EGREP+set}" = set; then
4752  echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4755   then ac_cv_path_EGREP="$GREP -E"
4756   else
4757     # Extract the first word of "egrep" to use in msg output
4758if test -z "$EGREP"; then
4759set dummy egrep; ac_prog_name=$2
4760if test "${ac_cv_path_EGREP+set}" = set; then
4761  echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763  ac_path_EGREP_found=false
4764# Loop through the user's path and test for each of PROGNAME-LIST
4765as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767do
4768  IFS=$as_save_IFS
4769  test -z "$as_dir" && as_dir=.
4770  for ac_prog in egrep; do
4771  for ac_exec_ext in '' $ac_executable_extensions; do
4772    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4773    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4774    # Check for GNU ac_path_EGREP and select it if it is found.
4775  # Check for GNU $ac_path_EGREP
4776case `"$ac_path_EGREP" --version 2>&1` in
4777*GNU*)
4778  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4779*)
4780  ac_count=0
4781  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4782  while :
4783  do
4784    cat "conftest.in" "conftest.in" >"conftest.tmp"
4785    mv "conftest.tmp" "conftest.in"
4786    cp "conftest.in" "conftest.nl"
4787    echo 'EGREP' >> "conftest.nl"
4788    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4790    ac_count=`expr $ac_count + 1`
4791    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4792      # Best one so far, save it but keep looking for a better one
4793      ac_cv_path_EGREP="$ac_path_EGREP"
4794      ac_path_EGREP_max=$ac_count
4795    fi
4796    # 10*(2^10) chars as input seems more than enough
4797    test $ac_count -gt 10 && break
4798  done
4799  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800esac
4801
4802
4803    $ac_path_EGREP_found && break 3
4804  done
4805done
4806
4807done
4808IFS=$as_save_IFS
4809
4810
4811fi
4812
4813EGREP="$ac_cv_path_EGREP"
4814if test -z "$EGREP"; then
4815  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4816echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4817   { (exit 1); exit 1; }; }
4818fi
4819
4820else
4821  ac_cv_path_EGREP=$EGREP
4822fi
4823
4824
4825   fi
4826fi
4827{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4828echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4829 EGREP="$ac_cv_path_EGREP"
4830
4831
4832
4833# Check whether --with-gnu-ld was given.
4834if test "${with_gnu_ld+set}" = set; then
4835  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4836else
4837  with_gnu_ld=no
4838fi
4839
4840ac_prog=ld
4841if test "$GCC" = yes; then
4842  # Check if gcc -print-prog-name=ld gives a path.
4843  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4844echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4845  case $host in
4846  *-*-mingw*)
4847    # gcc leaves a trailing carriage return which upsets mingw
4848    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4849  *)
4850    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4851  esac
4852  case $ac_prog in
4853    # Accept absolute paths.
4854    [\\/]* | ?:[\\/]*)
4855      re_direlt='/[^/][^/]*/\.\./'
4856      # Canonicalize the pathname of ld
4857      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4858      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4859        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4860      done
4861      test -z "$LD" && LD="$ac_prog"
4862      ;;
4863  "")
4864    # If it fails, then pretend we aren't using GCC.
4865    ac_prog=ld
4866    ;;
4867  *)
4868    # If it is relative, then search for the first ld in PATH.
4869    with_gnu_ld=unknown
4870    ;;
4871  esac
4872elif test "$with_gnu_ld" = yes; then
4873  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4874echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4875else
4876  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4877echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4878fi
4879if test "${lt_cv_path_LD+set}" = set; then
4880  echo $ECHO_N "(cached) $ECHO_C" >&6
4881else
4882  if test -z "$LD"; then
4883  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4884  for ac_dir in $PATH; do
4885    IFS="$lt_save_ifs"
4886    test -z "$ac_dir" && ac_dir=.
4887    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4888      lt_cv_path_LD="$ac_dir/$ac_prog"
4889      # Check to see if the program is GNU ld.  I'd rather use --version,
4890      # but apparently some variants of GNU ld only accept -v.
4891      # Break only if it was the GNU/non-GNU ld that we prefer.
4892      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4893      *GNU* | *'with BFD'*)
4894        test "$with_gnu_ld" != no && break
4895        ;;
4896      *)
4897        test "$with_gnu_ld" != yes && break
4898        ;;
4899      esac
4900    fi
4901  done
4902  IFS="$lt_save_ifs"
4903else
4904  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4905fi
4906fi
4907
4908LD="$lt_cv_path_LD"
4909if test -n "$LD"; then
4910  { echo "$as_me:$LINENO: result: $LD" >&5
4911echo "${ECHO_T}$LD" >&6; }
4912else
4913  { echo "$as_me:$LINENO: result: no" >&5
4914echo "${ECHO_T}no" >&6; }
4915fi
4916test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4917echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4918   { (exit 1); exit 1; }; }
4919{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4920echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4921if test "${lt_cv_prog_gnu_ld+set}" = set; then
4922  echo $ECHO_N "(cached) $ECHO_C" >&6
4923else
4924  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4925case `$LD -v 2>&1 </dev/null` in
4926*GNU* | *'with BFD'*)
4927  lt_cv_prog_gnu_ld=yes
4928  ;;
4929*)
4930  lt_cv_prog_gnu_ld=no
4931  ;;
4932esac
4933fi
4934{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4935echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4936with_gnu_ld=$lt_cv_prog_gnu_ld
4937
4938
4939{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4940echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4941if test "${lt_cv_ld_reload_flag+set}" = set; then
4942  echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944  lt_cv_ld_reload_flag='-r'
4945fi
4946{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4947echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4948reload_flag=$lt_cv_ld_reload_flag
4949case $reload_flag in
4950"" | " "*) ;;
4951*) reload_flag=" $reload_flag" ;;
4952esac
4953reload_cmds='$LD$reload_flag -o $output$reload_objs'
4954case $host_os in
4955  darwin*)
4956    if test "$GCC" = yes; then
4957      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4958    else
4959      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4960    fi
4961    ;;
4962esac
4963
4964{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4965echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4966if test "${lt_cv_path_NM+set}" = set; then
4967  echo $ECHO_N "(cached) $ECHO_C" >&6
4968else
4969  if test -n "$NM"; then
4970  # Let the user override the test.
4971  lt_cv_path_NM="$NM"
4972else
4973  lt_nm_to_check="${ac_tool_prefix}nm"
4974  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4975    lt_nm_to_check="$lt_nm_to_check nm"
4976  fi
4977  for lt_tmp_nm in $lt_nm_to_check; do
4978    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4979    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4980      IFS="$lt_save_ifs"
4981      test -z "$ac_dir" && ac_dir=.
4982      tmp_nm="$ac_dir/$lt_tmp_nm"
4983      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4984        # Check to see if the nm accepts a BSD-compat flag.
4985        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4986        #   nm: unknown option "B" ignored
4987        # Tru64's nm complains that /dev/null is an invalid object file
4988        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4989        */dev/null* | *'Invalid file or object type'*)
4990          lt_cv_path_NM="$tmp_nm -B"
4991          break
4992          ;;
4993        *)
4994          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4995          */dev/null*)
4996            lt_cv_path_NM="$tmp_nm -p"
4997            break
4998            ;;
4999          *)
5000            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5001            continue # so that we can try to find one that supports BSD flags
5002            ;;
5003          esac
5004          ;;
5005        esac
5006      fi
5007    done
5008    IFS="$lt_save_ifs"
5009  done
5010  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5011fi
5012fi
5013{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5014echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5015NM="$lt_cv_path_NM"
5016
5017{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5018echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5019if test "${lt_cv_deplibs_check_method+set}" = set; then
5020  echo $ECHO_N "(cached) $ECHO_C" >&6
5021else
5022  lt_cv_file_magic_cmd='$MAGIC_CMD'
5023lt_cv_file_magic_test_file=
5024lt_cv_deplibs_check_method='unknown'
5025# Need to set the preceding variable on all platforms that support
5026# interlibrary dependencies.
5027# 'none' -- dependencies not supported.
5028# `unknown' -- same as none, but documents that we really don't know.
5029# 'pass_all' -- all dependencies passed with no checks.
5030# 'test_compile' -- check by making test program.
5031# 'file_magic [[regex]]' -- check by looking for files in library path
5032# which responds to the $file_magic_cmd with a given extended regex.
5033# If you have `file' or equivalent on your system and you're not sure
5034# whether `pass_all' will *always* work, you probably want this one.
5035
5036case $host_os in
5037aix4* | aix5*)
5038  lt_cv_deplibs_check_method=pass_all
5039  ;;
5040
5041beos*)
5042  lt_cv_deplibs_check_method=pass_all
5043  ;;
5044
5045bsdi[45]*)
5046  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5047  lt_cv_file_magic_cmd='/usr/bin/file -L'
5048  lt_cv_file_magic_test_file=/shlib/libc.so
5049  ;;
5050
5051cygwin*)
5052  # func_win32_libid is a shell function defined in ltmain.sh
5053  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5054  lt_cv_file_magic_cmd='func_win32_libid'
5055  ;;
5056
5057mingw* | pw32*)
5058  # Base MSYS/MinGW do not provide the 'file' command needed by
5059  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5060  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5061  lt_cv_file_magic_cmd='$OBJDUMP -f'
5062  ;;
5063
5064darwin* | rhapsody*)
5065  lt_cv_deplibs_check_method=pass_all
5066  ;;
5067
5068freebsd* | kfreebsd*-gnu | dragonfly*)
5069  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5070    case $host_cpu in
5071    i*86 )
5072      # Not sure whether the presence of OpenBSD here was a mistake.
5073      # Let's accept both of them until this is cleared up.
5074      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5075      lt_cv_file_magic_cmd=/usr/bin/file
5076      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5077      ;;
5078    esac
5079  else
5080    lt_cv_deplibs_check_method=pass_all
5081  fi
5082  ;;
5083
5084gnu*)
5085  lt_cv_deplibs_check_method=pass_all
5086  ;;
5087
5088hpux10.20* | hpux11*)
5089  lt_cv_file_magic_cmd=/usr/bin/file
5090  case $host_cpu in
5091  ia64*)
5092    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5093    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5094    ;;
5095  hppa*64*)
5096    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]'
5097    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5098    ;;
5099  *)
5100    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5101    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5102    ;;
5103  esac
5104  ;;
5105
5106interix3*)
5107  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5108  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5109  ;;
5110
5111irix5* | irix6* | nonstopux*)
5112  case $LD in
5113  *-32|*"-32 ") libmagic=32-bit;;
5114  *-n32|*"-n32 ") libmagic=N32;;
5115  *-64|*"-64 ") libmagic=64-bit;;
5116  *) libmagic=never-match;;
5117  esac
5118  lt_cv_deplibs_check_method=pass_all
5119  ;;
5120
5121# This must be Linux ELF.
5122linux*)
5123  lt_cv_deplibs_check_method=pass_all
5124  ;;
5125
5126netbsd*)
5127  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5128    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5129  else
5130    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5131  fi
5132  ;;
5133
5134newos6*)
5135  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5136  lt_cv_file_magic_cmd=/usr/bin/file
5137  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5138  ;;
5139
5140nto-qnx*)
5141  lt_cv_deplibs_check_method=unknown
5142  ;;
5143
5144openbsd*)
5145  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5146    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5147  else
5148    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5149  fi
5150  ;;
5151
5152osf3* | osf4* | osf5*)
5153  lt_cv_deplibs_check_method=pass_all
5154  ;;
5155
5156solaris*)
5157  lt_cv_deplibs_check_method=pass_all
5158  ;;
5159
5160sysv4 | sysv4.3*)
5161  case $host_vendor in
5162  motorola)
5163    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]'
5164    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5165    ;;
5166  ncr)
5167    lt_cv_deplibs_check_method=pass_all
5168    ;;
5169  sequent)
5170    lt_cv_file_magic_cmd='/bin/file'
5171    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5172    ;;
5173  sni)
5174    lt_cv_file_magic_cmd='/bin/file'
5175    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5176    lt_cv_file_magic_test_file=/lib/libc.so
5177    ;;
5178  siemens)
5179    lt_cv_deplibs_check_method=pass_all
5180    ;;
5181  pc)
5182    lt_cv_deplibs_check_method=pass_all
5183    ;;
5184  esac
5185  ;;
5186
5187sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5188  lt_cv_deplibs_check_method=pass_all
5189  ;;
5190esac
5191
5192fi
5193{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5194echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5195file_magic_cmd=$lt_cv_file_magic_cmd
5196deplibs_check_method=$lt_cv_deplibs_check_method
5197test -z "$deplibs_check_method" && deplibs_check_method=unknown
5198
5199
5200
5201
5202# If no C compiler was specified, use CC.
5203LTCC=${LTCC-"$CC"}
5204
5205# If no C compiler flags were specified, use CFLAGS.
5206LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5207
5208# Allow CC to be a program name with arguments.
5209compiler=$CC
5210
5211
5212# Check whether --enable-libtool-lock was given.
5213if test "${enable_libtool_lock+set}" = set; then
5214  enableval=$enable_libtool_lock;
5215fi
5216
5217test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5218
5219# Some flags need to be propagated to the compiler or linker for good
5220# libtool support.
5221case $host in
5222ia64-*-hpux*)
5223  # Find out which ABI we are using.
5224  echo 'int i;' > conftest.$ac_ext
5225  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5226  (eval $ac_compile) 2>&5
5227  ac_status=$?
5228  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229  (exit $ac_status); }; then
5230    case `/usr/bin/file conftest.$ac_objext` in
5231    *ELF-32*)
5232      HPUX_IA64_MODE="32"
5233      ;;
5234    *ELF-64*)
5235      HPUX_IA64_MODE="64"
5236      ;;
5237    esac
5238  fi
5239  rm -rf conftest*
5240  ;;
5241*-*-irix6*)
5242  # Find out which ABI we are using.
5243  echo '#line 5243 "configure"' > conftest.$ac_ext
5244  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5245  (eval $ac_compile) 2>&5
5246  ac_status=$?
5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248  (exit $ac_status); }; then
5249   if test "$lt_cv_prog_gnu_ld" = yes; then
5250    case `/usr/bin/file conftest.$ac_objext` in
5251    *32-bit*)
5252      LD="${LD-ld} -melf32bsmip"
5253      ;;
5254    *N32*)
5255      LD="${LD-ld} -melf32bmipn32"
5256      ;;
5257    *64-bit*)
5258      LD="${LD-ld} -melf64bmip"
5259      ;;
5260    esac
5261   else
5262    case `/usr/bin/file conftest.$ac_objext` in
5263    *32-bit*)
5264      LD="${LD-ld} -32"
5265      ;;
5266    *N32*)
5267      LD="${LD-ld} -n32"
5268      ;;
5269    *64-bit*)
5270      LD="${LD-ld} -64"
5271      ;;
5272    esac
5273   fi
5274  fi
5275  rm -rf conftest*
5276  ;;
5277
5278x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5279  # Find out which ABI we are using.
5280  echo 'int i;' > conftest.$ac_ext
5281  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5282  (eval $ac_compile) 2>&5
5283  ac_status=$?
5284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285  (exit $ac_status); }; then
5286    case `/usr/bin/file conftest.o` in
5287    *32-bit*)
5288      case $host in
5289        x86_64-*linux*)
5290          LD="${LD-ld} -m elf_i386"
5291          ;;
5292        ppc64-*linux*|powerpc64-*linux*)
5293          LD="${LD-ld} -m elf32ppclinux"
5294          ;;
5295        s390x-*linux*)
5296          LD="${LD-ld} -m elf_s390"
5297          ;;
5298        sparc64-*linux*)
5299          LD="${LD-ld} -m elf32_sparc"
5300          ;;
5301      esac
5302      ;;
5303    *64-bit*)
5304      case $host in
5305        x86_64-*linux*)
5306          LD="${LD-ld} -m elf_x86_64"
5307          ;;
5308        ppc*-*linux*|powerpc*-*linux*)
5309          LD="${LD-ld} -m elf64ppc"
5310          ;;
5311        s390*-*linux*)
5312          LD="${LD-ld} -m elf64_s390"
5313          ;;
5314        sparc*-*linux*)
5315          LD="${LD-ld} -m elf64_sparc"
5316          ;;
5317      esac
5318      ;;
5319    esac
5320  fi
5321  rm -rf conftest*
5322  ;;
5323
5324*-*-sco3.2v5*)
5325  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5326  SAVE_CFLAGS="$CFLAGS"
5327  CFLAGS="$CFLAGS -belf"
5328  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5329echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5330if test "${lt_cv_cc_needs_belf+set}" = set; then
5331  echo $ECHO_N "(cached) $ECHO_C" >&6
5332else
5333  ac_ext=c
5334ac_cpp='$CPP $CPPFLAGS'
5335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5337ac_compiler_gnu=$ac_cv_c_compiler_gnu
5338
5339     cat >conftest.$ac_ext <<_ACEOF
5340/* confdefs.h.  */
5341_ACEOF
5342cat confdefs.h >>conftest.$ac_ext
5343cat >>conftest.$ac_ext <<_ACEOF
5344/* end confdefs.h.  */
5345
5346int
5347main ()
5348{
5349
5350  ;
5351  return 0;
5352}
5353_ACEOF
5354rm -f conftest.$ac_objext conftest$ac_exeext
5355if { (ac_try="$ac_link"
5356case "(($ac_try" in
5357  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5358  *) ac_try_echo=$ac_try;;
5359esac
5360eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361  (eval "$ac_link") 2>conftest.er1
5362  ac_status=$?
5363  grep -v '^ *+' conftest.er1 >conftest.err
5364  rm -f conftest.er1
5365  cat conftest.err >&5
5366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367  (exit $ac_status); } && {
5368         test -z "$ac_c_werror_flag" ||
5369         test ! -s conftest.err
5370       } && test -s conftest$ac_exeext &&
5371       $as_test_x conftest$ac_exeext; then
5372  lt_cv_cc_needs_belf=yes
5373else
5374  echo "$as_me: failed program was:" >&5
5375sed 's/^/| /' conftest.$ac_ext >&5
5376
5377        lt_cv_cc_needs_belf=no
5378fi
5379
5380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5381      conftest$ac_exeext conftest.$ac_ext
5382     ac_ext=c
5383ac_cpp='$CPP $CPPFLAGS'
5384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386ac_compiler_gnu=$ac_cv_c_compiler_gnu
5387
5388fi
5389{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5390echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5391  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5392    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5393    CFLAGS="$SAVE_CFLAGS"
5394  fi
5395  ;;
5396sparc*-*solaris*)
5397  # Find out which ABI we are using.
5398  echo 'int i;' > conftest.$ac_ext
5399  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400  (eval $ac_compile) 2>&5
5401  ac_status=$?
5402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403  (exit $ac_status); }; then
5404    case `/usr/bin/file conftest.o` in
5405    *64-bit*)
5406      case $lt_cv_prog_gnu_ld in
5407      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5408      *)    LD="${LD-ld} -64" ;;
5409      esac
5410      ;;
5411    esac
5412  fi
5413  rm -rf conftest*
5414  ;;
5415
5416*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5417  if test -n "$ac_tool_prefix"; then
5418  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5419set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5420{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5422if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5423  echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425  if test -n "$DLLTOOL"; then
5426  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5427else
5428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429for as_dir in $PATH
5430do
5431  IFS=$as_save_IFS
5432  test -z "$as_dir" && as_dir=.
5433  for ac_exec_ext in '' $ac_executable_extensions; do
5434  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5436    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5437    break 2
5438  fi
5439done
5440done
5441IFS=$as_save_IFS
5442
5443fi
5444fi
5445DLLTOOL=$ac_cv_prog_DLLTOOL
5446if test -n "$DLLTOOL"; then
5447  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5448echo "${ECHO_T}$DLLTOOL" >&6; }
5449else
5450  { echo "$as_me:$LINENO: result: no" >&5
5451echo "${ECHO_T}no" >&6; }
5452fi
5453
5454
5455fi
5456if test -z "$ac_cv_prog_DLLTOOL"; then
5457  ac_ct_DLLTOOL=$DLLTOOL
5458  # Extract the first word of "dlltool", so it can be a program name with args.
5459set dummy dlltool; ac_word=$2
5460{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5462if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5463  echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465  if test -n "$ac_ct_DLLTOOL"; then
5466  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5467else
5468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5469for as_dir in $PATH
5470do
5471  IFS=$as_save_IFS
5472  test -z "$as_dir" && as_dir=.
5473  for ac_exec_ext in '' $ac_executable_extensions; do
5474  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5475    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5476    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5477    break 2
5478  fi
5479done
5480done
5481IFS=$as_save_IFS
5482
5483fi
5484fi
5485ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5486if test -n "$ac_ct_DLLTOOL"; then
5487  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5488echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5489else
5490  { echo "$as_me:$LINENO: result: no" >&5
5491echo "${ECHO_T}no" >&6; }
5492fi
5493
5494  if test "x$ac_ct_DLLTOOL" = x; then
5495    DLLTOOL="false"
5496  else
5497    case $cross_compiling:$ac_tool_warned in
5498yes:)
5499{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5500whose name does not start with the host triplet.  If you think this
5501configuration is useful to you, please write to autoconf@gnu.org." >&5
5502echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5503whose name does not start with the host triplet.  If you think this
5504configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5505ac_tool_warned=yes ;;
5506esac
5507    DLLTOOL=$ac_ct_DLLTOOL
5508  fi
5509else
5510  DLLTOOL="$ac_cv_prog_DLLTOOL"
5511fi
5512
5513  if test -n "$ac_tool_prefix"; then
5514  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5515set dummy ${ac_tool_prefix}as; ac_word=$2
5516{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5518if test "${ac_cv_prog_AS+set}" = set; then
5519  echo $ECHO_N "(cached) $ECHO_C" >&6
5520else
5521  if test -n "$AS"; then
5522  ac_cv_prog_AS="$AS" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527  IFS=$as_save_IFS
5528  test -z "$as_dir" && as_dir=.
5529  for ac_exec_ext in '' $ac_executable_extensions; do
5530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531    ac_cv_prog_AS="${ac_tool_prefix}as"
5532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5533    break 2
5534  fi
5535done
5536done
5537IFS=$as_save_IFS
5538
5539fi
5540fi
5541AS=$ac_cv_prog_AS
5542if test -n "$AS"; then
5543  { echo "$as_me:$LINENO: result: $AS" >&5
5544echo "${ECHO_T}$AS" >&6; }
5545else
5546  { echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6; }
5548fi
5549
5550
5551fi
5552if test -z "$ac_cv_prog_AS"; then
5553  ac_ct_AS=$AS
5554  # Extract the first word of "as", so it can be a program name with args.
5555set dummy as; ac_word=$2
5556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5558if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5559  echo $ECHO_N "(cached) $ECHO_C" >&6
5560else
5561  if test -n "$ac_ct_AS"; then
5562  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567  IFS=$as_save_IFS
5568  test -z "$as_dir" && as_dir=.
5569  for ac_exec_ext in '' $ac_executable_extensions; do
5570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5571    ac_cv_prog_ac_ct_AS="as"
5572    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573    break 2
5574  fi
5575done
5576done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581ac_ct_AS=$ac_cv_prog_ac_ct_AS
5582if test -n "$ac_ct_AS"; then
5583  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5584echo "${ECHO_T}$ac_ct_AS" >&6; }
5585else
5586  { echo "$as_me:$LINENO: result: no" >&5
5587echo "${ECHO_T}no" >&6; }
5588fi
5589
5590  if test "x$ac_ct_AS" = x; then
5591    AS="false"
5592  else
5593    case $cross_compiling:$ac_tool_warned in
5594yes:)
5595{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5596whose name does not start with the host triplet.  If you think this
5597configuration is useful to you, please write to autoconf@gnu.org." >&5
5598echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5599whose name does not start with the host triplet.  If you think this
5600configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5601ac_tool_warned=yes ;;
5602esac
5603    AS=$ac_ct_AS
5604  fi
5605else
5606  AS="$ac_cv_prog_AS"
5607fi
5608
5609  if test -n "$ac_tool_prefix"; then
5610  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5611set dummy ${ac_tool_prefix}objdump; ac_word=$2
5612{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5613echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5614if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5615  echo $ECHO_N "(cached) $ECHO_C" >&6
5616else
5617  if test -n "$OBJDUMP"; then
5618  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5619else
5620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621for as_dir in $PATH
5622do
5623  IFS=$as_save_IFS
5624  test -z "$as_dir" && as_dir=.
5625  for ac_exec_ext in '' $ac_executable_extensions; do
5626  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5627    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5628    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5629    break 2
5630  fi
5631done
5632done
5633IFS=$as_save_IFS
5634
5635fi
5636fi
5637OBJDUMP=$ac_cv_prog_OBJDUMP
5638if test -n "$OBJDUMP"; then
5639  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5640echo "${ECHO_T}$OBJDUMP" >&6; }
5641else
5642  { echo "$as_me:$LINENO: result: no" >&5
5643echo "${ECHO_T}no" >&6; }
5644fi
5645
5646
5647fi
5648if test -z "$ac_cv_prog_OBJDUMP"; then
5649  ac_ct_OBJDUMP=$OBJDUMP
5650  # Extract the first word of "objdump", so it can be a program name with args.
5651set dummy objdump; ac_word=$2
5652{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5653echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5654if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5655  echo $ECHO_N "(cached) $ECHO_C" >&6
5656else
5657  if test -n "$ac_ct_OBJDUMP"; then
5658  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5659else
5660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661for as_dir in $PATH
5662do
5663  IFS=$as_save_IFS
5664  test -z "$as_dir" && as_dir=.
5665  for ac_exec_ext in '' $ac_executable_extensions; do
5666  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5667    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5668    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5669    break 2
5670  fi
5671done
5672done
5673IFS=$as_save_IFS
5674
5675fi
5676fi
5677ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5678if test -n "$ac_ct_OBJDUMP"; then
5679  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5680echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5681else
5682  { echo "$as_me:$LINENO: result: no" >&5
5683echo "${ECHO_T}no" >&6; }
5684fi
5685
5686  if test "x$ac_ct_OBJDUMP" = x; then
5687    OBJDUMP="false"
5688  else
5689    case $cross_compiling:$ac_tool_warned in
5690yes:)
5691{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5692whose name does not start with the host triplet.  If you think this
5693configuration is useful to you, please write to autoconf@gnu.org." >&5
5694echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5695whose name does not start with the host triplet.  If you think this
5696configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5697ac_tool_warned=yes ;;
5698esac
5699    OBJDUMP=$ac_ct_OBJDUMP
5700  fi
5701else
5702  OBJDUMP="$ac_cv_prog_OBJDUMP"
5703fi
5704
5705  ;;
5706
5707esac
5708
5709need_locks="$enable_libtool_lock"
5710
5711
5712
5713{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5714echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5715if test "${ac_cv_header_stdc+set}" = set; then
5716  echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718  cat >conftest.$ac_ext <<_ACEOF
5719/* confdefs.h.  */
5720_ACEOF
5721cat confdefs.h >>conftest.$ac_ext
5722cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h.  */
5724#include <stdlib.h>
5725#include <stdarg.h>
5726#include <string.h>
5727#include <float.h>
5728
5729int
5730main ()
5731{
5732
5733  ;
5734  return 0;
5735}
5736_ACEOF
5737rm -f conftest.$ac_objext
5738if { (ac_try="$ac_compile"
5739case "(($ac_try" in
5740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5741  *) ac_try_echo=$ac_try;;
5742esac
5743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744  (eval "$ac_compile") 2>conftest.er1
5745  ac_status=$?
5746  grep -v '^ *+' conftest.er1 >conftest.err
5747  rm -f conftest.er1
5748  cat conftest.err >&5
5749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750  (exit $ac_status); } && {
5751         test -z "$ac_c_werror_flag" ||
5752         test ! -s conftest.err
5753       } && test -s conftest.$ac_objext; then
5754  ac_cv_header_stdc=yes
5755else
5756  echo "$as_me: failed program was:" >&5
5757sed 's/^/| /' conftest.$ac_ext >&5
5758
5759        ac_cv_header_stdc=no
5760fi
5761
5762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5763
5764if test $ac_cv_header_stdc = yes; then
5765  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5766  cat >conftest.$ac_ext <<_ACEOF
5767/* confdefs.h.  */
5768_ACEOF
5769cat confdefs.h >>conftest.$ac_ext
5770cat >>conftest.$ac_ext <<_ACEOF
5771/* end confdefs.h.  */
5772#include <string.h>
5773
5774_ACEOF
5775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5776  $EGREP "memchr" >/dev/null 2>&1; then
5777  :
5778else
5779  ac_cv_header_stdc=no
5780fi
5781rm -f conftest*
5782
5783fi
5784
5785if test $ac_cv_header_stdc = yes; then
5786  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5787  cat >conftest.$ac_ext <<_ACEOF
5788/* confdefs.h.  */
5789_ACEOF
5790cat confdefs.h >>conftest.$ac_ext
5791cat >>conftest.$ac_ext <<_ACEOF
5792/* end confdefs.h.  */
5793#include <stdlib.h>
5794
5795_ACEOF
5796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5797  $EGREP "free" >/dev/null 2>&1; then
5798  :
5799else
5800  ac_cv_header_stdc=no
5801fi
5802rm -f conftest*
5803
5804fi
5805
5806if test $ac_cv_header_stdc = yes; then
5807  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5808  if test "$cross_compiling" = yes; then
5809  :
5810else
5811  cat >conftest.$ac_ext <<_ACEOF
5812/* confdefs.h.  */
5813_ACEOF
5814cat confdefs.h >>conftest.$ac_ext
5815cat >>conftest.$ac_ext <<_ACEOF
5816/* end confdefs.h.  */
5817#include <ctype.h>
5818#include <stdlib.h>
5819#if ((' ' & 0x0FF) == 0x020)
5820# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5821# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5822#else
5823# define ISLOWER(c) \
5824                   (('a' <= (c) && (c) <= 'i') \
5825                     || ('j' <= (c) && (c) <= 'r') \
5826                     || ('s' <= (c) && (c) <= 'z'))
5827# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5828#endif
5829
5830#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5831int
5832main ()
5833{
5834  int i;
5835  for (i = 0; i < 256; i++)
5836    if (XOR (islower (i), ISLOWER (i))
5837        || toupper (i) != TOUPPER (i))
5838      return 2;
5839  return 0;
5840}
5841_ACEOF
5842rm -f conftest$ac_exeext
5843if { (ac_try="$ac_link"
5844case "(($ac_try" in
5845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846  *) ac_try_echo=$ac_try;;
5847esac
5848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849  (eval "$ac_link") 2>&5
5850  ac_status=$?
5851  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5853  { (case "(($ac_try" in
5854  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855  *) ac_try_echo=$ac_try;;
5856esac
5857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858  (eval "$ac_try") 2>&5
5859  ac_status=$?
5860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861  (exit $ac_status); }; }; then
5862  :
5863else
5864  echo "$as_me: program exited with status $ac_status" >&5
5865echo "$as_me: failed program was:" >&5
5866sed 's/^/| /' conftest.$ac_ext >&5
5867
5868( exit $ac_status )
5869ac_cv_header_stdc=no
5870fi
5871rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5872fi
5873
5874
5875fi
5876fi
5877{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5878echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5879if test $ac_cv_header_stdc = yes; then
5880
5881cat >>confdefs.h <<\_ACEOF
5882#define STDC_HEADERS 1
5883_ACEOF
5884
5885fi
5886
5887# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5898                  inttypes.h stdint.h unistd.h
5899do
5900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5901{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5903if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5904  echo $ECHO_N "(cached) $ECHO_C" >&6
5905else
5906  cat >conftest.$ac_ext <<_ACEOF
5907/* confdefs.h.  */
5908_ACEOF
5909cat confdefs.h >>conftest.$ac_ext
5910cat >>conftest.$ac_ext <<_ACEOF
5911/* end confdefs.h.  */
5912$ac_includes_default
5913
5914#include <$ac_header>
5915_ACEOF
5916rm -f conftest.$ac_objext
5917if { (ac_try="$ac_compile"
5918case "(($ac_try" in
5919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5920  *) ac_try_echo=$ac_try;;
5921esac
5922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923  (eval "$ac_compile") 2>conftest.er1
5924  ac_status=$?
5925  grep -v '^ *+' conftest.er1 >conftest.err
5926  rm -f conftest.er1
5927  cat conftest.err >&5
5928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929  (exit $ac_status); } && {
5930         test -z "$ac_c_werror_flag" ||
5931         test ! -s conftest.err
5932       } && test -s conftest.$ac_objext; then
5933  eval "$as_ac_Header=yes"
5934else
5935  echo "$as_me: failed program was:" >&5
5936sed 's/^/| /' conftest.$ac_ext >&5
5937
5938        eval "$as_ac_Header=no"
5939fi
5940
5941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5942fi
5943ac_res=`eval echo '${'$as_ac_Header'}'`
5944               { echo "$as_me:$LINENO: result: $ac_res" >&5
5945echo "${ECHO_T}$ac_res" >&6; }
5946if test `eval echo '${'$as_ac_Header'}'` = yes; then
5947  cat >>confdefs.h <<_ACEOF
5948#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5949_ACEOF
5950
5951fi
5952
5953done
5954
5955
5956
5957for ac_header in dlfcn.h
5958do
5959as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5960if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5961  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5964  echo $ECHO_N "(cached) $ECHO_C" >&6
5965fi
5966ac_res=`eval echo '${'$as_ac_Header'}'`
5967               { echo "$as_me:$LINENO: result: $ac_res" >&5
5968echo "${ECHO_T}$ac_res" >&6; }
5969else
5970  # Is the header compilable?
5971{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5972echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5973cat >conftest.$ac_ext <<_ACEOF
5974/* confdefs.h.  */
5975_ACEOF
5976cat confdefs.h >>conftest.$ac_ext
5977cat >>conftest.$ac_ext <<_ACEOF
5978/* end confdefs.h.  */
5979$ac_includes_default
5980#include <$ac_header>
5981_ACEOF
5982rm -f conftest.$ac_objext
5983if { (ac_try="$ac_compile"
5984case "(($ac_try" in
5985  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986  *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989  (eval "$ac_compile") 2>conftest.er1
5990  ac_status=$?
5991  grep -v '^ *+' conftest.er1 >conftest.err
5992  rm -f conftest.er1
5993  cat conftest.err >&5
5994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995  (exit $ac_status); } && {
5996         test -z "$ac_c_werror_flag" ||
5997         test ! -s conftest.err
5998       } && test -s conftest.$ac_objext; then
5999  ac_header_compiler=yes
6000else
6001  echo "$as_me: failed program was:" >&5
6002sed 's/^/| /' conftest.$ac_ext >&5
6003
6004        ac_header_compiler=no
6005fi
6006
6007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6009echo "${ECHO_T}$ac_header_compiler" >&6; }
6010
6011# Is the header present?
6012{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6013echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6014cat >conftest.$ac_ext <<_ACEOF
6015/* confdefs.h.  */
6016_ACEOF
6017cat confdefs.h >>conftest.$ac_ext
6018cat >>conftest.$ac_ext <<_ACEOF
6019/* end confdefs.h.  */
6020#include <$ac_header>
6021_ACEOF
6022if { (ac_try="$ac_cpp conftest.$ac_ext"
6023case "(($ac_try" in
6024  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025  *) ac_try_echo=$ac_try;;
6026esac
6027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6029  ac_status=$?
6030  grep -v '^ *+' conftest.er1 >conftest.err
6031  rm -f conftest.er1
6032  cat conftest.err >&5
6033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034  (exit $ac_status); } >/dev/null && {
6035         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6036         test ! -s conftest.err
6037       }; then
6038  ac_header_preproc=yes
6039else
6040  echo "$as_me: failed program was:" >&5
6041sed 's/^/| /' conftest.$ac_ext >&5
6042
6043  ac_header_preproc=no
6044fi
6045
6046rm -f conftest.err conftest.$ac_ext
6047{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6048echo "${ECHO_T}$ac_header_preproc" >&6; }
6049
6050# So?  What about this header?
6051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6052  yes:no: )
6053    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6055    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6057    ac_header_preproc=yes
6058    ;;
6059  no:yes:* )
6060    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6062    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6063echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6064    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6066    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6067echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6068    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6070    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6072    ( cat <<\_ASBOX
6073## ----------------------------------- ##
6074## Report this to adol-c@tu-dresden.de ##
6075## ----------------------------------- ##
6076_ASBOX
6077     ) | sed "s/^/$as_me: WARNING:     /" >&2
6078    ;;
6079esac
6080{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6081echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6082if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6083  echo $ECHO_N "(cached) $ECHO_C" >&6
6084else
6085  eval "$as_ac_Header=\$ac_header_preproc"
6086fi
6087ac_res=`eval echo '${'$as_ac_Header'}'`
6088               { echo "$as_me:$LINENO: result: $ac_res" >&5
6089echo "${ECHO_T}$ac_res" >&6; }
6090
6091fi
6092if test `eval echo '${'$as_ac_Header'}'` = yes; then
6093  cat >>confdefs.h <<_ACEOF
6094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6095_ACEOF
6096
6097fi
6098
6099done
6100
6101
6102
6103if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6104    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6105    (test "X$CXX" != "Xg++"))) ; then
6106  ac_ext=cpp
6107ac_cpp='$CXXCPP $CPPFLAGS'
6108ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6109ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6110ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6111{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6112echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6113if test -z "$CXXCPP"; then
6114  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6115  echo $ECHO_N "(cached) $ECHO_C" >&6
6116else
6117      # Double quotes because CXXCPP needs to be expanded
6118    for CXXCPP in "$CXX -E" "/lib/cpp"
6119    do
6120      ac_preproc_ok=false
6121for ac_cxx_preproc_warn_flag in '' yes
6122do
6123  # Use a header file that comes with gcc, so configuring glibc
6124  # with a fresh cross-compiler works.
6125  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6126  # <limits.h> exists even on freestanding compilers.
6127  # On the NeXT, cc -E runs the code through the compiler's parser,
6128  # not just through cpp. "Syntax error" is here to catch this case.
6129  cat >conftest.$ac_ext <<_ACEOF
6130/* confdefs.h.  */
6131_ACEOF
6132cat confdefs.h >>conftest.$ac_ext
6133cat >>conftest.$ac_ext <<_ACEOF
6134/* end confdefs.h.  */
6135#ifdef __STDC__
6136# include <limits.h>
6137#else
6138# include <assert.h>
6139#endif
6140                     Syntax error
6141_ACEOF
6142if { (ac_try="$ac_cpp conftest.$ac_ext"
6143case "(($ac_try" in
6144  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145  *) ac_try_echo=$ac_try;;
6146esac
6147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6149  ac_status=$?
6150  grep -v '^ *+' conftest.er1 >conftest.err
6151  rm -f conftest.er1
6152  cat conftest.err >&5
6153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154  (exit $ac_status); } >/dev/null && {
6155         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6156         test ! -s conftest.err
6157       }; then
6158  :
6159else
6160  echo "$as_me: failed program was:" >&5
6161sed 's/^/| /' conftest.$ac_ext >&5
6162
6163  # Broken: fails on valid input.
6164continue
6165fi
6166
6167rm -f conftest.err conftest.$ac_ext
6168
6169  # OK, works on sane cases.  Now check whether nonexistent headers
6170  # can be detected and how.
6171  cat >conftest.$ac_ext <<_ACEOF
6172/* confdefs.h.  */
6173_ACEOF
6174cat confdefs.h >>conftest.$ac_ext
6175cat >>conftest.$ac_ext <<_ACEOF
6176/* end confdefs.h.  */
6177#include <ac_nonexistent.h>
6178_ACEOF
6179if { (ac_try="$ac_cpp conftest.$ac_ext"
6180case "(($ac_try" in
6181  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182  *) ac_try_echo=$ac_try;;
6183esac
6184eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6186  ac_status=$?
6187  grep -v '^ *+' conftest.er1 >conftest.err
6188  rm -f conftest.er1
6189  cat conftest.err >&5
6190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191  (exit $ac_status); } >/dev/null && {
6192         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6193         test ! -s conftest.err
6194       }; then
6195  # Broken: success on invalid input.
6196continue
6197else
6198  echo "$as_me: failed program was:" >&5
6199sed 's/^/| /' conftest.$ac_ext >&5
6200
6201  # Passes both tests.
6202ac_preproc_ok=:
6203break
6204fi
6205
6206rm -f conftest.err conftest.$ac_ext
6207
6208done
6209# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6210rm -f conftest.err conftest.$ac_ext
6211if $ac_preproc_ok; then
6212  break
6213fi
6214
6215    done
6216    ac_cv_prog_CXXCPP=$CXXCPP
6217
6218fi
6219  CXXCPP=$ac_cv_prog_CXXCPP
6220else
6221  ac_cv_prog_CXXCPP=$CXXCPP
6222fi
6223{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6224echo "${ECHO_T}$CXXCPP" >&6; }
6225ac_preproc_ok=false
6226for ac_cxx_preproc_warn_flag in '' yes
6227do
6228  # Use a header file that comes with gcc, so configuring glibc
6229  # with a fresh cross-compiler works.
6230  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6231  # <limits.h> exists even on freestanding compilers.
6232  # On the NeXT, cc -E runs the code through the compiler's parser,
6233  # not just through cpp. "Syntax error" is here to catch this case.
6234  cat >conftest.$ac_ext <<_ACEOF
6235/* confdefs.h.  */
6236_ACEOF
6237cat confdefs.h >>conftest.$ac_ext
6238cat >>conftest.$ac_ext <<_ACEOF
6239/* end confdefs.h.  */
6240#ifdef __STDC__
6241# include <limits.h>
6242#else
6243# include <assert.h>
6244#endif
6245                     Syntax error
6246_ACEOF
6247if { (ac_try="$ac_cpp conftest.$ac_ext"
6248case "(($ac_try" in
6249  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250  *) ac_try_echo=$ac_try;;
6251esac
6252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6254  ac_status=$?
6255  grep -v '^ *+' conftest.er1 >conftest.err
6256  rm -f conftest.er1
6257  cat conftest.err >&5
6258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259  (exit $ac_status); } >/dev/null && {
6260         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6261         test ! -s conftest.err
6262       }; then
6263  :
6264else
6265  echo "$as_me: failed program was:" >&5
6266sed 's/^/| /' conftest.$ac_ext >&5
6267
6268  # Broken: fails on valid input.
6269continue
6270fi
6271
6272rm -f conftest.err conftest.$ac_ext
6273
6274  # OK, works on sane cases.  Now check whether nonexistent headers
6275  # can be detected and how.
6276  cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h.  */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h.  */
6282#include <ac_nonexistent.h>
6283_ACEOF
6284if { (ac_try="$ac_cpp conftest.$ac_ext"
6285case "(($ac_try" in
6286  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287  *) ac_try_echo=$ac_try;;
6288esac
6289eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6291  ac_status=$?
6292  grep -v '^ *+' conftest.er1 >conftest.err
6293  rm -f conftest.er1
6294  cat conftest.err >&5
6295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296  (exit $ac_status); } >/dev/null && {
6297         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6298         test ! -s conftest.err
6299       }; then
6300  # Broken: success on invalid input.
6301continue
6302else
6303  echo "$as_me: failed program was:" >&5
6304sed 's/^/| /' conftest.$ac_ext >&5
6305
6306  # Passes both tests.
6307ac_preproc_ok=:
6308break
6309fi
6310
6311rm -f conftest.err conftest.$ac_ext
6312
6313done
6314# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6315rm -f conftest.err conftest.$ac_ext
6316if $ac_preproc_ok; then
6317  :
6318else
6319  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6320See \`config.log' for more details." >&5
6321echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6322See \`config.log' for more details." >&2;}
6323   { (exit 1); exit 1; }; }
6324fi
6325
6326ac_ext=cpp
6327ac_cpp='$CXXCPP $CPPFLAGS'
6328ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6331
6332fi
6333
6334
6335ac_ext=f
6336ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6337ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6338ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6339if test -n "$ac_tool_prefix"; then
6340  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
6341  do
6342    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6343set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6344{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346if test "${ac_cv_prog_F77+set}" = set; then
6347  echo $ECHO_N "(cached) $ECHO_C" >&6
6348else
6349  if test -n "$F77"; then
6350  ac_cv_prog_F77="$F77" # Let the user override the test.
6351else
6352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353for as_dir in $PATH
6354do
6355  IFS=$as_save_IFS
6356  test -z "$as_dir" && as_dir=.
6357  for ac_exec_ext in '' $ac_executable_extensions; do
6358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6359    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6361    break 2
6362  fi
6363done
6364done
6365IFS=$as_save_IFS
6366
6367fi
6368fi
6369F77=$ac_cv_prog_F77
6370if test -n "$F77"; then
6371  { echo "$as_me:$LINENO: result: $F77" >&5
6372echo "${ECHO_T}$F77" >&6; }
6373else
6374  { echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6; }
6376fi
6377
6378
6379    test -n "$F77" && break
6380  done
6381fi
6382if test -z "$F77"; then
6383  ac_ct_F77=$F77
6384  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
6385do
6386  # Extract the first word of "$ac_prog", so it can be a program name with args.
6387set dummy $ac_prog; ac_word=$2
6388{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6390if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6391  echo $ECHO_N "(cached) $ECHO_C" >&6
6392else
6393  if test -n "$ac_ct_F77"; then
6394  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6395else
6396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399  IFS=$as_save_IFS
6400  test -z "$as_dir" && as_dir=.
6401  for ac_exec_ext in '' $ac_executable_extensions; do
6402  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403    ac_cv_prog_ac_ct_F77="$ac_prog"
6404    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405    break 2
6406  fi
6407done
6408done
6409IFS=$as_save_IFS
6410
6411fi
6412fi
6413ac_ct_F77=$ac_cv_prog_ac_ct_F77
6414if test -n "$ac_ct_F77"; then
6415  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6416echo "${ECHO_T}$ac_ct_F77" >&6; }
6417else
6418  { echo "$as_me:$LINENO: result: no" >&5
6419echo "${ECHO_T}no" >&6; }
6420fi
6421
6422
6423  test -n "$ac_ct_F77" && break
6424done
6425
6426  if test "x$ac_ct_F77" = x; then
6427    F77=""
6428  else
6429    case $cross_compiling:$ac_tool_warned in
6430yes:)
6431{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6432whose name does not start with the host triplet.  If you think this
6433configuration is useful to you, please write to autoconf@gnu.org." >&5
6434echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6435whose name does not start with the host triplet.  If you think this
6436configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6437ac_tool_warned=yes ;;
6438esac
6439    F77=$ac_ct_F77
6440  fi
6441fi
6442
6443
6444# Provide some information about the compiler.
6445echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6446ac_compiler=`set X $ac_compile; echo $2`
6447{ (ac_try="$ac_compiler --version >&5"
6448case "(($ac_try" in
6449  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450  *) ac_try_echo=$ac_try;;
6451esac
6452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453  (eval "$ac_compiler --version >&5") 2>&5
6454  ac_status=$?
6455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456  (exit $ac_status); }
6457{ (ac_try="$ac_compiler -v >&5"
6458case "(($ac_try" in
6459  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460  *) ac_try_echo=$ac_try;;
6461esac
6462eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6463  (eval "$ac_compiler -v >&5") 2>&5
6464  ac_status=$?
6465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466  (exit $ac_status); }
6467{ (ac_try="$ac_compiler -V >&5"
6468case "(($ac_try" in
6469  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470  *) ac_try_echo=$ac_try;;
6471esac
6472eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473  (eval "$ac_compiler -V >&5") 2>&5
6474  ac_status=$?
6475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476  (exit $ac_status); }
6477rm -f a.out
6478
6479# If we don't use `.F' as extension, the preprocessor is not run on the
6480# input file.  (Note that this only needs to work for GNU compilers.)
6481ac_save_ext=$ac_ext
6482ac_ext=F
6483{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6484echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6485if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6486  echo $ECHO_N "(cached) $ECHO_C" >&6
6487else
6488  cat >conftest.$ac_ext <<_ACEOF
6489      program main
6490#ifndef __GNUC__
6491       choke me
6492#endif
6493
6494      end
6495_ACEOF
6496rm -f conftest.$ac_objext
6497if { (ac_try="$ac_compile"
6498case "(($ac_try" in
6499  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500  *) ac_try_echo=$ac_try;;
6501esac
6502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503  (eval "$ac_compile") 2>conftest.er1
6504  ac_status=$?
6505  grep -v '^ *+' conftest.er1 >conftest.err
6506  rm -f conftest.er1
6507  cat conftest.err >&5
6508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509  (exit $ac_status); } && {
6510         test -z "$ac_f77_werror_flag" ||
6511         test ! -s conftest.err
6512       } && test -s conftest.$ac_objext; then
6513  ac_compiler_gnu=yes
6514else
6515  echo "$as_me: failed program was:" >&5
6516sed 's/^/| /' conftest.$ac_ext >&5
6517
6518        ac_compiler_gnu=no
6519fi
6520
6521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6522ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6523
6524fi
6525{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6526echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6527ac_ext=$ac_save_ext
6528ac_test_FFLAGS=${FFLAGS+set}
6529ac_save_FFLAGS=$FFLAGS
6530FFLAGS=
6531{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6532echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6533if test "${ac_cv_prog_f77_g+set}" = set; then
6534  echo $ECHO_N "(cached) $ECHO_C" >&6
6535else
6536  FFLAGS=-g
6537cat >conftest.$ac_ext <<_ACEOF
6538      program main
6539
6540      end
6541_ACEOF
6542rm -f conftest.$ac_objext
6543if { (ac_try="$ac_compile"
6544case "(($ac_try" in
6545  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546  *) ac_try_echo=$ac_try;;
6547esac
6548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549  (eval "$ac_compile") 2>conftest.er1
6550  ac_status=$?
6551  grep -v '^ *+' conftest.er1 >conftest.err
6552  rm -f conftest.er1
6553  cat conftest.err >&5
6554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555  (exit $ac_status); } && {
6556         test -z "$ac_f77_werror_flag" ||
6557         test ! -s conftest.err
6558       } && test -s conftest.$ac_objext; then
6559  ac_cv_prog_f77_g=yes
6560else
6561  echo "$as_me: failed program was:" >&5
6562sed 's/^/| /' conftest.$ac_ext >&5
6563
6564        ac_cv_prog_f77_g=no
6565fi
6566
6567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568
6569fi
6570{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6571echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6572if test "$ac_test_FFLAGS" = set; then
6573  FFLAGS=$ac_save_FFLAGS
6574elif test $ac_cv_prog_f77_g = yes; then
6575  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6576    FFLAGS="-g -O2"
6577  else
6578    FFLAGS="-g"
6579  fi
6580else
6581  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6582    FFLAGS="-O2"
6583  else
6584    FFLAGS=
6585  fi
6586fi
6587
6588G77=`test $ac_compiler_gnu = yes && echo yes`
6589ac_ext=c
6590ac_cpp='$CPP $CPPFLAGS'
6591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6593ac_compiler_gnu=$ac_cv_c_compiler_gnu
6594
6595
6596
6597# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6598
6599# find the maximum length of command line arguments
6600{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6601echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6602if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6603  echo $ECHO_N "(cached) $ECHO_C" >&6
6604else
6605    i=0
6606  teststring="ABCD"
6607
6608  case $build_os in
6609  msdosdjgpp*)
6610    # On DJGPP, this test can blow up pretty badly due to problems in libc
6611    # (any single argument exceeding 2000 bytes causes a buffer overrun
6612    # during glob expansion).  Even if it were fixed, the result of this
6613    # check would be larger than it should be.
6614    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6615    ;;
6616
6617  gnu*)
6618    # Under GNU Hurd, this test is not required because there is
6619    # no limit to the length of command line arguments.
6620    # Libtool will interpret -1 as no limit whatsoever
6621    lt_cv_sys_max_cmd_len=-1;
6622    ;;
6623
6624  cygwin* | mingw*)
6625    # On Win9x/ME, this test blows up -- it succeeds, but takes
6626    # about 5 minutes as the teststring grows exponentially.
6627    # Worse, since 9x/ME are not pre-emptively multitasking,
6628    # you end up with a "frozen" computer, even though with patience
6629    # the test eventually succeeds (with a max line length of 256k).
6630    # Instead, let's just punt: use the minimum linelength reported by
6631    # all of the supported platforms: 8192 (on NT/2K/XP).
6632    lt_cv_sys_max_cmd_len=8192;
6633    ;;
6634
6635  amigaos*)
6636    # On AmigaOS with pdksh, this test takes hours, literally.
6637    # So we just punt and use a minimum line length of 8192.
6638    lt_cv_sys_max_cmd_len=8192;
6639    ;;
6640
6641  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6642    # This has been around since 386BSD, at least.  Likely further.
6643    if test -x /sbin/sysctl; then
6644      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6645    elif test -x /usr/sbin/sysctl; then
6646      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6647    else
6648      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6649    fi
6650    # And add a safety zone
6651    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6652    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6653    ;;
6654
6655  interix*)
6656    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6657    lt_cv_sys_max_cmd_len=196608
6658    ;;
6659
6660  osf*)
6661    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6662    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6663    # nice to cause kernel panics so lets avoid the loop below.
6664    # First set a reasonable default.
6665    lt_cv_sys_max_cmd_len=16384
6666    #
6667    if test -x /sbin/sysconfig; then
6668      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6669        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6670      esac
6671    fi
6672    ;;
6673  sco3.2v5*)
6674    lt_cv_sys_max_cmd_len=102400
6675    ;;
6676  sysv5* | sco5v6* | sysv4.2uw2*)
6677    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6678    if test -n "$kargmax"; then
6679      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6680    else
6681      lt_cv_sys_max_cmd_len=32768
6682    fi
6683    ;;
6684  *)
6685    # If test is not a shell built-in, we'll probably end up computing a
6686    # maximum length that is only half of the actual maximum length, but
6687    # we can't tell.
6688    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6689    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6690               = "XX$teststring") >/dev/null 2>&1 &&
6691            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6692            lt_cv_sys_max_cmd_len=$new_result &&
6693            test $i != 17 # 1/2 MB should be enough
6694    do
6695      i=`expr $i + 1`
6696      teststring=$teststring$teststring
6697    done
6698    teststring=
6699    # Add a significant safety factor because C++ compilers can tack on massive
6700    # amounts of additional arguments before passing them to the linker.
6701    # It appears as though 1/2 is a usable value.
6702    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6703    ;;
6704  esac
6705
6706fi
6707
6708if test -n $lt_cv_sys_max_cmd_len ; then
6709  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6710echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6711else
6712  { echo "$as_me:$LINENO: result: none" >&5
6713echo "${ECHO_T}none" >&6; }
6714fi
6715
6716
6717
6718
6719# Check for command to grab the raw symbol name followed by C symbol from nm.
6720{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6721echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6722if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6723  echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725
6726# These are sane defaults that work on at least a few old systems.
6727# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6728
6729# Character class describing NM global symbol codes.
6730symcode='[BCDEGRST]'
6731
6732# Regexp to match symbols that can be accessed directly from C.
6733sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6734
6735# Transform an extracted symbol line into a proper C declaration
6736lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6737
6738# Transform an extracted symbol line into symbol name and symbol address
6739lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6740
6741# Define system-specific variables.
6742case $host_os in
6743aix*)
6744  symcode='[BCDT]'
6745  ;;
6746cygwin* | mingw* | pw32*)
6747  symcode='[ABCDGISTW]'
6748  ;;
6749hpux*) # Its linker distinguishes data from code symbols
6750  if test "$host_cpu" = ia64; then
6751    symcode='[ABCDEGRST]'
6752  fi
6753  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6754  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6755  ;;
6756linux*)
6757  if test "$host_cpu" = ia64; then
6758    symcode='[ABCDGIRSTW]'
6759    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6760    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
6761  fi
6762  ;;
6763irix* | nonstopux*)
6764  symcode='[BCDEGRST]'
6765  ;;
6766osf*)
6767  symcode='[BCDEGQRST]'
6768  ;;
6769solaris*)
6770  symcode='[BDRT]'
6771  ;;
6772sco3.2v5*)
6773  symcode='[DT]'
6774  ;;
6775sysv4.2uw2*)
6776  symcode='[DT]'
6777  ;;
6778sysv5* | sco5v6* | unixware* | OpenUNIX*)
6779  symcode='[ABDT]'
6780  ;;
6781sysv4)
6782  symcode='[DFNSTU]'
6783  ;;
6784esac
6785
6786# Handle CRLF in mingw tool chain
6787opt_cr=
6788case $build_os in
6789mingw*)
6790  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6791  ;;
6792esac
6793
6794# If we're using GNU nm, then use its standard symbol codes.
6795case `$NM -V 2>&1` in
6796*GNU* | *'with BFD'*)
6797  symcode='[ABCDGIRSTW]' ;;
6798esac
6799
6800# Try without a prefix undercore, then with it.
6801for ac_symprfx in "" "_"; do
6802
6803  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6804  symxfrm="\\1 $ac_symprfx\\2 \\2"
6805
6806  # Write the raw and C identifiers.
6807  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6808
6809  # Check to see that the pipe works correctly.
6810  pipe_works=no
6811
6812  rm -f conftest*
6813  cat > conftest.$ac_ext <<EOF
6814#ifdef __cplusplus
6815extern "C" {
6816#endif
6817char nm_test_var;
6818void nm_test_func(){}
6819#ifdef __cplusplus
6820}
6821#endif
6822int main(){nm_test_var='a';nm_test_func();return(0);}
6823EOF
6824
6825  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6826  (eval $ac_compile) 2>&5
6827  ac_status=$?
6828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829  (exit $ac_status); }; then
6830    # Now try to grab the symbols.
6831    nlist=conftest.nm
6832    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6833  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6834  ac_status=$?
6835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836  (exit $ac_status); } && test -s "$nlist"; then
6837      # Try sorting and uniquifying the output.
6838      if sort "$nlist" | uniq > "$nlist"T; then
6839        mv -f "$nlist"T "$nlist"
6840      else
6841        rm -f "$nlist"T
6842      fi
6843
6844      # Make sure that we snagged all the symbols we need.
6845      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6846        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6847          cat <<EOF > conftest.$ac_ext
6848#ifdef __cplusplus
6849extern "C" {
6850#endif
6851
6852EOF
6853          # Now generate the symbol file.
6854          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6855
6856          cat <<EOF >> conftest.$ac_ext
6857#if defined (__STDC__) && __STDC__
6858# define lt_ptr_t void *
6859#else
6860# define lt_ptr_t char *
6861# define const
6862#endif
6863
6864/* The mapping between symbol names and symbols. */
6865const struct {
6866  const char *name;
6867  lt_ptr_t address;
6868}
6869lt_preloaded_symbols[] =
6870{
6871EOF
6872          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6873          cat <<\EOF >> conftest.$ac_ext
6874  {0, (lt_ptr_t) 0}
6875};
6876
6877#ifdef __cplusplus
6878}
6879#endif
6880EOF
6881          # Now try linking the two files.
6882          mv conftest.$ac_objext conftstm.$ac_objext
6883          lt_save_LIBS="$LIBS"
6884          lt_save_CFLAGS="$CFLAGS"
6885          LIBS="conftstm.$ac_objext"
6886          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6887          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6888  (eval $ac_link) 2>&5
6889  ac_status=$?
6890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6892            pipe_works=yes
6893          fi
6894          LIBS="$lt_save_LIBS"
6895          CFLAGS="$lt_save_CFLAGS"
6896        else
6897          echo "cannot find nm_test_func in $nlist" >&5
6898        fi
6899      else
6900        echo "cannot find nm_test_var in $nlist" >&5
6901      fi
6902    else
6903      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6904    fi
6905  else
6906    echo "$progname: failed program was:" >&5
6907    cat conftest.$ac_ext >&5
6908  fi
6909  rm -f conftest* conftst*
6910
6911  # Do not use the global_symbol_pipe unless it works.
6912  if test "$pipe_works" = yes; then
6913    break
6914  else
6915    lt_cv_sys_global_symbol_pipe=
6916  fi
6917done
6918
6919fi
6920
6921if test -z "$lt_cv_sys_global_symbol_pipe"; then
6922  lt_cv_sys_global_symbol_to_cdecl=
6923fi
6924if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6925  { echo "$as_me:$LINENO: result: failed" >&5
6926echo "${ECHO_T}failed" >&6; }
6927else
6928  { echo "$as_me:$LINENO: result: ok" >&5
6929echo "${ECHO_T}ok" >&6; }
6930fi
6931
6932{ echo "$as_me:$LINENO: checking for objdir" >&5
6933echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6934if test "${lt_cv_objdir+set}" = set; then
6935  echo $ECHO_N "(cached) $ECHO_C" >&6
6936else
6937  rm -f .libs 2>/dev/null
6938mkdir .libs 2>/dev/null
6939if test -d .libs; then
6940  lt_cv_objdir=.libs
6941else
6942  # MS-DOS does not allow filenames that begin with a dot.
6943  lt_cv_objdir=_libs
6944fi
6945rmdir .libs 2>/dev/null
6946fi
6947{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6948echo "${ECHO_T}$lt_cv_objdir" >&6; }
6949objdir=$lt_cv_objdir
6950
6951
6952
6953
6954
6955case $host_os in
6956aix3*)
6957  # AIX sometimes has problems with the GCC collect2 program.  For some
6958  # reason, if we set the COLLECT_NAMES environment variable, the problems
6959  # vanish in a puff of smoke.
6960  if test "X${COLLECT_NAMES+set}" != Xset; then
6961    COLLECT_NAMES=
6962    export COLLECT_NAMES
6963  fi
6964  ;;
6965esac
6966
6967# Sed substitution that helps us do robust quoting.  It backslashifies
6968# metacharacters that are still active within double-quoted strings.
6969Xsed='sed -e 1s/^X//'
6970sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6971
6972# Same as above, but do not quote variable references.
6973double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6974
6975# Sed substitution to delay expansion of an escaped shell variable in a
6976# double_quote_subst'ed string.
6977delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6978
6979# Sed substitution to avoid accidental globbing in evaled expressions
6980no_glob_subst='s/\*/\\\*/g'
6981
6982# Constants:
6983rm="rm -f"
6984
6985# Global variables:
6986default_ofile=libtool
6987can_build_shared=yes
6988
6989# All known linkers require a `.a' archive for static linking (except MSVC,
6990# which needs '.lib').
6991libext=a
6992ltmain="$ac_aux_dir/ltmain.sh"
6993ofile="$default_ofile"
6994with_gnu_ld="$lt_cv_prog_gnu_ld"
6995
6996if test -n "$ac_tool_prefix"; then
6997  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6998set dummy ${ac_tool_prefix}ar; ac_word=$2
6999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7001if test "${ac_cv_prog_AR+set}" = set; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  if test -n "$AR"; then
7005  ac_cv_prog_AR="$AR" # Let the user override the test.
7006else
7007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008for as_dir in $PATH
7009do
7010  IFS=$as_save_IFS
7011  test -z "$as_dir" && as_dir=.
7012  for ac_exec_ext in '' $ac_executable_extensions; do
7013  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7014    ac_cv_prog_AR="${ac_tool_prefix}ar"
7015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7016    break 2
7017  fi
7018done
7019done
7020IFS=$as_save_IFS
7021
7022fi
7023fi
7024AR=$ac_cv_prog_AR
7025if test -n "$AR"; then
7026  { echo "$as_me:$LINENO: result: $AR" >&5
7027echo "${ECHO_T}$AR" >&6; }
7028else
7029  { echo "$as_me:$LINENO: result: no" >&5
7030echo "${ECHO_T}no" >&6; }
7031fi
7032
7033
7034fi
7035if test -z "$ac_cv_prog_AR"; then
7036  ac_ct_AR=$AR
7037  # Extract the first word of "ar", so it can be a program name with args.
7038set dummy ar; ac_word=$2
7039{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7040echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7041if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7042  echo $ECHO_N "(cached) $ECHO_C" >&6
7043else
7044  if test -n "$ac_ct_AR"; then
7045  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7046else
7047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048for as_dir in $PATH
7049do
7050  IFS=$as_save_IFS
7051  test -z "$as_dir" && as_dir=.
7052  for ac_exec_ext in '' $ac_executable_extensions; do
7053  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7054    ac_cv_prog_ac_ct_AR="ar"
7055    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7056    break 2
7057  fi
7058done
7059done
7060IFS=$as_save_IFS
7061
7062fi
7063fi
7064ac_ct_AR=$ac_cv_prog_ac_ct_AR
7065if test -n "$ac_ct_AR"; then
7066  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7067echo "${ECHO_T}$ac_ct_AR" >&6; }
7068else
7069  { echo "$as_me:$LINENO: result: no" >&5
7070echo "${ECHO_T}no" >&6; }
7071fi
7072
7073  if test "x$ac_ct_AR" = x; then
7074    AR="false"
7075  else
7076    case $cross_compiling:$ac_tool_warned in
7077yes:)
7078{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7079whose name does not start with the host triplet.  If you think this
7080configuration is useful to you, please write to autoconf@gnu.org." >&5
7081echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7082whose name does not start with the host triplet.  If you think this
7083configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7084ac_tool_warned=yes ;;
7085esac
7086    AR=$ac_ct_AR
7087  fi
7088else
7089  AR="$ac_cv_prog_AR"
7090fi
7091
7092if test -n "$ac_tool_prefix"; then
7093  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7094set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7095{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7096echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7097if test "${ac_cv_prog_RANLIB+set}" = set; then
7098  echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100  if test -n "$RANLIB"; then
7101  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7102else
7103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104for as_dir in $PATH
7105do
7106  IFS=$as_save_IFS
7107  test -z "$as_dir" && as_dir=.
7108  for ac_exec_ext in '' $ac_executable_extensions; do
7109  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7111    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112    break 2
7113  fi
7114done
7115done
7116IFS=$as_save_IFS
7117
7118fi
7119fi
7120RANLIB=$ac_cv_prog_RANLIB
7121if test -n "$RANLIB"; then
7122  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7123echo "${ECHO_T}$RANLIB" >&6; }
7124else
7125  { echo "$as_me:$LINENO: result: no" >&5
7126echo "${ECHO_T}no" >&6; }
7127fi
7128
7129
7130fi
7131if test -z "$ac_cv_prog_RANLIB"; then
7132  ac_ct_RANLIB=$RANLIB
7133  # Extract the first word of "ranlib", so it can be a program name with args.
7134set dummy ranlib; ac_word=$2
7135{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7137if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7138  echo $ECHO_N "(cached) $ECHO_C" >&6
7139else
7140  if test -n "$ac_ct_RANLIB"; then
7141  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7142else
7143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7144for as_dir in $PATH
7145do
7146  IFS=$as_save_IFS
7147  test -z "$as_dir" && as_dir=.
7148  for ac_exec_ext in '' $ac_executable_extensions; do
7149  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7150    ac_cv_prog_ac_ct_RANLIB="ranlib"
7151    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7152    break 2
7153  fi
7154done
7155done
7156IFS=$as_save_IFS
7157
7158fi
7159fi
7160ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7161if test -n "$ac_ct_RANLIB"; then
7162  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7163echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7164else
7165  { echo "$as_me:$LINENO: result: no" >&5
7166echo "${ECHO_T}no" >&6; }
7167fi
7168
7169  if test "x$ac_ct_RANLIB" = x; then
7170    RANLIB=":"
7171  else
7172    case $cross_compiling:$ac_tool_warned in
7173yes:)
7174{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7175whose name does not start with the host triplet.  If you think this
7176configuration is useful to you, please write to autoconf@gnu.org." >&5
7177echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7178whose name does not start with the host triplet.  If you think this
7179configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7180ac_tool_warned=yes ;;
7181esac
7182    RANLIB=$ac_ct_RANLIB
7183  fi
7184else
7185  RANLIB="$ac_cv_prog_RANLIB"
7186fi
7187
7188if test -n "$ac_tool_prefix"; then
7189  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7190set dummy ${ac_tool_prefix}strip; ac_word=$2
7191{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7193if test "${ac_cv_prog_STRIP+set}" = set; then
7194  echo $ECHO_N "(cached) $ECHO_C" >&6
7195else
7196  if test -n "$STRIP"; then
7197  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7198else
7199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200for as_dir in $PATH
7201do
7202  IFS=$as_save_IFS
7203  test -z "$as_dir" && as_dir=.
7204  for ac_exec_ext in '' $ac_executable_extensions; do
7205  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7206    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7207    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208    break 2
7209  fi
7210done
7211done
7212IFS=$as_save_IFS
7213
7214fi
7215fi
7216STRIP=$ac_cv_prog_STRIP
7217if test -n "$STRIP"; then
7218  { echo "$as_me:$LINENO: result: $STRIP" >&5
7219echo "${ECHO_T}$STRIP" >&6; }
7220else
7221  { echo "$as_me:$LINENO: result: no" >&5
7222echo "${ECHO_T}no" >&6; }
7223fi
7224
7225
7226fi
7227if test -z "$ac_cv_prog_STRIP"; then
7228  ac_ct_STRIP=$STRIP
7229  # Extract the first word of "strip", so it can be a program name with args.
7230set dummy strip; ac_word=$2
7231{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7233if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7234  echo $ECHO_N "(cached) $ECHO_C" >&6
7235else
7236  if test -n "$ac_ct_STRIP"; then
7237  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7238else
7239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240for as_dir in $PATH
7241do
7242  IFS=$as_save_IFS
7243  test -z "$as_dir" && as_dir=.
7244  for ac_exec_ext in '' $ac_executable_extensions; do
7245  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7246    ac_cv_prog_ac_ct_STRIP="strip"
7247    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7248    break 2
7249  fi
7250done
7251done
7252IFS=$as_save_IFS
7253
7254fi
7255fi
7256ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7257if test -n "$ac_ct_STRIP"; then
7258  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7259echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7260else
7261  { echo "$as_me:$LINENO: result: no" >&5
7262echo "${ECHO_T}no" >&6; }
7263fi
7264
7265  if test "x$ac_ct_STRIP" = x; then
7266    STRIP=":"
7267  else
7268    case $cross_compiling:$ac_tool_warned in
7269yes:)
7270{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7271whose name does not start with the host triplet.  If you think this
7272configuration is useful to you, please write to autoconf@gnu.org." >&5
7273echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7274whose name does not start with the host triplet.  If you think this
7275configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7276ac_tool_warned=yes ;;
7277esac
7278    STRIP=$ac_ct_STRIP
7279  fi
7280else
7281  STRIP="$ac_cv_prog_STRIP"
7282fi
7283
7284
7285old_CC="$CC"
7286old_CFLAGS="$CFLAGS"
7287
7288# Set sane defaults for various variables
7289test -z "$AR" && AR=ar
7290test -z "$AR_FLAGS" && AR_FLAGS=cru
7291test -z "$AS" && AS=as
7292test -z "$CC" && CC=cc
7293test -z "$LTCC" && LTCC=$CC
7294test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7295test -z "$DLLTOOL" && DLLTOOL=dlltool
7296test -z "$LD" && LD=ld
7297test -z "$LN_S" && LN_S="ln -s"
7298test -z "$MAGIC_CMD" && MAGIC_CMD=file
7299test -z "$NM" && NM=nm
7300test -z "$SED" && SED=sed
7301test -z "$OBJDUMP" && OBJDUMP=objdump
7302test -z "$RANLIB" && RANLIB=:
7303test -z "$STRIP" && STRIP=:
7304test -z "$ac_objext" && ac_objext=o
7305
7306# Determine commands to create old-style static archives.
7307old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7308old_postinstall_cmds='chmod 644 $oldlib'
7309old_postuninstall_cmds=
7310
7311if test -n "$RANLIB"; then
7312  case $host_os in
7313  openbsd*)
7314    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7315    ;;
7316  *)
7317    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7318    ;;
7319  esac
7320  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7321fi
7322
7323for cc_temp in $compiler""; do
7324  case $cc_temp in
7325    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7326    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7327    \-*) ;;
7328    *) break;;
7329  esac
7330done
7331cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7332
7333
7334# Only perform the check for file, if the check method requires it
7335case $deplibs_check_method in
7336file_magic*)
7337  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7338    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7339echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7340if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7341  echo $ECHO_N "(cached) $ECHO_C" >&6
7342else
7343  case $MAGIC_CMD in
7344[\\/*] |  ?:[\\/]*)
7345  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7346  ;;
7347*)
7348  lt_save_MAGIC_CMD="$MAGIC_CMD"
7349  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7350  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7351  for ac_dir in $ac_dummy; do
7352    IFS="$lt_save_ifs"
7353    test -z "$ac_dir" && ac_dir=.
7354    if test -f $ac_dir/${ac_tool_prefix}file; then
7355      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7356      if test -n "$file_magic_test_file"; then
7357        case $deplibs_check_method in
7358        "file_magic "*)
7359          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7360          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7361          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7362            $EGREP "$file_magic_regex" > /dev/null; then
7363            :
7364          else
7365            cat <<EOF 1>&2
7366
7367*** Warning: the command libtool uses to detect shared libraries,
7368*** $file_magic_cmd, produces output that libtool cannot recognize.
7369*** The result is that libtool may fail to recognize shared libraries
7370*** as such.  This will affect the creation of libtool libraries that
7371*** depend on shared libraries, but programs linked with such libtool
7372*** libraries will work regardless of this problem.  Nevertheless, you
7373*** may want to report the problem to your system manager and/or to
7374*** bug-libtool@gnu.org
7375
7376EOF
7377          fi ;;
7378        esac
7379      fi
7380      break
7381    fi
7382  done
7383  IFS="$lt_save_ifs"
7384  MAGIC_CMD="$lt_save_MAGIC_CMD"
7385  ;;
7386esac
7387fi
7388
7389MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7390if test -n "$MAGIC_CMD"; then
7391  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7392echo "${ECHO_T}$MAGIC_CMD" >&6; }
7393else
7394  { echo "$as_me:$LINENO: result: no" >&5
7395echo "${ECHO_T}no" >&6; }
7396fi
7397
7398if test -z "$lt_cv_path_MAGIC_CMD"; then
7399  if test -n "$ac_tool_prefix"; then
7400    { echo "$as_me:$LINENO: checking for file" >&5
7401echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7402if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7403  echo $ECHO_N "(cached) $ECHO_C" >&6
7404else
7405  case $MAGIC_CMD in
7406[\\/*] |  ?:[\\/]*)
7407  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7408  ;;
7409*)
7410  lt_save_MAGIC_CMD="$MAGIC_CMD"
7411  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7412  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7413  for ac_dir in $ac_dummy; do
7414    IFS="$lt_save_ifs"
7415    test -z "$ac_dir" && ac_dir=.
7416    if test -f $ac_dir/file; then
7417      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7418      if test -n "$file_magic_test_file"; then
7419        case $deplibs_check_method in
7420        "file_magic "*)
7421          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7422          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7423          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7424            $EGREP "$file_magic_regex" > /dev/null; then
7425            :
7426          else
7427            cat <<EOF 1>&2
7428
7429*** Warning: the command libtool uses to detect shared libraries,
7430*** $file_magic_cmd, produces output that libtool cannot recognize.
7431*** The result is that libtool may fail to recognize shared libraries
7432*** as such.  This will affect the creation of libtool libraries that
7433*** depend on shared libraries, but programs linked with such libtool
7434*** libraries will work regardless of this problem.  Nevertheless, you
7435*** may want to report the problem to your system manager and/or to
7436*** bug-libtool@gnu.org
7437
7438EOF
7439          fi ;;
7440        esac
7441      fi
7442      break
7443    fi
7444  done
7445  IFS="$lt_save_ifs"
7446  MAGIC_CMD="$lt_save_MAGIC_CMD"
7447  ;;
7448esac
7449fi
7450
7451MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7452if test -n "$MAGIC_CMD"; then
7453  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7454echo "${ECHO_T}$MAGIC_CMD" >&6; }
7455else
7456  { echo "$as_me:$LINENO: result: no" >&5
7457echo "${ECHO_T}no" >&6; }
7458fi
7459
7460  else
7461    MAGIC_CMD=:
7462  fi
7463fi
7464
7465  fi
7466  ;;
7467esac
7468
7469enable_dlopen=no
7470enable_win32_dll=yes
7471
7472# Check whether --enable-libtool-lock was given.
7473if test "${enable_libtool_lock+set}" = set; then
7474  enableval=$enable_libtool_lock;
7475fi
7476
7477test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7478
7479
7480# Check whether --with-pic was given.
7481if test "${with_pic+set}" = set; then
7482  withval=$with_pic; pic_mode="$withval"
7483else
7484  pic_mode=default
7485fi
7486
7487test -z "$pic_mode" && pic_mode=default
7488
7489# Use C for the default configuration in the libtool script
7490tagname=
7491lt_save_CC="$CC"
7492ac_ext=c
7493ac_cpp='$CPP $CPPFLAGS'
7494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7496ac_compiler_gnu=$ac_cv_c_compiler_gnu
7497
7498
7499# Source file extension for C test sources.
7500ac_ext=c
7501
7502# Object file extension for compiled C test sources.
7503objext=o
7504objext=$objext
7505
7506# Code to be used in simple compile tests
7507lt_simple_compile_test_code="int some_variable = 0;\n"
7508
7509# Code to be used in simple link tests
7510lt_simple_link_test_code='int main(){return(0);}\n'
7511
7512
7513# If no C compiler was specified, use CC.
7514LTCC=${LTCC-"$CC"}
7515
7516# If no C compiler flags were specified, use CFLAGS.
7517LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7518
7519# Allow CC to be a program name with arguments.
7520compiler=$CC
7521
7522
7523# save warnings/boilerplate of simple test code
7524ac_outfile=conftest.$ac_objext
7525printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7526eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7527_lt_compiler_boilerplate=`cat conftest.err`
7528$rm conftest*
7529
7530ac_outfile=conftest.$ac_objext
7531printf "$lt_simple_link_test_code" >conftest.$ac_ext
7532eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7533_lt_linker_boilerplate=`cat conftest.err`
7534$rm conftest*
7535
7536
7537
7538lt_prog_compiler_no_builtin_flag=
7539
7540if test "$GCC" = yes; then
7541  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7542
7543
7544{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7545echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7546if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7547  echo $ECHO_N "(cached) $ECHO_C" >&6
7548else
7549  lt_cv_prog_compiler_rtti_exceptions=no
7550  ac_outfile=conftest.$ac_objext
7551   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7552   lt_compiler_flag="-fno-rtti -fno-exceptions"
7553   # Insert the option either (1) after the last *FLAGS variable, or
7554   # (2) before a word containing "conftest.", or (3) at the end.
7555   # Note that $ac_compile itself does not contain backslashes and begins
7556   # with a dollar sign (not a hyphen), so the echo should work correctly.
7557   # The option is referenced via a variable to avoid confusing sed.
7558   lt_compile=`echo "$ac_compile" | $SED \
7559   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7560   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7561   -e 's:$: $lt_compiler_flag:'`
7562   (eval echo "\"\$as_me:7562: $lt_compile\"" >&5)
7563   (eval "$lt_compile" 2>conftest.err)
7564   ac_status=$?
7565   cat conftest.err >&5
7566   echo "$as_me:7566: \$? = $ac_status" >&5
7567   if (exit $ac_status) && test -s "$ac_outfile"; then
7568     # The compiler can only warn and ignore the option if not recognized
7569     # So say no if there are warnings other than the usual output.
7570     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7571     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7572     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7573       lt_cv_prog_compiler_rtti_exceptions=yes
7574     fi
7575   fi
7576   $rm conftest*
7577
7578fi
7579{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7580echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7581
7582if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7583    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7584else
7585    :
7586fi
7587
7588fi
7589
7590lt_prog_compiler_wl=
7591lt_prog_compiler_pic=
7592lt_prog_compiler_static=
7593
7594{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7595echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7596
7597  if test "$GCC" = yes; then
7598    lt_prog_compiler_wl='-Wl,'
7599    lt_prog_compiler_static='-static'
7600
7601    case $host_os in
7602      aix*)
7603      # All AIX code is PIC.
7604      if test "$host_cpu" = ia64; then
7605        # AIX 5 now supports IA64 processor
7606        lt_prog_compiler_static='-Bstatic'
7607      fi
7608      ;;
7609
7610    amigaos*)
7611      # FIXME: we need at least 68020 code to build shared libraries, but
7612      # adding the `-m68020' flag to GCC prevents building anything better,
7613      # like `-m68040'.
7614      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7615      ;;
7616
7617    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7618      # PIC is the default for these OSes.
7619      ;;
7620
7621    mingw* | pw32* | os2*)
7622      # This hack is so that the source file can tell whether it is being
7623      # built for inclusion in a dll (and should export symbols for example).
7624      lt_prog_compiler_pic='-DDLL_EXPORT'
7625      ;;
7626
7627    darwin* | rhapsody*)
7628      # PIC is the default on this platform
7629      # Common symbols not allowed in MH_DYLIB files
7630      lt_prog_compiler_pic='-fno-common'
7631      ;;
7632
7633    interix3*)
7634      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7635      # Instead, we relocate shared libraries at runtime.
7636      ;;
7637
7638    msdosdjgpp*)
7639      # Just because we use GCC doesn't mean we suddenly get shared libraries
7640      # on systems that don't support them.
7641      lt_prog_compiler_can_build_shared=no
7642      enable_shared=no
7643      ;;
7644
7645    sysv4*MP*)
7646      if test -d /usr/nec; then
7647        lt_prog_compiler_pic=-Kconform_pic
7648      fi
7649      ;;
7650
7651    hpux*)
7652      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7653      # not for PA HP-UX.
7654      case $host_cpu in
7655      hppa*64*|ia64*)
7656        # +Z the default
7657        ;;
7658      *)
7659        lt_prog_compiler_pic='-fPIC'
7660        ;;
7661      esac
7662      ;;
7663
7664    *)
7665      lt_prog_compiler_pic='-fPIC'
7666      ;;
7667    esac
7668  else
7669    # PORTME Check for flag to pass linker flags through the system compiler.
7670    case $host_os in
7671    aix*)
7672      lt_prog_compiler_wl='-Wl,'
7673      if test "$host_cpu" = ia64; then
7674        # AIX 5 now supports IA64 processor
7675        lt_prog_compiler_static='-Bstatic'
7676      else
7677        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7678      fi
7679      ;;
7680      darwin*)
7681        # PIC is the default on this platform
7682        # Common symbols not allowed in MH_DYLIB files
7683       case $cc_basename in
7684         xlc*)
7685         lt_prog_compiler_pic='-qnocommon'
7686         lt_prog_compiler_wl='-Wl,'
7687         ;;
7688       esac
7689       ;;
7690
7691    mingw* | pw32* | os2*)
7692      # This hack is so that the source file can tell whether it is being
7693      # built for inclusion in a dll (and should export symbols for example).
7694      lt_prog_compiler_pic='-DDLL_EXPORT'
7695      ;;
7696
7697    hpux9* | hpux10* | hpux11*)
7698      lt_prog_compiler_wl='-Wl,'
7699      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7700      # not for PA HP-UX.
7701      case $host_cpu in
7702      hppa*64*|ia64*)
7703        # +Z the default
7704        ;;
7705      *)
7706        lt_prog_compiler_pic='+Z'
7707        ;;
7708      esac
7709      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7710      lt_prog_compiler_static='${wl}-a ${wl}archive'
7711      ;;
7712
7713    irix5* | irix6* | nonstopux*)
7714      lt_prog_compiler_wl='-Wl,'
7715      # PIC (with -KPIC) is the default.
7716      lt_prog_compiler_static='-non_shared'
7717      ;;
7718
7719    newsos6)
7720      lt_prog_compiler_pic='-KPIC'
7721      lt_prog_compiler_static='-Bstatic'
7722      ;;
7723
7724    linux*)
7725      case $cc_basename in
7726      icc* | ecc*)
7727        lt_prog_compiler_wl='-Wl,'
7728        lt_prog_compiler_pic='-KPIC'
7729        lt_prog_compiler_static='-static'
7730        ;;
7731      pgcc* | pgf77* | pgf90* | pgf95*)
7732        # Portland Group compilers (*not* the Pentium gcc compiler,
7733        # which looks to be a dead project)
7734        lt_prog_compiler_wl='-Wl,'
7735        lt_prog_compiler_pic='-fpic'
7736        lt_prog_compiler_static='-Bstatic'
7737        ;;
7738      ccc*)
7739        lt_prog_compiler_wl='-Wl,'
7740        # All Alpha code is PIC.
7741        lt_prog_compiler_static='-non_shared'
7742        ;;
7743      esac
7744      ;;
7745
7746    osf3* | osf4* | osf5*)
7747      lt_prog_compiler_wl='-Wl,'
7748      # All OSF/1 code is PIC.
7749      lt_prog_compiler_static='-non_shared'
7750      ;;
7751
7752    solaris*)
7753      lt_prog_compiler_pic='-KPIC'
7754      lt_prog_compiler_static='-Bstatic'
7755      case $cc_basename in
7756      f77* | f90* | f95*)
7757        lt_prog_compiler_wl='-Qoption ld ';;
7758      *)
7759        lt_prog_compiler_wl='-Wl,';;
7760      esac
7761      ;;
7762
7763    sunos4*)
7764      lt_prog_compiler_wl='-Qoption ld '
7765      lt_prog_compiler_pic='-PIC'
7766      lt_prog_compiler_static='-Bstatic'
7767      ;;
7768
7769    sysv4 | sysv4.2uw2* | sysv4.3*)
7770      lt_prog_compiler_wl='-Wl,'
7771      lt_prog_compiler_pic='-KPIC'
7772      lt_prog_compiler_static='-Bstatic'
7773      ;;
7774
7775    sysv4*MP*)
7776      if test -d /usr/nec ;then
7777        lt_prog_compiler_pic='-Kconform_pic'
7778        lt_prog_compiler_static='-Bstatic'
7779      fi
7780      ;;
7781
7782    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7783      lt_prog_compiler_wl='-Wl,'
7784      lt_prog_compiler_pic='-KPIC'
7785      lt_prog_compiler_static='-Bstatic'
7786      ;;
7787
7788    unicos*)
7789      lt_prog_compiler_wl='-Wl,'
7790      lt_prog_compiler_can_build_shared=no
7791      ;;
7792
7793    uts4*)
7794      lt_prog_compiler_pic='-pic'
7795      lt_prog_compiler_static='-Bstatic'
7796      ;;
7797
7798    *)
7799      lt_prog_compiler_can_build_shared=no
7800      ;;
7801    esac
7802  fi
7803
7804{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7805echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7806
7807#
7808# Check to make sure the PIC flag actually works.
7809#
7810if test -n "$lt_prog_compiler_pic"; then
7811
7812{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7813echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7814if test "${lt_prog_compiler_pic_works+set}" = set; then
7815  echo $ECHO_N "(cached) $ECHO_C" >&6
7816else
7817  lt_prog_compiler_pic_works=no
7818  ac_outfile=conftest.$ac_objext
7819   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7820   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7821   # Insert the option either (1) after the last *FLAGS variable, or
7822   # (2) before a word containing "conftest.", or (3) at the end.
7823   # Note that $ac_compile itself does not contain backslashes and begins
7824   # with a dollar sign (not a hyphen), so the echo should work correctly.
7825   # The option is referenced via a variable to avoid confusing sed.
7826   lt_compile=`echo "$ac_compile" | $SED \
7827   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7828   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7829   -e 's:$: $lt_compiler_flag:'`
7830   (eval echo "\"\$as_me:7830: $lt_compile\"" >&5)
7831   (eval "$lt_compile" 2>conftest.err)
7832   ac_status=$?
7833   cat conftest.err >&5
7834   echo "$as_me:7834: \$? = $ac_status" >&5
7835   if (exit $ac_status) && test -s "$ac_outfile"; then
7836     # The compiler can only warn and ignore the option if not recognized
7837     # So say no if there are warnings other than the usual output.
7838     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7839     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7840     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7841       lt_prog_compiler_pic_works=yes
7842     fi
7843   fi
7844   $rm conftest*
7845
7846fi
7847{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7848echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7849
7850if test x"$lt_prog_compiler_pic_works" = xyes; then
7851    case $lt_prog_compiler_pic in
7852     "" | " "*) ;;
7853     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7854     esac
7855else
7856    lt_prog_compiler_pic=
7857     lt_prog_compiler_can_build_shared=no
7858fi
7859
7860fi
7861case $host_os in
7862  # For platforms which do not support PIC, -DPIC is meaningless:
7863  *djgpp*)
7864    lt_prog_compiler_pic=
7865    ;;
7866  *)
7867    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7868    ;;
7869esac
7870
7871#
7872# Check to make sure the static flag actually works.
7873#
7874wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7875{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7876echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7877if test "${lt_prog_compiler_static_works+set}" = set; then
7878  echo $ECHO_N "(cached) $ECHO_C" >&6
7879else
7880  lt_prog_compiler_static_works=no
7881   save_LDFLAGS="$LDFLAGS"
7882   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7883   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7884   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7885     # The linker can only warn and ignore the option if not recognized
7886     # So say no if there are warnings
7887     if test -s conftest.err; then
7888       # Append any errors to the config.log.
7889       cat conftest.err 1>&5
7890       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7891       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7892       if diff conftest.exp conftest.er2 >/dev/null; then
7893         lt_prog_compiler_static_works=yes
7894       fi
7895     else
7896       lt_prog_compiler_static_works=yes
7897     fi
7898   fi
7899   $rm conftest*
7900   LDFLAGS="$save_LDFLAGS"
7901
7902fi
7903{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7904echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7905
7906if test x"$lt_prog_compiler_static_works" = xyes; then
7907    :
7908else
7909    lt_prog_compiler_static=
7910fi
7911
7912
7913{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7914echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7915if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7916  echo $ECHO_N "(cached) $ECHO_C" >&6
7917else
7918  lt_cv_prog_compiler_c_o=no
7919   $rm -r conftest 2>/dev/null
7920   mkdir conftest
7921   cd conftest
7922   mkdir out
7923   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7924
7925   lt_compiler_flag="-o out/conftest2.$ac_objext"
7926   # Insert the option either (1) after the last *FLAGS variable, or
7927   # (2) before a word containing "conftest.", or (3) at the end.
7928   # Note that $ac_compile itself does not contain backslashes and begins
7929   # with a dollar sign (not a hyphen), so the echo should work correctly.
7930   lt_compile=`echo "$ac_compile" | $SED \
7931   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7932   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7933   -e 's:$: $lt_compiler_flag:'`
7934   (eval echo "\"\$as_me:7934: $lt_compile\"" >&5)
7935   (eval "$lt_compile" 2>out/conftest.err)
7936   ac_status=$?
7937   cat out/conftest.err >&5
7938   echo "$as_me:7938: \$? = $ac_status" >&5
7939   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7940   then
7941     # The compiler can only warn and ignore the option if not recognized
7942     # So say no if there are warnings
7943     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7944     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7945     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7946       lt_cv_prog_compiler_c_o=yes
7947     fi
7948   fi
7949   chmod u+w . 2>&5
7950   $rm conftest*
7951   # SGI C++ compiler will create directory out/ii_files/ for
7952   # template instantiation
7953   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7954   $rm out/* && rmdir out
7955   cd ..
7956   rmdir conftest
7957   $rm conftest*
7958
7959fi
7960{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7961echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7962
7963
7964hard_links="nottested"
7965if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7966  # do not overwrite the value of need_locks provided by the user
7967  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7968echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7969  hard_links=yes
7970  $rm conftest*
7971  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7972  touch conftest.a
7973  ln conftest.a conftest.b 2>&5 || hard_links=no
7974  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7975  { echo "$as_me:$LINENO: result: $hard_links" >&5
7976echo "${ECHO_T}$hard_links" >&6; }
7977  if test "$hard_links" = no; then
7978    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7979echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7980    need_locks=warn
7981  fi
7982else
7983  need_locks=no
7984fi
7985
7986{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7987echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7988
7989  runpath_var=
7990  allow_undefined_flag=
7991  enable_shared_with_static_runtimes=no
7992  archive_cmds=
7993  archive_expsym_cmds=
7994  old_archive_From_new_cmds=
7995  old_archive_from_expsyms_cmds=
7996  export_dynamic_flag_spec=
7997  whole_archive_flag_spec=
7998  thread_safe_flag_spec=
7999  hardcode_libdir_flag_spec=
8000  hardcode_libdir_flag_spec_ld=
8001  hardcode_libdir_separator=
8002  hardcode_direct=no
8003  hardcode_minus_L=no
8004  hardcode_shlibpath_var=unsupported
8005  link_all_deplibs=unknown
8006  hardcode_automatic=no
8007  module_cmds=
8008  module_expsym_cmds=
8009  always_export_symbols=no
8010  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8011  # include_expsyms should be a list of space-separated symbols to be *always*
8012  # included in the symbol list
8013  include_expsyms=
8014  # exclude_expsyms can be an extended regexp of symbols to exclude
8015  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8016  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8017  # as well as any symbol that contains `d'.
8018  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8019  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8020  # platforms (ab)use it in PIC code, but their linkers get confused if
8021  # the symbol is explicitly referenced.  Since portable code cannot
8022  # rely on this symbol name, it's probably fine to never include it in
8023  # preloaded symbol tables.
8024  extract_expsyms_cmds=
8025  # Just being paranoid about ensuring that cc_basename is set.
8026  for cc_temp in $compiler""; do
8027  case $cc_temp in
8028    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8029    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8030    \-*) ;;
8031    *) break;;
8032  esac
8033done
8034cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8035
8036  case $host_os in
8037  cygwin* | mingw* | pw32*)
8038    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8039    # When not using gcc, we currently assume that we are using
8040    # Microsoft Visual C++.
8041    if test "$GCC" != yes; then
8042      with_gnu_ld=no
8043    fi
8044    ;;
8045  interix*)
8046    # we just hope/assume this is gcc and not c89 (= MSVC++)
8047    with_gnu_ld=yes
8048    ;;
8049  openbsd*)
8050    with_gnu_ld=no
8051    ;;
8052  esac
8053
8054  ld_shlibs=yes
8055  if test "$with_gnu_ld" = yes; then
8056    # If archive_cmds runs LD, not CC, wlarc should be empty
8057    wlarc='${wl}'
8058
8059    # Set some defaults for GNU ld with shared library support. These
8060    # are reset later if shared libraries are not supported. Putting them
8061    # here allows them to be overridden if necessary.
8062    runpath_var=LD_RUN_PATH
8063    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8064    export_dynamic_flag_spec='${wl}--export-dynamic'
8065    # ancient GNU ld didn't support --whole-archive et. al.
8066    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8067        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8068      else
8069        whole_archive_flag_spec=
8070    fi
8071    supports_anon_versioning=no
8072    case `$LD -v 2>/dev/null` in
8073      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8074      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8075      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8076      *\ 2.11.*) ;; # other 2.11 versions
8077      *) supports_anon_versioning=yes ;;
8078    esac
8079
8080    # See if GNU ld supports shared libraries.
8081    case $host_os in
8082    aix3* | aix4* | aix5*)
8083      # On AIX/PPC, the GNU linker is very broken
8084      if test "$host_cpu" != ia64; then
8085        ld_shlibs=no
8086        cat <<EOF 1>&2
8087
8088*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8089*** to be unable to reliably create shared libraries on AIX.
8090*** Therefore, libtool is disabling shared libraries support.  If you
8091*** really care for shared libraries, you may want to modify your PATH
8092*** so that a non-GNU linker is found, and then restart.
8093
8094EOF
8095      fi
8096      ;;
8097
8098    amigaos*)
8099      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)'
8100      hardcode_libdir_flag_spec='-L$libdir'
8101      hardcode_minus_L=yes
8102
8103      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8104      # that the semantics of dynamic libraries on AmigaOS, at least up
8105      # to version 4, is to share data among multiple programs linked
8106      # with the same dynamic library.  Since this doesn't match the
8107      # behavior of shared libraries on other platforms, we can't use
8108      # them.
8109      ld_shlibs=no
8110      ;;
8111
8112    beos*)
8113      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8114        allow_undefined_flag=unsupported
8115        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8116        # support --undefined.  This deserves some investigation.  FIXME
8117        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8118      else
8119        ld_shlibs=no
8120      fi
8121      ;;
8122
8123    cygwin* | mingw* | pw32*)
8124      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8125      # as there is no search path for DLLs.
8126      hardcode_libdir_flag_spec='-L$libdir'
8127      allow_undefined_flag=unsupported
8128      always_export_symbols=no
8129      enable_shared_with_static_runtimes=yes
8130      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8131
8132      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8133        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8134        # If the export-symbols file already is a .def file (1st line
8135        # is EXPORTS), use it as is; otherwise, prepend...
8136        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8137          cp $export_symbols $output_objdir/$soname.def;
8138        else
8139          echo EXPORTS > $output_objdir/$soname.def;
8140          cat $export_symbols >> $output_objdir/$soname.def;
8141        fi~
8142        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8143      else
8144        ld_shlibs=no
8145      fi
8146      ;;
8147
8148    interix3*)
8149      hardcode_direct=no
8150      hardcode_shlibpath_var=no
8151      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8152      export_dynamic_flag_spec='${wl}-E'
8153      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8154      # Instead, shared libraries are loaded at an image base (0x10000000 by
8155      # default) and relocated if they conflict, which is a slow very memory
8156      # consuming and fragmenting process.  To avoid this, we pick a random,
8157      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8158      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8159      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8160      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'
8161      ;;
8162
8163    linux*)
8164      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8165        tmp_addflag=
8166        case $cc_basename,$host_cpu in
8167        pgcc*)                          # Portland Group C compiler
8168          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'
8169          tmp_addflag=' $pic_flag'
8170          ;;
8171        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8172          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'
8173          tmp_addflag=' $pic_flag -Mnomain' ;;
8174        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8175          tmp_addflag=' -i_dynamic' ;;
8176        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8177          tmp_addflag=' -i_dynamic -nofor_main' ;;
8178        ifc* | ifort*)                  # Intel Fortran compiler
8179          tmp_addflag=' -nofor_main' ;;
8180        esac
8181        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8182
8183        if test $supports_anon_versioning = yes; then
8184          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8185  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8186  $echo "local: *; };" >> $output_objdir/$libname.ver~
8187          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8188        fi
8189      else
8190        ld_shlibs=no
8191      fi
8192      ;;
8193
8194    netbsd*)
8195      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8196        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8197        wlarc=
8198      else
8199        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8200        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8201      fi
8202      ;;
8203
8204    solaris*)
8205      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8206        ld_shlibs=no
8207        cat <<EOF 1>&2
8208
8209*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8210*** create shared libraries on Solaris systems.  Therefore, libtool
8211*** is disabling shared libraries support.  We urge you to upgrade GNU
8212*** binutils to release 2.9.1 or newer.  Another option is to modify
8213*** your PATH or compiler configuration so that the native linker is
8214*** used, and then restart.
8215
8216EOF
8217      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8218        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8219        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8220      else
8221        ld_shlibs=no
8222      fi
8223      ;;
8224
8225    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8226      case `$LD -v 2>&1` in
8227        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8228        ld_shlibs=no
8229        cat <<_LT_EOF 1>&2
8230
8231*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8232*** reliably create shared libraries on SCO systems.  Therefore, libtool
8233*** is disabling shared libraries support.  We urge you to upgrade GNU
8234*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8235*** your PATH or compiler configuration so that the native linker is
8236*** used, and then restart.
8237
8238_LT_EOF
8239        ;;
8240        *)
8241          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8242            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8243            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8244            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8245          else
8246            ld_shlibs=no
8247          fi
8248        ;;
8249      esac
8250      ;;
8251
8252    sunos4*)
8253      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8254      wlarc=
8255      hardcode_direct=yes
8256      hardcode_shlibpath_var=no
8257      ;;
8258
8259    *)
8260      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8261        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8262        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8263      else
8264        ld_shlibs=no
8265      fi
8266      ;;
8267    esac
8268
8269    if test "$ld_shlibs" = no; then
8270      runpath_var=
8271      hardcode_libdir_flag_spec=
8272      export_dynamic_flag_spec=
8273      whole_archive_flag_spec=
8274    fi
8275  else
8276    # PORTME fill in a description of your system's linker (not GNU ld)
8277    case $host_os in
8278    aix3*)
8279      allow_undefined_flag=unsupported
8280      always_export_symbols=yes
8281      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'
8282      # Note: this linker hardcodes the directories in LIBPATH if there
8283      # are no directories specified by -L.
8284      hardcode_minus_L=yes
8285      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8286        # Neither direct hardcoding nor static linking is supported with a
8287        # broken collect2.
8288        hardcode_direct=unsupported
8289      fi
8290      ;;
8291
8292    aix4* | aix5*)
8293      if test "$host_cpu" = ia64; then
8294        # On IA64, the linker does run time linking by default, so we don't
8295        # have to do anything special.
8296        aix_use_runtimelinking=no
8297        exp_sym_flag='-Bexport'
8298        no_entry_flag=""
8299      else
8300        # If we're using GNU nm, then we don't want the "-C" option.
8301        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8302        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8303          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'
8304        else
8305          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'
8306        fi
8307        aix_use_runtimelinking=no
8308
8309        # Test if we are trying to use run time linking or normal
8310        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8311        # need to do runtime linking.
8312        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8313          for ld_flag in $LDFLAGS; do
8314          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8315            aix_use_runtimelinking=yes
8316            break
8317          fi
8318          done
8319          ;;
8320        esac
8321
8322        exp_sym_flag='-bexport'
8323        no_entry_flag='-bnoentry'
8324      fi
8325
8326      # When large executables or shared objects are built, AIX ld can
8327      # have problems creating the table of contents.  If linking a library
8328      # or program results in "error TOC overflow" add -mminimal-toc to
8329      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8330      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8331
8332      archive_cmds=''
8333      hardcode_direct=yes
8334      hardcode_libdir_separator=':'
8335      link_all_deplibs=yes
8336
8337      if test "$GCC" = yes; then
8338        case $host_os in aix4.[012]|aix4.[012].*)
8339        # We only want to do this on AIX 4.2 and lower, the check
8340        # below for broken collect2 doesn't work under 4.3+
8341          collect2name=`${CC} -print-prog-name=collect2`
8342          if test -f "$collect2name" && \
8343           strings "$collect2name" | grep resolve_lib_name >/dev/null
8344          then
8345          # We have reworked collect2
8346          hardcode_direct=yes
8347          else
8348          # We have old collect2
8349          hardcode_direct=unsupported
8350          # It fails to find uninstalled libraries when the uninstalled
8351          # path is not listed in the libpath.  Setting hardcode_minus_L
8352          # to unsupported forces relinking
8353          hardcode_minus_L=yes
8354          hardcode_libdir_flag_spec='-L$libdir'
8355          hardcode_libdir_separator=
8356          fi
8357          ;;
8358        esac
8359        shared_flag='-shared'
8360        if test "$aix_use_runtimelinking" = yes; then
8361          shared_flag="$shared_flag "'${wl}-G'
8362        fi
8363      else
8364        # not using gcc
8365        if test "$host_cpu" = ia64; then
8366        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8367        # chokes on -Wl,-G. The following line is correct:
8368          shared_flag='-G'
8369        else
8370          if test "$aix_use_runtimelinking" = yes; then
8371            shared_flag='${wl}-G'
8372          else
8373            shared_flag='${wl}-bM:SRE'
8374          fi
8375        fi
8376      fi
8377
8378      # It seems that -bexpall does not export symbols beginning with
8379      # underscore (_), so it is better to generate a list of symbols to export.
8380      always_export_symbols=yes
8381      if test "$aix_use_runtimelinking" = yes; then
8382        # Warning - without using the other runtime loading flags (-brtl),
8383        # -berok will link without error, but may produce a broken library.
8384        allow_undefined_flag='-berok'
8385       # Determine the default libpath from the value encoded in an empty executable.
8386       cat >conftest.$ac_ext <<_ACEOF
8387/* confdefs.h.  */
8388_ACEOF
8389cat confdefs.h >>conftest.$ac_ext
8390cat >>conftest.$ac_ext <<_ACEOF
8391/* end confdefs.h.  */
8392
8393int
8394main ()
8395{
8396
8397  ;
8398  return 0;
8399}
8400_ACEOF
8401rm -f conftest.$ac_objext conftest$ac_exeext
8402if { (ac_try="$ac_link"
8403case "(($ac_try" in
8404  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8405  *) ac_try_echo=$ac_try;;
8406esac
8407eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408  (eval "$ac_link") 2>conftest.er1
8409  ac_status=$?
8410  grep -v '^ *+' conftest.er1 >conftest.err
8411  rm -f conftest.er1
8412  cat conftest.err >&5
8413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414  (exit $ac_status); } && {
8415         test -z "$ac_c_werror_flag" ||
8416         test ! -s conftest.err
8417       } && test -s conftest$ac_exeext &&
8418       $as_test_x conftest$ac_exeext; then
8419
8420aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8421}'`
8422# Check for a 64-bit object if we didn't find anything.
8423if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8424}'`; fi
8425else
8426  echo "$as_me: failed program was:" >&5
8427sed 's/^/| /' conftest.$ac_ext >&5
8428
8429
8430fi
8431
8432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8433      conftest$ac_exeext conftest.$ac_ext
8434if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8435
8436       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8437        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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8438       else
8439        if test "$host_cpu" = ia64; then
8440          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8441          allow_undefined_flag="-z nodefs"
8442          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"
8443        else
8444         # Determine the default libpath from the value encoded in an empty executable.
8445         cat >conftest.$ac_ext <<_ACEOF
8446/* confdefs.h.  */
8447_ACEOF
8448cat confdefs.h >>conftest.$ac_ext
8449cat >>conftest.$ac_ext <<_ACEOF
8450/* end confdefs.h.  */
8451
8452int
8453main ()
8454{
8455
8456  ;
8457  return 0;
8458}
8459_ACEOF
8460rm -f conftest.$ac_objext conftest$ac_exeext
8461if { (ac_try="$ac_link"
8462case "(($ac_try" in
8463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8464  *) ac_try_echo=$ac_try;;
8465esac
8466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467  (eval "$ac_link") 2>conftest.er1
8468  ac_status=$?
8469  grep -v '^ *+' conftest.er1 >conftest.err
8470  rm -f conftest.er1
8471  cat conftest.err >&5
8472  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473  (exit $ac_status); } && {
8474         test -z "$ac_c_werror_flag" ||
8475         test ! -s conftest.err
8476       } && test -s conftest$ac_exeext &&
8477       $as_test_x conftest$ac_exeext; then
8478
8479aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8480}'`
8481# Check for a 64-bit object if we didn't find anything.
8482if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8483}'`; fi
8484else
8485  echo "$as_me: failed program was:" >&5
8486sed 's/^/| /' conftest.$ac_ext >&5
8487
8488
8489fi
8490
8491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8492      conftest$ac_exeext conftest.$ac_ext
8493if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8494
8495         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8496          # Warning - without using the other run time loading flags,
8497          # -berok will link without error, but may produce a broken library.
8498          no_undefined_flag=' ${wl}-bernotok'
8499          allow_undefined_flag=' ${wl}-berok'
8500          # Exported symbols can be pulled into shared objects from archives
8501          whole_archive_flag_spec='$convenience'
8502          archive_cmds_need_lc=yes
8503          # This is similar to how AIX traditionally builds its shared libraries.
8504          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'
8505        fi
8506      fi
8507      ;;
8508
8509    amigaos*)
8510      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)'
8511      hardcode_libdir_flag_spec='-L$libdir'
8512      hardcode_minus_L=yes
8513      # see comment about different semantics on the GNU ld section
8514      ld_shlibs=no
8515      ;;
8516
8517    bsdi[45]*)
8518      export_dynamic_flag_spec=-rdynamic
8519      ;;
8520
8521    cygwin* | mingw* | pw32*)
8522      # When not using gcc, we currently assume that we are using
8523      # Microsoft Visual C++.
8524      # hardcode_libdir_flag_spec is actually meaningless, as there is
8525      # no search path for DLLs.
8526      hardcode_libdir_flag_spec=' '
8527      allow_undefined_flag=unsupported
8528      # Tell ltmain to make .lib files, not .a files.
8529      libext=lib
8530      # Tell ltmain to make .dll files, not .so files.
8531      shrext_cmds=".dll"
8532      # FIXME: Setting linknames here is a bad hack.
8533      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8534      # The linker will automatically build a .lib file if we build a DLL.
8535      old_archive_From_new_cmds='true'
8536      # FIXME: Should let the user specify the lib program.
8537      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8538      fix_srcfile_path='`cygpath -w "$srcfile"`'
8539      enable_shared_with_static_runtimes=yes
8540      ;;
8541
8542    darwin* | rhapsody*)
8543      case $host_os in
8544        rhapsody* | darwin1.[012])
8545         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8546         ;;
8547       *) # Darwin 1.3 on
8548         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8549           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8550         else
8551           case ${MACOSX_DEPLOYMENT_TARGET} in
8552             10.[012])
8553               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8554               ;;
8555             10.*)
8556               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8557               ;;
8558           esac
8559         fi
8560         ;;
8561      esac
8562      archive_cmds_need_lc=no
8563      hardcode_direct=no
8564      hardcode_automatic=yes
8565      hardcode_shlibpath_var=unsupported
8566      whole_archive_flag_spec=''
8567      link_all_deplibs=yes
8568    if test "$GCC" = yes ; then
8569        output_verbose_link_cmd='echo'
8570        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8571      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8572      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8573      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8574      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8575    else
8576      case $cc_basename in
8577        xlc*)
8578         output_verbose_link_cmd='echo'
8579         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8580         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8581          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8582         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8583          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8584          ;;
8585       *)
8586         ld_shlibs=no
8587          ;;
8588      esac
8589    fi
8590      ;;
8591
8592    dgux*)
8593      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8594      hardcode_libdir_flag_spec='-L$libdir'
8595      hardcode_shlibpath_var=no
8596      ;;
8597
8598    freebsd1*)
8599      ld_shlibs=no
8600      ;;
8601
8602    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8603    # support.  Future versions do this automatically, but an explicit c++rt0.o
8604    # does not break anything, and helps significantly (at the cost of a little
8605    # extra space).
8606    freebsd2.2*)
8607      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8608      hardcode_libdir_flag_spec='-R$libdir'
8609      hardcode_direct=yes
8610      hardcode_shlibpath_var=no
8611      ;;
8612
8613    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8614    freebsd2*)
8615      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8616      hardcode_direct=yes
8617      hardcode_minus_L=yes
8618      hardcode_shlibpath_var=no
8619      ;;
8620
8621    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8622    freebsd* | kfreebsd*-gnu | dragonfly*)
8623      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8624      hardcode_libdir_flag_spec='-R$libdir'
8625      hardcode_direct=yes
8626      hardcode_shlibpath_var=no
8627      ;;
8628
8629    hpux9*)
8630      if test "$GCC" = yes; then
8631        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'
8632      else
8633        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'
8634      fi
8635      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8636      hardcode_libdir_separator=:
8637      hardcode_direct=yes
8638
8639      # hardcode_minus_L: Not really in the search PATH,
8640      # but as the default location of the library.
8641      hardcode_minus_L=yes
8642      export_dynamic_flag_spec='${wl}-E'
8643      ;;
8644
8645    hpux10*)
8646      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8647        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8648      else
8649        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8650      fi
8651      if test "$with_gnu_ld" = no; then
8652        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8653        hardcode_libdir_separator=:
8654
8655        hardcode_direct=yes
8656        export_dynamic_flag_spec='${wl}-E'
8657
8658        # hardcode_minus_L: Not really in the search PATH,
8659        # but as the default location of the library.
8660        hardcode_minus_L=yes
8661      fi
8662      ;;
8663
8664    hpux11*)
8665      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8666        case $host_cpu in
8667        hppa*64*)
8668          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8669          ;;
8670        ia64*)
8671          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8672          ;;
8673        *)
8674          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8675          ;;
8676        esac
8677      else
8678        case $host_cpu in
8679        hppa*64*)
8680          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8681          ;;
8682        ia64*)
8683          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8684          ;;
8685        *)
8686          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8687          ;;
8688        esac
8689      fi
8690      if test "$with_gnu_ld" = no; then
8691        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8692        hardcode_libdir_separator=:
8693
8694        case $host_cpu in
8695        hppa*64*|ia64*)
8696          hardcode_libdir_flag_spec_ld='+b $libdir'
8697          hardcode_direct=no
8698          hardcode_shlibpath_var=no
8699          ;;
8700        *)
8701          hardcode_direct=yes
8702          export_dynamic_flag_spec='${wl}-E'
8703
8704          # hardcode_minus_L: Not really in the search PATH,
8705          # but as the default location of the library.
8706          hardcode_minus_L=yes
8707          ;;
8708        esac
8709      fi
8710      ;;
8711
8712    irix5* | irix6* | nonstopux*)
8713      if test "$GCC" = yes; then
8714        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8715      else
8716        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8717        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8718      fi
8719      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8720      hardcode_libdir_separator=:
8721      link_all_deplibs=yes
8722      ;;
8723
8724    netbsd*)
8725      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8726        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8727      else
8728        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8729      fi
8730      hardcode_libdir_flag_spec='-R$libdir'
8731      hardcode_direct=yes
8732      hardcode_shlibpath_var=no
8733      ;;
8734
8735    newsos6)
8736      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8737      hardcode_direct=yes
8738      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8739      hardcode_libdir_separator=:
8740      hardcode_shlibpath_var=no
8741      ;;
8742
8743    openbsd*)
8744      hardcode_direct=yes
8745      hardcode_shlibpath_var=no
8746      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8747        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8748        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8749        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8750        export_dynamic_flag_spec='${wl}-E'
8751      else
8752       case $host_os in
8753         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8754           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8755           hardcode_libdir_flag_spec='-R$libdir'
8756           ;;
8757         *)
8758           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8759           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8760           ;;
8761       esac
8762      fi
8763      ;;
8764
8765    os2*)
8766      hardcode_libdir_flag_spec='-L$libdir'
8767      hardcode_minus_L=yes
8768      allow_undefined_flag=unsupported
8769      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'
8770      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8771      ;;
8772
8773    osf3*)
8774      if test "$GCC" = yes; then
8775        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8776        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8777      else
8778        allow_undefined_flag=' -expect_unresolved \*'
8779        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8780      fi
8781      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782      hardcode_libdir_separator=:
8783      ;;
8784
8785    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8786      if test "$GCC" = yes; then
8787        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8788        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8789        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8790      else
8791        allow_undefined_flag=' -expect_unresolved \*'
8792        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8793        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8794        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8795
8796        # Both c and cxx compiler support -rpath directly
8797        hardcode_libdir_flag_spec='-rpath $libdir'
8798      fi
8799      hardcode_libdir_separator=:
8800      ;;
8801
8802    solaris*)
8803      no_undefined_flag=' -z text'
8804      if test "$GCC" = yes; then
8805        wlarc='${wl}'
8806        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8807        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8808          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8809      else
8810        wlarc=''
8811        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8812        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8813        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8814      fi
8815      hardcode_libdir_flag_spec='-R$libdir'
8816      hardcode_shlibpath_var=no
8817      case $host_os in
8818      solaris2.[0-5] | solaris2.[0-5].*) ;;
8819      *)
8820        # The compiler driver will combine linker options so we
8821        # cannot just pass the convience library names through
8822        # without $wl, iff we do not link with $LD.
8823        # Luckily, gcc supports the same syntax we need for Sun Studio.
8824        # Supported since Solaris 2.6 (maybe 2.5.1?)
8825        case $wlarc in
8826        '')
8827          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8828        *)
8829          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8830        esac ;;
8831      esac
8832      link_all_deplibs=yes
8833      ;;
8834
8835    sunos4*)
8836      if test "x$host_vendor" = xsequent; then
8837        # Use $CC to link under sequent, because it throws in some extra .o
8838        # files that make .init and .fini sections work.
8839        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8840      else
8841        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8842      fi
8843      hardcode_libdir_flag_spec='-L$libdir'
8844      hardcode_direct=yes
8845      hardcode_minus_L=yes
8846      hardcode_shlibpath_var=no
8847      ;;
8848
8849    sysv4)
8850      case $host_vendor in
8851        sni)
8852          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8853          hardcode_direct=yes # is this really true???
8854        ;;
8855        siemens)
8856          ## LD is ld it makes a PLAMLIB
8857          ## CC just makes a GrossModule.
8858          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8859          reload_cmds='$CC -r -o $output$reload_objs'
8860          hardcode_direct=no
8861        ;;
8862        motorola)
8863          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8865        ;;
8866      esac
8867      runpath_var='LD_RUN_PATH'
8868      hardcode_shlibpath_var=no
8869      ;;
8870
8871    sysv4.3*)
8872      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8873      hardcode_shlibpath_var=no
8874      export_dynamic_flag_spec='-Bexport'
8875      ;;
8876
8877    sysv4*MP*)
8878      if test -d /usr/nec; then
8879        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8880        hardcode_shlibpath_var=no
8881        runpath_var=LD_RUN_PATH
8882        hardcode_runpath_var=yes
8883        ld_shlibs=yes
8884      fi
8885      ;;
8886
8887    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8888      no_undefined_flag='${wl}-z,text'
8889      archive_cmds_need_lc=no
8890      hardcode_shlibpath_var=no
8891      runpath_var='LD_RUN_PATH'
8892
8893      if test "$GCC" = yes; then
8894        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8895        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8896      else
8897        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8898        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8899      fi
8900      ;;
8901
8902    sysv5* | sco3.2v5* | sco5v6*)
8903      # Note: We can NOT use -z defs as we might desire, because we do not
8904      # link with -lc, and that would cause any symbols used from libc to
8905      # always be unresolved, which means just about no library would
8906      # ever link correctly.  If we're not using GNU ld we use -z text
8907      # though, which does catch some bad symbols but isn't as heavy-handed
8908      # as -z defs.
8909      no_undefined_flag='${wl}-z,text'
8910      allow_undefined_flag='${wl}-z,nodefs'
8911      archive_cmds_need_lc=no
8912      hardcode_shlibpath_var=no
8913      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8914      hardcode_libdir_separator=':'
8915      link_all_deplibs=yes
8916      export_dynamic_flag_spec='${wl}-Bexport'
8917      runpath_var='LD_RUN_PATH'
8918
8919      if test "$GCC" = yes; then
8920        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8921        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8922      else
8923        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8924        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8925      fi
8926      ;;
8927
8928    uts4*)
8929      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8930      hardcode_libdir_flag_spec='-L$libdir'
8931      hardcode_shlibpath_var=no
8932      ;;
8933
8934    *)
8935      ld_shlibs=no
8936      ;;
8937    esac
8938  fi
8939
8940{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8941echo "${ECHO_T}$ld_shlibs" >&6; }
8942test "$ld_shlibs" = no && can_build_shared=no
8943
8944#
8945# Do we need to explicitly link libc?
8946#
8947case "x$archive_cmds_need_lc" in
8948x|xyes)
8949  # Assume -lc should be added
8950  archive_cmds_need_lc=yes
8951
8952  if test "$enable_shared" = yes && test "$GCC" = yes; then
8953    case $archive_cmds in
8954    *'~'*)
8955      # FIXME: we may have to deal with multi-command sequences.
8956      ;;
8957    '$CC '*)
8958      # Test whether the compiler implicitly links with -lc since on some
8959      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8960      # to ld, don't add -lc before -lgcc.
8961      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8962echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8963      $rm conftest*
8964      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8965
8966      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967  (eval $ac_compile) 2>&5
8968  ac_status=$?
8969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970  (exit $ac_status); } 2>conftest.err; then
8971        soname=conftest
8972        lib=conftest
8973        libobjs=conftest.$ac_objext
8974        deplibs=
8975        wl=$lt_prog_compiler_wl
8976        pic_flag=$lt_prog_compiler_pic
8977        compiler_flags=-v
8978        linker_flags=-v
8979        verstring=
8980        output_objdir=.
8981        libname=conftest
8982        lt_save_allow_undefined_flag=$allow_undefined_flag
8983        allow_undefined_flag=
8984        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8985  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8986  ac_status=$?
8987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988  (exit $ac_status); }
8989        then
8990          archive_cmds_need_lc=no
8991        else
8992          archive_cmds_need_lc=yes
8993        fi
8994        allow_undefined_flag=$lt_save_allow_undefined_flag
8995      else
8996        cat conftest.err 1>&5
8997      fi
8998      $rm conftest*
8999      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9000echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9001      ;;
9002    esac
9003  fi
9004  ;;
9005esac
9006
9007{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9008echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9009library_names_spec=
9010libname_spec='lib$name'
9011soname_spec=
9012shrext_cmds=".so"
9013postinstall_cmds=
9014postuninstall_cmds=
9015finish_cmds=
9016finish_eval=
9017shlibpath_var=
9018shlibpath_overrides_runpath=unknown
9019version_type=none
9020dynamic_linker="$host_os ld.so"
9021sys_lib_dlsearch_path_spec="/lib /usr/lib"
9022if test "$GCC" = yes; then
9023  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9024  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9025    # if the path contains ";" then we assume it to be the separator
9026    # otherwise default to the standard path separator (i.e. ":") - it is
9027    # assumed that no part of a normal pathname contains ";" but that should
9028    # okay in the real world where ";" in dirpaths is itself problematic.
9029    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9030  else
9031    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9032  fi
9033else
9034  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9035fi
9036need_lib_prefix=unknown
9037hardcode_into_libs=no
9038
9039# when you set need_version to no, make sure it does not cause -set_version
9040# flags to be left without arguments
9041need_version=unknown
9042
9043case $host_os in
9044aix3*)
9045  version_type=linux
9046  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9047  shlibpath_var=LIBPATH
9048
9049  # AIX 3 has no versioning support, so we append a major version to the name.
9050  soname_spec='${libname}${release}${shared_ext}$major'
9051  ;;
9052
9053aix4* | aix5*)
9054  version_type=linux
9055  need_lib_prefix=no
9056  need_version=no
9057  hardcode_into_libs=yes
9058  if test "$host_cpu" = ia64; then
9059    # AIX 5 supports IA64
9060    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9061    shlibpath_var=LD_LIBRARY_PATH
9062  else
9063    # With GCC up to 2.95.x, collect2 would create an import file
9064    # for dependence libraries.  The import file would start with
9065    # the line `#! .'.  This would cause the generated library to
9066    # depend on `.', always an invalid library.  This was fixed in
9067    # development snapshots of GCC prior to 3.0.
9068    case $host_os in
9069      aix4 | aix4.[01] | aix4.[01].*)
9070      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9071           echo ' yes '
9072           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9073        :
9074      else
9075        can_build_shared=no
9076      fi
9077      ;;
9078    esac
9079    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9080    # soname into executable. Probably we can add versioning support to
9081    # collect2, so additional links can be useful in future.
9082    if test "$aix_use_runtimelinking" = yes; then
9083      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9084      # instead of lib<name>.a to let people know that these are not
9085      # typical AIX shared libraries.
9086      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9087    else
9088      # We preserve .a as extension for shared libraries through AIX4.2
9089      # and later when we are not doing run time linking.
9090      library_names_spec='${libname}${release}.a $libname.a'
9091      soname_spec='${libname}${release}${shared_ext}$major'
9092    fi
9093    shlibpath_var=LIBPATH
9094  fi
9095  ;;
9096
9097amigaos*)
9098  library_names_spec='$libname.ixlibrary $libname.a'
9099  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9100  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'
9101  ;;
9102
9103beos*)
9104  library_names_spec='${libname}${shared_ext}'
9105  dynamic_linker="$host_os ld.so"
9106  shlibpath_var=LIBRARY_PATH
9107  ;;
9108
9109bsdi[45]*)
9110  version_type=linux
9111  need_version=no
9112  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113  soname_spec='${libname}${release}${shared_ext}$major'
9114  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9115  shlibpath_var=LD_LIBRARY_PATH
9116  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9117  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9118  # the default ld.so.conf also contains /usr/contrib/lib and
9119  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9120  # libtool to hard-code these into programs
9121  ;;
9122
9123cygwin* | mingw* | pw32*)
9124  version_type=windows
9125  shrext_cmds=".dll"
9126  need_version=no
9127  need_lib_prefix=no
9128
9129  case $GCC,$host_os in
9130  yes,cygwin* | yes,mingw* | yes,pw32*)
9131    library_names_spec='$libname.dll.a'
9132    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9133    postinstall_cmds='base_file=`basename \${file}`~
9134      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9135      dldir=$destdir/`dirname \$dlpath`~
9136      test -d \$dldir || mkdir -p \$dldir~
9137      $install_prog $dir/$dlname \$dldir/$dlname~
9138      chmod a+x \$dldir/$dlname'
9139    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9140      dlpath=$dir/\$dldll~
9141       $rm \$dlpath'
9142    shlibpath_overrides_runpath=yes
9143
9144    case $host_os in
9145    cygwin*)
9146      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9147      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9148      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9149      ;;
9150    mingw*)
9151      # MinGW DLLs use traditional 'lib' prefix
9152      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9153      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9154      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9155        # It is most probably a Windows format PATH printed by
9156        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9157        # path with ; separators, and with drive letters. We can handle the
9158        # drive letters (cygwin fileutils understands them), so leave them,
9159        # especially as we might pass files found there to a mingw objdump,
9160        # which wouldn't understand a cygwinified path. Ahh.
9161        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9162      else
9163        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9164      fi
9165      ;;
9166    pw32*)
9167      # pw32 DLLs use 'pw' prefix rather than 'lib'
9168      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9169      ;;
9170    esac
9171    ;;
9172
9173  *)
9174    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9175    ;;
9176  esac
9177  dynamic_linker='Win32 ld.exe'
9178  # FIXME: first we should search . and the directory the executable is in
9179  shlibpath_var=PATH
9180  ;;
9181
9182darwin* | rhapsody*)
9183  dynamic_linker="$host_os dyld"
9184  version_type=darwin
9185  need_lib_prefix=no
9186  need_version=no
9187  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9188  soname_spec='${libname}${release}${major}$shared_ext'
9189  shlibpath_overrides_runpath=yes
9190  shlibpath_var=DYLD_LIBRARY_PATH
9191  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9192  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9193  if test "$GCC" = yes; then
9194    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9195  else
9196    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9197  fi
9198  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9199  ;;
9200
9201dgux*)
9202  version_type=linux
9203  need_lib_prefix=no
9204  need_version=no
9205  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9206  soname_spec='${libname}${release}${shared_ext}$major'
9207  shlibpath_var=LD_LIBRARY_PATH
9208  ;;
9209
9210freebsd1*)
9211  dynamic_linker=no
9212  ;;
9213
9214kfreebsd*-gnu)
9215  version_type=linux
9216  need_lib_prefix=no
9217  need_version=no
9218  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9219  soname_spec='${libname}${release}${shared_ext}$major'
9220  shlibpath_var=LD_LIBRARY_PATH
9221  shlibpath_overrides_runpath=no
9222  hardcode_into_libs=yes
9223  dynamic_linker='GNU ld.so'
9224  ;;
9225
9226freebsd* | dragonfly*)
9227  # DragonFly does not have aout.  When/if they implement a new
9228  # versioning mechanism, adjust this.
9229  if test -x /usr/bin/objformat; then
9230    objformat=`/usr/bin/objformat`
9231  else
9232    case $host_os in
9233    freebsd[123]*) objformat=aout ;;
9234    *) objformat=elf ;;
9235    esac
9236  fi
9237  version_type=freebsd-$objformat
9238  case $version_type in
9239    freebsd-elf*)
9240      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9241      need_version=no
9242      need_lib_prefix=no
9243      ;;
9244    freebsd-*)
9245      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9246      need_version=yes
9247      ;;
9248  esac
9249  shlibpath_var=LD_LIBRARY_PATH
9250  case $host_os in
9251  freebsd2*)
9252    shlibpath_overrides_runpath=yes
9253    ;;
9254  freebsd3.[01]* | freebsdelf3.[01]*)
9255    shlibpath_overrides_runpath=yes
9256    hardcode_into_libs=yes
9257    ;;
9258  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9259  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9260    shlibpath_overrides_runpath=no
9261    hardcode_into_libs=yes
9262    ;;
9263  freebsd*) # from 4.6 on
9264    shlibpath_overrides_runpath=yes
9265    hardcode_into_libs=yes
9266    ;;
9267  esac
9268  ;;
9269
9270gnu*)
9271  version_type=linux
9272  need_lib_prefix=no
9273  need_version=no
9274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9275  soname_spec='${libname}${release}${shared_ext}$major'
9276  shlibpath_var=LD_LIBRARY_PATH
9277  hardcode_into_libs=yes
9278  ;;
9279
9280hpux9* | hpux10* | hpux11*)
9281  # Give a soname corresponding to the major version so that dld.sl refuses to
9282  # link against other versions.
9283  version_type=sunos
9284  need_lib_prefix=no
9285  need_version=no
9286  case $host_cpu in
9287  ia64*)
9288    shrext_cmds='.so'
9289    hardcode_into_libs=yes
9290    dynamic_linker="$host_os dld.so"
9291    shlibpath_var=LD_LIBRARY_PATH
9292    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9293    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9294    soname_spec='${libname}${release}${shared_ext}$major'
9295    if test "X$HPUX_IA64_MODE" = X32; then
9296      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9297    else
9298      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9299    fi
9300    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9301    ;;
9302   hppa*64*)
9303     shrext_cmds='.sl'
9304     hardcode_into_libs=yes
9305     dynamic_linker="$host_os dld.sl"
9306     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9307     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9308     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309     soname_spec='${libname}${release}${shared_ext}$major'
9310     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9311     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9312     ;;
9313   *)
9314    shrext_cmds='.sl'
9315    dynamic_linker="$host_os dld.sl"
9316    shlibpath_var=SHLIB_PATH
9317    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9318    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319    soname_spec='${libname}${release}${shared_ext}$major'
9320    ;;
9321  esac
9322  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9323  postinstall_cmds='chmod 555 $lib'
9324  ;;
9325
9326interix3*)
9327  version_type=linux
9328  need_lib_prefix=no
9329  need_version=no
9330  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9331  soname_spec='${libname}${release}${shared_ext}$major'
9332  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9333  shlibpath_var=LD_LIBRARY_PATH
9334  shlibpath_overrides_runpath=no
9335  hardcode_into_libs=yes
9336  ;;
9337
9338irix5* | irix6* | nonstopux*)
9339  case $host_os in
9340    nonstopux*) version_type=nonstopux ;;
9341    *)
9342        if test "$lt_cv_prog_gnu_ld" = yes; then
9343                version_type=linux
9344        else
9345                version_type=irix
9346        fi ;;
9347  esac
9348  need_lib_prefix=no
9349  need_version=no
9350  soname_spec='${libname}${release}${shared_ext}$major'
9351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9352  case $host_os in
9353  irix5* | nonstopux*)
9354    libsuff= shlibsuff=
9355    ;;
9356  *)
9357    case $LD in # libtool.m4 will add one of these switches to LD
9358    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9359      libsuff= shlibsuff= libmagic=32-bit;;
9360    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9361      libsuff=32 shlibsuff=N32 libmagic=N32;;
9362    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9363      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9364    *) libsuff= shlibsuff= libmagic=never-match;;
9365    esac
9366    ;;
9367  esac
9368  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9369  shlibpath_overrides_runpath=no
9370  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9371  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9372  hardcode_into_libs=yes
9373  ;;
9374
9375# No shared lib support for Linux oldld, aout, or coff.
9376linux*oldld* | linux*aout* | linux*coff*)
9377  dynamic_linker=no
9378  ;;
9379
9380# This must be Linux ELF.
9381linux*)
9382  version_type=linux
9383  need_lib_prefix=no
9384  need_version=no
9385  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9386  soname_spec='${libname}${release}${shared_ext}$major'
9387  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9388  shlibpath_var=LD_LIBRARY_PATH
9389  shlibpath_overrides_runpath=no
9390  # This implies no fast_install, which is unacceptable.
9391  # Some rework will be needed to allow for fast_install
9392  # before this can be enabled.
9393  hardcode_into_libs=yes
9394
9395  # find out which ABI we are using
9396  libsuff=
9397  case "$host_cpu" in
9398  x86_64*|s390x*|powerpc64*)
9399    echo '#line 9399 "configure"' > conftest.$ac_ext
9400    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9401  (eval $ac_compile) 2>&5
9402  ac_status=$?
9403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404  (exit $ac_status); }; then
9405      case `/usr/bin/file conftest.$ac_objext` in
9406      *64-bit*)
9407        libsuff=64
9408        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9409        ;;
9410      esac
9411    fi
9412    rm -rf conftest*
9413    ;;
9414  esac
9415
9416  # Append ld.so.conf contents to the search path
9417  if test -f /etc/ld.so.conf; then
9418    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/#.*//;s/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9419    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9420  fi
9421
9422  # We used to test for /lib/ld.so.1 and disable shared libraries on
9423  # powerpc, because MkLinux only supported shared libraries with the
9424  # GNU dynamic linker.  Since this was broken with cross compilers,
9425  # most powerpc-linux boxes support dynamic linking these days and
9426  # people can always --disable-shared, the test was removed, and we
9427  # assume the GNU/Linux dynamic linker is in use.
9428  dynamic_linker='GNU/Linux ld.so'
9429  ;;
9430
9431knetbsd*-gnu)
9432  version_type=linux
9433  need_lib_prefix=no
9434  need_version=no
9435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9436  soname_spec='${libname}${release}${shared_ext}$major'
9437  shlibpath_var=LD_LIBRARY_PATH
9438  shlibpath_overrides_runpath=no
9439  hardcode_into_libs=yes
9440  dynamic_linker='GNU ld.so'
9441  ;;
9442
9443netbsd*)
9444  version_type=sunos
9445  need_lib_prefix=no
9446  need_version=no
9447  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9448    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9449    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9450    dynamic_linker='NetBSD (a.out) ld.so'
9451  else
9452    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9453    soname_spec='${libname}${release}${shared_ext}$major'
9454    dynamic_linker='NetBSD ld.elf_so'
9455  fi
9456  shlibpath_var=LD_LIBRARY_PATH
9457  shlibpath_overrides_runpath=yes
9458  hardcode_into_libs=yes
9459  ;;
9460
9461newsos6)
9462  version_type=linux
9463  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9464  shlibpath_var=LD_LIBRARY_PATH
9465  shlibpath_overrides_runpath=yes
9466  ;;
9467
9468nto-qnx*)
9469  version_type=linux
9470  need_lib_prefix=no
9471  need_version=no
9472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9473  soname_spec='${libname}${release}${shared_ext}$major'
9474  shlibpath_var=LD_LIBRARY_PATH
9475  shlibpath_overrides_runpath=yes
9476  ;;
9477
9478openbsd*)
9479  version_type=sunos
9480  sys_lib_dlsearch_path_spec="/usr/lib"
9481  need_lib_prefix=no
9482  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9483  case $host_os in
9484    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9485    *)                         need_version=no  ;;
9486  esac
9487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9488  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9489  shlibpath_var=LD_LIBRARY_PATH
9490  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9491    case $host_os in
9492      openbsd2.[89] | openbsd2.[89].*)
9493        shlibpath_overrides_runpath=no
9494        ;;
9495      *)
9496        shlibpath_overrides_runpath=yes
9497        ;;
9498      esac
9499  else
9500    shlibpath_overrides_runpath=yes
9501  fi
9502  ;;
9503
9504os2*)
9505  libname_spec='$name'
9506  shrext_cmds=".dll"
9507  need_lib_prefix=no
9508  library_names_spec='$libname${shared_ext} $libname.a'
9509  dynamic_linker='OS/2 ld.exe'
9510  shlibpath_var=LIBPATH
9511  ;;
9512
9513osf3* | osf4* | osf5*)
9514  version_type=osf
9515  need_lib_prefix=no
9516  need_version=no
9517  soname_spec='${libname}${release}${shared_ext}$major'
9518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519  shlibpath_var=LD_LIBRARY_PATH
9520  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9521  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9522  ;;
9523
9524solaris*)
9525  version_type=linux
9526  need_lib_prefix=no
9527  need_version=no
9528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9529  soname_spec='${libname}${release}${shared_ext}$major'
9530  shlibpath_var=LD_LIBRARY_PATH
9531  shlibpath_overrides_runpath=yes
9532  hardcode_into_libs=yes
9533  # ldd complains unless libraries are executable
9534  postinstall_cmds='chmod +x $lib'
9535  ;;
9536
9537sunos4*)
9538  version_type=sunos
9539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9540  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9541  shlibpath_var=LD_LIBRARY_PATH
9542  shlibpath_overrides_runpath=yes
9543  if test "$with_gnu_ld" = yes; then
9544    need_lib_prefix=no
9545  fi
9546  need_version=yes
9547  ;;
9548
9549sysv4 | sysv4.3*)
9550  version_type=linux
9551  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9552  soname_spec='${libname}${release}${shared_ext}$major'
9553  shlibpath_var=LD_LIBRARY_PATH
9554  case $host_vendor in
9555    sni)
9556      shlibpath_overrides_runpath=no
9557      need_lib_prefix=no
9558      export_dynamic_flag_spec='${wl}-Blargedynsym'
9559      runpath_var=LD_RUN_PATH
9560      ;;
9561    siemens)
9562      need_lib_prefix=no
9563      ;;
9564    motorola)
9565      need_lib_prefix=no
9566      need_version=no
9567      shlibpath_overrides_runpath=no
9568      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9569      ;;
9570  esac
9571  ;;
9572
9573sysv4*MP*)
9574  if test -d /usr/nec ;then
9575    version_type=linux
9576    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9577    soname_spec='$libname${shared_ext}.$major'
9578    shlibpath_var=LD_LIBRARY_PATH
9579  fi
9580  ;;
9581
9582sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9583  version_type=freebsd-elf
9584  need_lib_prefix=no
9585  need_version=no
9586  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9587  soname_spec='${libname}${release}${shared_ext}$major'
9588  shlibpath_var=LD_LIBRARY_PATH
9589  hardcode_into_libs=yes
9590  if test "$with_gnu_ld" = yes; then
9591    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9592    shlibpath_overrides_runpath=no
9593  else
9594    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9595    shlibpath_overrides_runpath=yes
9596    case $host_os in
9597      sco3.2v5*)
9598        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9599        ;;
9600    esac
9601  fi
9602  sys_lib_dlsearch_path_spec='/usr/lib'
9603  ;;
9604
9605uts4*)
9606  version_type=linux
9607  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9608  soname_spec='${libname}${release}${shared_ext}$major'
9609  shlibpath_var=LD_LIBRARY_PATH
9610  ;;
9611
9612*)
9613  dynamic_linker=no
9614  ;;
9615esac
9616{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9617echo "${ECHO_T}$dynamic_linker" >&6; }
9618test "$dynamic_linker" = no && can_build_shared=no
9619
9620variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9621if test "$GCC" = yes; then
9622  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9623fi
9624
9625{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9626echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9627hardcode_action=
9628if test -n "$hardcode_libdir_flag_spec" || \
9629   test -n "$runpath_var" || \
9630   test "X$hardcode_automatic" = "Xyes" ; then
9631
9632  # We can hardcode non-existant directories.
9633  if test "$hardcode_direct" != no &&
9634     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9635     # have to relink, otherwise we might link with an installed library
9636     # when we should be linking with a yet-to-be-installed one
9637     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9638     test "$hardcode_minus_L" != no; then
9639    # Linking always hardcodes the temporary library directory.
9640    hardcode_action=relink
9641  else
9642    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9643    hardcode_action=immediate
9644  fi
9645else
9646  # We cannot hardcode anything, or else we can only hardcode existing
9647  # directories.
9648  hardcode_action=unsupported
9649fi
9650{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9651echo "${ECHO_T}$hardcode_action" >&6; }
9652
9653if test "$hardcode_action" = relink; then
9654  # Fast installation is not supported
9655  enable_fast_install=no
9656elif test "$shlibpath_overrides_runpath" = yes ||
9657     test "$enable_shared" = no; then
9658  # Fast installation is not necessary
9659  enable_fast_install=needless
9660fi
9661
9662striplib=
9663old_striplib=
9664{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9665echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9666if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9667  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9668  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9669  { echo "$as_me:$LINENO: result: yes" >&5
9670echo "${ECHO_T}yes" >&6; }
9671else
9672# FIXME - insert some real tests, host_os isn't really good enough
9673  case $host_os in
9674   darwin*)
9675       if test -n "$STRIP" ; then
9676         striplib="$STRIP -x"
9677         { echo "$as_me:$LINENO: result: yes" >&5
9678echo "${ECHO_T}yes" >&6; }
9679       else
9680  { echo "$as_me:$LINENO: result: no" >&5
9681echo "${ECHO_T}no" >&6; }
9682fi
9683       ;;
9684   *)
9685  { echo "$as_me:$LINENO: result: no" >&5
9686echo "${ECHO_T}no" >&6; }
9687    ;;
9688  esac
9689fi
9690
9691if test "x$enable_dlopen" != xyes; then
9692  enable_dlopen=unknown
9693  enable_dlopen_self=unknown
9694  enable_dlopen_self_static=unknown
9695else
9696  lt_cv_dlopen=no
9697  lt_cv_dlopen_libs=
9698
9699  case $host_os in
9700  beos*)
9701    lt_cv_dlopen="load_add_on"
9702    lt_cv_dlopen_libs=
9703    lt_cv_dlopen_self=yes
9704    ;;
9705
9706  mingw* | pw32*)
9707    lt_cv_dlopen="LoadLibrary"
9708    lt_cv_dlopen_libs=
9709   ;;
9710
9711  cygwin*)
9712    lt_cv_dlopen="dlopen"
9713    lt_cv_dlopen_libs=
9714   ;;
9715
9716  darwin*)
9717  # if libdl is installed we need to link against it
9718    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9719echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9720if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9721  echo $ECHO_N "(cached) $ECHO_C" >&6
9722else
9723  ac_check_lib_save_LIBS=$LIBS
9724LIBS="-ldl  $LIBS"
9725cat >conftest.$ac_ext <<_ACEOF
9726/* confdefs.h.  */
9727_ACEOF
9728cat confdefs.h >>conftest.$ac_ext
9729cat >>conftest.$ac_ext <<_ACEOF
9730/* end confdefs.h.  */
9731
9732/* Override any GCC internal prototype to avoid an error.
9733   Use char because int might match the return type of a GCC
9734   builtin and then its argument prototype would still apply.  */
9735#ifdef __cplusplus
9736extern "C"
9737#endif
9738char dlopen ();
9739int
9740main ()
9741{
9742return dlopen ();
9743  ;
9744  return 0;
9745}
9746_ACEOF
9747rm -f conftest.$ac_objext conftest$ac_exeext
9748if { (ac_try="$ac_link"
9749case "(($ac_try" in
9750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751  *) ac_try_echo=$ac_try;;
9752esac
9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754  (eval "$ac_link") 2>conftest.er1
9755  ac_status=$?
9756  grep -v '^ *+' conftest.er1 >conftest.err
9757  rm -f conftest.er1
9758  cat conftest.err >&5
9759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760  (exit $ac_status); } && {
9761         test -z "$ac_c_werror_flag" ||
9762         test ! -s conftest.err
9763       } && test -s conftest$ac_exeext &&
9764       $as_test_x conftest$ac_exeext; then
9765  ac_cv_lib_dl_dlopen=yes
9766else
9767  echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
9770        ac_cv_lib_dl_dlopen=no
9771fi
9772
9773rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9774      conftest$ac_exeext conftest.$ac_ext
9775LIBS=$ac_check_lib_save_LIBS
9776fi
9777{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9778echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9779if test $ac_cv_lib_dl_dlopen = yes; then
9780  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9781else
9782
9783    lt_cv_dlopen="dyld"
9784    lt_cv_dlopen_libs=
9785    lt_cv_dlopen_self=yes
9786
9787fi
9788
9789   ;;
9790
9791  *)
9792    { echo "$as_me:$LINENO: checking for shl_load" >&5
9793echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9794if test "${ac_cv_func_shl_load+set}" = set; then
9795  echo $ECHO_N "(cached) $ECHO_C" >&6
9796else
9797  cat >conftest.$ac_ext <<_ACEOF
9798/* confdefs.h.  */
9799_ACEOF
9800cat confdefs.h >>conftest.$ac_ext
9801cat >>conftest.$ac_ext <<_ACEOF
9802/* end confdefs.h.  */
9803/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9804   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9805#define shl_load innocuous_shl_load
9806
9807/* System header to define __stub macros and hopefully few prototypes,
9808    which can conflict with char shl_load (); below.
9809    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9810    <limits.h> exists even on freestanding compilers.  */
9811
9812#ifdef __STDC__
9813# include <limits.h>
9814#else
9815# include <assert.h>
9816#endif
9817
9818#undef shl_load
9819
9820/* Override any GCC internal prototype to avoid an error.
9821   Use char because int might match the return type of a GCC
9822   builtin and then its argument prototype would still apply.  */
9823#ifdef __cplusplus
9824extern "C"
9825#endif
9826char shl_load ();
9827/* The GNU C library defines this for functions which it implements
9828    to always fail with ENOSYS.  Some functions are actually named
9829    something starting with __ and the normal name is an alias.  */
9830#if defined __stub_shl_load || defined __stub___shl_load
9831choke me
9832#endif
9833
9834int
9835main ()
9836{
9837return shl_load ();
9838  ;
9839  return 0;
9840}
9841_ACEOF
9842rm -f conftest.$ac_objext conftest$ac_exeext
9843if { (ac_try="$ac_link"
9844case "(($ac_try" in
9845  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9846  *) ac_try_echo=$ac_try;;
9847esac
9848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9849  (eval "$ac_link") 2>conftest.er1
9850  ac_status=$?
9851  grep -v '^ *+' conftest.er1 >conftest.err
9852  rm -f conftest.er1
9853  cat conftest.err >&5
9854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855  (exit $ac_status); } && {
9856         test -z "$ac_c_werror_flag" ||
9857         test ! -s conftest.err
9858       } && test -s conftest$ac_exeext &&
9859       $as_test_x conftest$ac_exeext; then
9860  ac_cv_func_shl_load=yes
9861else
9862  echo "$as_me: failed program was:" >&5
9863sed 's/^/| /' conftest.$ac_ext >&5
9864
9865        ac_cv_func_shl_load=no
9866fi
9867
9868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9869      conftest$ac_exeext conftest.$ac_ext
9870fi
9871{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9872echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9873if test $ac_cv_func_shl_load = yes; then
9874  lt_cv_dlopen="shl_load"
9875else
9876  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9877echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9878if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9879  echo $ECHO_N "(cached) $ECHO_C" >&6
9880else
9881  ac_check_lib_save_LIBS=$LIBS
9882LIBS="-ldld  $LIBS"
9883cat >conftest.$ac_ext <<_ACEOF
9884/* confdefs.h.  */
9885_ACEOF
9886cat confdefs.h >>conftest.$ac_ext
9887cat >>conftest.$ac_ext <<_ACEOF
9888/* end confdefs.h.  */
9889
9890/* Override any GCC internal prototype to avoid an error.
9891   Use char because int might match the return type of a GCC
9892   builtin and then its argument prototype would still apply.  */
9893#ifdef __cplusplus
9894extern "C"
9895#endif
9896char shl_load ();
9897int
9898main ()
9899{
9900return shl_load ();
9901  ;
9902  return 0;
9903}
9904_ACEOF
9905rm -f conftest.$ac_objext conftest$ac_exeext
9906if { (ac_try="$ac_link"
9907case "(($ac_try" in
9908  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9909  *) ac_try_echo=$ac_try;;
9910esac
9911eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9912  (eval "$ac_link") 2>conftest.er1
9913  ac_status=$?
9914  grep -v '^ *+' conftest.er1 >conftest.err
9915  rm -f conftest.er1
9916  cat conftest.err >&5
9917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918  (exit $ac_status); } && {
9919         test -z "$ac_c_werror_flag" ||
9920         test ! -s conftest.err
9921       } && test -s conftest$ac_exeext &&
9922       $as_test_x conftest$ac_exeext; then
9923  ac_cv_lib_dld_shl_load=yes
9924else
9925  echo "$as_me: failed program was:" >&5
9926sed 's/^/| /' conftest.$ac_ext >&5
9927
9928        ac_cv_lib_dld_shl_load=no
9929fi
9930
9931rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9932      conftest$ac_exeext conftest.$ac_ext
9933LIBS=$ac_check_lib_save_LIBS
9934fi
9935{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9936echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9937if test $ac_cv_lib_dld_shl_load = yes; then
9938  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9939else
9940  { echo "$as_me:$LINENO: checking for dlopen" >&5
9941echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9942if test "${ac_cv_func_dlopen+set}" = set; then
9943  echo $ECHO_N "(cached) $ECHO_C" >&6
9944else
9945  cat >conftest.$ac_ext <<_ACEOF
9946/* confdefs.h.  */
9947_ACEOF
9948cat confdefs.h >>conftest.$ac_ext
9949cat >>conftest.$ac_ext <<_ACEOF
9950/* end confdefs.h.  */
9951/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9952   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9953#define dlopen innocuous_dlopen
9954
9955/* System header to define __stub macros and hopefully few prototypes,
9956    which can conflict with char dlopen (); below.
9957    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9958    <limits.h> exists even on freestanding compilers.  */
9959
9960#ifdef __STDC__
9961# include <limits.h>
9962#else
9963# include <assert.h>
9964#endif
9965
9966#undef dlopen
9967
9968/* Override any GCC internal prototype to avoid an error.
9969   Use char because int might match the return type of a GCC
9970   builtin and then its argument prototype would still apply.  */
9971#ifdef __cplusplus
9972extern "C"
9973#endif
9974char dlopen ();
9975/* The GNU C library defines this for functions which it implements
9976    to always fail with ENOSYS.  Some functions are actually named
9977    something starting with __ and the normal name is an alias.  */
9978#if defined __stub_dlopen || defined __stub___dlopen
9979choke me
9980#endif
9981
9982int
9983main ()
9984{
9985return dlopen ();
9986  ;
9987  return 0;
9988}
9989_ACEOF
9990rm -f conftest.$ac_objext conftest$ac_exeext
9991if { (ac_try="$ac_link"
9992case "(($ac_try" in
9993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994  *) ac_try_echo=$ac_try;;
9995esac
9996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997  (eval "$ac_link") 2>conftest.er1
9998  ac_status=$?
9999  grep -v '^ *+' conftest.er1 >conftest.err
10000  rm -f conftest.er1
10001  cat conftest.err >&5
10002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003  (exit $ac_status); } && {
10004         test -z "$ac_c_werror_flag" ||
10005         test ! -s conftest.err
10006       } && test -s conftest$ac_exeext &&
10007       $as_test_x conftest$ac_exeext; then
10008  ac_cv_func_dlopen=yes
10009else
10010  echo "$as_me: failed program was:" >&5
10011sed 's/^/| /' conftest.$ac_ext >&5
10012
10013        ac_cv_func_dlopen=no
10014fi
10015
10016rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10017      conftest$ac_exeext conftest.$ac_ext
10018fi
10019{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10020echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10021if test $ac_cv_func_dlopen = yes; then
10022  lt_cv_dlopen="dlopen"
10023else
10024  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10025echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10026if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10027  echo $ECHO_N "(cached) $ECHO_C" >&6
10028else
10029  ac_check_lib_save_LIBS=$LIBS
10030LIBS="-ldl  $LIBS"
10031cat >conftest.$ac_ext <<_ACEOF
10032/* confdefs.h.  */
10033_ACEOF
10034cat confdefs.h >>conftest.$ac_ext
10035cat >>conftest.$ac_ext <<_ACEOF
10036/* end confdefs.h.  */
10037
10038/* Override any GCC internal prototype to avoid an error.
10039   Use char because int might match the return type of a GCC
10040   builtin and then its argument prototype would still apply.  */
10041#ifdef __cplusplus
10042extern "C"
10043#endif
10044char dlopen ();
10045int
10046main ()
10047{
10048return dlopen ();
10049  ;
10050  return 0;
10051}
10052_ACEOF
10053rm -f conftest.$ac_objext conftest$ac_exeext
10054if { (ac_try="$ac_link"
10055case "(($ac_try" in
10056  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057  *) ac_try_echo=$ac_try;;
10058esac
10059eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060  (eval "$ac_link") 2>conftest.er1
10061  ac_status=$?
10062  grep -v '^ *+' conftest.er1 >conftest.err
10063  rm -f conftest.er1
10064  cat conftest.err >&5
10065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066  (exit $ac_status); } && {
10067         test -z "$ac_c_werror_flag" ||
10068         test ! -s conftest.err
10069       } && test -s conftest$ac_exeext &&
10070       $as_test_x conftest$ac_exeext; then
10071  ac_cv_lib_dl_dlopen=yes
10072else
10073  echo "$as_me: failed program was:" >&5
10074sed 's/^/| /' conftest.$ac_ext >&5
10075
10076        ac_cv_lib_dl_dlopen=no
10077fi
10078
10079rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080      conftest$ac_exeext conftest.$ac_ext
10081LIBS=$ac_check_lib_save_LIBS
10082fi
10083{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10084echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10085if test $ac_cv_lib_dl_dlopen = yes; then
10086  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10087else
10088  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10089echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10090if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10091  echo $ECHO_N "(cached) $ECHO_C" >&6
10092else
10093  ac_check_lib_save_LIBS=$LIBS
10094LIBS="-lsvld  $LIBS"
10095cat >conftest.$ac_ext <<_ACEOF
10096/* confdefs.h.  */
10097_ACEOF
10098cat confdefs.h >>conftest.$ac_ext
10099cat >>conftest.$ac_ext <<_ACEOF
10100/* end confdefs.h.  */
10101
10102/* Override any GCC internal prototype to avoid an error.
10103   Use char because int might match the return type of a GCC
10104   builtin and then its argument prototype would still apply.  */
10105#ifdef __cplusplus
10106extern "C"
10107#endif
10108char dlopen ();
10109int
10110main ()
10111{
10112return dlopen ();
10113  ;
10114  return 0;
10115}
10116_ACEOF
10117rm -f conftest.$ac_objext conftest$ac_exeext
10118if { (ac_try="$ac_link"
10119case "(($ac_try" in
10120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10121  *) ac_try_echo=$ac_try;;
10122esac
10123eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124  (eval "$ac_link") 2>conftest.er1
10125  ac_status=$?
10126  grep -v '^ *+' conftest.er1 >conftest.err
10127  rm -f conftest.er1
10128  cat conftest.err >&5
10129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130  (exit $ac_status); } && {
10131         test -z "$ac_c_werror_flag" ||
10132         test ! -s conftest.err
10133       } && test -s conftest$ac_exeext &&
10134       $as_test_x conftest$ac_exeext; then
10135  ac_cv_lib_svld_dlopen=yes
10136else
10137  echo "$as_me: failed program was:" >&5
10138sed 's/^/| /' conftest.$ac_ext >&5
10139
10140        ac_cv_lib_svld_dlopen=no
10141fi
10142
10143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10144      conftest$ac_exeext conftest.$ac_ext
10145LIBS=$ac_check_lib_save_LIBS
10146fi
10147{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10148echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10149if test $ac_cv_lib_svld_dlopen = yes; then
10150  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10151else
10152  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10153echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10154if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10155  echo $ECHO_N "(cached) $ECHO_C" >&6
10156else
10157  ac_check_lib_save_LIBS=$LIBS
10158LIBS="-ldld  $LIBS"
10159cat >conftest.$ac_ext <<_ACEOF
10160/* confdefs.h.  */
10161_ACEOF
10162cat confdefs.h >>conftest.$ac_ext
10163cat >>conftest.$ac_ext <<_ACEOF
10164/* end confdefs.h.  */
10165
10166/* Override any GCC internal prototype to avoid an error.
10167   Use char because int might match the return type of a GCC
10168   builtin and then its argument prototype would still apply.  */
10169#ifdef __cplusplus
10170extern "C"
10171#endif
10172char dld_link ();
10173int
10174main ()
10175{
10176return dld_link ();
10177  ;
10178  return 0;
10179}
10180_ACEOF
10181rm -f conftest.$ac_objext conftest$ac_exeext
10182if { (ac_try="$ac_link"
10183case "(($ac_try" in
10184  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10185  *) ac_try_echo=$ac_try;;
10186esac
10187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188  (eval "$ac_link") 2>conftest.er1
10189  ac_status=$?
10190  grep -v '^ *+' conftest.er1 >conftest.err
10191  rm -f conftest.er1
10192  cat conftest.err >&5
10193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194  (exit $ac_status); } && {
10195         test -z "$ac_c_werror_flag" ||
10196         test ! -s conftest.err
10197       } && test -s conftest$ac_exeext &&
10198       $as_test_x conftest$ac_exeext; then
10199  ac_cv_lib_dld_dld_link=yes
10200else
10201  echo "$as_me: failed program was:" >&5
10202sed 's/^/| /' conftest.$ac_ext >&5
10203
10204        ac_cv_lib_dld_dld_link=no
10205fi
10206
10207rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10208      conftest$ac_exeext conftest.$ac_ext
10209LIBS=$ac_check_lib_save_LIBS
10210fi
10211{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10212echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10213if test $ac_cv_lib_dld_dld_link = yes; then
10214  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10215fi
10216
10217
10218fi
10219
10220
10221fi
10222
10223
10224fi
10225
10226
10227fi
10228
10229
10230fi
10231
10232    ;;
10233  esac
10234
10235  if test "x$lt_cv_dlopen" != xno; then
10236    enable_dlopen=yes
10237  else
10238    enable_dlopen=no
10239  fi
10240
10241  case $lt_cv_dlopen in
10242  dlopen)
10243    save_CPPFLAGS="$CPPFLAGS"
10244    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10245
10246    save_LDFLAGS="$LDFLAGS"
10247    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10248
10249    save_LIBS="$LIBS"
10250    LIBS="$lt_cv_dlopen_libs $LIBS"
10251
10252    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10253echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10254if test "${lt_cv_dlopen_self+set}" = set; then
10255  echo $ECHO_N "(cached) $ECHO_C" >&6
10256else
10257          if test "$cross_compiling" = yes; then :
10258  lt_cv_dlopen_self=cross
10259else
10260  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10261  lt_status=$lt_dlunknown
10262  cat > conftest.$ac_ext <<EOF
10263#line 10263 "configure"
10264#include "confdefs.h"
10265
10266#if HAVE_DLFCN_H
10267#include <dlfcn.h>
10268#endif
10269
10270#include <stdio.h>
10271
10272#ifdef RTLD_GLOBAL
10273#  define LT_DLGLOBAL           RTLD_GLOBAL
10274#else
10275#  ifdef DL_GLOBAL
10276#    define LT_DLGLOBAL         DL_GLOBAL
10277#  else
10278#    define LT_DLGLOBAL         0
10279#  endif
10280#endif
10281
10282/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10283   find out it does not work in some platform. */
10284#ifndef LT_DLLAZY_OR_NOW
10285#  ifdef RTLD_LAZY
10286#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10287#  else
10288#    ifdef DL_LAZY
10289#      define LT_DLLAZY_OR_NOW          DL_LAZY
10290#    else
10291#      ifdef RTLD_NOW
10292#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10293#      else
10294#        ifdef DL_NOW
10295#          define LT_DLLAZY_OR_NOW      DL_NOW
10296#        else
10297#          define LT_DLLAZY_OR_NOW      0
10298#        endif
10299#      endif
10300#    endif
10301#  endif
10302#endif
10303
10304#ifdef __cplusplus
10305extern "C" void exit (int);
10306#endif
10307
10308void fnord() { int i=42;}
10309int main ()
10310{
10311  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10312  int status = $lt_dlunknown;
10313
10314  if (self)
10315    {
10316      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10317      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10318      /* dlclose (self); */
10319    }
10320  else
10321    puts (dlerror ());
10322
10323    exit (status);
10324}
10325EOF
10326  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10327  (eval $ac_link) 2>&5
10328  ac_status=$?
10329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10331    (./conftest; exit; ) >&5 2>/dev/null
10332    lt_status=$?
10333    case x$lt_status in
10334      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10335      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10336      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10337    esac
10338  else :
10339    # compilation failed
10340    lt_cv_dlopen_self=no
10341  fi
10342fi
10343rm -fr conftest*
10344
10345
10346fi
10347{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10348echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10349
10350    if test "x$lt_cv_dlopen_self" = xyes; then
10351      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10352      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10353echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10354if test "${lt_cv_dlopen_self_static+set}" = set; then
10355  echo $ECHO_N "(cached) $ECHO_C" >&6
10356else
10357          if test "$cross_compiling" = yes; then :
10358  lt_cv_dlopen_self_static=cross
10359else
10360  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10361  lt_status=$lt_dlunknown
10362  cat > conftest.$ac_ext <<EOF
10363#line 10363 "configure"
10364#include "confdefs.h"
10365
10366#if HAVE_DLFCN_H
10367#include <dlfcn.h>
10368#endif
10369
10370#include <stdio.h>
10371
10372#ifdef RTLD_GLOBAL
10373#  define LT_DLGLOBAL           RTLD_GLOBAL
10374#else
10375#  ifdef DL_GLOBAL
10376#    define LT_DLGLOBAL         DL_GLOBAL
10377#  else
10378#    define LT_DLGLOBAL         0
10379#  endif
10380#endif
10381
10382/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10383   find out it does not work in some platform. */
10384#ifndef LT_DLLAZY_OR_NOW
10385#  ifdef RTLD_LAZY
10386#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10387#  else
10388#    ifdef DL_LAZY
10389#      define LT_DLLAZY_OR_NOW          DL_LAZY
10390#    else
10391#      ifdef RTLD_NOW
10392#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10393#      else
10394#        ifdef DL_NOW
10395#          define LT_DLLAZY_OR_NOW      DL_NOW
10396#        else
10397#          define LT_DLLAZY_OR_NOW      0
10398#        endif
10399#      endif
10400#    endif
10401#  endif
10402#endif
10403
10404#ifdef __cplusplus
10405extern "C" void exit (int);
10406#endif
10407
10408void fnord() { int i=42;}
10409int main ()
10410{
10411  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10412  int status = $lt_dlunknown;
10413
10414  if (self)
10415    {
10416      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10417      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10418      /* dlclose (self); */
10419    }
10420  else
10421    puts (dlerror ());
10422
10423    exit (status);
10424}
10425EOF
10426  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10427  (eval $ac_link) 2>&5
10428  ac_status=$?
10429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10430  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10431    (./conftest; exit; ) >&5 2>/dev/null
10432    lt_status=$?
10433    case x$lt_status in
10434      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10435      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10436      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10437    esac
10438  else :
10439    # compilation failed
10440    lt_cv_dlopen_self_static=no
10441  fi
10442fi
10443rm -fr conftest*
10444
10445
10446fi
10447{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10448echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10449    fi
10450
10451    CPPFLAGS="$save_CPPFLAGS"
10452    LDFLAGS="$save_LDFLAGS"
10453    LIBS="$save_LIBS"
10454    ;;
10455  esac
10456
10457  case $lt_cv_dlopen_self in
10458  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10459  *) enable_dlopen_self=unknown ;;
10460  esac
10461
10462  case $lt_cv_dlopen_self_static in
10463  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10464  *) enable_dlopen_self_static=unknown ;;
10465  esac
10466fi
10467
10468
10469# Report which library types will actually be built
10470{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10471echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10472{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10473echo "${ECHO_T}$can_build_shared" >&6; }
10474
10475{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10476echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10477test "$can_build_shared" = "no" && enable_shared=no
10478
10479# On AIX, shared libraries and static libraries use the same namespace, and
10480# are all built from PIC.
10481case $host_os in
10482aix3*)
10483  test "$enable_shared" = yes && enable_static=no
10484  if test -n "$RANLIB"; then
10485    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10486    postinstall_cmds='$RANLIB $lib'
10487  fi
10488  ;;
10489
10490aix4* | aix5*)
10491  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10492    test "$enable_shared" = yes && enable_static=no
10493  fi
10494    ;;
10495esac
10496{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10497echo "${ECHO_T}$enable_shared" >&6; }
10498
10499{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10500echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10501# Make sure either enable_shared or enable_static is yes.
10502test "$enable_shared" = yes || enable_static=yes
10503{ echo "$as_me:$LINENO: result: $enable_static" >&5
10504echo "${ECHO_T}$enable_static" >&6; }
10505
10506# The else clause should only fire when bootstrapping the
10507# libtool distribution, otherwise you forgot to ship ltmain.sh
10508# with your package, and you will get complaints that there are
10509# no rules to generate ltmain.sh.
10510if test -f "$ltmain"; then
10511  # See if we are running on zsh, and set the options which allow our commands through
10512  # without removal of \ escapes.
10513  if test -n "${ZSH_VERSION+set}" ; then
10514    setopt NO_GLOB_SUBST
10515  fi
10516  # Now quote all the things that may contain metacharacters while being
10517  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10518  # variables and quote the copies for generation of the libtool script.
10519  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10520    SED SHELL STRIP \
10521    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10522    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10523    deplibs_check_method reload_flag reload_cmds need_locks \
10524    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10525    lt_cv_sys_global_symbol_to_c_name_address \
10526    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10527    old_postinstall_cmds old_postuninstall_cmds \
10528    compiler \
10529    CC \
10530    LD \
10531    lt_prog_compiler_wl \
10532    lt_prog_compiler_pic \
10533    lt_prog_compiler_static \
10534    lt_prog_compiler_no_builtin_flag \
10535    export_dynamic_flag_spec \
10536    thread_safe_flag_spec \
10537    whole_archive_flag_spec \
10538    enable_shared_with_static_runtimes \
10539    old_archive_cmds \
10540    old_archive_from_new_cmds \
10541    predep_objects \
10542    postdep_objects \
10543    predeps \
10544    postdeps \
10545    compiler_lib_search_path \
10546    archive_cmds \
10547    archive_expsym_cmds \
10548    postinstall_cmds \
10549    postuninstall_cmds \
10550    old_archive_from_expsyms_cmds \
10551    allow_undefined_flag \
10552    no_undefined_flag \
10553    export_symbols_cmds \
10554    hardcode_libdir_flag_spec \
10555    hardcode_libdir_flag_spec_ld \
10556    hardcode_libdir_separator \
10557    hardcode_automatic \
10558    module_cmds \
10559    module_expsym_cmds \
10560    lt_cv_prog_compiler_c_o \
10561    exclude_expsyms \
10562    include_expsyms; do
10563
10564    case $var in
10565    old_archive_cmds | \
10566    old_archive_from_new_cmds | \
10567    archive_cmds | \
10568    archive_expsym_cmds | \
10569    module_cmds | \
10570    module_expsym_cmds | \
10571    old_archive_from_expsyms_cmds | \
10572    export_symbols_cmds | \
10573    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10574    postinstall_cmds | postuninstall_cmds | \
10575    old_postinstall_cmds | old_postuninstall_cmds | \
10576    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10577      # Double-quote double-evaled strings.
10578      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10579      ;;
10580    *)
10581      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10582      ;;
10583    esac
10584  done
10585
10586  case $lt_echo in
10587  *'\$0 --fallback-echo"')
10588    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10589    ;;
10590  esac
10591
10592cfgfile="${ofile}T"
10593  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10594  $rm -f "$cfgfile"
10595  { echo "$as_me:$LINENO: creating $ofile" >&5
10596echo "$as_me: creating $ofile" >&6;}
10597
10598  cat <<__EOF__ >> "$cfgfile"
10599#! $SHELL
10600
10601# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10602# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10603# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10604#
10605# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10606# Free Software Foundation, Inc.
10607#
10608# This file is part of GNU Libtool:
10609# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10610#
10611# This program is free software; you can redistribute it and/or modify
10612# it under the terms of the GNU General Public License as published by
10613# the Free Software Foundation; either version 2 of the License, or
10614# (at your option) any later version.
10615#
10616# This program is distributed in the hope that it will be useful, but
10617# WITHOUT ANY WARRANTY; without even the implied warranty of
10618# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10619# General Public License for more details.
10620#
10621# You should have received a copy of the GNU General Public License
10622# along with this program; if not, write to the Free Software
10623# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10624#
10625# As a special exception to the GNU General Public License, if you
10626# distribute this file as part of a program that contains a
10627# configuration script generated by Autoconf, you may include it under
10628# the same distribution terms that you use for the rest of that program.
10629
10630# A sed program that does not truncate output.
10631SED=$lt_SED
10632
10633# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10634Xsed="$SED -e 1s/^X//"
10635
10636# The HP-UX ksh and POSIX shell print the target directory to stdout
10637# if CDPATH is set.
10638(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10639
10640# The names of the tagged configurations supported by this script.
10641available_tags=
10642
10643# ### BEGIN LIBTOOL CONFIG
10644
10645# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10646
10647# Shell to use when invoking shell scripts.
10648SHELL=$lt_SHELL
10649
10650# Whether or not to build shared libraries.
10651build_libtool_libs=$enable_shared
10652
10653# Whether or not to build static libraries.
10654build_old_libs=$enable_static
10655
10656# Whether or not to add -lc for building shared libraries.
10657build_libtool_need_lc=$archive_cmds_need_lc
10658
10659# Whether or not to disallow shared libs when runtime libs are static
10660allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10661
10662# Whether or not to optimize for fast installation.
10663fast_install=$enable_fast_install
10664
10665# The host system.
10666host_alias=$host_alias
10667host=$host
10668host_os=$host_os
10669
10670# The build system.
10671build_alias=$build_alias
10672build=$build
10673build_os=$build_os
10674
10675# An echo program that does not interpret backslashes.
10676echo=$lt_echo
10677
10678# The archiver.
10679AR=$lt_AR
10680AR_FLAGS=$lt_AR_FLAGS
10681
10682# A C compiler.
10683LTCC=$lt_LTCC
10684
10685# LTCC compiler flags.
10686LTCFLAGS=$lt_LTCFLAGS
10687
10688# A language-specific compiler.
10689CC=$lt_compiler
10690
10691# Is the compiler the GNU C compiler?
10692with_gcc=$GCC
10693
10694gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10695gcc_ver=\`gcc -dumpversion\`
10696
10697# An ERE matcher.
10698EGREP=$lt_EGREP
10699
10700# The linker used to build libraries.
10701LD=$lt_LD
10702
10703# Whether we need hard or soft links.
10704LN_S=$lt_LN_S
10705
10706# A BSD-compatible nm program.
10707NM=$lt_NM
10708
10709# A symbol stripping program
10710STRIP=$lt_STRIP
10711
10712# Used to examine libraries when file_magic_cmd begins "file"
10713MAGIC_CMD=$MAGIC_CMD
10714
10715# Used on cygwin: DLL creation program.
10716DLLTOOL="$DLLTOOL"
10717
10718# Used on cygwin: object dumper.
10719OBJDUMP="$OBJDUMP"
10720
10721# Used on cygwin: assembler.
10722AS="$AS"
10723
10724# The name of the directory that contains temporary libtool files.
10725objdir=$objdir
10726
10727# How to create reloadable object files.
10728reload_flag=$lt_reload_flag
10729reload_cmds=$lt_reload_cmds
10730
10731# How to pass a linker flag through the compiler.
10732wl=$lt_lt_prog_compiler_wl
10733
10734# Object file suffix (normally "o").
10735objext="$ac_objext"
10736
10737# Old archive suffix (normally "a").
10738libext="$libext"
10739
10740# Shared library suffix (normally ".so").
10741shrext_cmds='$shrext_cmds'
10742
10743# Executable file suffix (normally "").
10744exeext="$exeext"
10745
10746# Additional compiler flags for building library objects.
10747pic_flag=$lt_lt_prog_compiler_pic
10748pic_mode=$pic_mode
10749
10750# What is the maximum length of a command?
10751max_cmd_len=$lt_cv_sys_max_cmd_len
10752
10753# Does compiler simultaneously support -c and -o options?
10754compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10755
10756# Must we lock files when doing compilation?
10757need_locks=$lt_need_locks
10758
10759# Do we need the lib prefix for modules?
10760need_lib_prefix=$need_lib_prefix
10761
10762# Do we need a version for libraries?
10763need_version=$need_version
10764
10765# Whether dlopen is supported.
10766dlopen_support=$enable_dlopen
10767
10768# Whether dlopen of programs is supported.
10769dlopen_self=$enable_dlopen_self
10770
10771# Whether dlopen of statically linked programs is supported.
10772dlopen_self_static=$enable_dlopen_self_static
10773
10774# Compiler flag to prevent dynamic linking.
10775link_static_flag=$lt_lt_prog_compiler_static
10776
10777# Compiler flag to turn off builtin functions.
10778no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10779
10780# Compiler flag to allow reflexive dlopens.
10781export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10782
10783# Compiler flag to generate shared objects directly from archives.
10784whole_archive_flag_spec=$lt_whole_archive_flag_spec
10785
10786# Compiler flag to generate thread-safe objects.
10787thread_safe_flag_spec=$lt_thread_safe_flag_spec
10788
10789# Library versioning type.
10790version_type=$version_type
10791
10792# Format of library name prefix.
10793libname_spec=$lt_libname_spec
10794
10795# List of archive names.  First name is the real one, the rest are links.
10796# The last name is the one that the linker finds with -lNAME.
10797library_names_spec=$lt_library_names_spec
10798
10799# The coded name of the library, if different from the real name.
10800soname_spec=$lt_soname_spec
10801
10802# Commands used to build and install an old-style archive.
10803RANLIB=$lt_RANLIB
10804old_archive_cmds=$lt_old_archive_cmds
10805old_postinstall_cmds=$lt_old_postinstall_cmds
10806old_postuninstall_cmds=$lt_old_postuninstall_cmds
10807
10808# Create an old-style archive from a shared archive.
10809old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10810
10811# Create a temporary old-style archive to link instead of a shared archive.
10812old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10813
10814# Commands used to build and install a shared archive.
10815archive_cmds=$lt_archive_cmds
10816archive_expsym_cmds=$lt_archive_expsym_cmds
10817postinstall_cmds=$lt_postinstall_cmds
10818postuninstall_cmds=$lt_postuninstall_cmds
10819
10820# Commands used to build a loadable module (assumed same as above if empty)
10821module_cmds=$lt_module_cmds
10822module_expsym_cmds=$lt_module_expsym_cmds
10823
10824# Commands to strip libraries.
10825old_striplib=$lt_old_striplib
10826striplib=$lt_striplib
10827
10828# Dependencies to place before the objects being linked to create a
10829# shared library.
10830predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10831
10832# Dependencies to place after the objects being linked to create a
10833# shared library.
10834postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10835
10836# Dependencies to place before the objects being linked to create a
10837# shared library.
10838predeps=$lt_predeps
10839
10840# Dependencies to place after the objects being linked to create a
10841# shared library.
10842postdeps=$lt_postdeps
10843
10844# The library search path used internally by the compiler when linking
10845# a shared library.
10846compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10847
10848# Method to check whether dependent libraries are shared objects.
10849deplibs_check_method=$lt_deplibs_check_method
10850
10851# Command to use when deplibs_check_method == file_magic.
10852file_magic_cmd=$lt_file_magic_cmd
10853
10854# Flag that allows shared libraries with undefined symbols to be built.
10855allow_undefined_flag=$lt_allow_undefined_flag
10856
10857# Flag that forces no undefined symbols.
10858no_undefined_flag=$lt_no_undefined_flag
10859
10860# Commands used to finish a libtool library installation in a directory.
10861finish_cmds=$lt_finish_cmds
10862
10863# Same as above, but a single script fragment to be evaled but not shown.
10864finish_eval=$lt_finish_eval
10865
10866# Take the output of nm and produce a listing of raw symbols and C names.
10867global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10868
10869# Transform the output of nm in a proper C declaration
10870global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10871
10872# Transform the output of nm in a C name address pair
10873global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10874
10875# This is the shared library runtime path variable.
10876runpath_var=$runpath_var
10877
10878# This is the shared library path variable.
10879shlibpath_var=$shlibpath_var
10880
10881# Is shlibpath searched before the hard-coded library search path?
10882shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10883
10884# How to hardcode a shared library path into an executable.
10885hardcode_action=$hardcode_action
10886
10887# Whether we should hardcode library paths into libraries.
10888hardcode_into_libs=$hardcode_into_libs
10889
10890# Flag to hardcode \$libdir into a binary during linking.
10891# This must work even if \$libdir does not exist.
10892hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10893
10894# If ld is used when linking, flag to hardcode \$libdir into
10895# a binary during linking. This must work even if \$libdir does
10896# not exist.
10897hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10898
10899# Whether we need a single -rpath flag with a separated argument.
10900hardcode_libdir_separator=$lt_hardcode_libdir_separato