source: trunk/configure @ 38

Last change on this file since 38 was 38, checked in by awalther, 10 years ago

change AUTOMAKE_OPTIONS to foreign to avoid error

File size: 733.6 KB
Line 
1#! /bin/sh
2# From configure.ac Revision: 34 .
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@list.coin-or.org>.
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@list.coin-or.org'
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: -O2)
1523  --with-cxxflags=FLAGS   use CXXFLAGS=FLAGS (default: -O2)
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@list.coin-or.org>.
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
2440if test x$CFLAGS == x ; then
2441    ac_shell_cflags="not_set"
2442else
2443    ac_shell_cflags="$CFLAGS"
2444fi
2445if test x$CXXFLAGS == x ; then
2446    ac_shell_cxxflags="not_set"
2447else
2448    ac_shell_cxxflags="$CXXFLAGS"
2449fi
2450
2451# checks for programs
2452ac_ext=cpp
2453ac_cpp='$CXXCPP $CPPFLAGS'
2454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2457if test -z "$CXX"; then
2458  if test -n "$CCC"; then
2459    CXX=$CCC
2460  else
2461    if test -n "$ac_tool_prefix"; then
2462  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2463  do
2464    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2466{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2468if test "${ac_cv_prog_CXX+set}" = set; then
2469  echo $ECHO_N "(cached) $ECHO_C" >&6
2470else
2471  if test -n "$CXX"; then
2472  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2473else
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477  IFS=$as_save_IFS
2478  test -z "$as_dir" && as_dir=.
2479  for ac_exec_ext in '' $ac_executable_extensions; do
2480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2482    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2483    break 2
2484  fi
2485done
2486done
2487IFS=$as_save_IFS
2488
2489fi
2490fi
2491CXX=$ac_cv_prog_CXX
2492if test -n "$CXX"; then
2493  { echo "$as_me:$LINENO: result: $CXX" >&5
2494echo "${ECHO_T}$CXX" >&6; }
2495else
2496  { echo "$as_me:$LINENO: result: no" >&5
2497echo "${ECHO_T}no" >&6; }
2498fi
2499
2500
2501    test -n "$CXX" && break
2502  done
2503fi
2504if test -z "$CXX"; then
2505  ac_ct_CXX=$CXX
2506  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2507do
2508  # Extract the first word of "$ac_prog", so it can be a program name with args.
2509set dummy $ac_prog; ac_word=$2
2510{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2513  echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515  if test -n "$ac_ct_CXX"; then
2516  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2517else
2518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2519for as_dir in $PATH
2520do
2521  IFS=$as_save_IFS
2522  test -z "$as_dir" && as_dir=.
2523  for ac_exec_ext in '' $ac_executable_extensions; do
2524  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525    ac_cv_prog_ac_ct_CXX="$ac_prog"
2526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527    break 2
2528  fi
2529done
2530done
2531IFS=$as_save_IFS
2532
2533fi
2534fi
2535ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2536if test -n "$ac_ct_CXX"; then
2537  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2538echo "${ECHO_T}$ac_ct_CXX" >&6; }
2539else
2540  { echo "$as_me:$LINENO: result: no" >&5
2541echo "${ECHO_T}no" >&6; }
2542fi
2543
2544
2545  test -n "$ac_ct_CXX" && break
2546done
2547
2548  if test "x$ac_ct_CXX" = x; then
2549    CXX="g++"
2550  else
2551    case $cross_compiling:$ac_tool_warned in
2552yes:)
2553{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2554whose name does not start with the host triplet.  If you think this
2555configuration is useful to you, please write to autoconf@gnu.org." >&5
2556echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2557whose name does not start with the host triplet.  If you think this
2558configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2559ac_tool_warned=yes ;;
2560esac
2561    CXX=$ac_ct_CXX
2562  fi
2563fi
2564
2565  fi
2566fi
2567# Provide some information about the compiler.
2568echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2569ac_compiler=`set X $ac_compile; echo $2`
2570{ (ac_try="$ac_compiler --version >&5"
2571case "(($ac_try" in
2572  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573  *) ac_try_echo=$ac_try;;
2574esac
2575eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2576  (eval "$ac_compiler --version >&5") 2>&5
2577  ac_status=$?
2578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579  (exit $ac_status); }
2580{ (ac_try="$ac_compiler -v >&5"
2581case "(($ac_try" in
2582  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2583  *) ac_try_echo=$ac_try;;
2584esac
2585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2586  (eval "$ac_compiler -v >&5") 2>&5
2587  ac_status=$?
2588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589  (exit $ac_status); }
2590{ (ac_try="$ac_compiler -V >&5"
2591case "(($ac_try" in
2592  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593  *) ac_try_echo=$ac_try;;
2594esac
2595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596  (eval "$ac_compiler -V >&5") 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }
2600
2601cat >conftest.$ac_ext <<_ACEOF
2602/* confdefs.h.  */
2603_ACEOF
2604cat confdefs.h >>conftest.$ac_ext
2605cat >>conftest.$ac_ext <<_ACEOF
2606/* end confdefs.h.  */
2607
2608int
2609main ()
2610{
2611
2612  ;
2613  return 0;
2614}
2615_ACEOF
2616ac_clean_files_save=$ac_clean_files
2617ac_clean_files="$ac_clean_files a.out a.exe b.out"
2618# Try to create an executable without -o first, disregard a.out.
2619# It will help us diagnose broken compilers, and finding out an intuition
2620# of exeext.
2621{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2622echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2623ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2624#
2625# List of possible output files, starting from the most likely.
2626# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2627# only as a last resort.  b.out is created by i960 compilers.
2628ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2629#
2630# The IRIX 6 linker writes into existing files which may not be
2631# executable, retaining their permissions.  Remove them first so a
2632# subsequent execution test works.
2633ac_rmfiles=
2634for ac_file in $ac_files
2635do
2636  case $ac_file in
2637    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2638    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2639  esac
2640done
2641rm -f $ac_rmfiles
2642
2643if { (ac_try="$ac_link_default"
2644case "(($ac_try" in
2645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2646  *) ac_try_echo=$ac_try;;
2647esac
2648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649  (eval "$ac_link_default") 2>&5
2650  ac_status=$?
2651  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652  (exit $ac_status); }; then
2653  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2654# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2655# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2656# so that the user can short-circuit this test for compilers unknown to
2657# Autoconf.
2658for ac_file in $ac_files ''
2659do
2660  test -f "$ac_file" || continue
2661  case $ac_file in
2662    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2663        ;;
2664    [ab].out )
2665        # We found the default executable, but exeext='' is most
2666        # certainly right.
2667        break;;
2668    *.* )
2669        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2670        then :; else
2671           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2672        fi
2673        # We set ac_cv_exeext here because the later test for it is not
2674        # safe: cross compilers may not add the suffix if given an `-o'
2675        # argument, so we may need to know it at that point already.
2676        # Even if this section looks crufty: it has the advantage of
2677        # actually working.
2678        break;;
2679    * )
2680        break;;
2681  esac
2682done
2683test "$ac_cv_exeext" = no && ac_cv_exeext=
2684
2685else
2686  ac_file=''
2687fi
2688
2689{ echo "$as_me:$LINENO: result: $ac_file" >&5
2690echo "${ECHO_T}$ac_file" >&6; }
2691if test -z "$ac_file"; then
2692  echo "$as_me: failed program was:" >&5
2693sed 's/^/| /' conftest.$ac_ext >&5
2694
2695{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2696See \`config.log' for more details." >&5
2697echo "$as_me: error: C++ compiler cannot create executables
2698See \`config.log' for more details." >&2;}
2699   { (exit 77); exit 77; }; }
2700fi
2701
2702ac_exeext=$ac_cv_exeext
2703
2704# Check that the compiler produces executables we can run.  If not, either
2705# the compiler is broken, or we cross compile.
2706{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2707echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2708# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2709# If not cross compiling, check that we can run a simple program.
2710if test "$cross_compiling" != yes; then
2711  if { ac_try='./$ac_file'
2712  { (case "(($ac_try" in
2713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714  *) ac_try_echo=$ac_try;;
2715esac
2716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717  (eval "$ac_try") 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; }; then
2721    cross_compiling=no
2722  else
2723    if test "$cross_compiling" = maybe; then
2724        cross_compiling=yes
2725    else
2726        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2727If you meant to cross compile, use \`--host'.
2728See \`config.log' for more details." >&5
2729echo "$as_me: error: cannot run C++ compiled programs.
2730If you meant to cross compile, use \`--host'.
2731See \`config.log' for more details." >&2;}
2732   { (exit 1); exit 1; }; }
2733    fi
2734  fi
2735fi
2736{ echo "$as_me:$LINENO: result: yes" >&5
2737echo "${ECHO_T}yes" >&6; }
2738
2739rm -f a.out a.exe conftest$ac_cv_exeext b.out
2740ac_clean_files=$ac_clean_files_save
2741# Check that the compiler produces executables we can run.  If not, either
2742# the compiler is broken, or we cross compile.
2743{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2744echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2745{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2746echo "${ECHO_T}$cross_compiling" >&6; }
2747
2748{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2749echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2750if { (ac_try="$ac_link"
2751case "(($ac_try" in
2752  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2753  *) ac_try_echo=$ac_try;;
2754esac
2755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2756  (eval "$ac_link") 2>&5
2757  ac_status=$?
2758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759  (exit $ac_status); }; then
2760  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2761# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2762# work properly (i.e., refer to `conftest.exe'), while it won't with
2763# `rm'.
2764for ac_file in conftest.exe conftest conftest.*; do
2765  test -f "$ac_file" || continue
2766  case $ac_file in
2767    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2768    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769          break;;
2770    * ) break;;
2771  esac
2772done
2773else
2774  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2775See \`config.log' for more details." >&5
2776echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2777See \`config.log' for more details." >&2;}
2778   { (exit 1); exit 1; }; }
2779fi
2780
2781rm -f conftest$ac_cv_exeext
2782{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2783echo "${ECHO_T}$ac_cv_exeext" >&6; }
2784
2785rm -f conftest.$ac_ext
2786EXEEXT=$ac_cv_exeext
2787ac_exeext=$EXEEXT
2788{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2789echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2790if test "${ac_cv_objext+set}" = set; then
2791  echo $ECHO_N "(cached) $ECHO_C" >&6
2792else
2793  cat >conftest.$ac_ext <<_ACEOF
2794/* confdefs.h.  */
2795_ACEOF
2796cat confdefs.h >>conftest.$ac_ext
2797cat >>conftest.$ac_ext <<_ACEOF
2798/* end confdefs.h.  */
2799
2800int
2801main ()
2802{
2803
2804  ;
2805  return 0;
2806}
2807_ACEOF
2808rm -f conftest.o conftest.obj
2809if { (ac_try="$ac_compile"
2810case "(($ac_try" in
2811  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812  *) ac_try_echo=$ac_try;;
2813esac
2814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815  (eval "$ac_compile") 2>&5
2816  ac_status=$?
2817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818  (exit $ac_status); }; then
2819  for ac_file in conftest.o conftest.obj conftest.*; do
2820  test -f "$ac_file" || continue;
2821  case $ac_file in
2822    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2823    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2824       break;;
2825  esac
2826done
2827else
2828  echo "$as_me: failed program was:" >&5
2829sed 's/^/| /' conftest.$ac_ext >&5
2830
2831{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2832See \`config.log' for more details." >&5
2833echo "$as_me: error: cannot compute suffix of object files: cannot compile
2834See \`config.log' for more details." >&2;}
2835   { (exit 1); exit 1; }; }
2836fi
2837
2838rm -f conftest.$ac_cv_objext conftest.$ac_ext
2839fi
2840{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2841echo "${ECHO_T}$ac_cv_objext" >&6; }
2842OBJEXT=$ac_cv_objext
2843ac_objext=$OBJEXT
2844{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2845echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2846if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2847  echo $ECHO_N "(cached) $ECHO_C" >&6
2848else
2849  cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h.  */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h.  */
2855
2856int
2857main ()
2858{
2859#ifndef __GNUC__
2860       choke me
2861#endif
2862
2863  ;
2864  return 0;
2865}
2866_ACEOF
2867rm -f conftest.$ac_objext
2868if { (ac_try="$ac_compile"
2869case "(($ac_try" in
2870  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871  *) ac_try_echo=$ac_try;;
2872esac
2873eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874  (eval "$ac_compile") 2>conftest.er1
2875  ac_status=$?
2876  grep -v '^ *+' conftest.er1 >conftest.err
2877  rm -f conftest.er1
2878  cat conftest.err >&5
2879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880  (exit $ac_status); } && {
2881         test -z "$ac_cxx_werror_flag" ||
2882         test ! -s conftest.err
2883       } && test -s conftest.$ac_objext; then
2884  ac_compiler_gnu=yes
2885else
2886  echo "$as_me: failed program was:" >&5
2887sed 's/^/| /' conftest.$ac_ext >&5
2888
2889        ac_compiler_gnu=no
2890fi
2891
2892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2894
2895fi
2896{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2897echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2898GXX=`test $ac_compiler_gnu = yes && echo yes`
2899ac_test_CXXFLAGS=${CXXFLAGS+set}
2900ac_save_CXXFLAGS=$CXXFLAGS
2901{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2902echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2903if test "${ac_cv_prog_cxx_g+set}" = set; then
2904  echo $ECHO_N "(cached) $ECHO_C" >&6
2905else
2906  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2907   ac_cxx_werror_flag=yes
2908   ac_cv_prog_cxx_g=no
2909   CXXFLAGS="-g"
2910   cat >conftest.$ac_ext <<_ACEOF
2911/* confdefs.h.  */
2912_ACEOF
2913cat confdefs.h >>conftest.$ac_ext
2914cat >>conftest.$ac_ext <<_ACEOF
2915/* end confdefs.h.  */
2916
2917int
2918main ()
2919{
2920
2921  ;
2922  return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext
2926if { (ac_try="$ac_compile"
2927case "(($ac_try" in
2928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929  *) ac_try_echo=$ac_try;;
2930esac
2931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2932  (eval "$ac_compile") 2>conftest.er1
2933  ac_status=$?
2934  grep -v '^ *+' conftest.er1 >conftest.err
2935  rm -f conftest.er1
2936  cat conftest.err >&5
2937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938  (exit $ac_status); } && {
2939         test -z "$ac_cxx_werror_flag" ||
2940         test ! -s conftest.err
2941       } && test -s conftest.$ac_objext; then
2942  ac_cv_prog_cxx_g=yes
2943else
2944  echo "$as_me: failed program was:" >&5
2945sed 's/^/| /' conftest.$ac_ext >&5
2946
2947        CXXFLAGS=""
2948      cat >conftest.$ac_ext <<_ACEOF
2949/* confdefs.h.  */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
2953/* end confdefs.h.  */
2954
2955int
2956main ()
2957{
2958
2959  ;
2960  return 0;
2961}
2962_ACEOF
2963rm -f conftest.$ac_objext
2964if { (ac_try="$ac_compile"
2965case "(($ac_try" in
2966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967  *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970  (eval "$ac_compile") 2>conftest.er1
2971  ac_status=$?
2972  grep -v '^ *+' conftest.er1 >conftest.err
2973  rm -f conftest.er1
2974  cat conftest.err >&5
2975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976  (exit $ac_status); } && {
2977         test -z "$ac_cxx_werror_flag" ||
2978         test ! -s conftest.err
2979       } && test -s conftest.$ac_objext; then
2980  :
2981else
2982  echo "$as_me: failed program was:" >&5
2983sed 's/^/| /' conftest.$ac_ext >&5
2984
2985        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2986         CXXFLAGS="-g"
2987         cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h.  */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h.  */
2993
2994int
2995main ()
2996{
2997
2998  ;
2999  return 0;
3000}
3001_ACEOF
3002rm -f conftest.$ac_objext
3003if { (ac_try="$ac_compile"
3004case "(($ac_try" in
3005  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006  *) ac_try_echo=$ac_try;;
3007esac
3008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009  (eval "$ac_compile") 2>conftest.er1
3010  ac_status=$?
3011  grep -v '^ *+' conftest.er1 >conftest.err
3012  rm -f conftest.er1
3013  cat conftest.err >&5
3014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015  (exit $ac_status); } && {
3016         test -z "$ac_cxx_werror_flag" ||
3017         test ! -s conftest.err
3018       } && test -s conftest.$ac_objext; then
3019  ac_cv_prog_cxx_g=yes
3020else
3021  echo "$as_me: failed program was:" >&5
3022sed 's/^/| /' conftest.$ac_ext >&5
3023
3024
3025fi
3026
3027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3028fi
3029
3030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3031fi
3032
3033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3034   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3035fi
3036{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3037echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3038if test "$ac_test_CXXFLAGS" = set; then
3039  CXXFLAGS=$ac_save_CXXFLAGS
3040elif test $ac_cv_prog_cxx_g = yes; then
3041  if test "$GXX" = yes; then
3042    CXXFLAGS="-g -O2"
3043  else
3044    CXXFLAGS="-g"
3045  fi
3046else
3047  if test "$GXX" = yes; then
3048    CXXFLAGS="-O2"
3049  else
3050    CXXFLAGS=
3051  fi
3052fi
3053ac_ext=c
3054ac_cpp='$CPP $CPPFLAGS'
3055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3057ac_compiler_gnu=$ac_cv_c_compiler_gnu
3058DEPDIR="${am__leading_dot}deps"
3059
3060ac_config_commands="$ac_config_commands depfiles"
3061
3062
3063am_make=${MAKE-make}
3064cat > confinc << 'END'
3065am__doit:
3066        @echo done
3067.PHONY: am__doit
3068END
3069# If we don't find an include directive, just comment out the code.
3070{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3071echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3072am__include="#"
3073am__quote=
3074_am_result=none
3075# First try GNU make style include.
3076echo "include confinc" > confmf
3077# We grep out `Entering directory' and `Leaving directory'
3078# messages which can occur if `w' ends up in MAKEFLAGS.
3079# In particular we don't look at `^make:' because GNU make might
3080# be invoked under some other name (usually "gmake"), in which
3081# case it prints its new name instead of `make'.
3082if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3083   am__include=include
3084   am__quote=
3085   _am_result=GNU
3086fi
3087# Now try BSD make style include.
3088if test "$am__include" = "#"; then
3089   echo '.include "confinc"' > confmf
3090   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3091      am__include=.include
3092      am__quote="\""
3093      _am_result=BSD
3094   fi
3095fi
3096
3097
3098{ echo "$as_me:$LINENO: result: $_am_result" >&5
3099echo "${ECHO_T}$_am_result" >&6; }
3100rm -f confinc confmf
3101
3102# Check whether --enable-dependency-tracking was given.
3103if test "${enable_dependency_tracking+set}" = set; then
3104  enableval=$enable_dependency_tracking;
3105fi
3106
3107if test "x$enable_dependency_tracking" != xno; then
3108  am_depcomp="$ac_aux_dir/depcomp"
3109  AMDEPBACKSLASH='\'
3110fi
3111
3112
3113if test "x$enable_dependency_tracking" != xno; then
3114  AMDEP_TRUE=
3115  AMDEP_FALSE='#'
3116else
3117  AMDEP_TRUE='#'
3118  AMDEP_FALSE=
3119fi
3120
3121
3122
3123
3124depcc="$CXX"  am_compiler_list=
3125
3126{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3127echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3128if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3129  echo $ECHO_N "(cached) $ECHO_C" >&6
3130else
3131  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3132  # We make a subdir and do the tests there.  Otherwise we can end up
3133  # making bogus files that we don't know about and never remove.  For
3134  # instance it was reported that on HP-UX the gcc test will end up
3135  # making a dummy file named `D' -- because `-MD' means `put the output
3136  # in D'.
3137  mkdir conftest.dir
3138  # Copy depcomp to subdir because otherwise we won't find it if we're
3139  # using a relative directory.
3140  cp "$am_depcomp" conftest.dir
3141  cd conftest.dir
3142  # We will build objects and dependencies in a subdirectory because
3143  # it helps to detect inapplicable dependency modes.  For instance
3144  # both Tru64's cc and ICC support -MD to output dependencies as a
3145  # side effect of compilation, but ICC will put the dependencies in
3146  # the current directory while Tru64 will put them in the object
3147  # directory.
3148  mkdir sub
3149
3150  am_cv_CXX_dependencies_compiler_type=none
3151  if test "$am_compiler_list" = ""; then
3152     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3153  fi
3154  for depmode in $am_compiler_list; do
3155    # Setup a source with many dependencies, because some compilers
3156    # like to wrap large dependency lists on column 80 (with \), and
3157    # we should not choose a depcomp mode which is confused by this.
3158    #
3159    # We need to recreate these files for each test, as the compiler may
3160    # overwrite some of them when testing with obscure command lines.
3161    # This happens at least with the AIX C compiler.
3162    : > sub/conftest.c
3163    for i in 1 2 3 4 5 6; do
3164      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3165      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3166      # Solaris 8's {/usr,}/bin/sh.
3167      touch sub/conftst$i.h
3168    done
3169    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3170
3171    case $depmode in
3172    nosideeffect)
3173      # after this tag, mechanisms are not by side-effect, so they'll
3174      # only be used when explicitly requested
3175      if test "x$enable_dependency_tracking" = xyes; then
3176        continue
3177      else
3178        break
3179      fi
3180      ;;
3181    none) break ;;
3182    esac
3183    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3184    # mode.  It turns out that the SunPro C++ compiler does not properly
3185    # handle `-M -o', and we need to detect this.
3186    if depmode=$depmode \
3187       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3188       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3189       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3190         >/dev/null 2>conftest.err &&
3191       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3192       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3193       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3194      # icc doesn't choke on unknown options, it will just issue warnings
3195      # or remarks (even with -Werror).  So we grep stderr for any message
3196      # that says an option was ignored or not supported.
3197      # When given -MP, icc 7.0 and 7.1 complain thusly:
3198      #   icc: Command line warning: ignoring option '-M'; no argument required
3199      # The diagnosis changed in icc 8.0:
3200      #   icc: Command line remark: option '-MP' not supported
3201      if (grep 'ignoring option' conftest.err ||
3202          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3203        am_cv_CXX_dependencies_compiler_type=$depmode
3204        break
3205      fi
3206    fi
3207  done
3208
3209  cd ..
3210  rm -rf conftest.dir
3211else
3212  am_cv_CXX_dependencies_compiler_type=none
3213fi
3214
3215fi
3216{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3217echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3218CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3219
3220
3221
3222if
3223  test "x$enable_dependency_tracking" != xno \
3224  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3225  am__fastdepCXX_TRUE=
3226  am__fastdepCXX_FALSE='#'
3227else
3228  am__fastdepCXX_TRUE='#'
3229  am__fastdepCXX_FALSE=
3230fi
3231
3232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238if test -n "$ac_tool_prefix"; then
3239  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3240set dummy ${ac_tool_prefix}gcc; ac_word=$2
3241{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3243if test "${ac_cv_prog_CC+set}" = set; then
3244  echo $ECHO_N "(cached) $ECHO_C" >&6
3245else
3246  if test -n "$CC"; then
3247  ac_cv_prog_CC="$CC" # Let the user override the test.
3248else
3249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250for as_dir in $PATH
3251do
3252  IFS=$as_save_IFS
3253  test -z "$as_dir" && as_dir=.
3254  for ac_exec_ext in '' $ac_executable_extensions; do
3255  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3256    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3257    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3258    break 2
3259  fi
3260done
3261done
3262IFS=$as_save_IFS
3263
3264fi
3265fi
3266CC=$ac_cv_prog_CC
3267if test -n "$CC"; then
3268  { echo "$as_me:$LINENO: result: $CC" >&5
3269echo "${ECHO_T}$CC" >&6; }
3270else
3271  { echo "$as_me:$LINENO: result: no" >&5
3272echo "${ECHO_T}no" >&6; }
3273fi
3274
3275
3276fi
3277if test -z "$ac_cv_prog_CC"; then
3278  ac_ct_CC=$CC
3279  # Extract the first word of "gcc", so it can be a program name with args.
3280set dummy gcc; ac_word=$2
3281{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3284  echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286  if test -n "$ac_ct_CC"; then
3287  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292  IFS=$as_save_IFS
3293  test -z "$as_dir" && as_dir=.
3294  for ac_exec_ext in '' $ac_executable_extensions; do
3295  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296    ac_cv_prog_ac_ct_CC="gcc"
3297    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298    break 2
3299  fi
3300done
3301done
3302IFS=$as_save_IFS
3303
3304fi
3305fi
3306ac_ct_CC=$ac_cv_prog_ac_ct_CC
3307if test -n "$ac_ct_CC"; then
3308  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3309echo "${ECHO_T}$ac_ct_CC" >&6; }
3310else
3311  { echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6; }
3313fi
3314
3315  if test "x$ac_ct_CC" = x; then
3316    CC=""
3317  else
3318    case $cross_compiling:$ac_tool_warned in
3319yes:)
3320{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3321whose name does not start with the host triplet.  If you think this
3322configuration is useful to you, please write to autoconf@gnu.org." >&5
3323echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3324whose name does not start with the host triplet.  If you think this
3325configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3326ac_tool_warned=yes ;;
3327esac
3328    CC=$ac_ct_CC
3329  fi
3330else
3331  CC="$ac_cv_prog_CC"
3332fi
3333
3334if test -z "$CC"; then
3335          if test -n "$ac_tool_prefix"; then
3336    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3337set dummy ${ac_tool_prefix}cc; ac_word=$2
3338{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3340if test "${ac_cv_prog_CC+set}" = set; then
3341  echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343  if test -n "$CC"; then
3344  ac_cv_prog_CC="$CC" # Let the user override the test.
3345else
3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349  IFS=$as_save_IFS
3350  test -z "$as_dir" && as_dir=.
3351  for ac_exec_ext in '' $ac_executable_extensions; do
3352  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3353    ac_cv_prog_CC="${ac_tool_prefix}cc"
3354    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3355    break 2
3356  fi
3357done
3358done
3359IFS=$as_save_IFS
3360
3361fi
3362fi
3363CC=$ac_cv_prog_CC
3364if test -n "$CC"; then
3365  { echo "$as_me:$LINENO: result: $CC" >&5
3366echo "${ECHO_T}$CC" >&6; }
3367else
3368  { echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6; }
3370fi
3371
3372
3373  fi
3374fi
3375if test -z "$CC"; then
3376  # Extract the first word of "cc", so it can be a program name with args.
3377set dummy cc; ac_word=$2
3378{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3380if test "${ac_cv_prog_CC+set}" = set; then
3381  echo $ECHO_N "(cached) $ECHO_C" >&6
3382else
3383  if test -n "$CC"; then
3384  ac_cv_prog_CC="$CC" # Let the user override the test.
3385else
3386  ac_prog_rejected=no
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390  IFS=$as_save_IFS
3391  test -z "$as_dir" && as_dir=.
3392  for ac_exec_ext in '' $ac_executable_extensions; do
3393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3395       ac_prog_rejected=yes
3396       continue
3397     fi
3398    ac_cv_prog_CC="cc"
3399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3400    break 2
3401  fi
3402done
3403done
3404IFS=$as_save_IFS
3405
3406if test $ac_prog_rejected = yes; then
3407  # We found a bogon in the path, so make sure we never use it.
3408  set dummy $ac_cv_prog_CC
3409  shift
3410  if test $# != 0; then
3411    # We chose a different compiler from the bogus one.
3412    # However, it has the same basename, so the bogon will be chosen
3413    # first if we set CC to just the basename; use the full file name.
3414    shift
3415    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3416  fi
3417fi
3418fi
3419fi
3420CC=$ac_cv_prog_CC
3421if test -n "$CC"; then
3422  { echo "$as_me:$LINENO: result: $CC" >&5
3423echo "${ECHO_T}$CC" >&6; }
3424else
3425  { echo "$as_me:$LINENO: result: no" >&5
3426echo "${ECHO_T}no" >&6; }
3427fi
3428
3429
3430fi
3431if test -z "$CC"; then
3432  if test -n "$ac_tool_prefix"; then
3433  for ac_prog in cl.exe
3434  do
3435    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3436set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3437{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3439if test "${ac_cv_prog_CC+set}" = set; then
3440  echo $ECHO_N "(cached) $ECHO_C" >&6
3441else
3442  if test -n "$CC"; then
3443  ac_cv_prog_CC="$CC" # Let the user override the test.
3444else
3445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446for as_dir in $PATH
3447do
3448  IFS=$as_save_IFS
3449  test -z "$as_dir" && as_dir=.
3450  for ac_exec_ext in '' $ac_executable_extensions; do
3451  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3452    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3453    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454    break 2
3455  fi
3456done
3457done
3458IFS=$as_save_IFS
3459
3460fi
3461fi
3462CC=$ac_cv_prog_CC
3463if test -n "$CC"; then
3464  { echo "$as_me:$LINENO: result: $CC" >&5
3465echo "${ECHO_T}$CC" >&6; }
3466else
3467  { echo "$as_me:$LINENO: result: no" >&5
3468echo "${ECHO_T}no" >&6; }
3469fi
3470
3471
3472    test -n "$CC" && break
3473  done
3474fi
3475if test -z "$CC"; then
3476  ac_ct_CC=$CC
3477  for ac_prog in cl.exe
3478do
3479  # Extract the first word of "$ac_prog", so it can be a program name with args.
3480set dummy $ac_prog; ac_word=$2
3481{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3482echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3483if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3484  echo $ECHO_N "(cached) $ECHO_C" >&6
3485else
3486  if test -n "$ac_ct_CC"; then
3487  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488else
3489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490for as_dir in $PATH
3491do
3492  IFS=$as_save_IFS
3493  test -z "$as_dir" && as_dir=.
3494  for ac_exec_ext in '' $ac_executable_extensions; do
3495  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496    ac_cv_prog_ac_ct_CC="$ac_prog"
3497    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498    break 2
3499  fi
3500done
3501done
3502IFS=$as_save_IFS
3503
3504fi
3505fi
3506ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507if test -n "$ac_ct_CC"; then
3508  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3509echo "${ECHO_T}$ac_ct_CC" >&6; }
3510else
3511  { echo "$as_me:$LINENO: result: no" >&5
3512echo "${ECHO_T}no" >&6; }
3513fi
3514
3515
3516  test -n "$ac_ct_CC" && break
3517done
3518
3519  if test "x$ac_ct_CC" = x; then
3520    CC=""
3521  else
3522    case $cross_compiling:$ac_tool_warned in
3523yes:)
3524{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3525whose name does not start with the host triplet.  If you think this
3526configuration is useful to you, please write to autoconf@gnu.org." >&5
3527echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3528whose name does not start with the host triplet.  If you think this
3529configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3530ac_tool_warned=yes ;;
3531esac
3532    CC=$ac_ct_CC
3533  fi
3534fi
3535
3536fi
3537
3538
3539test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3540See \`config.log' for more details." >&5
3541echo "$as_me: error: no acceptable C compiler found in \$PATH
3542See \`config.log' for more details." >&2;}
3543   { (exit 1); exit 1; }; }
3544
3545# Provide some information about the compiler.
3546echo "$as_me:$LINENO: checking for C compiler version" >&5
3547ac_compiler=`set X $ac_compile; echo $2`
3548{ (ac_try="$ac_compiler --version >&5"
3549case "(($ac_try" in
3550  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551  *) ac_try_echo=$ac_try;;
3552esac
3553eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3554  (eval "$ac_compiler --version >&5") 2>&5
3555  ac_status=$?
3556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557  (exit $ac_status); }
3558{ (ac_try="$ac_compiler -v >&5"
3559case "(($ac_try" in
3560  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561  *) ac_try_echo=$ac_try;;
3562esac
3563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564  (eval "$ac_compiler -v >&5") 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }
3568{ (ac_try="$ac_compiler -V >&5"
3569case "(($ac_try" in
3570  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571  *) ac_try_echo=$ac_try;;
3572esac
3573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574  (eval "$ac_compiler -V >&5") 2>&5
3575  ac_status=$?
3576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577  (exit $ac_status); }
3578
3579{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3580echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3581if test "${ac_cv_c_compiler_gnu+set}" = set; then
3582  echo $ECHO_N "(cached) $ECHO_C" >&6
3583else
3584  cat >conftest.$ac_ext <<_ACEOF
3585/* confdefs.h.  */
3586_ACEOF
3587cat confdefs.h >>conftest.$ac_ext
3588cat >>conftest.$ac_ext <<_ACEOF
3589/* end confdefs.h.  */
3590
3591int
3592main ()
3593{
3594#ifndef __GNUC__
3595       choke me
3596#endif
3597
3598  ;
3599  return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext
3603if { (ac_try="$ac_compile"
3604case "(($ac_try" in
3605  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606  *) ac_try_echo=$ac_try;;
3607esac
3608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609  (eval "$ac_compile") 2>conftest.er1
3610  ac_status=$?
3611  grep -v '^ *+' conftest.er1 >conftest.err
3612  rm -f conftest.er1
3613  cat conftest.err >&5
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); } && {
3616         test -z "$ac_c_werror_flag" ||
3617         test ! -s conftest.err
3618       } && test -s conftest.$ac_objext; then
3619  ac_compiler_gnu=yes
3620else
3621  echo "$as_me: failed program was:" >&5
3622sed 's/^/| /' conftest.$ac_ext >&5
3623
3624        ac_compiler_gnu=no
3625fi
3626
3627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3628ac_cv_c_compiler_gnu=$ac_compiler_gnu
3629
3630fi
3631{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3632echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3633GCC=`test $ac_compiler_gnu = yes && echo yes`
3634ac_test_CFLAGS=${CFLAGS+set}
3635ac_save_CFLAGS=$CFLAGS
3636{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3637echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3638if test "${ac_cv_prog_cc_g+set}" = set; then
3639  echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641  ac_save_c_werror_flag=$ac_c_werror_flag
3642   ac_c_werror_flag=yes
3643   ac_cv_prog_cc_g=no
3644   CFLAGS="-g"
3645   cat >conftest.$ac_ext <<_ACEOF
3646/* confdefs.h.  */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h.  */
3651
3652int
3653main ()
3654{
3655
3656  ;
3657  return 0;
3658}
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (ac_try="$ac_compile"
3662case "(($ac_try" in
3663  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664  *) ac_try_echo=$ac_try;;
3665esac
3666eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3667  (eval "$ac_compile") 2>conftest.er1
3668  ac_status=$?
3669  grep -v '^ *+' conftest.er1 >conftest.err
3670  rm -f conftest.er1
3671  cat conftest.err >&5
3672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673  (exit $ac_status); } && {
3674         test -z "$ac_c_werror_flag" ||
3675         test ! -s conftest.err
3676       } && test -s conftest.$ac_objext; then
3677  ac_cv_prog_cc_g=yes
3678else
3679  echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
3682        CFLAGS=""
3683      cat >conftest.$ac_ext <<_ACEOF
3684/* confdefs.h.  */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h.  */
3689
3690int
3691main ()
3692{
3693
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext
3699if { (ac_try="$ac_compile"
3700case "(($ac_try" in
3701  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702  *) ac_try_echo=$ac_try;;
3703esac
3704eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705  (eval "$ac_compile") 2>conftest.er1
3706  ac_status=$?
3707  grep -v '^ *+' conftest.er1 >conftest.err
3708  rm -f conftest.er1
3709  cat conftest.err >&5
3710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711  (exit $ac_status); } && {
3712         test -z "$ac_c_werror_flag" ||
3713         test ! -s conftest.err
3714       } && test -s conftest.$ac_objext; then
3715  :
3716else
3717  echo "$as_me: failed program was:" >&5
3718sed 's/^/| /' conftest.$ac_ext >&5
3719
3720        ac_c_werror_flag=$ac_save_c_werror_flag
3721         CFLAGS="-g"
3722         cat >conftest.$ac_ext <<_ACEOF
3723/* confdefs.h.  */
3724_ACEOF
3725cat confdefs.h >>conftest.$ac_ext
3726cat >>conftest.$ac_ext <<_ACEOF
3727/* end confdefs.h.  */
3728
3729int
3730main ()
3731{
3732
3733  ;
3734  return 0;
3735}
3736_ACEOF
3737rm -f conftest.$ac_objext
3738if { (ac_try="$ac_compile"
3739case "(($ac_try" in
3740  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741  *) ac_try_echo=$ac_try;;
3742esac
3743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3744  (eval "$ac_compile") 2>conftest.er1
3745  ac_status=$?
3746  grep -v '^ *+' conftest.er1 >conftest.err
3747  rm -f conftest.er1
3748  cat conftest.err >&5
3749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750  (exit $ac_status); } && {
3751         test -z "$ac_c_werror_flag" ||
3752         test ! -s conftest.err
3753       } && test -s conftest.$ac_objext; then
3754  ac_cv_prog_cc_g=yes
3755else
3756  echo "$as_me: failed program was:" >&5
3757sed 's/^/| /' conftest.$ac_ext >&5
3758
3759
3760fi
3761
3762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3763fi
3764
3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766fi
3767
3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769   ac_c_werror_flag=$ac_save_c_werror_flag
3770fi
3771{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3772echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3773if test "$ac_test_CFLAGS" = set; then
3774  CFLAGS=$ac_save_CFLAGS
3775elif test $ac_cv_prog_cc_g = yes; then
3776  if test "$GCC" = yes; then
3777    CFLAGS="-g -O2"
3778  else
3779    CFLAGS="-g"
3780  fi
3781else
3782  if test "$GCC" = yes; then
3783    CFLAGS="-O2"
3784  else
3785    CFLAGS=
3786  fi
3787fi
3788{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3789echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3790if test "${ac_cv_prog_cc_c89+set}" = set; then
3791  echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793  ac_cv_prog_cc_c89=no
3794ac_save_CC=$CC
3795cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h.  */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h.  */
3801#include <stdarg.h>
3802#include <stdio.h>
3803#include <sys/types.h>
3804#include <sys/stat.h>
3805/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3806struct buf { int x; };
3807FILE * (*rcsopen) (struct buf *, struct stat *, int);
3808static char *e (p, i)
3809     char **p;
3810     int i;
3811{
3812  return p[i];
3813}
3814static char *f (char * (*g) (char **, int), char **p, ...)
3815{
3816  char *s;
3817  va_list v;
3818  va_start (v,p);
3819  s = g (p, va_arg (v,int));
3820  va_end (v);
3821  return s;
3822}
3823
3824/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3825   function prototypes and stuff, but not '\xHH' hex character constants.
3826   These don't provoke an error unfortunately, instead are silently treated
3827   as 'x'.  The following induces an error, until -std is added to get
3828   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3829   array size at least.  It's necessary to write '\x00'==0 to get something
3830   that's true only with -std.  */
3831int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3832
3833/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3834   inside strings and character constants.  */
3835#define FOO(x) 'x'
3836int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3837
3838int test (int i, double x);
3839struct s1 {int (*f) (int a);};
3840struct s2 {int (*f) (double a);};
3841int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3842int argc;
3843char **argv;
3844int
3845main ()
3846{
3847return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3853        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3854do
3855  CC="$ac_save_CC $ac_arg"
3856  rm -f conftest.$ac_objext
3857if { (ac_try="$ac_compile"
3858case "(($ac_try" in
3859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860  *) ac_try_echo=$ac_try;;
3861esac
3862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863  (eval "$ac_compile") 2>conftest.er1
3864  ac_status=$?
3865  grep -v '^ *+' conftest.er1 >conftest.err
3866  rm -f conftest.er1
3867  cat conftest.err >&5
3868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869  (exit $ac_status); } && {
3870         test -z "$ac_c_werror_flag" ||
3871         test ! -s conftest.err
3872       } && test -s conftest.$ac_objext; then
3873  ac_cv_prog_cc_c89=$ac_arg
3874else
3875  echo "$as_me: failed program was:" >&5
3876sed 's/^/| /' conftest.$ac_ext >&5
3877
3878
3879fi
3880
3881rm -f core conftest.err conftest.$ac_objext
3882  test "x$ac_cv_prog_cc_c89" != "xno" && break
3883done
3884rm -f conftest.$ac_ext
3885CC=$ac_save_CC
3886
3887fi
3888# AC_CACHE_VAL
3889case "x$ac_cv_prog_cc_c89" in
3890  x)
3891    { echo "$as_me:$LINENO: result: none needed" >&5
3892echo "${ECHO_T}none needed" >&6; } ;;
3893  xno)
3894    { echo "$as_me:$LINENO: result: unsupported" >&5
3895echo "${ECHO_T}unsupported" >&6; } ;;
3896  *)
3897    CC="$CC $ac_cv_prog_cc_c89"
3898    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3899echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3900esac
3901
3902
3903ac_ext=c
3904ac_cpp='$CPP $CPPFLAGS'
3905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3907ac_compiler_gnu=$ac_cv_c_compiler_gnu
3908
3909depcc="$CC"   am_compiler_list=
3910
3911{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3912echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3913if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3914  echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3917  # We make a subdir and do the tests there.  Otherwise we can end up
3918  # making bogus files that we don't know about and never remove.  For
3919  # instance it was reported that on HP-UX the gcc test will end up
3920  # making a dummy file named `D' -- because `-MD' means `put the output
3921  # in D'.
3922  mkdir conftest.dir
3923  # Copy depcomp to subdir because otherwise we won't find it if we're
3924  # using a relative directory.
3925  cp "$am_depcomp" conftest.dir
3926  cd conftest.dir
3927  # We will build objects and dependencies in a subdirectory because
3928  # it helps to detect inapplicable dependency modes.  For instance
3929  # both Tru64's cc and ICC support -MD to output dependencies as a
3930  # side effect of compilation, but ICC will put the dependencies in
3931  # the current directory while Tru64 will put them in the object
3932  # directory.
3933  mkdir sub
3934
3935  am_cv_CC_dependencies_compiler_type=none
3936  if test "$am_compiler_list" = ""; then
3937     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3938  fi
3939  for depmode in $am_compiler_list; do
3940    # Setup a source with many dependencies, because some compilers
3941    # like to wrap large dependency lists on column 80 (with \), and
3942    # we should not choose a depcomp mode which is confused by this.
3943    #
3944    # We need to recreate these files for each test, as the compiler may
3945    # overwrite some of them when testing with obscure command lines.
3946    # This happens at least with the AIX C compiler.
3947    : > sub/conftest.c
3948    for i in 1 2 3 4 5 6; do
3949      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3950      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3951      # Solaris 8's {/usr,}/bin/sh.
3952      touch sub/conftst$i.h
3953    done
3954    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3955
3956    case $depmode in
3957    nosideeffect)
3958      # after this tag, mechanisms are not by side-effect, so they'll
3959      # only be used when explicitly requested
3960      if test "x$enable_dependency_tracking" = xyes; then
3961        continue
3962      else
3963        break
3964      fi
3965      ;;
3966    none) break ;;
3967    esac
3968    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3969    # mode.  It turns out that the SunPro C++ compiler does not properly
3970    # handle `-M -o', and we need to detect this.
3971    if depmode=$depmode \
3972       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3973       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3974       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3975         >/dev/null 2>conftest.err &&
3976       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3977       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3978       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3979      # icc doesn't choke on unknown options, it will just issue warnings
3980      # or remarks (even with -Werror).  So we grep stderr for any message
3981      # that says an option was ignored or not supported.
3982      # When given -MP, icc 7.0 and 7.1 complain thusly:
3983      #   icc: Command line warning: ignoring option '-M'; no argument required
3984      # The diagnosis changed in icc 8.0:
3985      #   icc: Command line remark: option '-MP' not supported
3986      if (grep 'ignoring option' conftest.err ||
3987          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3988        am_cv_CC_dependencies_compiler_type=$depmode
3989        break
3990      fi
3991    fi
3992  done
3993
3994  cd ..
3995  rm -rf conftest.dir
3996else
3997  am_cv_CC_dependencies_compiler_type=none
3998fi
3999
4000fi
4001{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4002echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4003CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4004
4005
4006
4007if
4008  test "x$enable_dependency_tracking" != xno \
4009  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4010  am__fastdepCC_TRUE=
4011  am__fastdepCC_FALSE='#'
4012else
4013  am__fastdepCC_TRUE='#'
4014  am__fastdepCC_FALSE=
4015fi
4016
4017
4018ac_ext=c
4019ac_cpp='$CPP $CPPFLAGS'
4020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4024echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4025# On Suns, sometimes $CPP names a directory.
4026if test -n "$CPP" && test -d "$CPP"; then
4027  CPP=
4028fi
4029if test -z "$CPP"; then
4030  if test "${ac_cv_prog_CPP+set}" = set; then
4031  echo $ECHO_N "(cached) $ECHO_C" >&6
4032else
4033      # Double quotes because CPP needs to be expanded
4034    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4035    do
4036      ac_preproc_ok=false
4037for ac_c_preproc_warn_flag in '' yes
4038do
4039  # Use a header file that comes with gcc, so configuring glibc
4040  # with a fresh cross-compiler works.
4041  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042  # <limits.h> exists even on freestanding compilers.
4043  # On the NeXT, cc -E runs the code through the compiler's parser,
4044  # not just through cpp. "Syntax error" is here to catch this case.
4045  cat >conftest.$ac_ext <<_ACEOF
4046/* confdefs.h.  */
4047_ACEOF
4048cat confdefs.h >>conftest.$ac_ext
4049cat >>conftest.$ac_ext <<_ACEOF
4050/* end confdefs.h.  */
4051#ifdef __STDC__
4052# include <limits.h>
4053#else
4054# include <assert.h>
4055#endif
4056                     Syntax error
4057_ACEOF
4058if { (ac_try="$ac_cpp conftest.$ac_ext"
4059case "(($ac_try" in
4060  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061  *) ac_try_echo=$ac_try;;
4062esac
4063eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4065  ac_status=$?
4066  grep -v '^ *+' conftest.er1 >conftest.err
4067  rm -f conftest.er1
4068  cat conftest.err >&5
4069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070  (exit $ac_status); } >/dev/null && {
4071         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4072         test ! -s conftest.err
4073       }; then
4074  :
4075else
4076  echo "$as_me: failed program was:" >&5
4077sed 's/^/| /' conftest.$ac_ext >&5
4078
4079  # Broken: fails on valid input.
4080continue
4081fi
4082
4083rm -f conftest.err conftest.$ac_ext
4084
4085  # OK, works on sane cases.  Now check whether nonexistent headers
4086  # can be detected and how.
4087  cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h.  */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h.  */
4093#include <ac_nonexistent.h>
4094_ACEOF
4095if { (ac_try="$ac_cpp conftest.$ac_ext"
4096case "(($ac_try" in
4097  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098  *) ac_try_echo=$ac_try;;
4099esac
4100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4102  ac_status=$?
4103  grep -v '^ *+' conftest.er1 >conftest.err
4104  rm -f conftest.er1
4105  cat conftest.err >&5
4106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107  (exit $ac_status); } >/dev/null && {
4108         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4109         test ! -s conftest.err
4110       }; then
4111  # Broken: success on invalid input.
4112continue
4113else
4114  echo "$as_me: failed program was:" >&5
4115sed 's/^/| /' conftest.$ac_ext >&5
4116
4117  # Passes both tests.
4118ac_preproc_ok=:
4119break
4120fi
4121
4122rm -f conftest.err conftest.$ac_ext
4123
4124done
4125# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4126rm -f conftest.err conftest.$ac_ext
4127if $ac_preproc_ok; then
4128  break
4129fi
4130
4131    done
4132    ac_cv_prog_CPP=$CPP
4133
4134fi
4135  CPP=$ac_cv_prog_CPP
4136else
4137  ac_cv_prog_CPP=$CPP
4138fi
4139{ echo "$as_me:$LINENO: result: $CPP" >&5
4140echo "${ECHO_T}$CPP" >&6; }
4141ac_preproc_ok=false
4142for ac_c_preproc_warn_flag in '' yes
4143do
4144  # Use a header file that comes with gcc, so configuring glibc
4145  # with a fresh cross-compiler works.
4146  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4147  # <limits.h> exists even on freestanding compilers.
4148  # On the NeXT, cc -E runs the code through the compiler's parser,
4149  # not just through cpp. "Syntax error" is here to catch this case.
4150  cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h.  */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h.  */
4156#ifdef __STDC__
4157# include <limits.h>
4158#else
4159# include <assert.h>
4160#endif
4161                     Syntax error
4162_ACEOF
4163if { (ac_try="$ac_cpp conftest.$ac_ext"
4164case "(($ac_try" in
4165  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166  *) ac_try_echo=$ac_try;;
4167esac
4168eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4169  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4170  ac_status=$?
4171  grep -v '^ *+' conftest.er1 >conftest.err
4172  rm -f conftest.er1
4173  cat conftest.err >&5
4174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175  (exit $ac_status); } >/dev/null && {
4176         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4177         test ! -s conftest.err
4178       }; then
4179  :
4180else
4181  echo "$as_me: failed program was:" >&5
4182sed 's/^/| /' conftest.$ac_ext >&5
4183
4184  # Broken: fails on valid input.
4185continue
4186fi
4187
4188rm -f conftest.err conftest.$ac_ext
4189
4190  # OK, works on sane cases.  Now check whether nonexistent headers
4191  # can be detected and how.
4192  cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h.  */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
4197/* end confdefs.h.  */
4198#include <ac_nonexistent.h>
4199_ACEOF
4200if { (ac_try="$ac_cpp conftest.$ac_ext"
4201case "(($ac_try" in
4202  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203  *) ac_try_echo=$ac_try;;
4204esac
4205eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4206  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4207  ac_status=$?
4208  grep -v '^ *+' conftest.er1 >conftest.err
4209  rm -f conftest.er1
4210  cat conftest.err >&5
4211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212  (exit $ac_status); } >/dev/null && {
4213         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4214         test ! -s conftest.err
4215       }; then
4216  # Broken: success on invalid input.
4217continue
4218else
4219  echo "$as_me: failed program was:" >&5
4220sed 's/^/| /' conftest.$ac_ext >&5
4221
4222  # Passes both tests.
4223ac_preproc_ok=:
4224break
4225fi
4226
4227rm -f conftest.err conftest.$ac_ext
4228
4229done
4230# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4231rm -f conftest.err conftest.$ac_ext
4232if $ac_preproc_ok; then
4233  :
4234else
4235  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4236See \`config.log' for more details." >&5
4237echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4238See \`config.log' for more details." >&2;}
4239   { (exit 1); exit 1; }; }
4240fi
4241
4242ac_ext=c
4243ac_cpp='$CPP $CPPFLAGS'
4244ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248# Find a good install program.  We prefer a C program (faster),
4249# so one script is as good as another.  But avoid the broken or
4250# incompatible versions:
4251# SysV /etc/install, /usr/sbin/install
4252# SunOS /usr/etc/install
4253# IRIX /sbin/install
4254# AIX /bin/install
4255# AmigaOS /C/install, which installs bootblocks on floppy discs
4256# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4257# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4258# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4259# OS/2's system install, which has a completely different semantic
4260# ./install, which can be erroneously created by make from ./install.sh.
4261{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4262echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4263if test -z "$INSTALL"; then
4264if test "${ac_cv_path_install+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270  IFS=$as_save_IFS
4271  test -z "$as_dir" && as_dir=.
4272  # Account for people who put trailing slashes in PATH elements.
4273case $as_dir/ in
4274  ./ | .// | /cC/* | \
4275  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4276  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4277  /usr/ucb/* ) ;;
4278  *)
4279    # OSF1 and SCO ODT 3.0 have their own names for install.
4280    # Don't use installbsd from OSF since it installs stuff as root
4281    # by default.
4282    for ac_prog in ginstall scoinst install; do
4283      for ac_exec_ext in '' $ac_executable_extensions; do
4284        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4285          if test $ac_prog = install &&
4286            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287            # AIX install.  It has an incompatible calling convention.
4288            :
4289          elif test $ac_prog = install &&
4290            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4291            # program-specific install script used by HP pwplus--don't use.
4292            :
4293          else
4294            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4295            break 3
4296          fi
4297        fi
4298      done
4299    done
4300    ;;
4301esac
4302done
4303IFS=$as_save_IFS
4304
4305
4306fi
4307  if test "${ac_cv_path_install+set}" = set; then
4308    INSTALL=$ac_cv_path_install
4309  else
4310    # As a last resort, use the slow shell script.  Don't cache a
4311    # value for INSTALL within a source directory, because that will
4312    # break other packages using the cache if that directory is
4313    # removed, or if the value is a relative name.
4314    INSTALL=$ac_install_sh
4315  fi
4316fi
4317{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4318echo "${ECHO_T}$INSTALL" >&6; }
4319
4320# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4321# It thinks the first close brace ends the variable substitution.
4322test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4323
4324test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4325
4326test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4327
4328{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4329echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4330LN_S=$as_ln_s
4331if test "$LN_S" = "ln -s"; then
4332  { echo "$as_me:$LINENO: result: yes" >&5
4333echo "${ECHO_T}yes" >&6; }
4334else
4335  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4336echo "${ECHO_T}no, using $LN_S" >&6; }
4337fi
4338
4339{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4340echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4341set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4342if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4343  echo $ECHO_N "(cached) $ECHO_C" >&6
4344else
4345  cat >conftest.make <<\_ACEOF
4346SHELL = /bin/sh
4347all:
4348        @echo '@@@%%%=$(MAKE)=@@@%%%'
4349_ACEOF
4350# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4351case `${MAKE-make} -f conftest.make 2>/dev/null` in
4352  *@@@%%%=?*=@@@%%%*)
4353    eval ac_cv_prog_make_${ac_make}_set=yes;;
4354  *)
4355    eval ac_cv_prog_make_${ac_make}_set=no;;
4356esac
4357rm -f conftest.make
4358fi
4359if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4360  { echo "$as_me:$LINENO: result: yes" >&5
4361echo "${ECHO_T}yes" >&6; }
4362  SET_MAKE=
4363else
4364  { echo "$as_me:$LINENO: result: no" >&5
4365echo "${ECHO_T}no" >&6; }
4366  SET_MAKE="MAKE=${MAKE-make}"
4367fi
4368
4369if test -n "$ac_tool_prefix"; then
4370  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4371set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4372{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4374if test "${ac_cv_prog_RANLIB+set}" = set; then
4375  echo $ECHO_N "(cached) $ECHO_C" >&6
4376else
4377  if test -n "$RANLIB"; then
4378  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4379else
4380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381for as_dir in $PATH
4382do
4383  IFS=$as_save_IFS
4384  test -z "$as_dir" && as_dir=.
4385  for ac_exec_ext in '' $ac_executable_extensions; do
4386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4388    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389    break 2
4390  fi
4391done
4392done
4393IFS=$as_save_IFS
4394
4395fi
4396fi
4397RANLIB=$ac_cv_prog_RANLIB
4398if test -n "$RANLIB"; then
4399  { echo "$as_me:$LINENO: result: $RANLIB" >&5
4400echo "${ECHO_T}$RANLIB" >&6; }
4401else
4402  { echo "$as_me:$LINENO: result: no" >&5
4403echo "${ECHO_T}no" >&6; }
4404fi
4405
4406
4407fi
4408if test -z "$ac_cv_prog_RANLIB"; then
4409  ac_ct_RANLIB=$RANLIB
4410  # Extract the first word of "ranlib", so it can be a program name with args.
4411set dummy ranlib; ac_word=$2
4412{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4415  echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417  if test -n "$ac_ct_RANLIB"; then
4418  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4419else
4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH
4422do
4423  IFS=$as_save_IFS
4424  test -z "$as_dir" && as_dir=.
4425  for ac_exec_ext in '' $ac_executable_extensions; do
4426  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427    ac_cv_prog_ac_ct_RANLIB="ranlib"
4428    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4429    break 2
4430  fi
4431done
4432done
4433IFS=$as_save_IFS
4434
4435fi
4436fi
4437ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4438if test -n "$ac_ct_RANLIB"; then
4439  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4440echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4441else
4442  { echo "$as_me:$LINENO: result: no" >&5
4443echo "${ECHO_T}no" >&6; }
4444fi
4445
4446  if test "x$ac_ct_RANLIB" = x; then
4447    RANLIB=":"
4448  else
4449    case $cross_compiling:$ac_tool_warned in
4450yes:)
4451{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4452whose name does not start with the host triplet.  If you think this
4453configuration is useful to you, please write to autoconf@gnu.org." >&5
4454echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4455whose name does not start with the host triplet.  If you think this
4456configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4457ac_tool_warned=yes ;;
4458esac
4459    RANLIB=$ac_ct_RANLIB
4460  fi
4461else
4462  RANLIB="$ac_cv_prog_RANLIB"
4463fi
4464
4465
4466
4467# Check whether --enable-shared was given.
4468if test "${enable_shared+set}" = set; then
4469  enableval=$enable_shared; p=${PACKAGE-default}
4470    case $enableval in
4471    yes) enable_shared=yes ;;
4472    no) enable_shared=no ;;
4473    *)
4474      enable_shared=no
4475      # Look at the argument we got.  We use all the common list separators.
4476      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4477      for pkg in $enableval; do
4478        IFS="$lt_save_ifs"
4479        if test "X$pkg" = "X$p"; then
4480          enable_shared=yes
4481        fi
4482      done
4483      IFS="$lt_save_ifs"
4484      ;;
4485    esac
4486else
4487  enable_shared=yes
4488fi
4489
4490
4491# Check whether --enable-static was given.
4492if test "${enable_static+set}" = set; then
4493  enableval=$enable_static; p=${PACKAGE-default}
4494    case $enableval in
4495    yes) enable_static=yes ;;
4496    no) enable_static=no ;;
4497    *)
4498     enable_static=no
4499      # Look at the argument we got.  We use all the common list separators.
4500      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4501      for pkg in $enableval; do
4502        IFS="$lt_save_ifs"
4503        if test "X$pkg" = "X$p"; then
4504          enable_static=yes
4505        fi
4506      done
4507      IFS="$lt_save_ifs"
4508      ;;
4509    esac
4510else
4511  enable_static=yes
4512fi
4513
4514
4515# Check whether --enable-fast-install was given.
4516if test "${enable_fast_install+set}" = set; then
4517  enableval=$enable_fast_install; p=${PACKAGE-default}
4518    case $enableval in
4519    yes) enable_fast_install=yes ;;
4520    no) enable_fast_install=no ;;
4521    *)
4522      enable_fast_install=no
4523      # Look at the argument we got.  We use all the common list separators.
4524      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4525      for pkg in $enableval; do
4526        IFS="$lt_save_ifs"
4527        if test "X$pkg" = "X$p"; then
4528          enable_fast_install=yes
4529        fi
4530      done
4531      IFS="$lt_save_ifs"
4532      ;;
4533    esac
4534else
4535  enable_fast_install=yes
4536fi
4537
4538
4539# Make sure we can run config.sub.
4540$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4541  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4542echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4543   { (exit 1); exit 1; }; }
4544
4545{ echo "$as_me:$LINENO: checking build system type" >&5
4546echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4547if test "${ac_cv_build+set}" = set; then
4548  echo $ECHO_N "(cached) $ECHO_C" >&6
4549else
4550  ac_build_alias=$build_alias
4551test "x$ac_build_alias" = x &&
4552  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4553test "x$ac_build_alias" = x &&
4554  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4555echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4556   { (exit 1); exit 1; }; }
4557ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4558  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4559echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4560   { (exit 1); exit 1; }; }
4561
4562fi
4563{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4564echo "${ECHO_T}$ac_cv_build" >&6; }
4565case $ac_cv_build in
4566*-*-*) ;;
4567*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4568echo "$as_me: error: invalid value of canonical build" >&2;}
4569   { (exit 1); exit 1; }; };;
4570esac
4571build=$ac_cv_build
4572ac_save_IFS=$IFS; IFS='-'
4573set x $ac_cv_build
4574shift
4575build_cpu=$1
4576build_vendor=$2
4577shift; shift
4578# Remember, the first character of IFS is used to create $*,
4579# except with old shells:
4580build_os=$*
4581IFS=$ac_save_IFS
4582case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4583
4584
4585{ echo "$as_me:$LINENO: checking host system type" >&5
4586echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4587if test "${ac_cv_host+set}" = set; then
4588  echo $ECHO_N "(cached) $ECHO_C" >&6
4589else
4590  if test "x$host_alias" = x; then
4591  ac_cv_host=$ac_cv_build
4592else
4593  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4594    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4595echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4596   { (exit 1); exit 1; }; }
4597fi
4598
4599fi
4600{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4601echo "${ECHO_T}$ac_cv_host" >&6; }
4602case $ac_cv_host in
4603*-*-*) ;;
4604*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4605echo "$as_me: error: invalid value of canonical host" >&2;}
4606   { (exit 1); exit 1; }; };;
4607esac
4608host=$ac_cv_host
4609ac_save_IFS=$IFS; IFS='-'
4610set x $ac_cv_host
4611shift
4612host_cpu=$1
4613host_vendor=$2
4614shift; shift
4615# Remember, the first character of IFS is used to create $*,
4616# except with old shells:
4617host_os=$*
4618IFS=$ac_save_IFS
4619case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4620
4621
4622{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4623echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4624if test "${lt_cv_path_SED+set}" = set; then
4625  echo $ECHO_N "(cached) $ECHO_C" >&6
4626else
4627  # Loop through the user's path and test for sed and gsed.
4628# Then use that list of sed's as ones to test for truncation.
4629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632  IFS=$as_save_IFS
4633  test -z "$as_dir" && as_dir=.
4634  for lt_ac_prog in sed gsed; do
4635    for ac_exec_ext in '' $ac_executable_extensions; do
4636      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4637        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4638      fi
4639    done
4640  done
4641done
4642IFS=$as_save_IFS
4643lt_ac_max=0
4644lt_ac_count=0
4645# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4646# along with /bin/sed that truncates output.
4647for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4648  test ! -f $lt_ac_sed && continue
4649  cat /dev/null > conftest.in
4650  lt_ac_count=0
4651  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4652  # Check for GNU sed and select it if it is found.
4653  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4654    lt_cv_path_SED=$lt_ac_sed
4655    break
4656  fi
4657  while true; do
4658    cat conftest.in conftest.in >conftest.tmp
4659    mv conftest.tmp conftest.in
4660    cp conftest.in conftest.nl
4661    echo >>conftest.nl
4662    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4663    cmp -s conftest.out conftest.nl || break
4664    # 10000 chars as input seems more than enough
4665    test $lt_ac_count -gt 10 && break
4666    lt_ac_count=`expr $lt_ac_count + 1`
4667    if test $lt_ac_count -gt $lt_ac_max; then
4668      lt_ac_max=$lt_ac_count
4669      lt_cv_path_SED=$lt_ac_sed
4670    fi
4671  done
4672done
4673
4674fi
4675
4676SED=$lt_cv_path_SED
4677
4678{ echo "$as_me:$LINENO: result: $SED" >&5
4679echo "${ECHO_T}$SED" >&6; }
4680
4681{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4682echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4683if test "${ac_cv_path_GREP+set}" = set; then
4684  echo $ECHO_N "(cached) $ECHO_C" >&6
4685else
4686  # Extract the first word of "grep ggrep" to use in msg output
4687if test -z "$GREP"; then
4688set dummy grep ggrep; ac_prog_name=$2
4689if test "${ac_cv_path_GREP+set}" = set; then
4690  echo $ECHO_N "(cached) $ECHO_C" >&6
4691else
4692  ac_path_GREP_found=false
4693# Loop through the user's path and test for each of PROGNAME-LIST
4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4696do
4697  IFS=$as_save_IFS
4698  test -z "$as_dir" && as_dir=.
4699  for ac_prog in grep ggrep; do
4700  for ac_exec_ext in '' $ac_executable_extensions; do
4701    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4702    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4703    # Check for GNU ac_path_GREP and select it if it is found.
4704  # Check for GNU $ac_path_GREP
4705case `"$ac_path_GREP" --version 2>&1` in
4706*GNU*)
4707  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4708*)
4709  ac_count=0
4710  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4711  while :
4712  do
4713    cat "conftest.in" "conftest.in" >"conftest.tmp"
4714    mv "conftest.tmp" "conftest.in"
4715    cp "conftest.in" "conftest.nl"
4716    echo 'GREP' >> "conftest.nl"
4717    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4718    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4719    ac_count=`expr $ac_count + 1`
4720    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4721      # Best one so far, save it but keep looking for a better one
4722      ac_cv_path_GREP="$ac_path_GREP"
4723      ac_path_GREP_max=$ac_count
4724    fi
4725    # 10*(2^10) chars as input seems more than enough
4726    test $ac_count -gt 10 && break
4727  done
4728  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4729esac
4730
4731
4732    $ac_path_GREP_found && break 3
4733  done
4734done
4735
4736done
4737IFS=$as_save_IFS
4738
4739
4740fi
4741
4742GREP="$ac_cv_path_GREP"
4743if test -z "$GREP"; then
4744  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4745echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4746   { (exit 1); exit 1; }; }
4747fi
4748
4749else
4750  ac_cv_path_GREP=$GREP
4751fi
4752
4753
4754fi
4755{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4756echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4757 GREP="$ac_cv_path_GREP"
4758
4759
4760{ echo "$as_me:$LINENO: checking for egrep" >&5
4761echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4762if test "${ac_cv_path_EGREP+set}" = set; then
4763  echo $ECHO_N "(cached) $ECHO_C" >&6
4764else
4765  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4766   then ac_cv_path_EGREP="$GREP -E"
4767   else
4768     # Extract the first word of "egrep" to use in msg output
4769if test -z "$EGREP"; then
4770set dummy egrep; ac_prog_name=$2
4771if test "${ac_cv_path_EGREP+set}" = set; then
4772  echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774  ac_path_EGREP_found=false
4775# Loop through the user's path and test for each of PROGNAME-LIST
4776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4778do
4779  IFS=$as_save_IFS
4780  test -z "$as_dir" && as_dir=.
4781  for ac_prog in egrep; do
4782  for ac_exec_ext in '' $ac_executable_extensions; do
4783    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4784    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4785    # Check for GNU ac_path_EGREP and select it if it is found.
4786  # Check for GNU $ac_path_EGREP
4787case `"$ac_path_EGREP" --version 2>&1` in
4788*GNU*)
4789  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4790*)
4791  ac_count=0
4792  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4793  while :
4794  do
4795    cat "conftest.in" "conftest.in" >"conftest.tmp"
4796    mv "conftest.tmp" "conftest.in"
4797    cp "conftest.in" "conftest.nl"
4798    echo 'EGREP' >> "conftest.nl"
4799    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4800    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4801    ac_count=`expr $ac_count + 1`
4802    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4803      # Best one so far, save it but keep looking for a better one
4804      ac_cv_path_EGREP="$ac_path_EGREP"
4805      ac_path_EGREP_max=$ac_count
4806    fi
4807    # 10*(2^10) chars as input seems more than enough
4808    test $ac_count -gt 10 && break
4809  done
4810  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4811esac
4812
4813
4814    $ac_path_EGREP_found && break 3
4815  done
4816done
4817
4818done
4819IFS=$as_save_IFS
4820
4821
4822fi
4823
4824EGREP="$ac_cv_path_EGREP"
4825if test -z "$EGREP"; then
4826  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4827echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4828   { (exit 1); exit 1; }; }
4829fi
4830
4831else
4832  ac_cv_path_EGREP=$EGREP
4833fi
4834
4835
4836   fi
4837fi
4838{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4839echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4840 EGREP="$ac_cv_path_EGREP"
4841
4842
4843
4844# Check whether --with-gnu-ld was given.
4845if test "${with_gnu_ld+set}" = set; then
4846  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4847else
4848  with_gnu_ld=no
4849fi
4850
4851ac_prog=ld
4852if test "$GCC" = yes; then
4853  # Check if gcc -print-prog-name=ld gives a path.
4854  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4855echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4856  case $host in
4857  *-*-mingw*)
4858    # gcc leaves a trailing carriage return which upsets mingw
4859    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4860  *)
4861    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4862  esac
4863  case $ac_prog in
4864    # Accept absolute paths.
4865    [\\/]* | ?:[\\/]*)
4866      re_direlt='/[^/][^/]*/\.\./'
4867      # Canonicalize the pathname of ld
4868      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4869      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4870        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4871      done
4872      test -z "$LD" && LD="$ac_prog"
4873      ;;
4874  "")
4875    # If it fails, then pretend we aren't using GCC.
4876    ac_prog=ld
4877    ;;
4878  *)
4879    # If it is relative, then search for the first ld in PATH.
4880    with_gnu_ld=unknown
4881    ;;
4882  esac
4883elif test "$with_gnu_ld" = yes; then
4884  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4885echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4886else
4887  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4888echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4889fi
4890if test "${lt_cv_path_LD+set}" = set; then
4891  echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893  if test -z "$LD"; then
4894  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4895  for ac_dir in $PATH; do
4896    IFS="$lt_save_ifs"
4897    test -z "$ac_dir" && ac_dir=.
4898    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4899      lt_cv_path_LD="$ac_dir/$ac_prog"
4900      # Check to see if the program is GNU ld.  I'd rather use --version,
4901      # but apparently some variants of GNU ld only accept -v.
4902      # Break only if it was the GNU/non-GNU ld that we prefer.
4903      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4904      *GNU* | *'with BFD'*)
4905        test "$with_gnu_ld" != no && break
4906        ;;
4907      *)
4908        test "$with_gnu_ld" != yes && break
4909        ;;
4910      esac
4911    fi
4912  done
4913  IFS="$lt_save_ifs"
4914else
4915  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4916fi
4917fi
4918
4919LD="$lt_cv_path_LD"
4920if test -n "$LD"; then
4921  { echo "$as_me:$LINENO: result: $LD" >&5
4922echo "${ECHO_T}$LD" >&6; }
4923else
4924  { echo "$as_me:$LINENO: result: no" >&5
4925echo "${ECHO_T}no" >&6; }
4926fi
4927test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4928echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4929   { (exit 1); exit 1; }; }
4930{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4931echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4932if test "${lt_cv_prog_gnu_ld+set}" = set; then
4933  echo $ECHO_N "(cached) $ECHO_C" >&6
4934else
4935  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4936case `$LD -v 2>&1 </dev/null` in
4937*GNU* | *'with BFD'*)
4938  lt_cv_prog_gnu_ld=yes
4939  ;;
4940*)
4941  lt_cv_prog_gnu_ld=no
4942  ;;
4943esac
4944fi
4945{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4946echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4947with_gnu_ld=$lt_cv_prog_gnu_ld
4948
4949
4950{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4951echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4952if test "${lt_cv_ld_reload_flag+set}" = set; then
4953  echo $ECHO_N "(cached) $ECHO_C" >&6
4954else
4955  lt_cv_ld_reload_flag='-r'
4956fi
4957{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4958echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4959reload_flag=$lt_cv_ld_reload_flag
4960case $reload_flag in
4961"" | " "*) ;;
4962*) reload_flag=" $reload_flag" ;;
4963esac
4964reload_cmds='$LD$reload_flag -o $output$reload_objs'
4965case $host_os in
4966  darwin*)
4967    if test "$GCC" = yes; then
4968      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4969    else
4970      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4971    fi
4972    ;;
4973esac
4974
4975{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4976echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4977if test "${lt_cv_path_NM+set}" = set; then
4978  echo $ECHO_N "(cached) $ECHO_C" >&6
4979else
4980  if test -n "$NM"; then
4981  # Let the user override the test.
4982  lt_cv_path_NM="$NM"
4983else
4984  lt_nm_to_check="${ac_tool_prefix}nm"
4985  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4986    lt_nm_to_check="$lt_nm_to_check nm"
4987  fi
4988  for lt_tmp_nm in $lt_nm_to_check; do
4989    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4990    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4991      IFS="$lt_save_ifs"
4992      test -z "$ac_dir" && ac_dir=.
4993      tmp_nm="$ac_dir/$lt_tmp_nm"
4994      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4995        # Check to see if the nm accepts a BSD-compat flag.
4996        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4997        #   nm: unknown option "B" ignored
4998        # Tru64's nm complains that /dev/null is an invalid object file
4999        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5000        */dev/null* | *'Invalid file or object type'*)
5001          lt_cv_path_NM="$tmp_nm -B"
5002          break
5003          ;;
5004        *)
5005          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5006          */dev/null*)
5007            lt_cv_path_NM="$tmp_nm -p"
5008            break
5009            ;;
5010          *)
5011            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5012            continue # so that we can try to find one that supports BSD flags
5013            ;;
5014          esac
5015          ;;
5016        esac
5017      fi
5018    done
5019    IFS="$lt_save_ifs"
5020  done
5021  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5022fi
5023fi
5024{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5025echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5026NM="$lt_cv_path_NM"
5027
5028{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5029echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5030if test "${lt_cv_deplibs_check_method+set}" = set; then
5031  echo $ECHO_N "(cached) $ECHO_C" >&6
5032else
5033  lt_cv_file_magic_cmd='$MAGIC_CMD'
5034lt_cv_file_magic_test_file=
5035lt_cv_deplibs_check_method='unknown'
5036# Need to set the preceding variable on all platforms that support
5037# interlibrary dependencies.
5038# 'none' -- dependencies not supported.
5039# `unknown' -- same as none, but documents that we really don't know.
5040# 'pass_all' -- all dependencies passed with no checks.
5041# 'test_compile' -- check by making test program.
5042# 'file_magic [[regex]]' -- check by looking for files in library path
5043# which responds to the $file_magic_cmd with a given extended regex.
5044# If you have `file' or equivalent on your system and you're not sure
5045# whether `pass_all' will *always* work, you probably want this one.
5046
5047case $host_os in
5048aix4* | aix5*)
5049  lt_cv_deplibs_check_method=pass_all
5050  ;;
5051
5052beos*)
5053  lt_cv_deplibs_check_method=pass_all
5054  ;;
5055
5056bsdi[45]*)
5057  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5058  lt_cv_file_magic_cmd='/usr/bin/file -L'
5059  lt_cv_file_magic_test_file=/shlib/libc.so
5060  ;;
5061
5062cygwin*)
5063  # func_win32_libid is a shell function defined in ltmain.sh
5064  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5065  lt_cv_file_magic_cmd='func_win32_libid'
5066  ;;
5067
5068mingw* | pw32*)
5069  # Base MSYS/MinGW do not provide the 'file' command needed by
5070  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5071  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5072  lt_cv_file_magic_cmd='$OBJDUMP -f'
5073  ;;
5074
5075darwin* | rhapsody*)
5076  lt_cv_deplibs_check_method=pass_all
5077  ;;
5078
5079freebsd* | kfreebsd*-gnu | dragonfly*)
5080  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5081    case $host_cpu in
5082    i*86 )
5083      # Not sure whether the presence of OpenBSD here was a mistake.
5084      # Let's accept both of them until this is cleared up.
5085      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5086      lt_cv_file_magic_cmd=/usr/bin/file
5087      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5088      ;;
5089    esac
5090  else
5091    lt_cv_deplibs_check_method=pass_all
5092  fi
5093  ;;
5094
5095gnu*)
5096  lt_cv_deplibs_check_method=pass_all
5097  ;;
5098
5099hpux10.20* | hpux11*)
5100  lt_cv_file_magic_cmd=/usr/bin/file
5101  case $host_cpu in
5102  ia64*)
5103    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5104    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5105    ;;
5106  hppa*64*)
5107    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]'
5108    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5109    ;;
5110  *)
5111    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5112    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5113    ;;
5114  esac
5115  ;;
5116
5117interix3*)
5118  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5119  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5120  ;;
5121
5122irix5* | irix6* | nonstopux*)
5123  case $LD in
5124  *-32|*"-32 ") libmagic=32-bit;;
5125  *-n32|*"-n32 ") libmagic=N32;;
5126  *-64|*"-64 ") libmagic=64-bit;;
5127  *) libmagic=never-match;;
5128  esac
5129  lt_cv_deplibs_check_method=pass_all
5130  ;;
5131
5132# This must be Linux ELF.
5133linux*)
5134  lt_cv_deplibs_check_method=pass_all
5135  ;;
5136
5137netbsd*)
5138  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5139    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5140  else
5141    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5142  fi
5143  ;;
5144
5145newos6*)
5146  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5147  lt_cv_file_magic_cmd=/usr/bin/file
5148  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5149  ;;
5150
5151nto-qnx*)
5152  lt_cv_deplibs_check_method=unknown
5153  ;;
5154
5155openbsd*)
5156  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5157    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5158  else
5159    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5160  fi
5161  ;;
5162
5163osf3* | osf4* | osf5*)
5164  lt_cv_deplibs_check_method=pass_all
5165  ;;
5166
5167solaris*)
5168  lt_cv_deplibs_check_method=pass_all
5169  ;;
5170
5171sysv4 | sysv4.3*)
5172  case $host_vendor in
5173  motorola)
5174    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]'
5175    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5176    ;;
5177  ncr)
5178    lt_cv_deplibs_check_method=pass_all
5179    ;;
5180  sequent)
5181    lt_cv_file_magic_cmd='/bin/file'
5182    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5183    ;;
5184  sni)
5185    lt_cv_file_magic_cmd='/bin/file'
5186    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5187    lt_cv_file_magic_test_file=/lib/libc.so
5188    ;;
5189  siemens)
5190    lt_cv_deplibs_check_method=pass_all
5191    ;;
5192  pc)
5193    lt_cv_deplibs_check_method=pass_all
5194    ;;
5195  esac
5196  ;;
5197
5198sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5199  lt_cv_deplibs_check_method=pass_all
5200  ;;
5201esac
5202
5203fi
5204{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5205echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5206file_magic_cmd=$lt_cv_file_magic_cmd
5207deplibs_check_method=$lt_cv_deplibs_check_method
5208test -z "$deplibs_check_method" && deplibs_check_method=unknown
5209
5210
5211
5212
5213# If no C compiler was specified, use CC.
5214LTCC=${LTCC-"$CC"}
5215
5216# If no C compiler flags were specified, use CFLAGS.
5217LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5218
5219# Allow CC to be a program name with arguments.
5220compiler=$CC
5221
5222
5223# Check whether --enable-libtool-lock was given.
5224if test "${enable_libtool_lock+set}" = set; then
5225  enableval=$enable_libtool_lock;
5226fi
5227
5228test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5229
5230# Some flags need to be propagated to the compiler or linker for good
5231# libtool support.
5232case $host in
5233ia64-*-hpux*)
5234  # Find out which ABI we are using.
5235  echo 'int i;' > conftest.$ac_ext
5236  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5237  (eval $ac_compile) 2>&5
5238  ac_status=$?
5239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240  (exit $ac_status); }; then
5241    case `/usr/bin/file conftest.$ac_objext` in
5242    *ELF-32*)
5243      HPUX_IA64_MODE="32"
5244      ;;
5245    *ELF-64*)
5246      HPUX_IA64_MODE="64"
5247      ;;
5248    esac
5249  fi
5250  rm -rf conftest*
5251  ;;
5252*-*-irix6*)
5253  # Find out which ABI we are using.
5254  echo '#line 5254 "configure"' > conftest.$ac_ext
5255  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5256  (eval $ac_compile) 2>&5
5257  ac_status=$?
5258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259  (exit $ac_status); }; then
5260   if test "$lt_cv_prog_gnu_ld" = yes; then
5261    case `/usr/bin/file conftest.$ac_objext` in
5262    *32-bit*)
5263      LD="${LD-ld} -melf32bsmip"
5264      ;;
5265    *N32*)
5266      LD="${LD-ld} -melf32bmipn32"
5267      ;;
5268    *64-bit*)
5269      LD="${LD-ld} -melf64bmip"
5270      ;;
5271    esac
5272   else
5273    case `/usr/bin/file conftest.$ac_objext` in
5274    *32-bit*)
5275      LD="${LD-ld} -32"
5276      ;;
5277    *N32*)
5278      LD="${LD-ld} -n32"
5279      ;;
5280    *64-bit*)
5281      LD="${LD-ld} -64"
5282      ;;
5283    esac
5284   fi
5285  fi
5286  rm -rf conftest*
5287  ;;
5288
5289x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5290  # Find out which ABI we are using.
5291  echo 'int i;' > conftest.$ac_ext
5292  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5293  (eval $ac_compile) 2>&5
5294  ac_status=$?
5295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296  (exit $ac_status); }; then
5297    case `/usr/bin/file conftest.o` in
5298    *32-bit*)
5299      case $host in
5300        x86_64-*linux*)
5301          LD="${LD-ld} -m elf_i386"
5302          ;;
5303        ppc64-*linux*|powerpc64-*linux*)
5304          LD="${LD-ld} -m elf32ppclinux"
5305          ;;
5306        s390x-*linux*)
5307          LD="${LD-ld} -m elf_s390"
5308          ;;
5309        sparc64-*linux*)
5310          LD="${LD-ld} -m elf32_sparc"
5311          ;;
5312      esac
5313      ;;
5314    *64-bit*)
5315      case $host in
5316        x86_64-*linux*)
5317          LD="${LD-ld} -m elf_x86_64"
5318          ;;
5319        ppc*-*linux*|powerpc*-*linux*)
5320          LD="${LD-ld} -m elf64ppc"
5321          ;;
5322        s390*-*linux*)
5323          LD="${LD-ld} -m elf64_s390"
5324          ;;
5325        sparc*-*linux*)
5326          LD="${LD-ld} -m elf64_sparc"
5327          ;;
5328      esac
5329      ;;
5330    esac
5331  fi
5332  rm -rf conftest*
5333  ;;
5334
5335*-*-sco3.2v5*)
5336  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5337  SAVE_CFLAGS="$CFLAGS"
5338  CFLAGS="$CFLAGS -belf"
5339  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5340echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5341if test "${lt_cv_cc_needs_belf+set}" = set; then
5342  echo $ECHO_N "(cached) $ECHO_C" >&6
5343else
5344  ac_ext=c
5345ac_cpp='$CPP $CPPFLAGS'
5346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5348ac_compiler_gnu=$ac_cv_c_compiler_gnu
5349
5350     cat >conftest.$ac_ext <<_ACEOF
5351/* confdefs.h.  */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h.  */
5356
5357int
5358main ()
5359{
5360
5361  ;
5362  return 0;
5363}
5364_ACEOF
5365rm -f conftest.$ac_objext conftest$ac_exeext
5366if { (ac_try="$ac_link"
5367case "(($ac_try" in
5368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369  *) ac_try_echo=$ac_try;;
5370esac
5371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372  (eval "$ac_link") 2>conftest.er1
5373  ac_status=$?
5374  grep -v '^ *+' conftest.er1 >conftest.err
5375  rm -f conftest.er1
5376  cat conftest.err >&5
5377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378  (exit $ac_status); } && {
5379         test -z "$ac_c_werror_flag" ||
5380         test ! -s conftest.err
5381       } && test -s conftest$ac_exeext &&
5382       $as_test_x conftest$ac_exeext; then
5383  lt_cv_cc_needs_belf=yes
5384else
5385  echo "$as_me: failed program was:" >&5
5386sed 's/^/| /' conftest.$ac_ext >&5
5387
5388        lt_cv_cc_needs_belf=no
5389fi
5390
5391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5392      conftest$ac_exeext conftest.$ac_ext
5393     ac_ext=c
5394ac_cpp='$CPP $CPPFLAGS'
5395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5397ac_compiler_gnu=$ac_cv_c_compiler_gnu
5398
5399fi
5400{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5401echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5402  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5403    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5404    CFLAGS="$SAVE_CFLAGS"
5405  fi
5406  ;;
5407sparc*-*solaris*)
5408  # Find out which ABI we are using.
5409  echo 'int i;' > conftest.$ac_ext
5410  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5411  (eval $ac_compile) 2>&5
5412  ac_status=$?
5413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414  (exit $ac_status); }; then
5415    case `/usr/bin/file conftest.o` in
5416    *64-bit*)
5417      case $lt_cv_prog_gnu_ld in
5418      yes*) LD="${LD-ld} -m elf64_sparc" ;;
5419      *)    LD="${LD-ld} -64" ;;
5420      esac
5421      ;;
5422    esac
5423  fi
5424  rm -rf conftest*
5425  ;;
5426
5427*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5428  if test -n "$ac_tool_prefix"; then
5429  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5430set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5431{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5433if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5434  echo $ECHO_N "(cached) $ECHO_C" >&6
5435else
5436  if test -n "$DLLTOOL"; then
5437  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5438else
5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442  IFS=$as_save_IFS
5443  test -z "$as_dir" && as_dir=.
5444  for ac_exec_ext in '' $ac_executable_extensions; do
5445  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448    break 2
5449  fi
5450done
5451done
5452IFS=$as_save_IFS
5453
5454fi
5455fi
5456DLLTOOL=$ac_cv_prog_DLLTOOL
5457if test -n "$DLLTOOL"; then
5458  { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5459echo "${ECHO_T}$DLLTOOL" >&6; }
5460else
5461  { echo "$as_me:$LINENO: result: no" >&5
5462echo "${ECHO_T}no" >&6; }
5463fi
5464
5465
5466fi
5467if test -z "$ac_cv_prog_DLLTOOL"; then
5468  ac_ct_DLLTOOL=$DLLTOOL
5469  # Extract the first word of "dlltool", so it can be a program name with args.
5470set dummy dlltool; ac_word=$2
5471{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5472echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5473if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5474  echo $ECHO_N "(cached) $ECHO_C" >&6
5475else
5476  if test -n "$ac_ct_DLLTOOL"; then
5477  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5478else
5479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482  IFS=$as_save_IFS
5483  test -z "$as_dir" && as_dir=.
5484  for ac_exec_ext in '' $ac_executable_extensions; do
5485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5487    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5488    break 2
5489  fi
5490done
5491done
5492IFS=$as_save_IFS
5493
5494fi
5495fi
5496ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5497if test -n "$ac_ct_DLLTOOL"; then
5498  { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5499echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
5500else
5501  { echo "$as_me:$LINENO: result: no" >&5
5502echo "${ECHO_T}no" >&6; }
5503fi
5504
5505  if test "x$ac_ct_DLLTOOL" = x; then
5506    DLLTOOL="false"
5507  else
5508    case $cross_compiling:$ac_tool_warned in
5509yes:)
5510{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5511whose name does not start with the host triplet.  If you think this
5512configuration is useful to you, please write to autoconf@gnu.org." >&5
5513echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5514whose name does not start with the host triplet.  If you think this
5515configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5516ac_tool_warned=yes ;;
5517esac
5518    DLLTOOL=$ac_ct_DLLTOOL
5519  fi
5520else
5521  DLLTOOL="$ac_cv_prog_DLLTOOL"
5522fi
5523
5524  if test -n "$ac_tool_prefix"; then
5525  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5526set dummy ${ac_tool_prefix}as; ac_word=$2
5527{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5529if test "${ac_cv_prog_AS+set}" = set; then
5530  echo $ECHO_N "(cached) $ECHO_C" >&6
5531else
5532  if test -n "$AS"; then
5533  ac_cv_prog_AS="$AS" # Let the user override the test.
5534else
5535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536for as_dir in $PATH
5537do
5538  IFS=$as_save_IFS
5539  test -z "$as_dir" && as_dir=.
5540  for ac_exec_ext in '' $ac_executable_extensions; do
5541  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5542    ac_cv_prog_AS="${ac_tool_prefix}as"
5543    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5544    break 2
5545  fi
5546done
5547done
5548IFS=$as_save_IFS
5549
5550fi
5551fi
5552AS=$ac_cv_prog_AS
5553if test -n "$AS"; then
5554  { echo "$as_me:$LINENO: result: $AS" >&5
5555echo "${ECHO_T}$AS" >&6; }
5556else
5557  { echo "$as_me:$LINENO: result: no" >&5
5558echo "${ECHO_T}no" >&6; }
5559fi
5560
5561
5562fi
5563if test -z "$ac_cv_prog_AS"; then
5564  ac_ct_AS=$AS
5565  # Extract the first word of "as", so it can be a program name with args.
5566set dummy as; ac_word=$2
5567{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5568echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5569if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5570  echo $ECHO_N "(cached) $ECHO_C" >&6
5571else
5572  if test -n "$ac_ct_AS"; then
5573  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5574else
5575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576for as_dir in $PATH
5577do
5578  IFS=$as_save_IFS
5579  test -z "$as_dir" && as_dir=.
5580  for ac_exec_ext in '' $ac_executable_extensions; do
5581  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5582    ac_cv_prog_ac_ct_AS="as"
5583    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5584    break 2
5585  fi
5586done
5587done
5588IFS=$as_save_IFS
5589
5590fi
5591fi
5592ac_ct_AS=$ac_cv_prog_ac_ct_AS
5593if test -n "$ac_ct_AS"; then
5594  { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5595echo "${ECHO_T}$ac_ct_AS" >&6; }
5596else
5597  { echo "$as_me:$LINENO: result: no" >&5
5598echo "${ECHO_T}no" >&6; }
5599fi
5600
5601  if test "x$ac_ct_AS" = x; then
5602    AS="false"
5603  else
5604    case $cross_compiling:$ac_tool_warned in
5605yes:)
5606{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5607whose name does not start with the host triplet.  If you think this
5608configuration is useful to you, please write to autoconf@gnu.org." >&5
5609echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5610whose name does not start with the host triplet.  If you think this
5611configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5612ac_tool_warned=yes ;;
5613esac
5614    AS=$ac_ct_AS
5615  fi
5616else
5617  AS="$ac_cv_prog_AS"
5618fi
5619
5620  if test -n "$ac_tool_prefix"; then
5621  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5622set dummy ${ac_tool_prefix}objdump; ac_word=$2
5623{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5624echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5625if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5626  echo $ECHO_N "(cached) $ECHO_C" >&6
5627else
5628  if test -n "$OBJDUMP"; then
5629  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5630else
5631as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632for as_dir in $PATH
5633do
5634  IFS=$as_save_IFS
5635  test -z "$as_dir" && as_dir=.
5636  for ac_exec_ext in '' $ac_executable_extensions; do
5637  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5638    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5639    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5640    break 2
5641  fi
5642done
5643done
5644IFS=$as_save_IFS
5645
5646fi
5647fi
5648OBJDUMP=$ac_cv_prog_OBJDUMP
5649if test -n "$OBJDUMP"; then
5650  { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5651echo "${ECHO_T}$OBJDUMP" >&6; }
5652else
5653  { echo "$as_me:$LINENO: result: no" >&5
5654echo "${ECHO_T}no" >&6; }
5655fi
5656
5657
5658fi
5659if test -z "$ac_cv_prog_OBJDUMP"; then
5660  ac_ct_OBJDUMP=$OBJDUMP
5661  # Extract the first word of "objdump", so it can be a program name with args.
5662set dummy objdump; ac_word=$2
5663{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5664echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5665if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5666  echo $ECHO_N "(cached) $ECHO_C" >&6
5667else
5668  if test -n "$ac_ct_OBJDUMP"; then
5669  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5670else
5671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672for as_dir in $PATH
5673do
5674  IFS=$as_save_IFS
5675  test -z "$as_dir" && as_dir=.
5676  for ac_exec_ext in '' $ac_executable_extensions; do
5677  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5679    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5680    break 2
5681  fi
5682done
5683done
5684IFS=$as_save_IFS
5685
5686fi
5687fi
5688ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5689if test -n "$ac_ct_OBJDUMP"; then
5690  { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5691echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
5692else
5693  { echo "$as_me:$LINENO: result: no" >&5
5694echo "${ECHO_T}no" >&6; }
5695fi
5696
5697  if test "x$ac_ct_OBJDUMP" = x; then
5698    OBJDUMP="false"
5699  else
5700    case $cross_compiling:$ac_tool_warned in
5701yes:)
5702{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5703whose name does not start with the host triplet.  If you think this
5704configuration is useful to you, please write to autoconf@gnu.org." >&5
5705echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5706whose name does not start with the host triplet.  If you think this
5707configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5708ac_tool_warned=yes ;;
5709esac
5710    OBJDUMP=$ac_ct_OBJDUMP
5711  fi
5712else
5713  OBJDUMP="$ac_cv_prog_OBJDUMP"
5714fi
5715
5716  ;;
5717
5718esac
5719
5720need_locks="$enable_libtool_lock"
5721
5722
5723
5724{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5725echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5726if test "${ac_cv_header_stdc+set}" = set; then
5727  echo $ECHO_N "(cached) $ECHO_C" >&6
5728else
5729  cat >conftest.$ac_ext <<_ACEOF
5730/* confdefs.h.  */
5731_ACEOF
5732cat confdefs.h >>conftest.$ac_ext
5733cat >>conftest.$ac_ext <<_ACEOF
5734/* end confdefs.h.  */
5735#include <stdlib.h>
5736#include <stdarg.h>
5737#include <string.h>
5738#include <float.h>
5739
5740int
5741main ()
5742{
5743
5744  ;
5745  return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext
5749if { (ac_try="$ac_compile"
5750case "(($ac_try" in
5751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752  *) ac_try_echo=$ac_try;;
5753esac
5754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755  (eval "$ac_compile") 2>conftest.er1
5756  ac_status=$?
5757  grep -v '^ *+' conftest.er1 >conftest.err
5758  rm -f conftest.er1
5759  cat conftest.err >&5
5760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761  (exit $ac_status); } && {
5762         test -z "$ac_c_werror_flag" ||
5763         test ! -s conftest.err
5764       } && test -s conftest.$ac_objext; then
5765  ac_cv_header_stdc=yes
5766else
5767  echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
5770        ac_cv_header_stdc=no
5771fi
5772
5773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774
5775if test $ac_cv_header_stdc = yes; then
5776  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5777  cat >conftest.$ac_ext <<_ACEOF
5778/* confdefs.h.  */
5779_ACEOF
5780cat confdefs.h >>conftest.$ac_ext
5781cat >>conftest.$ac_ext <<_ACEOF
5782/* end confdefs.h.  */
5783#include <string.h>
5784
5785_ACEOF
5786if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5787  $EGREP "memchr" >/dev/null 2>&1; then
5788  :
5789else
5790  ac_cv_header_stdc=no
5791fi
5792rm -f conftest*
5793
5794fi
5795
5796if test $ac_cv_header_stdc = yes; then
5797  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5798  cat >conftest.$ac_ext <<_ACEOF
5799/* confdefs.h.  */
5800_ACEOF
5801cat confdefs.h >>conftest.$ac_ext
5802cat >>conftest.$ac_ext <<_ACEOF
5803/* end confdefs.h.  */
5804#include <stdlib.h>
5805
5806_ACEOF
5807if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5808  $EGREP "free" >/dev/null 2>&1; then
5809  :
5810else
5811  ac_cv_header_stdc=no
5812fi
5813rm -f conftest*
5814
5815fi
5816
5817if test $ac_cv_header_stdc = yes; then
5818  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5819  if test "$cross_compiling" = yes; then
5820  :
5821else
5822  cat >conftest.$ac_ext <<_ACEOF
5823/* confdefs.h.  */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h.  */
5828#include <ctype.h>
5829#include <stdlib.h>
5830#if ((' ' & 0x0FF) == 0x020)
5831# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5832# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5833#else
5834# define ISLOWER(c) \
5835                   (('a' <= (c) && (c) <= 'i') \
5836                     || ('j' <= (c) && (c) <= 'r') \
5837                     || ('s' <= (c) && (c) <= 'z'))
5838# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5839#endif
5840
5841#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5842int
5843main ()
5844{
5845  int i;
5846  for (i = 0; i < 256; i++)
5847    if (XOR (islower (i), ISLOWER (i))
5848        || toupper (i) != TOUPPER (i))
5849      return 2;
5850  return 0;
5851}
5852_ACEOF
5853rm -f conftest$ac_exeext
5854if { (ac_try="$ac_link"
5855case "(($ac_try" in
5856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857  *) ac_try_echo=$ac_try;;
5858esac
5859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860  (eval "$ac_link") 2>&5
5861  ac_status=$?
5862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5864  { (case "(($ac_try" in
5865  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5866  *) ac_try_echo=$ac_try;;
5867esac
5868eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5869  (eval "$ac_try") 2>&5
5870  ac_status=$?
5871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872  (exit $ac_status); }; }; then
5873  :
5874else
5875  echo "$as_me: program exited with status $ac_status" >&5
5876echo "$as_me: failed program was:" >&5
5877sed 's/^/| /' conftest.$ac_ext >&5
5878
5879( exit $ac_status )
5880ac_cv_header_stdc=no
5881fi
5882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5883fi
5884
5885
5886fi
5887fi
5888{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5889echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5890if test $ac_cv_header_stdc = yes; then
5891
5892cat >>confdefs.h <<\_ACEOF
5893#define STDC_HEADERS 1
5894_ACEOF
5895
5896fi
5897
5898# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5909                  inttypes.h stdint.h unistd.h
5910do
5911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5912{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5914if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5915  echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917  cat >conftest.$ac_ext <<_ACEOF
5918/* confdefs.h.  */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h.  */
5923$ac_includes_default
5924
5925#include <$ac_header>
5926_ACEOF
5927rm -f conftest.$ac_objext
5928if { (ac_try="$ac_compile"
5929case "(($ac_try" in
5930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931  *) ac_try_echo=$ac_try;;
5932esac
5933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934  (eval "$ac_compile") 2>conftest.er1
5935  ac_status=$?
5936  grep -v '^ *+' conftest.er1 >conftest.err
5937  rm -f conftest.er1
5938  cat conftest.err >&5
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); } && {
5941         test -z "$ac_c_werror_flag" ||
5942         test ! -s conftest.err
5943       } && test -s conftest.$ac_objext; then
5944  eval "$as_ac_Header=yes"
5945else
5946  echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
5948
5949        eval "$as_ac_Header=no"
5950fi
5951
5952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5953fi
5954ac_res=`eval echo '${'$as_ac_Header'}'`
5955               { echo "$as_me:$LINENO: result: $ac_res" >&5
5956echo "${ECHO_T}$ac_res" >&6; }
5957if test `eval echo '${'$as_ac_Header'}'` = yes; then
5958  cat >>confdefs.h <<_ACEOF
5959#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5960_ACEOF
5961
5962fi
5963
5964done
5965
5966
5967
5968for ac_header in dlfcn.h
5969do
5970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5971if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5972  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5974if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5975  echo $ECHO_N "(cached) $ECHO_C" >&6
5976fi
5977ac_res=`eval echo '${'$as_ac_Header'}'`
5978               { echo "$as_me:$LINENO: result: $ac_res" >&5
5979echo "${ECHO_T}$ac_res" >&6; }
5980else
5981  # Is the header compilable?
5982{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5983echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5984cat >conftest.$ac_ext <<_ACEOF
5985/* confdefs.h.  */
5986_ACEOF
5987cat confdefs.h >>conftest.$ac_ext
5988cat >>conftest.$ac_ext <<_ACEOF
5989/* end confdefs.h.  */
5990$ac_includes_default
5991#include <$ac_header>
5992_ACEOF
5993rm -f conftest.$ac_objext
5994if { (ac_try="$ac_compile"
5995case "(($ac_try" in
5996  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997  *) ac_try_echo=$ac_try;;
5998esac
5999eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000  (eval "$ac_compile") 2>conftest.er1
6001  ac_status=$?
6002  grep -v '^ *+' conftest.er1 >conftest.err
6003  rm -f conftest.er1
6004  cat conftest.err >&5
6005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006  (exit $ac_status); } && {
6007         test -z "$ac_c_werror_flag" ||
6008         test ! -s conftest.err
6009       } && test -s conftest.$ac_objext; then
6010  ac_header_compiler=yes
6011else
6012  echo "$as_me: failed program was:" >&5
6013sed 's/^/| /' conftest.$ac_ext >&5
6014
6015        ac_header_compiler=no
6016fi
6017
6018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6020echo "${ECHO_T}$ac_header_compiler" >&6; }
6021
6022# Is the header present?
6023{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6024echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6025cat >conftest.$ac_ext <<_ACEOF
6026/* confdefs.h.  */
6027_ACEOF
6028cat confdefs.h >>conftest.$ac_ext
6029cat >>conftest.$ac_ext <<_ACEOF
6030/* end confdefs.h.  */
6031#include <$ac_header>
6032_ACEOF
6033if { (ac_try="$ac_cpp conftest.$ac_ext"
6034case "(($ac_try" in
6035  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036  *) ac_try_echo=$ac_try;;
6037esac
6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6040  ac_status=$?
6041  grep -v '^ *+' conftest.er1 >conftest.err
6042  rm -f conftest.er1
6043  cat conftest.err >&5
6044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045  (exit $ac_status); } >/dev/null && {
6046         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6047         test ! -s conftest.err
6048       }; then
6049  ac_header_preproc=yes
6050else
6051  echo "$as_me: failed program was:" >&5
6052sed 's/^/| /' conftest.$ac_ext >&5
6053
6054  ac_header_preproc=no
6055fi
6056
6057rm -f conftest.err conftest.$ac_ext
6058{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6059echo "${ECHO_T}$ac_header_preproc" >&6; }
6060
6061# So?  What about this header?
6062case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6063  yes:no: )
6064    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6065echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6066    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6067echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6068    ac_header_preproc=yes
6069    ;;
6070  no:yes:* )
6071    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6073    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6074echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6075    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6076echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6077    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6078echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6079    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6080echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6081    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6082echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6083    ( cat <<\_ASBOX
6084## -------------------------------------- ##
6085## Report this to adol-c@list.coin-or.org ##
6086## -------------------------------------- ##
6087_ASBOX
6088     ) | sed "s/^/$as_me: WARNING:     /" >&2
6089    ;;
6090esac
6091{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6092echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6093if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6094  echo $ECHO_N "(cached) $ECHO_C" >&6
6095else
6096  eval "$as_ac_Header=\$ac_header_preproc"
6097fi
6098ac_res=`eval echo '${'$as_ac_Header'}'`
6099               { echo "$as_me:$LINENO: result: $ac_res" >&5
6100echo "${ECHO_T}$ac_res" >&6; }
6101
6102fi
6103if test `eval echo '${'$as_ac_Header'}'` = yes; then
6104  cat >>confdefs.h <<_ACEOF
6105#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6106_ACEOF
6107
6108fi
6109
6110done
6111
6112
6113
6114if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6115    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6116    (test "X$CXX" != "Xg++"))) ; then
6117  ac_ext=cpp
6118ac_cpp='$CXXCPP $CPPFLAGS'
6119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6122{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6123echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6124if test -z "$CXXCPP"; then
6125  if test "${ac_cv_prog_CXXCPP+set}" = set; then
6126  echo $ECHO_N "(cached) $ECHO_C" >&6
6127else
6128      # Double quotes because CXXCPP needs to be expanded
6129    for CXXCPP in "$CXX -E" "/lib/cpp"
6130    do
6131      ac_preproc_ok=false
6132for ac_cxx_preproc_warn_flag in '' yes
6133do
6134  # Use a header file that comes with gcc, so configuring glibc
6135  # with a fresh cross-compiler works.
6136  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6137  # <limits.h> exists even on freestanding compilers.
6138  # On the NeXT, cc -E runs the code through the compiler's parser,
6139  # not just through cpp. "Syntax error" is here to catch this case.
6140  cat >conftest.$ac_ext <<_ACEOF
6141/* confdefs.h.  */
6142_ACEOF
6143cat confdefs.h >>conftest.$ac_ext
6144cat >>conftest.$ac_ext <<_ACEOF
6145/* end confdefs.h.  */
6146#ifdef __STDC__
6147# include <limits.h>
6148#else
6149# include <assert.h>
6150#endif
6151                     Syntax error
6152_ACEOF
6153if { (ac_try="$ac_cpp conftest.$ac_ext"
6154case "(($ac_try" in
6155  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156  *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6160  ac_status=$?
6161  grep -v '^ *+' conftest.er1 >conftest.err
6162  rm -f conftest.er1
6163  cat conftest.err >&5
6164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165  (exit $ac_status); } >/dev/null && {
6166         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6167         test ! -s conftest.err
6168       }; then
6169  :
6170else
6171  echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
6174  # Broken: fails on valid input.
6175continue
6176fi
6177
6178rm -f conftest.err conftest.$ac_ext
6179
6180  # OK, works on sane cases.  Now check whether nonexistent headers
6181  # can be detected and how.
6182  cat >conftest.$ac_ext <<_ACEOF
6183/* confdefs.h.  */
6184_ACEOF
6185cat confdefs.h >>conftest.$ac_ext
6186cat >>conftest.$ac_ext <<_ACEOF
6187/* end confdefs.h.  */
6188#include <ac_nonexistent.h>
6189_ACEOF
6190if { (ac_try="$ac_cpp conftest.$ac_ext"
6191case "(($ac_try" in
6192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193  *) ac_try_echo=$ac_try;;
6194esac
6195eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6197  ac_status=$?
6198  grep -v '^ *+' conftest.er1 >conftest.err
6199  rm -f conftest.er1
6200  cat conftest.err >&5
6201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6202  (exit $ac_status); } >/dev/null && {
6203         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6204         test ! -s conftest.err
6205       }; then
6206  # Broken: success on invalid input.
6207continue
6208else
6209  echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212  # Passes both tests.
6213ac_preproc_ok=:
6214break
6215fi
6216
6217rm -f conftest.err conftest.$ac_ext
6218
6219done
6220# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6221rm -f conftest.err conftest.$ac_ext
6222if $ac_preproc_ok; then
6223  break
6224fi
6225
6226    done
6227    ac_cv_prog_CXXCPP=$CXXCPP
6228
6229fi
6230  CXXCPP=$ac_cv_prog_CXXCPP
6231else
6232  ac_cv_prog_CXXCPP=$CXXCPP
6233fi
6234{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6235echo "${ECHO_T}$CXXCPP" >&6; }
6236ac_preproc_ok=false
6237for ac_cxx_preproc_warn_flag in '' yes
6238do
6239  # Use a header file that comes with gcc, so configuring glibc
6240  # with a fresh cross-compiler works.
6241  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6242  # <limits.h> exists even on freestanding compilers.
6243  # On the NeXT, cc -E runs the code through the compiler's parser,
6244  # not just through cpp. "Syntax error" is here to catch this case.
6245  cat >conftest.$ac_ext <<_ACEOF
6246/* confdefs.h.  */
6247_ACEOF
6248cat confdefs.h >>conftest.$ac_ext
6249cat >>conftest.$ac_ext <<_ACEOF
6250/* end confdefs.h.  */
6251#ifdef __STDC__
6252# include <limits.h>
6253#else
6254# include <assert.h>
6255#endif
6256                     Syntax error
6257_ACEOF
6258if { (ac_try="$ac_cpp conftest.$ac_ext"
6259case "(($ac_try" in
6260  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6261  *) ac_try_echo=$ac_try;;
6262esac
6263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6264  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6265  ac_status=$?
6266  grep -v '^ *+' conftest.er1 >conftest.err
6267  rm -f conftest.er1
6268  cat conftest.err >&5
6269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270  (exit $ac_status); } >/dev/null && {
6271         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6272         test ! -s conftest.err
6273       }; then
6274  :
6275else
6276  echo "$as_me: failed program was:" >&5
6277sed 's/^/| /' conftest.$ac_ext >&5
6278
6279  # Broken: fails on valid input.
6280continue
6281fi
6282
6283rm -f conftest.err conftest.$ac_ext
6284
6285  # OK, works on sane cases.  Now check whether nonexistent headers
6286  # can be detected and how.
6287  cat >conftest.$ac_ext <<_ACEOF
6288/* confdefs.h.  */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h.  */
6293#include <ac_nonexistent.h>
6294_ACEOF
6295if { (ac_try="$ac_cpp conftest.$ac_ext"
6296case "(($ac_try" in
6297  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298  *) ac_try_echo=$ac_try;;
6299esac
6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6302  ac_status=$?
6303  grep -v '^ *+' conftest.er1 >conftest.err
6304  rm -f conftest.er1
6305  cat conftest.err >&5
6306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307  (exit $ac_status); } >/dev/null && {
6308         test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6309         test ! -s conftest.err
6310       }; then
6311  # Broken: success on invalid input.
6312continue
6313else
6314  echo "$as_me: failed program was:" >&5
6315sed 's/^/| /' conftest.$ac_ext >&5
6316
6317  # Passes both tests.
6318ac_preproc_ok=:
6319break
6320fi
6321
6322rm -f conftest.err conftest.$ac_ext
6323
6324done
6325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6326rm -f conftest.err conftest.$ac_ext
6327if $ac_preproc_ok; then
6328  :
6329else
6330  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6331See \`config.log' for more details." >&5
6332echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6333See \`config.log' for more details." >&2;}
6334   { (exit 1); exit 1; }; }
6335fi
6336
6337ac_ext=cpp
6338ac_cpp='$CXXCPP $CPPFLAGS'
6339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6342
6343fi
6344
6345
6346ac_ext=f
6347ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6348ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6349ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6350if test -n "$ac_tool_prefix"; then
6351  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
6352  do
6353    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6354set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6355{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6357if test "${ac_cv_prog_F77+set}" = set; then
6358  echo $ECHO_N "(cached) $ECHO_C" >&6
6359else
6360  if test -n "$F77"; then
6361  ac_cv_prog_F77="$F77" # Let the user override the test.
6362else
6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
6365do
6366  IFS=$as_save_IFS
6367  test -z "$as_dir" && as_dir=.
6368  for ac_exec_ext in '' $ac_executable_extensions; do
6369  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6370    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6372    break 2
6373  fi
6374done
6375done
6376IFS=$as_save_IFS
6377
6378fi
6379fi
6380F77=$ac_cv_prog_F77
6381if test -n "$F77"; then
6382  { echo "$as_me:$LINENO: result: $F77" >&5
6383echo "${ECHO_T}$F77" >&6; }
6384else
6385  { echo "$as_me:$LINENO: result: no" >&5
6386echo "${ECHO_T}no" >&6; }
6387fi
6388
6389
6390    test -n "$F77" && break
6391  done
6392fi
6393if test -z "$F77"; then
6394  ac_ct_F77=$F77
6395  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
6396do
6397  # Extract the first word of "$ac_prog", so it can be a program name with args.
6398set dummy $ac_prog; ac_word=$2
6399{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6401if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6402  echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
6404  if test -n "$ac_ct_F77"; then
6405  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6406else
6407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6408for as_dir in $PATH
6409do
6410  IFS=$as_save_IFS
6411  test -z "$as_dir" && as_dir=.
6412  for ac_exec_ext in '' $ac_executable_extensions; do
6413  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414    ac_cv_prog_ac_ct_F77="$ac_prog"
6415    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6416    break 2
6417  fi
6418done
6419done
6420IFS=$as_save_IFS
6421
6422fi
6423fi
6424ac_ct_F77=$ac_cv_prog_ac_ct_F77
6425if test -n "$ac_ct_F77"; then
6426  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6427echo "${ECHO_T}$ac_ct_F77" >&6; }
6428else
6429  { echo "$as_me:$LINENO: result: no" >&5
6430echo "${ECHO_T}no" >&6; }
6431fi
6432
6433
6434  test -n "$ac_ct_F77" && break
6435done
6436
6437  if test "x$ac_ct_F77" = x; then
6438    F77=""
6439  else
6440    case $cross_compiling:$ac_tool_warned in
6441yes:)
6442{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6443whose name does not start with the host triplet.  If you think this
6444configuration is useful to you, please write to autoconf@gnu.org." >&5
6445echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6446whose name does not start with the host triplet.  If you think this
6447configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6448ac_tool_warned=yes ;;
6449esac
6450    F77=$ac_ct_F77
6451  fi
6452fi
6453
6454
6455# Provide some information about the compiler.
6456echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6457ac_compiler=`set X $ac_compile; echo $2`
6458{ (ac_try="$ac_compiler --version >&5"
6459case "(($ac_try" in
6460  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461  *) ac_try_echo=$ac_try;;
6462esac
6463eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464  (eval "$ac_compiler --version >&5") 2>&5
6465  ac_status=$?
6466  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467  (exit $ac_status); }
6468{ (ac_try="$ac_compiler -v >&5"
6469case "(($ac_try" in
6470  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471  *) ac_try_echo=$ac_try;;
6472esac
6473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474  (eval "$ac_compiler -v >&5") 2>&5
6475  ac_status=$?
6476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477  (exit $ac_status); }
6478{ (ac_try="$ac_compiler -V >&5"
6479case "(($ac_try" in
6480  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6481  *) ac_try_echo=$ac_try;;
6482esac
6483eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6484  (eval "$ac_compiler -V >&5") 2>&5
6485  ac_status=$?
6486  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487  (exit $ac_status); }
6488rm -f a.out
6489
6490# If we don't use `.F' as extension, the preprocessor is not run on the
6491# input file.  (Note that this only needs to work for GNU compilers.)
6492ac_save_ext=$ac_ext
6493ac_ext=F
6494{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6495echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6496if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6497  echo $ECHO_N "(cached) $ECHO_C" >&6
6498else
6499  cat >conftest.$ac_ext <<_ACEOF
6500      program main
6501#ifndef __GNUC__
6502       choke me
6503#endif
6504
6505      end
6506_ACEOF
6507rm -f conftest.$ac_objext
6508if { (ac_try="$ac_compile"
6509case "(($ac_try" in
6510  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6511  *) ac_try_echo=$ac_try;;
6512esac
6513eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514  (eval "$ac_compile") 2>conftest.er1
6515  ac_status=$?
6516  grep -v '^ *+' conftest.er1 >conftest.err
6517  rm -f conftest.er1
6518  cat conftest.err >&5
6519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520  (exit $ac_status); } && {
6521         test -z "$ac_f77_werror_flag" ||
6522         test ! -s conftest.err
6523       } && test -s conftest.$ac_objext; then
6524  ac_compiler_gnu=yes
6525else
6526  echo "$as_me: failed program was:" >&5
6527sed 's/^/| /' conftest.$ac_ext >&5
6528
6529        ac_compiler_gnu=no
6530fi
6531
6532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6534
6535fi
6536{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6537echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6538ac_ext=$ac_save_ext
6539ac_test_FFLAGS=${FFLAGS+set}
6540ac_save_FFLAGS=$FFLAGS
6541FFLAGS=
6542{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6543echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6544if test "${ac_cv_prog_f77_g+set}" = set; then
6545  echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547  FFLAGS=-g
6548cat >conftest.$ac_ext <<_ACEOF
6549      program main
6550
6551      end
6552_ACEOF
6553rm -f conftest.$ac_objext
6554if { (ac_try="$ac_compile"
6555case "(($ac_try" in
6556  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557  *) ac_try_echo=$ac_try;;
6558esac
6559eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6560  (eval "$ac_compile") 2>conftest.er1
6561  ac_status=$?
6562  grep -v '^ *+' conftest.er1 >conftest.err
6563  rm -f conftest.er1
6564  cat conftest.err >&5
6565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566  (exit $ac_status); } && {
6567         test -z "$ac_f77_werror_flag" ||
6568         test ! -s conftest.err
6569       } && test -s conftest.$ac_objext; then
6570  ac_cv_prog_f77_g=yes
6571else
6572  echo "$as_me: failed program was:" >&5
6573sed 's/^/| /' conftest.$ac_ext >&5
6574
6575        ac_cv_prog_f77_g=no
6576fi
6577
6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579
6580fi
6581{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6582echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6583if test "$ac_test_FFLAGS" = set; then
6584  FFLAGS=$ac_save_FFLAGS
6585elif test $ac_cv_prog_f77_g = yes; then
6586  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6587    FFLAGS="-g -O2"
6588  else
6589    FFLAGS="-g"
6590  fi
6591else
6592  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6593    FFLAGS="-O2"
6594  else
6595    FFLAGS=
6596  fi
6597fi
6598
6599G77=`test $ac_compiler_gnu = yes && echo yes`
6600ac_ext=c
6601ac_cpp='$CPP $CPPFLAGS'
6602ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6603ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6604ac_compiler_gnu=$ac_cv_c_compiler_gnu
6605
6606
6607
6608# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6609
6610# find the maximum length of command line arguments
6611{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6612echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6613if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6614  echo $ECHO_N "(cached) $ECHO_C" >&6
6615else
6616    i=0
6617  teststring="ABCD"
6618
6619  case $build_os in
6620  msdosdjgpp*)
6621    # On DJGPP, this test can blow up pretty badly due to problems in libc
6622    # (any single argument exceeding 2000 bytes causes a buffer overrun
6623    # during glob expansion).  Even if it were fixed, the result of this
6624    # check would be larger than it should be.
6625    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6626    ;;
6627
6628  gnu*)
6629    # Under GNU Hurd, this test is not required because there is
6630    # no limit to the length of command line arguments.
6631    # Libtool will interpret -1 as no limit whatsoever
6632    lt_cv_sys_max_cmd_len=-1;
6633    ;;
6634
6635  cygwin* | mingw*)
6636    # On Win9x/ME, this test blows up -- it succeeds, but takes
6637    # about 5 minutes as the teststring grows exponentially.
6638    # Worse, since 9x/ME are not pre-emptively multitasking,
6639    # you end up with a "frozen" computer, even though with patience
6640    # the test eventually succeeds (with a max line length of 256k).
6641    # Instead, let's just punt: use the minimum linelength reported by
6642    # all of the supported platforms: 8192 (on NT/2K/XP).
6643    lt_cv_sys_max_cmd_len=8192;
6644    ;;
6645
6646  amigaos*)
6647    # On AmigaOS with pdksh, this test takes hours, literally.
6648    # So we just punt and use a minimum line length of 8192.
6649    lt_cv_sys_max_cmd_len=8192;
6650    ;;
6651
6652  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6653    # This has been around since 386BSD, at least.  Likely further.
6654    if test -x /sbin/sysctl; then
6655      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6656    elif test -x /usr/sbin/sysctl; then
6657      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6658    else
6659      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6660    fi
6661    # And add a safety zone
6662    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6663    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6664    ;;
6665
6666  interix*)
6667    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6668    lt_cv_sys_max_cmd_len=196608
6669    ;;
6670
6671  osf*)
6672    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6673    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6674    # nice to cause kernel panics so lets avoid the loop below.
6675    # First set a reasonable default.
6676    lt_cv_sys_max_cmd_len=16384
6677    #
6678    if test -x /sbin/sysconfig; then
6679      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6680        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6681      esac
6682    fi
6683    ;;
6684  sco3.2v5*)
6685    lt_cv_sys_max_cmd_len=102400
6686    ;;
6687  sysv5* | sco5v6* | sysv4.2uw2*)
6688    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6689    if test -n "$kargmax"; then
6690      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6691    else
6692      lt_cv_sys_max_cmd_len=32768
6693    fi
6694    ;;
6695  *)
6696    # If test is not a shell built-in, we'll probably end up computing a
6697    # maximum length that is only half of the actual maximum length, but
6698    # we can't tell.
6699    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6700    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6701               = "XX$teststring") >/dev/null 2>&1 &&
6702            new_result=`expr "X$teststring" : ".*" 2>&1` &&
6703            lt_cv_sys_max_cmd_len=$new_result &&
6704            test $i != 17 # 1/2 MB should be enough
6705    do
6706      i=`expr $i + 1`
6707      teststring=$teststring$teststring
6708    done
6709    teststring=
6710    # Add a significant safety factor because C++ compilers can tack on massive
6711    # amounts of additional arguments before passing them to the linker.
6712    # It appears as though 1/2 is a usable value.
6713    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6714    ;;
6715  esac
6716
6717fi
6718
6719if test -n $lt_cv_sys_max_cmd_len ; then
6720  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6721echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6722else
6723  { echo "$as_me:$LINENO: result: none" >&5
6724echo "${ECHO_T}none" >&6; }
6725fi
6726
6727
6728
6729
6730# Check for command to grab the raw symbol name followed by C symbol from nm.
6731{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6732echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6733if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6734  echo $ECHO_N "(cached) $ECHO_C" >&6
6735else
6736
6737# These are sane defaults that work on at least a few old systems.
6738# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6739
6740# Character class describing NM global symbol codes.
6741symcode='[BCDEGRST]'
6742
6743# Regexp to match symbols that can be accessed directly from C.
6744sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6745
6746# Transform an extracted symbol line into a proper C declaration
6747lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6748
6749# Transform an extracted symbol line into symbol name and symbol address
6750lt_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'"
6751
6752# Define system-specific variables.
6753case $host_os in
6754aix*)
6755  symcode='[BCDT]'
6756  ;;
6757cygwin* | mingw* | pw32*)
6758  symcode='[ABCDGISTW]'
6759  ;;
6760hpux*) # Its linker distinguishes data from code symbols
6761  if test "$host_cpu" = ia64; then
6762    symcode='[ABCDEGRST]'
6763  fi
6764  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6765  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'"
6766  ;;
6767linux*)
6768  if test "$host_cpu" = ia64; then
6769    symcode='[ABCDGIRSTW]'
6770    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6771    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'"
6772  fi
6773  ;;
6774irix* | nonstopux*)
6775  symcode='[BCDEGRST]'
6776  ;;
6777osf*)
6778  symcode='[BCDEGQRST]'
6779  ;;
6780solaris*)
6781  symcode='[BDRT]'
6782  ;;
6783sco3.2v5*)
6784  symcode='[DT]'
6785  ;;
6786sysv4.2uw2*)
6787  symcode='[DT]'
6788  ;;
6789sysv5* | sco5v6* | unixware* | OpenUNIX*)
6790  symcode='[ABDT]'
6791  ;;
6792sysv4)
6793  symcode='[DFNSTU]'
6794  ;;
6795esac
6796
6797# Handle CRLF in mingw tool chain
6798opt_cr=
6799case $build_os in
6800mingw*)
6801  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6802  ;;
6803esac
6804
6805# If we're using GNU nm, then use its standard symbol codes.
6806case `$NM -V 2>&1` in
6807*GNU* | *'with BFD'*)
6808  symcode='[ABCDGIRSTW]' ;;
6809esac
6810
6811# Try without a prefix undercore, then with it.
6812for ac_symprfx in "" "_"; do
6813
6814  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6815  symxfrm="\\1 $ac_symprfx\\2 \\2"
6816
6817  # Write the raw and C identifiers.
6818  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6819
6820  # Check to see that the pipe works correctly.
6821  pipe_works=no
6822
6823  rm -f conftest*
6824  cat > conftest.$ac_ext <<EOF
6825#ifdef __cplusplus
6826extern "C" {
6827#endif
6828char nm_test_var;
6829void nm_test_func(){}
6830#ifdef __cplusplus
6831}
6832#endif
6833int main(){nm_test_var='a';nm_test_func();return(0);}
6834EOF
6835
6836  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6837  (eval $ac_compile) 2>&5
6838  ac_status=$?
6839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840  (exit $ac_status); }; then
6841    # Now try to grab the symbols.
6842    nlist=conftest.nm
6843    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6844  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6845  ac_status=$?
6846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847  (exit $ac_status); } && test -s "$nlist"; then
6848      # Try sorting and uniquifying the output.
6849      if sort "$nlist" | uniq > "$nlist"T; then
6850        mv -f "$nlist"T "$nlist"
6851      else
6852        rm -f "$nlist"T
6853      fi
6854
6855      # Make sure that we snagged all the symbols we need.
6856      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6857        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6858          cat <<EOF > conftest.$ac_ext
6859#ifdef __cplusplus
6860extern "C" {
6861#endif
6862
6863EOF
6864          # Now generate the symbol file.
6865          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6866
6867          cat <<EOF >> conftest.$ac_ext
6868#if defined (__STDC__) && __STDC__
6869# define lt_ptr_t void *
6870#else
6871# define lt_ptr_t char *
6872# define const
6873#endif
6874
6875/* The mapping between symbol names and symbols. */
6876const struct {
6877  const char *name;
6878  lt_ptr_t address;
6879}
6880lt_preloaded_symbols[] =
6881{
6882EOF
6883          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6884          cat <<\EOF >> conftest.$ac_ext
6885  {0, (lt_ptr_t) 0}
6886};
6887
6888#ifdef __cplusplus
6889}
6890#endif
6891EOF
6892          # Now try linking the two files.
6893          mv conftest.$ac_objext conftstm.$ac_objext
6894          lt_save_LIBS="$LIBS"
6895          lt_save_CFLAGS="$CFLAGS"
6896          LIBS="conftstm.$ac_objext"
6897          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6898          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6899  (eval $ac_link) 2>&5
6900  ac_status=$?
6901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6903            pipe_works=yes
6904          fi
6905          LIBS="$lt_save_LIBS"
6906          CFLAGS="$lt_save_CFLAGS"
6907        else
6908          echo "cannot find nm_test_func in $nlist" >&5
6909        fi
6910      else
6911        echo "cannot find nm_test_var in $nlist" >&5
6912      fi
6913    else
6914      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6915    fi
6916  else
6917    echo "$progname: failed program was:" >&5
6918    cat conftest.$ac_ext >&5
6919  fi
6920  rm -f conftest* conftst*
6921
6922  # Do not use the global_symbol_pipe unless it works.
6923  if test "$pipe_works" = yes; then
6924    break
6925  else
6926    lt_cv_sys_global_symbol_pipe=
6927  fi
6928done
6929
6930fi
6931
6932if test -z "$lt_cv_sys_global_symbol_pipe"; then
6933  lt_cv_sys_global_symbol_to_cdecl=
6934fi
6935if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6936  { echo "$as_me:$LINENO: result: failed" >&5
6937echo "${ECHO_T}failed" >&6; }
6938else
6939  { echo "$as_me:$LINENO: result: ok" >&5
6940echo "${ECHO_T}ok" >&6; }
6941fi
6942
6943{ echo "$as_me:$LINENO: checking for objdir" >&5
6944echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6945if test "${lt_cv_objdir+set}" = set; then
6946  echo $ECHO_N "(cached) $ECHO_C" >&6
6947else
6948  rm -f .libs 2>/dev/null
6949mkdir .libs 2>/dev/null
6950if test -d .libs; then
6951  lt_cv_objdir=.libs
6952else
6953  # MS-DOS does not allow filenames that begin with a dot.
6954  lt_cv_objdir=_libs
6955fi
6956rmdir .libs 2>/dev/null
6957fi
6958{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6959echo "${ECHO_T}$lt_cv_objdir" >&6; }
6960objdir=$lt_cv_objdir
6961
6962
6963
6964
6965
6966case $host_os in
6967aix3*)
6968  # AIX sometimes has problems with the GCC collect2 program.  For some
6969  # reason, if we set the COLLECT_NAMES environment variable, the problems
6970  # vanish in a puff of smoke.
6971  if test "X${COLLECT_NAMES+set}" != Xset; then
6972    COLLECT_NAMES=
6973    export COLLECT_NAMES
6974  fi
6975  ;;
6976esac
6977
6978# Sed substitution that helps us do robust quoting.  It backslashifies
6979# metacharacters that are still active within double-quoted strings.
6980Xsed='sed -e 1s/^X//'
6981sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6982
6983# Same as above, but do not quote variable references.
6984double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6985
6986# Sed substitution to delay expansion of an escaped shell variable in a
6987# double_quote_subst'ed string.
6988delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6989
6990# Sed substitution to avoid accidental globbing in evaled expressions
6991no_glob_subst='s/\*/\\\*/g'
6992
6993# Constants:
6994rm="rm -f"
6995
6996# Global variables:
6997default_ofile=libtool
6998can_build_shared=yes
6999
7000# All known linkers require a `.a' archive for static linking (except MSVC,
7001# which needs '.lib').
7002libext=a
7003ltmain="$ac_aux_dir/ltmain.sh"
7004ofile="$default_ofile"
7005with_gnu_ld="$lt_cv_prog_gnu_ld"
7006
7007if test -n "$ac_tool_prefix"; then
7008  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7009set dummy ${ac_tool_prefix}ar; ac_word=$2
7010{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7011echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7012if test "${ac_cv_prog_AR+set}" = set; then
7013  echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
7015  if test -n "$AR"; then
7016  ac_cv_prog_AR="$AR" # Let the user override the test.
7017else
7018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7019for as_dir in $PATH
7020do
7021  IFS=$as_save_IFS
7022  test -z "$as_dir" && as_dir=.
7023  for ac_exec_ext in '' $ac_executable_extensions; do
7024  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7025    ac_cv_prog_AR="${ac_tool_prefix}ar"
7026    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7027    break 2
7028  fi
7029done
7030done
7031IFS=$as_save_IFS
7032
7033fi
7034fi
7035AR=$ac_cv_prog_AR
7036if test -n "$AR"; then
7037  { echo "$as_me:$LINENO: result: $AR" >&5
7038echo "${ECHO_T}$AR" >&6; }
7039else
7040  { echo "$as_me:$LINENO: result: no" >&5
7041echo "${ECHO_T}no" >&6; }
7042fi
7043
7044
7045fi
7046if test -z "$ac_cv_prog_AR"; then
7047  ac_ct_AR=$AR
7048  # Extract the first word of "ar", so it can be a program name with args.
7049set dummy ar; ac_word=$2
7050{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7052if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7053  echo $ECHO_N "(cached) $ECHO_C" >&6
7054else
7055  if test -n "$ac_ct_AR"; then
7056  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7057else
7058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7059for as_dir in $PATH
7060do
7061  IFS=$as_save_IFS
7062  test -z "$as_dir" && as_dir=.
7063  for ac_exec_ext in '' $ac_executable_extensions; do
7064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7065    ac_cv_prog_ac_ct_AR="ar"
7066    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7067    break 2
7068  fi
7069done
7070done
7071IFS=$as_save_IFS
7072
7073fi
7074fi
7075ac_ct_AR=$ac_cv_prog_ac_ct_AR
7076if test -n "$ac_ct_AR"; then
7077  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7078echo "${ECHO_T}$ac_ct_AR" >&6; }
7079else
7080  { echo "$as_me:$LINENO: result: no" >&5
7081echo "${ECHO_T}no" >&6; }
7082fi
7083
7084  if test "x$ac_ct_AR" = x; then
7085    AR="false"
7086  else
7087    case $cross_compiling:$ac_tool_warned in
7088yes:)
7089{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7090whose name does not start with the host triplet.  If you think this
7091configuration is useful to you, please write to autoconf@gnu.org." >&5
7092echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7093whose name does not start with the host triplet.  If you think this
7094configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7095ac_tool_warned=yes ;;
7096esac
7097    AR=$ac_ct_AR
7098  fi
7099else
7100  AR="$ac_cv_prog_AR"
7101fi
7102
7103if test -n "$ac_tool_prefix"; then
7104  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7105set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7106{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7108if test "${ac_cv_prog_RANLIB+set}" = set; then
7109  echo $ECHO_N "(cached) $ECHO_C" >&6
7110else
7111  if test -n "$RANLIB"; then
7112  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7113else
7114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115for as_dir in $PATH
7116do
7117  IFS=$as_save_IFS
7118  test -z "$as_dir" && as_dir=.
7119  for ac_exec_ext in '' $ac_executable_extensions; do
7120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7121    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7123    break 2
7124  fi
7125done
7126done
7127IFS=$as_save_IFS
7128
7129fi
7130fi
7131RANLIB=$ac_cv_prog_RANLIB
7132if test -n "$RANLIB"; then
7133  { echo "$as_me:$LINENO: result: $RANLIB" >&5
7134echo "${ECHO_T}$RANLIB" >&6; }
7135else
7136  { echo "$as_me:$LINENO: result: no" >&5
7137echo "${ECHO_T}no" >&6; }
7138fi
7139
7140
7141fi
7142if test -z "$ac_cv_prog_RANLIB"; then
7143  ac_ct_RANLIB=$RANLIB
7144  # Extract the first word of "ranlib", so it can be a program name with args.
7145set dummy ranlib; ac_word=$2
7146{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7148if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7149  echo $ECHO_N "(cached) $ECHO_C" >&6
7150else
7151  if test -n "$ac_ct_RANLIB"; then
7152  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7153else
7154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155for as_dir in $PATH
7156do
7157  IFS=$as_save_IFS
7158  test -z "$as_dir" && as_dir=.
7159  for ac_exec_ext in '' $ac_executable_extensions; do
7160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161    ac_cv_prog_ac_ct_RANLIB="ranlib"
7162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7163    break 2
7164  fi
7165done
7166done
7167IFS=$as_save_IFS
7168
7169fi
7170fi
7171ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7172if test -n "$ac_ct_RANLIB"; then
7173  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7174echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7175else
7176  { echo "$as_me:$LINENO: result: no" >&5
7177echo "${ECHO_T}no" >&6; }
7178fi
7179
7180  if test "x$ac_ct_RANLIB" = x; then
7181    RANLIB=":"
7182  else
7183    case $cross_compiling:$ac_tool_warned in
7184yes:)
7185{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7186whose name does not start with the host triplet.  If you think this
7187configuration is useful to you, please write to autoconf@gnu.org." >&5
7188echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7189whose name does not start with the host triplet.  If you think this
7190configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7191ac_tool_warned=yes ;;
7192esac
7193    RANLIB=$ac_ct_RANLIB
7194  fi
7195else
7196  RANLIB="$ac_cv_prog_RANLIB"
7197fi
7198
7199if test -n "$ac_tool_prefix"; then
7200  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7201set dummy ${ac_tool_prefix}strip; ac_word=$2
7202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204if test "${ac_cv_prog_STRIP+set}" = set; then
7205  echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207  if test -n "$STRIP"; then
7208  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7209else
7210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211for as_dir in $PATH
7212do
7213  IFS=$as_save_IFS
7214  test -z "$as_dir" && as_dir=.
7215  for ac_exec_ext in '' $ac_executable_extensions; do
7216  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7217    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7218    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7219    break 2
7220  fi
7221done
7222done
7223IFS=$as_save_IFS
7224
7225fi
7226fi
7227STRIP=$ac_cv_prog_STRIP
7228if test -n "$STRIP"; then
7229  { echo "$as_me:$LINENO: result: $STRIP" >&5
7230echo "${ECHO_T}$STRIP" >&6; }
7231else
7232  { echo "$as_me:$LINENO: result: no" >&5
7233echo "${ECHO_T}no" >&6; }
7234fi
7235
7236
7237fi
7238if test -z "$ac_cv_prog_STRIP"; then
7239  ac_ct_STRIP=$STRIP
7240  # Extract the first word of "strip", so it can be a program name with args.
7241set dummy strip; ac_word=$2
7242{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7245  echo $ECHO_N "(cached) $ECHO_C" >&6
7246else
7247  if test -n "$ac_ct_STRIP"; then
7248  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7249else
7250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7251for as_dir in $PATH
7252do
7253  IFS=$as_save_IFS
7254  test -z "$as_dir" && as_dir=.
7255  for ac_exec_ext in '' $ac_executable_extensions; do
7256  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7257    ac_cv_prog_ac_ct_STRIP="strip"
7258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7259    break 2
7260  fi
7261done
7262done
7263IFS=$as_save_IFS
7264
7265fi
7266fi
7267ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7268if test -n "$ac_ct_STRIP"; then
7269  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7270echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7271else
7272  { echo "$as_me:$LINENO: result: no" >&5
7273echo "${ECHO_T}no" >&6; }
7274fi
7275
7276  if test "x$ac_ct_STRIP" = x; then
7277    STRIP=":"
7278  else
7279    case $cross_compiling:$ac_tool_warned in
7280yes:)
7281{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7282whose name does not start with the host triplet.  If you think this
7283configuration is useful to you, please write to autoconf@gnu.org." >&5
7284echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7285whose name does not start with the host triplet.  If you think this
7286configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7287ac_tool_warned=yes ;;
7288esac
7289    STRIP=$ac_ct_STRIP
7290  fi
7291else
7292  STRIP="$ac_cv_prog_STRIP"
7293fi
7294
7295
7296old_CC="$CC"
7297old_CFLAGS="$CFLAGS"
7298
7299# Set sane defaults for various variables
7300test -z "$AR" && AR=ar
7301test -z "$AR_FLAGS" && AR_FLAGS=cru
7302test -z "$AS" && AS=as
7303test -z "$CC" && CC=cc
7304test -z "$LTCC" && LTCC=$CC
7305test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7306test -z "$DLLTOOL" && DLLTOOL=dlltool
7307test -z "$LD" && LD=ld
7308test -z "$LN_S" && LN_S="ln -s"
7309test -z "$MAGIC_CMD" && MAGIC_CMD=file
7310test -z "$NM" && NM=nm
7311test -z "$SED" && SED=sed
7312test -z "$OBJDUMP" && OBJDUMP=objdump
7313test -z "$RANLIB" && RANLIB=:
7314test -z "$STRIP" && STRIP=:
7315test -z "$ac_objext" && ac_objext=o
7316
7317# Determine commands to create old-style static archives.
7318old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7319old_postinstall_cmds='chmod 644 $oldlib'
7320old_postuninstall_cmds=
7321
7322if test -n "$RANLIB"; then
7323  case $host_os in
7324  openbsd*)
7325    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7326    ;;
7327  *)
7328    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7329    ;;
7330  esac
7331  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7332fi
7333
7334for cc_temp in $compiler""; do
7335  case $cc_temp in
7336    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7337    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7338    \-*) ;;
7339    *) break;;
7340  esac
7341done
7342cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7343
7344
7345# Only perform the check for file, if the check method requires it
7346case $deplibs_check_method in
7347file_magic*)
7348  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7349    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7350echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7351if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7352  echo $ECHO_N "(cached) $ECHO_C" >&6
7353else
7354  case $MAGIC_CMD in
7355[\\/*] |  ?:[\\/]*)
7356  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7357  ;;
7358*)
7359  lt_save_MAGIC_CMD="$MAGIC_CMD"
7360  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7361  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7362  for ac_dir in $ac_dummy; do
7363    IFS="$lt_save_ifs"
7364    test -z "$ac_dir" && ac_dir=.
7365    if test -f $ac_dir/${ac_tool_prefix}file; then
7366      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7367      if test -n "$file_magic_test_file"; then
7368        case $deplibs_check_method in
7369        "file_magic "*)
7370          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7371          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7372          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7373            $EGREP "$file_magic_regex" > /dev/null; then
7374            :
7375          else
7376            cat <<EOF 1>&2
7377
7378*** Warning: the command libtool uses to detect shared libraries,
7379*** $file_magic_cmd, produces output that libtool cannot recognize.
7380*** The result is that libtool may fail to recognize shared libraries
7381*** as such.  This will affect the creation of libtool libraries that
7382*** depend on shared libraries, but programs linked with such libtool
7383*** libraries will work regardless of this problem.  Nevertheless, you
7384*** may want to report the problem to your system manager and/or to
7385*** bug-libtool@gnu.org
7386
7387EOF
7388          fi ;;
7389        esac
7390      fi
7391      break
7392    fi
7393  done
7394  IFS="$lt_save_ifs"
7395  MAGIC_CMD="$lt_save_MAGIC_CMD"
7396  ;;
7397esac
7398fi
7399
7400MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7401if test -n "$MAGIC_CMD"; then
7402  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7403echo "${ECHO_T}$MAGIC_CMD" >&6; }
7404else
7405  { echo "$as_me:$LINENO: result: no" >&5
7406echo "${ECHO_T}no" >&6; }
7407fi
7408
7409if test -z "$lt_cv_path_MAGIC_CMD"; then
7410  if test -n "$ac_tool_prefix"; then
7411    { echo "$as_me:$LINENO: checking for file" >&5
7412echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7413if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7414  echo $ECHO_N "(cached) $ECHO_C" >&6
7415else
7416  case $MAGIC_CMD in
7417[\\/*] |  ?:[\\/]*)
7418  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7419  ;;
7420*)
7421  lt_save_MAGIC_CMD="$MAGIC_CMD"
7422  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7423  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7424  for ac_dir in $ac_dummy; do
7425    IFS="$lt_save_ifs"
7426    test -z "$ac_dir" && ac_dir=.
7427    if test -f $ac_dir/file; then
7428      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7429      if test -n "$file_magic_test_file"; then
7430        case $deplibs_check_method in
7431        "file_magic "*)
7432          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7433          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7434          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7435            $EGREP "$file_magic_regex" > /dev/null; then
7436            :
7437          else
7438            cat <<EOF 1>&2
7439
7440*** Warning: the command libtool uses to detect shared libraries,
7441*** $file_magic_cmd, produces output that libtool cannot recognize.
7442*** The result is that libtool may fail to recognize shared libraries
7443*** as such.  This will affect the creation of libtool libraries that
7444*** depend on shared libraries, but programs linked with such libtool
7445*** libraries will work regardless of this problem.  Nevertheless, you
7446*** may want to report the problem to your system manager and/or to
7447*** bug-libtool@gnu.org
7448
7449EOF
7450          fi ;;
7451        esac
7452      fi
7453      break
7454    fi
7455  done
7456  IFS="$lt_save_ifs"
7457  MAGIC_CMD="$lt_save_MAGIC_CMD"
7458  ;;
7459esac
7460fi
7461
7462MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7463if test -n "$MAGIC_CMD"; then
7464  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7465echo "${ECHO_T}$MAGIC_CMD" >&6; }
7466else
7467  { echo "$as_me:$LINENO: result: no" >&5
7468echo "${ECHO_T}no" >&6; }
7469fi
7470
7471  else
7472    MAGIC_CMD=:
7473  fi
7474fi
7475
7476  fi
7477  ;;
7478esac
7479
7480enable_dlopen=no
7481enable_win32_dll=yes
7482
7483# Check whether --enable-libtool-lock was given.
7484if test "${enable_libtool_lock+set}" = set; then
7485  enableval=$enable_libtool_lock;
7486fi
7487
7488test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7489
7490
7491# Check whether --with-pic was given.
7492if test "${with_pic+set}" = set; then
7493  withval=$with_pic; pic_mode="$withval"
7494else
7495  pic_mode=default
7496fi
7497
7498test -z "$pic_mode" && pic_mode=default
7499
7500# Use C for the default configuration in the libtool script
7501tagname=
7502lt_save_CC="$CC"
7503ac_ext=c
7504ac_cpp='$CPP $CPPFLAGS'
7505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7507ac_compiler_gnu=$ac_cv_c_compiler_gnu
7508
7509
7510# Source file extension for C test sources.
7511ac_ext=c
7512
7513# Object file extension for compiled C test sources.
7514objext=o
7515objext=$objext
7516
7517# Code to be used in simple compile tests
7518lt_simple_compile_test_code="int some_variable = 0;\n"
7519
7520# Code to be used in simple link tests
7521lt_simple_link_test_code='int main(){return(0);}\n'
7522
7523
7524# If no C compiler was specified, use CC.
7525LTCC=${LTCC-"$CC"}
7526
7527# If no C compiler flags were specified, use CFLAGS.
7528LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7529
7530# Allow CC to be a program name with arguments.
7531compiler=$CC
7532
7533
7534# save warnings/boilerplate of simple test code
7535ac_outfile=conftest.$ac_objext
7536printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7537eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7538_lt_compiler_boilerplate=`cat conftest.err`
7539$rm conftest*
7540
7541ac_outfile=conftest.$ac_objext
7542printf "$lt_simple_link_test_code" >conftest.$ac_ext
7543eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7544_lt_linker_boilerplate=`cat conftest.err`
7545$rm conftest*
7546
7547
7548
7549lt_prog_compiler_no_builtin_flag=
7550
7551if test "$GCC" = yes; then
7552  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7553
7554
7555{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7556echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7557if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7558  echo $ECHO_N "(cached) $ECHO_C" >&6
7559else
7560  lt_cv_prog_compiler_rtti_exceptions=no
7561  ac_outfile=conftest.$ac_objext
7562   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7563   lt_compiler_flag="-fno-rtti -fno-exceptions"
7564   # Insert the option either (1) after the last *FLAGS variable, or
7565   # (2) before a word containing "conftest.", or (3) at the end.
7566   # Note that $ac_compile itself does not contain backslashes and begins
7567   # with a dollar sign (not a hyphen), so the echo should work correctly.
7568   # The option is referenced via a variable to avoid confusing sed.
7569   lt_compile=`echo "$ac_compile" | $SED \
7570   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7571   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7572   -e 's:$: $lt_compiler_flag:'`
7573   (eval echo "\"\$as_me:7573: $lt_compile\"" >&5)
7574   (eval "$lt_compile" 2>conftest.err)
7575   ac_status=$?
7576   cat conftest.err >&5
7577   echo "$as_me:7577: \$? = $ac_status" >&5
7578   if (exit $ac_status) && test -s "$ac_outfile"; then
7579     # The compiler can only warn and ignore the option if not recognized
7580     # So say no if there are warnings other than the usual output.
7581     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7582     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7583     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7584       lt_cv_prog_compiler_rtti_exceptions=yes
7585     fi
7586   fi
7587   $rm conftest*
7588
7589fi
7590{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7591echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7592
7593if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7594    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7595else
7596    :
7597fi
7598
7599fi
7600
7601lt_prog_compiler_wl=
7602lt_prog_compiler_pic=
7603lt_prog_compiler_static=
7604
7605{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7606echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7607
7608  if test "$GCC" = yes; then
7609    lt_prog_compiler_wl='-Wl,'
7610    lt_prog_compiler_static='-static'
7611
7612    case $host_os in
7613      aix*)
7614      # All AIX code is PIC.
7615      if test "$host_cpu" = ia64; then
7616        # AIX 5 now supports IA64 processor
7617        lt_prog_compiler_static='-Bstatic'
7618      fi
7619      ;;
7620
7621    amigaos*)
7622      # FIXME: we need at least 68020 code to build shared libraries, but
7623      # adding the `-m68020' flag to GCC prevents building anything better,
7624      # like `-m68040'.
7625      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7626      ;;
7627
7628    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7629      # PIC is the default for these OSes.
7630      ;;
7631
7632    mingw* | pw32* | os2*)
7633      # This hack is so that the source file can tell whether it is being
7634      # built for inclusion in a dll (and should export symbols for example).
7635      lt_prog_compiler_pic='-DDLL_EXPORT'
7636      ;;
7637
7638    darwin* | rhapsody*)
7639      # PIC is the default on this platform
7640      # Common symbols not allowed in MH_DYLIB files
7641      lt_prog_compiler_pic='-fno-common'
7642      ;;
7643
7644    interix3*)
7645      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7646      # Instead, we relocate shared libraries at runtime.
7647      ;;
7648
7649    msdosdjgpp*)
7650      # Just because we use GCC doesn't mean we suddenly get shared libraries
7651      # on systems that don't support them.
7652      lt_prog_compiler_can_build_shared=no
7653      enable_shared=no
7654      ;;
7655
7656    sysv4*MP*)
7657      if test -d /usr/nec; then
7658        lt_prog_compiler_pic=-Kconform_pic
7659      fi
7660      ;;
7661
7662    hpux*)
7663      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7664      # not for PA HP-UX.
7665      case $host_cpu in
7666      hppa*64*|ia64*)
7667        # +Z the default
7668        ;;
7669      *)
7670        lt_prog_compiler_pic='-fPIC'
7671        ;;
7672      esac
7673      ;;
7674
7675    *)
7676      lt_prog_compiler_pic='-fPIC'
7677      ;;
7678    esac
7679  else
7680    # PORTME Check for flag to pass linker flags through the system compiler.
7681    case $host_os in
7682    aix*)
7683      lt_prog_compiler_wl='-Wl,'
7684      if test "$host_cpu" = ia64; then
7685        # AIX 5 now supports IA64 processor
7686        lt_prog_compiler_static='-Bstatic'
7687      else
7688        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7689      fi
7690      ;;
7691      darwin*)
7692        # PIC is the default on this platform
7693        # Common symbols not allowed in MH_DYLIB files
7694       case $cc_basename in
7695         xlc*)
7696         lt_prog_compiler_pic='-qnocommon'
7697         lt_prog_compiler_wl='-Wl,'
7698         ;;
7699       esac
7700       ;;
7701
7702    mingw* | pw32* | os2*)
7703      # This hack is so that the source file can tell whether it is being
7704      # built for inclusion in a dll (and should export symbols for example).
7705      lt_prog_compiler_pic='-DDLL_EXPORT'
7706      ;;
7707
7708    hpux9* | hpux10* | hpux11*)
7709      lt_prog_compiler_wl='-Wl,'
7710      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7711      # not for PA HP-UX.
7712      case $host_cpu in
7713      hppa*64*|ia64*)
7714        # +Z the default
7715        ;;
7716      *)
7717        lt_prog_compiler_pic='+Z'
7718        ;;
7719      esac
7720      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7721      lt_prog_compiler_static='${wl}-a ${wl}archive'
7722      ;;
7723
7724    irix5* | irix6* | nonstopux*)
7725      lt_prog_compiler_wl='-Wl,'
7726      # PIC (with -KPIC) is the default.
7727      lt_prog_compiler_static='-non_shared'
7728      ;;
7729
7730    newsos6)
7731      lt_prog_compiler_pic='-KPIC'
7732      lt_prog_compiler_static='-Bstatic'
7733      ;;
7734
7735    linux*)
7736      case $cc_basename in
7737      icc* | ecc*)
7738        lt_prog_compiler_wl='-Wl,'
7739        lt_prog_compiler_pic='-KPIC'
7740        lt_prog_compiler_static='-static'
7741        ;;
7742      pgcc* | pgf77* | pgf90* | pgf95*)
7743        # Portland Group compilers (*not* the Pentium gcc compiler,
7744        # which looks to be a dead project)
7745        lt_prog_compiler_wl='-Wl,'
7746        lt_prog_compiler_pic='-fpic'
7747        lt_prog_compiler_static='-Bstatic'
7748        ;;
7749      ccc*)
7750        lt_prog_compiler_wl='-Wl,'
7751        # All Alpha code is PIC.
7752        lt_prog_compiler_static='-non_shared'
7753        ;;
7754      esac
7755      ;;
7756
7757    osf3* | osf4* | osf5*)
7758      lt_prog_compiler_wl='-Wl,'
7759      # All OSF/1 code is PIC.
7760      lt_prog_compiler_static='-non_shared'
7761      ;;
7762
7763    solaris*)
7764      lt_prog_compiler_pic='-KPIC'
7765      lt_prog_compiler_static='-Bstatic'
7766      case $cc_basename in
7767      f77* | f90* | f95*)
7768        lt_prog_compiler_wl='-Qoption ld ';;
7769      *)
7770        lt_prog_compiler_wl='-Wl,';;
7771      esac
7772      ;;
7773
7774    sunos4*)
7775      lt_prog_compiler_wl='-Qoption ld '
7776      lt_prog_compiler_pic='-PIC'
7777      lt_prog_compiler_static='-Bstatic'
7778      ;;
7779
7780    sysv4 | sysv4.2uw2* | sysv4.3*)
7781      lt_prog_compiler_wl='-Wl,'
7782      lt_prog_compiler_pic='-KPIC'
7783      lt_prog_compiler_static='-Bstatic'
7784      ;;
7785
7786    sysv4*MP*)
7787      if test -d /usr/nec ;then
7788        lt_prog_compiler_pic='-Kconform_pic'
7789        lt_prog_compiler_static='-Bstatic'
7790      fi
7791      ;;
7792
7793    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7794      lt_prog_compiler_wl='-Wl,'
7795      lt_prog_compiler_pic='-KPIC'
7796      lt_prog_compiler_static='-Bstatic'
7797      ;;
7798
7799    unicos*)
7800      lt_prog_compiler_wl='-Wl,'
7801      lt_prog_compiler_can_build_shared=no
7802      ;;
7803
7804    uts4*)
7805      lt_prog_compiler_pic='-pic'
7806      lt_prog_compiler_static='-Bstatic'
7807      ;;
7808
7809    *)
7810      lt_prog_compiler_can_build_shared=no
7811      ;;
7812    esac
7813  fi
7814
7815{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7816echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7817
7818#
7819# Check to make sure the PIC flag actually works.
7820#
7821if test -n "$lt_prog_compiler_pic"; then
7822
7823{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7824echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7825if test "${lt_prog_compiler_pic_works+set}" = set; then
7826  echo $ECHO_N "(cached) $ECHO_C" >&6
7827else
7828  lt_prog_compiler_pic_works=no
7829  ac_outfile=conftest.$ac_objext
7830   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7831   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7832   # Insert the option either (1) after the last *FLAGS variable, or
7833   # (2) before a word containing "conftest.", or (3) at the end.
7834   # Note that $ac_compile itself does not contain backslashes and begins
7835   # with a dollar sign (not a hyphen), so the echo should work correctly.
7836   # The option is referenced via a variable to avoid confusing sed.
7837   lt_compile=`echo "$ac_compile" | $SED \
7838   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7839   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7840   -e 's:$: $lt_compiler_flag:'`
7841   (eval echo "\"\$as_me:7841: $lt_compile\"" >&5)
7842   (eval "$lt_compile" 2>conftest.err)
7843   ac_status=$?
7844   cat conftest.err >&5
7845   echo "$as_me:7845: \$? = $ac_status" >&5
7846   if (exit $ac_status) && test -s "$ac_outfile"; then
7847     # The compiler can only warn and ignore the option if not recognized
7848     # So say no if there are warnings other than the usual output.
7849     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7850     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7851     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7852       lt_prog_compiler_pic_works=yes
7853     fi
7854   fi
7855   $rm conftest*
7856
7857fi
7858{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7859echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7860
7861if test x"$lt_prog_compiler_pic_works" = xyes; then
7862    case $lt_prog_compiler_pic in
7863     "" | " "*) ;;
7864     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7865     esac
7866else
7867    lt_prog_compiler_pic=
7868     lt_prog_compiler_can_build_shared=no
7869fi
7870
7871fi
7872case $host_os in
7873  # For platforms which do not support PIC, -DPIC is meaningless:
7874  *djgpp*)
7875    lt_prog_compiler_pic=
7876    ;;
7877  *)
7878    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7879    ;;
7880esac
7881
7882#
7883# Check to make sure the static flag actually works.
7884#
7885wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7886{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7887echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7888if test "${lt_prog_compiler_static_works+set}" = set; then
7889  echo $ECHO_N "(cached) $ECHO_C" >&6
7890else
7891  lt_prog_compiler_static_works=no
7892   save_LDFLAGS="$LDFLAGS"
7893   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7894   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7895   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7896     # The linker can only warn and ignore the option if not recognized
7897     # So say no if there are warnings
7898     if test -s conftest.err; then
7899       # Append any errors to the config.log.
7900       cat conftest.err 1>&5
7901       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7902       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7903       if diff conftest.exp conftest.er2 >/dev/null; then
7904         lt_prog_compiler_static_works=yes
7905       fi
7906     else
7907       lt_prog_compiler_static_works=yes
7908     fi
7909   fi
7910   $rm conftest*
7911   LDFLAGS="$save_LDFLAGS"
7912
7913fi
7914{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7915echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7916
7917if test x"$lt_prog_compiler_static_works" = xyes; then
7918    :
7919else
7920    lt_prog_compiler_static=
7921fi
7922
7923
7924{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7925echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7926if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7927  echo $ECHO_N "(cached) $ECHO_C" >&6
7928else
7929  lt_cv_prog_compiler_c_o=no
7930   $rm -r conftest 2>/dev/null
7931   mkdir conftest
7932   cd conftest
7933   mkdir out
7934   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7935
7936   lt_compiler_flag="-o out/conftest2.$ac_objext"
7937   # Insert the option either (1) after the last *FLAGS variable, or
7938   # (2) before a word containing "conftest.", or (3) at the end.
7939   # Note that $ac_compile itself does not contain backslashes and begins
7940   # with a dollar sign (not a hyphen), so the echo should work correctly.
7941   lt_compile=`echo "$ac_compile" | $SED \
7942   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7943   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7944   -e 's:$: $lt_compiler_flag:'`
7945   (eval echo "\"\$as_me:7945: $lt_compile\"" >&5)
7946   (eval "$lt_compile" 2>out/conftest.err)
7947   ac_status=$?
7948   cat out/conftest.err >&5
7949   echo "$as_me:7949: \$? = $ac_status" >&5
7950   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7951   then
7952     # The compiler can only warn and ignore the option if not recognized
7953     # So say no if there are warnings
7954     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7955     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7956     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7957       lt_cv_prog_compiler_c_o=yes
7958     fi
7959   fi
7960   chmod u+w . 2>&5
7961   $rm conftest*
7962   # SGI C++ compiler will create directory out/ii_files/ for
7963   # template instantiation
7964   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7965   $rm out/* && rmdir out
7966   cd ..
7967   rmdir conftest
7968   $rm conftest*
7969
7970fi
7971{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7972echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7973
7974
7975hard_links="nottested"
7976if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7977  # do not overwrite the value of need_locks provided by the user
7978  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7979echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7980  hard_links=yes
7981  $rm conftest*
7982  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7983  touch conftest.a
7984  ln conftest.a conftest.b 2>&5 || hard_links=no
7985  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7986  { echo "$as_me:$LINENO: result: $hard_links" >&5
7987echo "${ECHO_T}$hard_links" >&6; }
7988  if test "$hard_links" = no; then
7989    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7990echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7991    need_locks=warn
7992  fi
7993else
7994  need_locks=no
7995fi
7996
7997{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7998echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7999
8000  runpath_var=
8001  allow_undefined_flag=
8002  enable_shared_with_static_runtimes=no
8003  archive_cmds=
8004  archive_expsym_cmds=
8005  old_archive_From_new_cmds=
8006  old_archive_from_expsyms_cmds=
8007  export_dynamic_flag_spec=
8008  whole_archive_flag_spec=
8009  thread_safe_flag_spec=
8010  hardcode_libdir_flag_spec=
8011  hardcode_libdir_flag_spec_ld=
8012  hardcode_libdir_separator=
8013  hardcode_direct=no
8014  hardcode_minus_L=no
8015  hardcode_shlibpath_var=unsupported
8016  link_all_deplibs=unknown
8017  hardcode_automatic=no
8018  module_cmds=
8019  module_expsym_cmds=
8020  always_export_symbols=no
8021  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8022  # include_expsyms should be a list of space-separated symbols to be *always*
8023  # included in the symbol list
8024  include_expsyms=
8025  # exclude_expsyms can be an extended regexp of symbols to exclude
8026  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8027  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8028  # as well as any symbol that contains `d'.
8029  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8030  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8031  # platforms (ab)use it in PIC code, but their linkers get confused if
8032  # the symbol is explicitly referenced.  Since portable code cannot
8033  # rely on this symbol name, it's probably fine to never include it in
8034  # preloaded symbol tables.
8035  extract_expsyms_cmds=
8036  # Just being paranoid about ensuring that cc_basename is set.
8037  for cc_temp in $compiler""; do
8038  case $cc_temp in
8039    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8040    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8041    \-*) ;;
8042    *) break;;
8043  esac
8044done
8045cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8046
8047  case $host_os in
8048  cygwin* | mingw* | pw32*)
8049    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8050    # When not using gcc, we currently assume that we are using
8051    # Microsoft Visual C++.
8052    if test "$GCC" != yes; then
8053      with_gnu_ld=no
8054    fi
8055    ;;
8056  interix*)
8057    # we just hope/assume this is gcc and not c89 (= MSVC++)
8058    with_gnu_ld=yes
8059    ;;
8060  openbsd*)
8061    with_gnu_ld=no
8062    ;;
8063  esac
8064
8065  ld_shlibs=yes
8066  if test "$with_gnu_ld" = yes; then
8067    # If archive_cmds runs LD, not CC, wlarc should be empty
8068    wlarc='${wl}'
8069
8070    # Set some defaults for GNU ld with shared library support. These
8071    # are reset later if shared libraries are not supported. Putting them
8072    # here allows them to be overridden if necessary.
8073    runpath_var=LD_RUN_PATH
8074    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8075    export_dynamic_flag_spec='${wl}--export-dynamic'
8076    # ancient GNU ld didn't support --whole-archive et. al.
8077    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8078        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8079      else
8080        whole_archive_flag_spec=
8081    fi
8082    supports_anon_versioning=no
8083    case `$LD -v 2>/dev/null` in
8084      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8085      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8086      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8087      *\ 2.11.*) ;; # other 2.11 versions
8088      *) supports_anon_versioning=yes ;;
8089    esac
8090
8091    # See if GNU ld supports shared libraries.
8092    case $host_os in
8093    aix3* | aix4* | aix5*)
8094      # On AIX/PPC, the GNU linker is very broken
8095      if test "$host_cpu" != ia64; then
8096        ld_shlibs=no
8097        cat <<EOF 1>&2
8098
8099*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8100*** to be unable to reliably create shared libraries on AIX.
8101*** Therefore, libtool is disabling shared libraries support.  If you
8102*** really care for shared libraries, you may want to modify your PATH
8103*** so that a non-GNU linker is found, and then restart.
8104
8105EOF
8106      fi
8107      ;;
8108
8109    amigaos*)
8110      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)'
8111      hardcode_libdir_flag_spec='-L$libdir'
8112      hardcode_minus_L=yes
8113
8114      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8115      # that the semantics of dynamic libraries on AmigaOS, at least up
8116      # to version 4, is to share data among multiple programs linked
8117      # with the same dynamic library.  Since this doesn't match the
8118      # behavior of shared libraries on other platforms, we can't use
8119      # them.
8120      ld_shlibs=no
8121      ;;
8122
8123    beos*)
8124      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8125        allow_undefined_flag=unsupported
8126        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8127        # support --undefined.  This deserves some investigation.  FIXME
8128        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8129      else
8130        ld_shlibs=no
8131      fi
8132      ;;
8133
8134    cygwin* | mingw* | pw32*)
8135      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8136      # as there is no search path for DLLs.
8137      hardcode_libdir_flag_spec='-L$libdir'
8138      allow_undefined_flag=unsupported
8139      always_export_symbols=no
8140      enable_shared_with_static_runtimes=yes
8141      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8142
8143      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8144        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8145        # If the export-symbols file already is a .def file (1st line
8146        # is EXPORTS), use it as is; otherwise, prepend...
8147        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8148          cp $export_symbols $output_objdir/$soname.def;
8149        else
8150          echo EXPORTS > $output_objdir/$soname.def;
8151          cat $export_symbols >> $output_objdir/$soname.def;
8152        fi~
8153        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8154      else
8155        ld_shlibs=no
8156      fi
8157      ;;
8158
8159    interix3*)
8160      hardcode_direct=no
8161      hardcode_shlibpath_var=no
8162      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8163      export_dynamic_flag_spec='${wl}-E'
8164      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8165      # Instead, shared libraries are loaded at an image base (0x10000000 by
8166      # default) and relocated if they conflict, which is a slow very memory
8167      # consuming and fragmenting process.  To avoid this, we pick a random,
8168      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8169      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8170      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8171      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'
8172      ;;
8173
8174    linux*)
8175      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8176        tmp_addflag=
8177        case $cc_basename,$host_cpu in
8178        pgcc*)                          # Portland Group C compiler
8179          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'
8180          tmp_addflag=' $pic_flag'
8181          ;;
8182        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8183          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'
8184          tmp_addflag=' $pic_flag -Mnomain' ;;
8185        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8186          tmp_addflag=' -i_dynamic' ;;
8187        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8188          tmp_addflag=' -i_dynamic -nofor_main' ;;
8189        ifc* | ifort*)                  # Intel Fortran compiler
8190          tmp_addflag=' -nofor_main' ;;
8191        esac
8192        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193
8194        if test $supports_anon_versioning = yes; then
8195          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8196  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8197  $echo "local: *; };" >> $output_objdir/$libname.ver~
8198          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8199        fi
8200      else
8201        ld_shlibs=no
8202      fi
8203      ;;
8204
8205    netbsd*)
8206      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8207        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8208        wlarc=
8209      else
8210        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8211        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8212      fi
8213      ;;
8214
8215    solaris*)
8216      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8217        ld_shlibs=no
8218        cat <<EOF 1>&2
8219
8220*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8221*** create shared libraries on Solaris systems.  Therefore, libtool
8222*** is disabling shared libraries support.  We urge you to upgrade GNU
8223*** binutils to release 2.9.1 or newer.  Another option is to modify
8224*** your PATH or compiler configuration so that the native linker is
8225*** used, and then restart.
8226
8227EOF
8228      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8229        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8230        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8231      else
8232        ld_shlibs=no
8233      fi
8234      ;;
8235
8236    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8237      case `$LD -v 2>&1` in
8238        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8239        ld_shlibs=no
8240        cat <<_LT_EOF 1>&2
8241
8242*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8243*** reliably create shared libraries on SCO systems.  Therefore, libtool
8244*** is disabling shared libraries support.  We urge you to upgrade GNU
8245*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8246*** your PATH or compiler configuration so that the native linker is
8247*** used, and then restart.
8248
8249_LT_EOF
8250        ;;
8251        *)
8252          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8253            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8254            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8255            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8256          else
8257            ld_shlibs=no
8258          fi
8259        ;;
8260      esac
8261      ;;
8262
8263    sunos4*)
8264      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8265      wlarc=
8266      hardcode_direct=yes
8267      hardcode_shlibpath_var=no
8268      ;;
8269
8270    *)
8271      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8272        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8273        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8274      else
8275        ld_shlibs=no
8276      fi
8277      ;;
8278    esac
8279
8280    if test "$ld_shlibs" = no; then
8281      runpath_var=
8282      hardcode_libdir_flag_spec=
8283      export_dynamic_flag_spec=
8284      whole_archive_flag_spec=
8285    fi
8286  else
8287    # PORTME fill in a description of your system's linker (not GNU ld)
8288    case $host_os in
8289    aix3*)
8290      allow_undefined_flag=unsupported
8291      always_export_symbols=yes
8292      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'
8293      # Note: this linker hardcodes the directories in LIBPATH if there
8294      # are no directories specified by -L.
8295      hardcode_minus_L=yes
8296      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8297        # Neither direct hardcoding nor static linking is supported with a
8298        # broken collect2.
8299        hardcode_direct=unsupported
8300      fi
8301      ;;
8302
8303    aix4* | aix5*)
8304      if test "$host_cpu" = ia64; then
8305        # On IA64, the linker does run time linking by default, so we don't
8306        # have to do anything special.
8307        aix_use_runtimelinking=no
8308        exp_sym_flag='-Bexport'
8309        no_entry_flag=""
8310      else
8311        # If we're using GNU nm, then we don't want the "-C" option.
8312        # -C means demangle to AIX nm, but means don't demangle with GNU nm
8313        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8314          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'
8315        else
8316          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'
8317        fi
8318        aix_use_runtimelinking=no
8319
8320        # Test if we are trying to use run time linking or normal
8321        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8322        # need to do runtime linking.
8323        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8324          for ld_flag in $LDFLAGS; do
8325          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8326            aix_use_runtimelinking=yes
8327            break
8328          fi
8329          done
8330          ;;
8331        esac
8332
8333        exp_sym_flag='-bexport'
8334        no_entry_flag='-bnoentry'
8335      fi
8336
8337      # When large executables or shared objects are built, AIX ld can
8338      # have problems creating the table of contents.  If linking a library
8339      # or program results in "error TOC overflow" add -mminimal-toc to
8340      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8341      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8342
8343      archive_cmds=''
8344      hardcode_direct=yes
8345      hardcode_libdir_separator=':'
8346      link_all_deplibs=yes
8347
8348      if test "$GCC" = yes; then
8349        case $host_os in aix4.[012]|aix4.[012].*)
8350        # We only want to do this on AIX 4.2 and lower, the check
8351        # below for broken collect2 doesn't work under 4.3+
8352          collect2name=`${CC} -print-prog-name=collect2`
8353          if test -f "$collect2name" && \
8354           strings "$collect2name" | grep resolve_lib_name >/dev/null
8355          then
8356          # We have reworked collect2
8357          hardcode_direct=yes
8358          else
8359          # We have old collect2
8360          hardcode_direct=unsupported
8361          # It fails to find uninstalled libraries when the uninstalled
8362          # path is not listed in the libpath.  Setting hardcode_minus_L
8363          # to unsupported forces relinking
8364          hardcode_minus_L=yes
8365          hardcode_libdir_flag_spec='-L$libdir'
8366          hardcode_libdir_separator=
8367          fi
8368          ;;
8369        esac
8370        shared_flag='-shared'
8371        if test "$aix_use_runtimelinking" = yes; then
8372          shared_flag="$shared_flag "'${wl}-G'
8373        fi
8374      else
8375        # not using gcc
8376        if test "$host_cpu" = ia64; then
8377        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8378        # chokes on -Wl,-G. The following line is correct:
8379          shared_flag='-G'
8380        else
8381          if test "$aix_use_runtimelinking" = yes; then
8382            shared_flag='${wl}-G'
8383          else
8384            shared_flag='${wl}-bM:SRE'
8385          fi
8386        fi
8387      fi
8388
8389      # It seems that -bexpall does not export symbols beginning with
8390      # underscore (_), so it is better to generate a list of symbols to export.
8391      always_export_symbols=yes
8392      if test "$aix_use_runtimelinking" = yes; then
8393        # Warning - without using the other runtime loading flags (-brtl),
8394        # -berok will link without error, but may produce a broken library.
8395        allow_undefined_flag='-berok'
8396       # Determine the default libpath from the value encoded in an empty executable.
8397       cat >conftest.$ac_ext <<_ACEOF
8398/* confdefs.h.  */
8399_ACEOF
8400cat confdefs.h >>conftest.$ac_ext
8401cat >>conftest.$ac_ext <<_ACEOF
8402/* end confdefs.h.  */
8403
8404int
8405main ()
8406{
8407
8408  ;
8409  return 0;
8410}
8411_ACEOF
8412rm -f conftest.$ac_objext conftest$ac_exeext
8413if { (ac_try="$ac_link"
8414case "(($ac_try" in
8415  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416  *) ac_try_echo=$ac_try;;
8417esac
8418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419  (eval "$ac_link") 2>conftest.er1
8420  ac_status=$?
8421  grep -v '^ *+' conftest.er1 >conftest.err
8422  rm -f conftest.er1
8423  cat conftest.err >&5
8424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425  (exit $ac_status); } && {
8426         test -z "$ac_c_werror_flag" ||
8427         test ! -s conftest.err
8428       } && test -s conftest$ac_exeext &&
8429       $as_test_x conftest$ac_exeext; then
8430
8431aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8432}'`
8433# Check for a 64-bit object if we didn't find anything.
8434if 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; }
8435}'`; fi
8436else
8437  echo "$as_me: failed program was:" >&5
8438sed 's/^/| /' conftest.$ac_ext >&5
8439
8440
8441fi
8442
8443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8444      conftest$ac_exeext conftest.$ac_ext
8445if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8446
8447       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8448        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"
8449       else
8450        if test "$host_cpu" = ia64; then
8451          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8452          allow_undefined_flag="-z nodefs"
8453          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"
8454        else
8455         # Determine the default libpath from the value encoded in an empty executable.
8456         cat >conftest.$ac_ext <<_ACEOF
8457/* confdefs.h.  */
8458_ACEOF
8459cat confdefs.h >>conftest.$ac_ext
8460cat >>conftest.$ac_ext <<_ACEOF
8461/* end confdefs.h.  */
8462
8463int
8464main ()
8465{
8466
8467  ;
8468  return 0;
8469}
8470_ACEOF
8471rm -f conftest.$ac_objext conftest$ac_exeext
8472if { (ac_try="$ac_link"
8473case "(($ac_try" in
8474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8475  *) ac_try_echo=$ac_try;;
8476esac
8477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8478  (eval "$ac_link") 2>conftest.er1
8479  ac_status=$?
8480  grep -v '^ *+' conftest.er1 >conftest.err
8481  rm -f conftest.er1
8482  cat conftest.err >&5
8483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484  (exit $ac_status); } && {
8485         test -z "$ac_c_werror_flag" ||
8486         test ! -s conftest.err
8487       } && test -s conftest$ac_exeext &&
8488       $as_test_x conftest$ac_exeext; then
8489
8490aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8491}'`
8492# Check for a 64-bit object if we didn't find anything.
8493if 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; }
8494}'`; fi
8495else
8496  echo "$as_me: failed program was:" >&5
8497sed 's/^/| /' conftest.$ac_ext >&5
8498
8499
8500fi
8501
8502rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8503      conftest$ac_exeext conftest.$ac_ext
8504if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8505
8506         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8507          # Warning - without using the other run time loading flags,
8508          # -berok will link without error, but may produce a broken library.
8509          no_undefined_flag=' ${wl}-bernotok'
8510          allow_undefined_flag=' ${wl}-berok'
8511          # Exported symbols can be pulled into shared objects from archives
8512          whole_archive_flag_spec='$convenience'
8513          archive_cmds_need_lc=yes
8514          # This is similar to how AIX traditionally builds its shared libraries.
8515          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'
8516        fi
8517      fi
8518      ;;
8519
8520    amigaos*)
8521      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)'
8522      hardcode_libdir_flag_spec='-L$libdir'
8523      hardcode_minus_L=yes
8524      # see comment about different semantics on the GNU ld section
8525      ld_shlibs=no
8526      ;;
8527
8528    bsdi[45]*)
8529      export_dynamic_flag_spec=-rdynamic
8530      ;;
8531
8532    cygwin* | mingw* | pw32*)
8533      # When not using gcc, we currently assume that we are using
8534      # Microsoft Visual C++.
8535      # hardcode_libdir_flag_spec is actually meaningless, as there is
8536      # no search path for DLLs.
8537      hardcode_libdir_flag_spec=' '
8538      allow_undefined_flag=unsupported
8539      # Tell ltmain to make .lib files, not .a files.
8540      libext=lib
8541      # Tell ltmain to make .dll files, not .so files.
8542      shrext_cmds=".dll"
8543      # FIXME: Setting linknames here is a bad hack.
8544      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8545      # The linker will automatically build a .lib file if we build a DLL.
8546      old_archive_From_new_cmds='true'
8547      # FIXME: Should let the user specify the lib program.
8548      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8549      fix_srcfile_path='`cygpath -w "$srcfile"`'
8550      enable_shared_with_static_runtimes=yes
8551      ;;
8552
8553    darwin* | rhapsody*)
8554      case $host_os in
8555        rhapsody* | darwin1.[012])
8556         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8557         ;;
8558       *) # Darwin 1.3 on
8559         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8560           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8561         else
8562           case ${MACOSX_DEPLOYMENT_TARGET} in
8563             10.[012])
8564               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8565               ;;
8566             10.*)
8567               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8568               ;;
8569           esac
8570         fi
8571         ;;
8572      esac
8573      archive_cmds_need_lc=no
8574      hardcode_direct=no
8575      hardcode_automatic=yes
8576      hardcode_shlibpath_var=unsupported
8577      whole_archive_flag_spec=''
8578      link_all_deplibs=yes
8579    if test "$GCC" = yes ; then
8580        output_verbose_link_cmd='echo'
8581        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8582      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8583      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8584      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}'
8585      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}'
8586    else
8587      case $cc_basename in
8588        xlc*)
8589         output_verbose_link_cmd='echo'
8590         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8591         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8592          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8593         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}'
8594          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}'
8595          ;;
8596       *)
8597         ld_shlibs=no
8598          ;;
8599      esac
8600    fi
8601      ;;
8602
8603    dgux*)
8604      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8605      hardcode_libdir_flag_spec='-L$libdir'
8606      hardcode_shlibpath_var=no
8607      ;;
8608
8609    freebsd1*)
8610      ld_shlibs=no
8611      ;;
8612
8613    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8614    # support.  Future versions do this automatically, but an explicit c++rt0.o
8615    # does not break anything, and helps significantly (at the cost of a little
8616    # extra space).
8617    freebsd2.2*)
8618      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8619      hardcode_libdir_flag_spec='-R$libdir'
8620      hardcode_direct=yes
8621      hardcode_shlibpath_var=no
8622      ;;
8623
8624    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8625    freebsd2*)
8626      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8627      hardcode_direct=yes
8628      hardcode_minus_L=yes
8629      hardcode_shlibpath_var=no
8630      ;;
8631
8632    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8633    freebsd* | kfreebsd*-gnu | dragonfly*)
8634      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8635      hardcode_libdir_flag_spec='-R$libdir'
8636      hardcode_direct=yes
8637      hardcode_shlibpath_var=no
8638      ;;
8639
8640    hpux9*)
8641      if test "$GCC" = yes; then
8642        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'
8643      else
8644        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'
8645      fi
8646      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8647      hardcode_libdir_separator=:
8648      hardcode_direct=yes
8649
8650      # hardcode_minus_L: Not really in the search PATH,
8651      # but as the default location of the library.
8652      hardcode_minus_L=yes
8653      export_dynamic_flag_spec='${wl}-E'
8654      ;;
8655
8656    hpux10*)
8657      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8658        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8659      else
8660        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8661      fi
8662      if test "$with_gnu_ld" = no; then
8663        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8664        hardcode_libdir_separator=:
8665
8666        hardcode_direct=yes
8667        export_dynamic_flag_spec='${wl}-E'
8668
8669        # hardcode_minus_L: Not really in the search PATH,
8670        # but as the default location of the library.
8671        hardcode_minus_L=yes
8672      fi
8673      ;;
8674
8675    hpux11*)
8676      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8677        case $host_cpu in
8678        hppa*64*)
8679          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8680          ;;
8681        ia64*)
8682          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8683          ;;
8684        *)
8685          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8686          ;;
8687        esac
8688      else
8689        case $host_cpu in
8690        hppa*64*)
8691          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8692          ;;
8693        ia64*)
8694          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8695          ;;
8696        *)
8697          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8698          ;;
8699        esac
8700      fi
8701      if test "$with_gnu_ld" = no; then
8702        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8703        hardcode_libdir_separator=:
8704
8705        case $host_cpu in
8706        hppa*64*|ia64*)
8707          hardcode_libdir_flag_spec_ld='+b $libdir'
8708          hardcode_direct=no
8709          hardcode_shlibpath_var=no
8710          ;;
8711        *)
8712          hardcode_direct=yes
8713          export_dynamic_flag_spec='${wl}-E'
8714
8715          # hardcode_minus_L: Not really in the search PATH,
8716          # but as the default location of the library.
8717          hardcode_minus_L=yes
8718          ;;
8719        esac
8720      fi
8721      ;;
8722
8723    irix5* | irix6* | nonstopux*)
8724      if test "$GCC" = yes; then
8725        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'
8726      else
8727        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'
8728        hardcode_libdir_flag_spec_ld='-rpath $libdir'
8729      fi
8730      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8731      hardcode_libdir_separator=:
8732      link_all_deplibs=yes
8733      ;;
8734
8735    netbsd*)
8736      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8737        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8738      else
8739        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8740      fi
8741      hardcode_libdir_flag_spec='-R$libdir'
8742      hardcode_direct=yes
8743      hardcode_shlibpath_var=no
8744      ;;
8745
8746    newsos6)
8747      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8748      hardcode_direct=yes
8749      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750      hardcode_libdir_separator=:
8751      hardcode_shlibpath_var=no
8752      ;;
8753
8754    openbsd*)
8755      hardcode_direct=yes
8756      hardcode_shlibpath_var=no
8757      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8758        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8759        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8760        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8761        export_dynamic_flag_spec='${wl}-E'
8762      else
8763       case $host_os in
8764         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8765           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8766           hardcode_libdir_flag_spec='-R$libdir'
8767           ;;
8768         *)
8769           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8770           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8771           ;;
8772       esac
8773      fi
8774      ;;
8775
8776    os2*)
8777      hardcode_libdir_flag_spec='-L$libdir'
8778      hardcode_minus_L=yes
8779      allow_undefined_flag=unsupported
8780      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'
8781      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8782      ;;
8783
8784    osf3*)
8785      if test "$GCC" = yes; then
8786        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8787        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'
8788      else
8789        allow_undefined_flag=' -expect_unresolved \*'
8790        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'
8791      fi
8792      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793      hardcode_libdir_separator=:
8794      ;;
8795
8796    osf4* | osf5*)      # as osf3* with the addition of -msym flag
8797      if test "$GCC" = yes; then
8798        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8799        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'
8800        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8801      else
8802        allow_undefined_flag=' -expect_unresolved \*'
8803        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'
8804        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8805        $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'
8806
8807        # Both c and cxx compiler support -rpath directly
8808        hardcode_libdir_flag_spec='-rpath $libdir'
8809      fi
8810      hardcode_libdir_separator=:
8811      ;;
8812
8813    solaris*)
8814      no_undefined_flag=' -z text'
8815      if test "$GCC" = yes; then
8816        wlarc='${wl}'
8817        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8819          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8820      else
8821        wlarc=''
8822        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8824        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8825      fi
8826      hardcode_libdir_flag_spec='-R$libdir'
8827      hardcode_shlibpath_var=no
8828      case $host_os in
8829      solaris2.[0-5] | solaris2.[0-5].*) ;;
8830      *)
8831        # The compiler driver will combine linker options so we
8832        # cannot just pass the convience library names through
8833        # without $wl, iff we do not link with $LD.
8834        # Luckily, gcc supports the same syntax we need for Sun Studio.
8835        # Supported since Solaris 2.6 (maybe 2.5.1?)
8836        case $wlarc in
8837        '')
8838          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8839        *)
8840          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' ;;
8841        esac ;;
8842      esac
8843      link_all_deplibs=yes
8844      ;;
8845
8846    sunos4*)
8847      if test "x$host_vendor" = xsequent; then
8848        # Use $CC to link under sequent, because it throws in some extra .o
8849        # files that make .init and .fini sections work.
8850        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8851      else
8852        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8853      fi
8854      hardcode_libdir_flag_spec='-L$libdir'
8855      hardcode_direct=yes
8856      hardcode_minus_L=yes
8857      hardcode_shlibpath_var=no
8858      ;;
8859
8860    sysv4)
8861      case $host_vendor in
8862        sni)
8863          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864          hardcode_direct=yes # is this really true???
8865        ;;
8866        siemens)
8867          ## LD is ld it makes a PLAMLIB
8868          ## CC just makes a GrossModule.
8869          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8870          reload_cmds='$CC -r -o $output$reload_objs'
8871          hardcode_direct=no
8872        ;;
8873        motorola)
8874          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8876        ;;
8877      esac
8878      runpath_var='LD_RUN_PATH'
8879      hardcode_shlibpath_var=no
8880      ;;
8881
8882    sysv4.3*)
8883      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884      hardcode_shlibpath_var=no
8885      export_dynamic_flag_spec='-Bexport'
8886      ;;
8887
8888    sysv4*MP*)
8889      if test -d /usr/nec; then
8890        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891        hardcode_shlibpath_var=no
8892        runpath_var=LD_RUN_PATH
8893        hardcode_runpath_var=yes
8894        ld_shlibs=yes
8895      fi
8896      ;;
8897
8898    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8899      no_undefined_flag='${wl}-z,text'
8900      archive_cmds_need_lc=no
8901      hardcode_shlibpath_var=no
8902      runpath_var='LD_RUN_PATH'
8903
8904      if test "$GCC" = yes; then
8905        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907      else
8908        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8909        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8910      fi
8911      ;;
8912
8913    sysv5* | sco3.2v5* | sco5v6*)
8914      # Note: We can NOT use -z defs as we might desire, because we do not
8915      # link with -lc, and that would cause any symbols used from libc to
8916      # always be unresolved, which means just about no library would
8917      # ever link correctly.  If we're not using GNU ld we use -z text
8918      # though, which does catch some bad symbols but isn't as heavy-handed
8919      # as -z defs.
8920      no_undefined_flag='${wl}-z,text'
8921      allow_undefined_flag='${wl}-z,nodefs'
8922      archive_cmds_need_lc=no
8923      hardcode_shlibpath_var=no
8924      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8925      hardcode_libdir_separator=':'
8926      link_all_deplibs=yes
8927      export_dynamic_flag_spec='${wl}-Bexport'
8928      runpath_var='LD_RUN_PATH'
8929
8930      if test "$GCC" = yes; then
8931        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8932        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8933      else
8934        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8935        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8936      fi
8937      ;;
8938
8939    uts4*)
8940      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941      hardcode_libdir_flag_spec='-L$libdir'
8942      hardcode_shlibpath_var=no
8943      ;;
8944
8945    *)
8946      ld_shlibs=no
8947      ;;
8948    esac
8949  fi
8950
8951{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8952echo "${ECHO_T}$ld_shlibs" >&6; }
8953test "$ld_shlibs" = no && can_build_shared=no
8954
8955#
8956# Do we need to explicitly link libc?
8957#
8958case "x$archive_cmds_need_lc" in
8959x|xyes)
8960  # Assume -lc should be added
8961  archive_cmds_need_lc=yes
8962
8963  if test "$enable_shared" = yes && test "$GCC" = yes; then
8964    case $archive_cmds in
8965    *'~'*)
8966      # FIXME: we may have to deal with multi-command sequences.
8967      ;;
8968    '$CC '*)
8969      # Test whether the compiler implicitly links with -lc since on some
8970      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8971      # to ld, don't add -lc before -lgcc.
8972      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8973echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8974      $rm conftest*
8975      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8976
8977      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8978  (eval $ac_compile) 2>&5
8979  ac_status=$?
8980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981  (exit $ac_status); } 2>conftest.err; then
8982        soname=conftest
8983        lib=conftest
8984        libobjs=conftest.$ac_objext
8985        deplibs=
8986        wl=$lt_prog_compiler_wl
8987        pic_flag=$lt_prog_compiler_pic
8988        compiler_flags=-v
8989        linker_flags=-v
8990        verstring=
8991        output_objdir=.
8992        libname=conftest
8993        lt_save_allow_undefined_flag=$allow_undefined_flag
8994        allow_undefined_flag=
8995        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8996  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8997  ac_status=$?
8998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999  (exit $ac_status); }
9000        then
9001          archive_cmds_need_lc=no
9002        else
9003          archive_cmds_need_lc=yes
9004        fi
9005        allow_undefined_flag=$lt_save_allow_undefined_flag
9006      else
9007        cat conftest.err 1>&5
9008      fi
9009      $rm conftest*
9010      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9011echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9012      ;;
9013    esac
9014  fi
9015  ;;
9016esac
9017
9018{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9019echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9020library_names_spec=
9021libname_spec='lib$name'
9022soname_spec=
9023shrext_cmds=".so"
9024postinstall_cmds=
9025postuninstall_cmds=
9026finish_cmds=
9027finish_eval=
9028shlibpath_var=
9029shlibpath_overrides_runpath=unknown
9030version_type=none
9031dynamic_linker="$host_os ld.so"
9032sys_lib_dlsearch_path_spec="/lib /usr/lib"
9033if test "$GCC" = yes; then
9034  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9035  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9036    # if the path contains ";" then we assume it to be the separator
9037    # otherwise default to the standard path separator (i.e. ":") - it is
9038    # assumed that no part of a normal pathname contains ";" but that should
9039    # okay in the real world where ";" in dirpaths is itself problematic.
9040    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9041  else
9042    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9043  fi
9044else
9045  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9046fi
9047need_lib_prefix=unknown
9048hardcode_into_libs=no
9049
9050# when you set need_version to no, make sure it does not cause -set_version
9051# flags to be left without arguments
9052need_version=unknown
9053
9054case $host_os in
9055aix3*)
9056  version_type=linux
9057  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9058  shlibpath_var=LIBPATH
9059
9060  # AIX 3 has no versioning support, so we append a major version to the name.
9061  soname_spec='${libname}${release}${shared_ext}$major'
9062  ;;
9063
9064aix4* | aix5*)
9065  version_type=linux
9066  need_lib_prefix=no
9067  need_version=no
9068  hardcode_into_libs=yes
9069  if test "$host_cpu" = ia64; then
9070    # AIX 5 supports IA64
9071    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9072    shlibpath_var=LD_LIBRARY_PATH
9073  else
9074    # With GCC up to 2.95.x, collect2 would create an import file
9075    # for dependence libraries.  The import file would start with
9076    # the line `#! .'.  This would cause the generated library to
9077    # depend on `.', always an invalid library.  This was fixed in
9078    # development snapshots of GCC prior to 3.0.
9079    case $host_os in
9080      aix4 | aix4.[01] | aix4.[01].*)
9081      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9082           echo ' yes '
9083           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9084        :
9085      else
9086        can_build_shared=no
9087      fi
9088      ;;
9089    esac
9090    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9091    # soname into executable. Probably we can add versioning support to
9092    # collect2, so additional links can be useful in future.
9093    if test "$aix_use_runtimelinking" = yes; then
9094      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9095      # instead of lib<name>.a to let people know that these are not
9096      # typical AIX shared libraries.
9097      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098    else
9099      # We preserve .a as extension for shared libraries through AIX4.2
9100      # and later when we are not doing run time linking.
9101      library_names_spec='${libname}${release}.a $libname.a'
9102      soname_spec='${libname}${release}${shared_ext}$major'
9103    fi
9104    shlibpath_var=LIBPATH
9105  fi
9106  ;;
9107
9108amigaos*)
9109  library_names_spec='$libname.ixlibrary $libname.a'
9110  # Create ${libname}_ixlibrary.a entries in /sys/libs.
9111  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'
9112  ;;
9113
9114beos*)
9115  library_names_spec='${libname}${shared_ext}'
9116  dynamic_linker="$host_os ld.so"
9117  shlibpath_var=LIBRARY_PATH
9118  ;;
9119
9120bsdi[45]*)
9121  version_type=linux
9122  need_version=no
9123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124  soname_spec='${libname}${release}${shared_ext}$major'
9125  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9126  shlibpath_var=LD_LIBRARY_PATH
9127  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9128  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9129  # the default ld.so.conf also contains /usr/contrib/lib and
9130  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9131  # libtool to hard-code these into programs
9132  ;;
9133
9134cygwin* | mingw* | pw32*)
9135  version_type=windows
9136  shrext_cmds=".dll"
9137  need_version=no
9138  need_lib_prefix=no
9139
9140  case $GCC,$host_os in
9141  yes,cygwin* | yes,mingw* | yes,pw32*)
9142    library_names_spec='$libname.dll.a'
9143    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9144    postinstall_cmds='base_file=`basename \${file}`~
9145      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9146      dldir=$destdir/`dirname \$dlpath`~
9147      test -d \$dldir || mkdir -p \$dldir~
9148      $install_prog $dir/$dlname \$dldir/$dlname~
9149      chmod a+x \$dldir/$dlname'
9150    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9151      dlpath=$dir/\$dldll~
9152       $rm \$dlpath'
9153    shlibpath_overrides_runpath=yes
9154
9155    case $host_os in
9156    cygwin*)
9157      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9158      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9159      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9160      ;;
9161    mingw*)
9162      # MinGW DLLs use traditional 'lib' prefix
9163      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9164      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9165      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9166        # It is most probably a Windows format PATH printed by
9167        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9168        # path with ; separators, and with drive letters. We can handle the
9169        # drive letters (cygwin fileutils understands them), so leave them,
9170        # especially as we might pass files found there to a mingw objdump,
9171        # which wouldn't understand a cygwinified path. Ahh.
9172        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9173      else
9174        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9175      fi
9176      ;;
9177    pw32*)
9178      # pw32 DLLs use 'pw' prefix rather than 'lib'
9179      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180      ;;
9181    esac
9182    ;;
9183
9184  *)
9185    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9186    ;;
9187  esac
9188  dynamic_linker='Win32 ld.exe'
9189  # FIXME: first we should search . and the directory the executable is in
9190  shlibpath_var=PATH
9191  ;;
9192
9193darwin* | rhapsody*)
9194  dynamic_linker="$host_os dyld"
9195  version_type=darwin
9196  need_lib_prefix=no
9197  need_version=no
9198  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9199  soname_spec='${libname}${release}${major}$shared_ext'
9200  shlibpath_overrides_runpath=yes
9201  shlibpath_var=DYLD_LIBRARY_PATH
9202  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9203  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9204  if test "$GCC" = yes; then
9205    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"`
9206  else
9207    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9208  fi
9209  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9210  ;;
9211
9212dgux*)
9213  version_type=linux
9214  need_lib_prefix=no
9215  need_version=no
9216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9217  soname_spec='${libname}${release}${shared_ext}$major'
9218  shlibpath_var=LD_LIBRARY_PATH
9219  ;;
9220
9221freebsd1*)
9222  dynamic_linker=no
9223  ;;
9224
9225kfreebsd*-gnu)
9226  version_type=linux
9227  need_lib_prefix=no
9228  need_version=no
9229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9230  soname_spec='${libname}${release}${shared_ext}$major'
9231  shlibpath_var=LD_LIBRARY_PATH
9232  shlibpath_overrides_runpath=no
9233  hardcode_into_libs=yes
9234  dynamic_linker='GNU ld.so'
9235  ;;
9236
9237freebsd* | dragonfly*)
9238  # DragonFly does not have aout.  When/if they implement a new
9239  # versioning mechanism, adjust this.
9240  if test -x /usr/bin/objformat; then
9241    objformat=`/usr/bin/objformat`
9242  else
9243    case $host_os in
9244    freebsd[123]*) objformat=aout ;;
9245    *) objformat=elf ;;
9246    esac
9247  fi
9248  version_type=freebsd-$objformat
9249  case $version_type in
9250    freebsd-elf*)
9251      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9252      need_version=no
9253      need_lib_prefix=no
9254      ;;
9255    freebsd-*)
9256      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9257      need_version=yes
9258      ;;
9259  esac
9260  shlibpath_var=LD_LIBRARY_PATH
9261  case $host_os in
9262  freebsd2*)
9263    shlibpath_overrides_runpath=yes
9264    ;;
9265  freebsd3.[01]* | freebsdelf3.[01]*)
9266    shlibpath_overrides_runpath=yes
9267    hardcode_into_libs=yes
9268    ;;
9269  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9270  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9271    shlibpath_overrides_runpath=no
9272    hardcode_into_libs=yes
9273    ;;
9274  freebsd*) # from 4.6 on
9275    shlibpath_overrides_runpath=yes
9276    hardcode_into_libs=yes
9277    ;;
9278  esac
9279  ;;
9280
9281gnu*)
9282  version_type=linux
9283  need_lib_prefix=no
9284  need_version=no
9285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9286  soname_spec='${libname}${release}${shared_ext}$major'
9287  shlibpath_var=LD_LIBRARY_PATH
9288  hardcode_into_libs=yes
9289  ;;
9290
9291hpux9* | hpux10* | hpux11*)
9292  # Give a soname corresponding to the major version so that dld.sl refuses to
9293  # link against other versions.
9294  version_type=sunos
9295  need_lib_prefix=no
9296  need_version=no
9297  case $host_cpu in
9298  ia64*)
9299    shrext_cmds='.so'
9300    hardcode_into_libs=yes
9301    dynamic_linker="$host_os dld.so"
9302    shlibpath_var=LD_LIBRARY_PATH
9303    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9304    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305    soname_spec='${libname}${release}${shared_ext}$major'
9306    if test "X$HPUX_IA64_MODE" = X32; then
9307      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9308    else
9309      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9310    fi
9311    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9312    ;;
9313   hppa*64*)
9314     shrext_cmds='.sl'
9315     hardcode_into_libs=yes
9316     dynamic_linker="$host_os dld.sl"
9317     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9318     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9319     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320     soname_spec='${libname}${release}${shared_ext}$major'
9321     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9322     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9323     ;;
9324   *)
9325    shrext_cmds='.sl'
9326    dynamic_linker="$host_os dld.sl"
9327    shlibpath_var=SHLIB_PATH
9328    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9329    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330    soname_spec='${libname}${release}${shared_ext}$major'
9331    ;;
9332  esac
9333  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9334  postinstall_cmds='chmod 555 $lib'
9335  ;;
9336
9337interix3*)
9338  version_type=linux
9339  need_lib_prefix=no
9340  need_version=no
9341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9342  soname_spec='${libname}${release}${shared_ext}$major'
9343  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9344  shlibpath_var=LD_LIBRARY_PATH
9345  shlibpath_overrides_runpath=no
9346  hardcode_into_libs=yes
9347  ;;
9348
9349irix5* | irix6* | nonstopux*)
9350  case $host_os in
9351    nonstopux*) version_type=nonstopux ;;
9352    *)
9353        if test "$lt_cv_prog_gnu_ld" = yes; then
9354                version_type=linux
9355        else
9356                version_type=irix
9357        fi ;;
9358  esac
9359  need_lib_prefix=no
9360  need_version=no
9361  soname_spec='${libname}${release}${shared_ext}$major'
9362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9363  case $host_os in
9364  irix5* | nonstopux*)
9365    libsuff= shlibsuff=
9366    ;;
9367  *)
9368    case $LD in # libtool.m4 will add one of these switches to LD
9369    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9370      libsuff= shlibsuff= libmagic=32-bit;;
9371    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9372      libsuff=32 shlibsuff=N32 libmagic=N32;;
9373    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9374      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9375    *) libsuff= shlibsuff= libmagic=never-match;;
9376    esac
9377    ;;
9378  esac
9379  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9380  shlibpath_overrides_runpath=no
9381  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9382  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9383  hardcode_into_libs=yes
9384  ;;
9385
9386# No shared lib support for Linux oldld, aout, or coff.
9387linux*oldld* | linux*aout* | linux*coff*)
9388  dynamic_linker=no
9389  ;;
9390
9391# This must be Linux ELF.
9392linux*)
9393  version_type=linux
9394  need_lib_prefix=no
9395  need_version=no
9396  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397  soname_spec='${libname}${release}${shared_ext}$major'
9398  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9399  shlibpath_var=LD_LIBRARY_PATH
9400  shlibpath_overrides_runpath=no
9401  # This implies no fast_install, which is unacceptable.
9402  # Some rework will be needed to allow for fast_install
9403  # before this can be enabled.
9404  hardcode_into_libs=yes
9405
9406  # find out which ABI we are using
9407  libsuff=
9408  case "$host_cpu" in
9409  x86_64*|s390x*|powerpc64*)
9410    echo '#line 9410 "configure"' > conftest.$ac_ext
9411    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9412  (eval $ac_compile) 2>&5
9413  ac_status=$?
9414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415  (exit $ac_status); }; then
9416      case `/usr/bin/file conftest.$ac_objext` in
9417      *64-bit*)
9418        libsuff=64
9419        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9420        ;;
9421      esac
9422    fi
9423    rm -rf conftest*
9424    ;;
9425  esac
9426
9427  # Append ld.so.conf contents to the search path
9428  if test -f /etc/ld.so.conf; then
9429    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' ' '`
9430    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9431  fi
9432
9433  # We used to test for /lib/ld.so.1 and disable shared libraries on
9434  # powerpc, because MkLinux only supported shared libraries with the
9435  # GNU dynamic linker.  Since this was broken with cross compilers,
9436  # most powerpc-linux boxes support dynamic linking these days and
9437  # people can always --disable-shared, the test was removed, and we
9438  # assume the GNU/Linux dynamic linker is in use.
9439  dynamic_linker='GNU/Linux ld.so'
9440  ;;
9441
9442knetbsd*-gnu)
9443  version_type=linux
9444  need_lib_prefix=no
9445  need_version=no
9446  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9447  soname_spec='${libname}${release}${shared_ext}$major'
9448  shlibpath_var=LD_LIBRARY_PATH
9449  shlibpath_overrides_runpath=no
9450  hardcode_into_libs=yes
9451  dynamic_linker='GNU ld.so'
9452  ;;
9453
9454netbsd*)
9455  version_type=sunos
9456  need_lib_prefix=no
9457  need_version=no
9458  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9459    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9460    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9461    dynamic_linker='NetBSD (a.out) ld.so'
9462  else
9463    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9464    soname_spec='${libname}${release}${shared_ext}$major'
9465    dynamic_linker='NetBSD ld.elf_so'
9466  fi
9467  shlibpath_var=LD_LIBRARY_PATH
9468  shlibpath_overrides_runpath=yes
9469  hardcode_into_libs=yes
9470  ;;
9471
9472newsos6)
9473  version_type=linux
9474  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9475  shlibpath_var=LD_LIBRARY_PATH
9476  shlibpath_overrides_runpath=yes
9477  ;;
9478
9479nto-qnx*)
9480  version_type=linux
9481  need_lib_prefix=no
9482  need_version=no
9483  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9484  soname_spec='${libname}${release}${shared_ext}$major'
9485  shlibpath_var=LD_LIBRARY_PATH
9486  shlibpath_overrides_runpath=yes
9487  ;;
9488
9489openbsd*)
9490  version_type=sunos
9491  sys_lib_dlsearch_path_spec="/usr/lib"
9492  need_lib_prefix=no
9493  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9494  case $host_os in
9495    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9496    *)                         need_version=no  ;;
9497  esac
9498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9499  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9500  shlibpath_var=LD_LIBRARY_PATH
9501  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9502    case $host_os in
9503      openbsd2.[89] | openbsd2.[89].*)
9504        shlibpath_overrides_runpath=no
9505        ;;
9506      *)
9507        shlibpath_overrides_runpath=yes
9508        ;;
9509      esac
9510  else
9511    shlibpath_overrides_runpath=yes
9512  fi
9513  ;;
9514
9515os2*)
9516  libname_spec='$name'
9517  shrext_cmds=".dll"
9518  need_lib_prefix=no
9519  library_names_spec='$libname${shared_ext} $libname.a'
9520  dynamic_linker='OS/2 ld.exe'
9521  shlibpath_var=LIBPATH
9522  ;;
9523
9524osf3* | osf4* | osf5*)
9525  version_type=osf
9526  need_lib_prefix=no
9527  need_version=no
9528  soname_spec='${libname}${release}${shared_ext}$major'
9529  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9530  shlibpath_var=LD_LIBRARY_PATH
9531  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9532  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9533  ;;
9534
9535solaris*)
9536  version_type=linux
9537  need_lib_prefix=no
9538  need_version=no
9539  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540  soname_spec='${libname}${release}${shared_ext}$major'
9541  shlibpath_var=LD_LIBRARY_PATH
9542  shlibpath_overrides_runpath=yes
9543  hardcode_into_libs=yes
9544  # ldd complains unless libraries are executable
9545  postinstall_cmds='chmod +x $lib'
9546  ;;
9547
9548sunos4*)
9549  version_type=sunos
9550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9551  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9552  shlibpath_var=LD_LIBRARY_PATH
9553  shlibpath_overrides_runpath=yes
9554  if test "$with_gnu_ld" = yes; then
9555    need_lib_prefix=no
9556  fi
9557  need_version=yes
9558  ;;
9559
9560sysv4 | sysv4.3*)
9561  version_type=linux
9562  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9563  soname_spec='${libname}${release}${shared_ext}$major'
9564  shlibpath_var=LD_LIBRARY_PATH
9565  case $host_vendor in
9566    sni)
9567      shlibpath_overrides_runpath=no
9568      need_lib_prefix=no
9569      export_dynamic_flag_spec='${wl}-Blargedynsym'
9570      runpath_var=LD_RUN_PATH
9571      ;;
9572    siemens)
9573      need_lib_prefix=no
9574      ;;
9575    motorola)
9576      need_lib_prefix=no
9577      need_version=no
9578      shlibpath_overrides_runpath=no
9579      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9580      ;;
9581  esac
9582  ;;
9583
9584sysv4*MP*)
9585  if test -d /usr/nec ;then
9586    version_type=linux
9587    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9588    soname_spec='$libname${shared_ext}.$major'
9589    shlibpath_var=LD_LIBRARY_PATH
9590  fi
9591  ;;
9592
9593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9594  version_type=freebsd-elf
9595  need_lib_prefix=no
9596  need_version=no
9597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9598  soname_spec='${libname}${release}${shared_ext}$major'
9599  shlibpath_var=LD_LIBRARY_PATH
9600  hardcode_into_libs=yes
9601  if test "$with_gnu_ld" = yes; then
9602    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9603    shlibpath_overrides_runpath=no
9604  else
9605    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9606    shlibpath_overrides_runpath=yes
9607    case $host_os in
9608      sco3.2v5*)
9609        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9610        ;;
9611    esac
9612  fi
9613  sys_lib_dlsearch_path_spec='/usr/lib'
9614  ;;
9615
9616uts4*)
9617  version_type=linux
9618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619  soname_spec='${libname}${release}${shared_ext}$major'
9620  shlibpath_var=LD_LIBRARY_PATH
9621  ;;
9622
9623*)
9624  dynamic_linker=no
9625  ;;
9626esac
9627{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9628echo "${ECHO_T}$dynamic_linker" >&6; }
9629test "$dynamic_linker" = no && can_build_shared=no
9630
9631variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9632if test "$GCC" = yes; then
9633  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9634fi
9635
9636{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9637echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9638hardcode_action=
9639if test -n "$hardcode_libdir_flag_spec" || \
9640   test -n "$runpath_var" || \
9641   test "X$hardcode_automatic" = "Xyes" ; then
9642
9643  # We can hardcode non-existant directories.
9644  if test "$hardcode_direct" != no &&
9645     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9646     # have to relink, otherwise we might link with an installed library
9647     # when we should be linking with a yet-to-be-installed one
9648     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9649     test "$hardcode_minus_L" != no; then
9650    # Linking always hardcodes the temporary library directory.
9651    hardcode_action=relink
9652  else
9653    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9654    hardcode_action=immediate
9655  fi
9656else
9657  # We cannot hardcode anything, or else we can only hardcode existing
9658  # directories.
9659  hardcode_action=unsupported
9660fi
9661{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9662echo "${ECHO_T}$hardcode_action" >&6; }
9663
9664if test "$hardcode_action" = relink; then
9665  # Fast installation is not supported
9666  enable_fast_install=no
9667elif test "$shlibpath_overrides_runpath" = yes ||
9668     test "$enable_shared" = no; then
9669  # Fast installation is not necessary
9670  enable_fast_install=needless
9671fi
9672
9673striplib=
9674old_striplib=
9675{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9676echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9677if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9678  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9679  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9680  { echo "$as_me:$LINENO: result: yes" >&5
9681echo "${ECHO_T}yes" >&6; }
9682else
9683# FIXME - insert some real tests, host_os isn't really good enough
9684  case $host_os in
9685   darwin*)
9686       if test -n "$STRIP" ; then
9687         striplib="$STRIP -x"
9688         { echo "$as_me:$LINENO: result: yes" >&5
9689echo "${ECHO_T}yes" >&6; }
9690       else
9691  { echo "$as_me:$LINENO: result: no" >&5
9692echo "${ECHO_T}no" >&6; }
9693fi
9694       ;;
9695   *)
9696  { echo "$as_me:$LINENO: result: no" >&5
9697echo "${ECHO_T}no" >&6; }
9698    ;;
9699  esac
9700fi
9701
9702if test "x$enable_dlopen" != xyes; then
9703  enable_dlopen=unknown
9704  enable_dlopen_self=unknown
9705  enable_dlopen_self_static=unknown
9706else
9707  lt_cv_dlopen=no
9708  lt_cv_dlopen_libs=
9709
9710  case $host_os in
9711  beos*)
9712    lt_cv_dlopen="load_add_on"
9713    lt_cv_dlopen_libs=
9714    lt_cv_dlopen_self=yes
9715    ;;
9716
9717  mingw* | pw32*)
9718    lt_cv_dlopen="LoadLibrary"
9719    lt_cv_dlopen_libs=
9720   ;;
9721
9722  cygwin*)
9723    lt_cv_dlopen="dlopen"
9724    lt_cv_dlopen_libs=
9725   ;;
9726
9727  darwin*)
9728  # if libdl is installed we need to link against it
9729    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9730echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9731if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9732  echo $ECHO_N "(cached) $ECHO_C" >&6
9733else
9734  ac_check_lib_save_LIBS=$LIBS
9735LIBS="-ldl  $LIBS"
9736cat >conftest.$ac_ext <<_ACEOF
9737/* confdefs.h.  */
9738_ACEOF
9739cat confdefs.h >>conftest.$ac_ext
9740cat >>conftest.$ac_ext <<_ACEOF
9741/* end confdefs.h.  */
9742
9743/* Override any GCC internal prototype to avoid an error.
9744   Use char because int might match the return type of a GCC
9745   builtin and then its argument prototype would still apply.  */
9746#ifdef __cplusplus
9747extern "C"
9748#endif
9749char dlopen ();
9750int
9751main ()
9752{
9753return dlopen ();
9754  ;
9755  return 0;
9756}
9757_ACEOF
9758rm -f conftest.$ac_objext conftest$ac_exeext
9759if { (ac_try="$ac_link"
9760case "(($ac_try" in
9761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9762  *) ac_try_echo=$ac_try;;
9763esac
9764eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765  (eval "$ac_link") 2>conftest.er1
9766  ac_status=$?
9767  grep -v '^ *+' conftest.er1 >conftest.err
9768  rm -f conftest.er1
9769  cat conftest.err >&5
9770  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771  (exit $ac_status); } && {
9772         test -z "$ac_c_werror_flag" ||
9773         test ! -s conftest.err
9774       } && test -s conftest$ac_exeext &&
9775       $as_test_x conftest$ac_exeext; then
9776  ac_cv_lib_dl_dlopen=yes
9777else
9778  echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
9781        ac_cv_lib_dl_dlopen=no
9782fi
9783
9784rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9785      conftest$ac_exeext conftest.$ac_ext
9786LIBS=$ac_check_lib_save_LIBS
9787fi
9788{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9789echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9790if test $ac_cv_lib_dl_dlopen = yes; then
9791  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9792else
9793
9794    lt_cv_dlopen="dyld"
9795    lt_cv_dlopen_libs=
9796    lt_cv_dlopen_self=yes
9797
9798fi
9799
9800   ;;
9801
9802  *)
9803    { echo "$as_me:$LINENO: checking for shl_load" >&5
9804echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9805if test "${ac_cv_func_shl_load+set}" = set; then
9806  echo $ECHO_N "(cached) $ECHO_C" >&6
9807else
9808  cat >conftest.$ac_ext <<_ACEOF
9809/* confdefs.h.  */
9810_ACEOF
9811cat confdefs.h >>conftest.$ac_ext
9812cat >>conftest.$ac_ext <<_ACEOF
9813/* end confdefs.h.  */
9814/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9815   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9816#define shl_load innocuous_shl_load
9817
9818/* System header to define __stub macros and hopefully few prototypes,
9819    which can conflict with char shl_load (); below.
9820    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9821    <limits.h> exists even on freestanding compilers.  */
9822
9823#ifdef __STDC__
9824# include <limits.h>
9825#else
9826# include <assert.h>
9827#endif
9828
9829#undef shl_load
9830
9831/* Override any GCC internal prototype to avoid an error.
9832   Use char because int might match the return type of a GCC
9833   builtin and then its argument prototype would still apply.  */
9834#ifdef __cplusplus
9835extern "C"
9836#endif
9837char shl_load ();
9838/* The GNU C library defines this for functions which it implements
9839    to always fail with ENOSYS.  Some functions are actually named
9840    something starting with __ and the normal name is an alias.  */
9841#if defined __stub_shl_load || defined __stub___shl_load
9842choke me
9843#endif
9844
9845int
9846main ()
9847{
9848return shl_load ();
9849  ;
9850  return 0;
9851}
9852_ACEOF
9853rm -f conftest.$ac_objext conftest$ac_exeext
9854if { (ac_try="$ac_link"
9855case "(($ac_try" in
9856  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857  *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860  (eval "$ac_link") 2>conftest.er1
9861  ac_status=$?
9862  grep -v '^ *+' conftest.er1 >conftest.err
9863  rm -f conftest.er1
9864  cat conftest.err >&5
9865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866  (exit $ac_status); } && {
9867         test -z "$ac_c_werror_flag" ||
9868         test ! -s conftest.err
9869       } && test -s conftest$ac_exeext &&
9870       $as_test_x conftest$ac_exeext; then
9871  ac_cv_func_shl_load=yes
9872else
9873  echo "$as_me: failed program was:" >&5
9874sed 's/^/| /' conftest.$ac_ext >&5
9875
9876        ac_cv_func_shl_load=no
9877fi
9878
9879rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9880      conftest$ac_exeext conftest.$ac_ext
9881fi
9882{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9883echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9884if test $ac_cv_func_shl_load = yes; then
9885  lt_cv_dlopen="shl_load"
9886else
9887  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9888echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9889if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9890  echo $ECHO_N "(cached) $ECHO_C" >&6
9891else
9892  ac_check_lib_save_LIBS=$LIBS
9893LIBS="-ldld  $LIBS"
9894cat >conftest.$ac_ext <<_ACEOF
9895/* confdefs.h.  */
9896_ACEOF
9897cat confdefs.h >>conftest.$ac_ext
9898cat >>conftest.$ac_ext <<_ACEOF
9899/* end confdefs.h.  */
9900
9901/* Override any GCC internal prototype to avoid an error.
9902   Use char because int might match the return type of a GCC
9903   builtin and then its argument prototype would still apply.  */
9904#ifdef __cplusplus
9905extern "C"
9906#endif
9907char shl_load ();
9908int
9909main ()
9910{
9911return shl_load ();
9912  ;
9913  return 0;
9914}
9915_ACEOF
9916rm -f conftest.$ac_objext conftest$ac_exeext
9917if { (ac_try="$ac_link"
9918case "(($ac_try" in
9919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9920  *) ac_try_echo=$ac_try;;
9921esac
9922eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923  (eval "$ac_link") 2>conftest.er1
9924  ac_status=$?
9925  grep -v '^ *+' conftest.er1 >conftest.err
9926  rm -f conftest.er1
9927  cat conftest.err >&5
9928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929  (exit $ac_status); } && {
9930         test -z "$ac_c_werror_flag" ||
9931         test ! -s conftest.err
9932       } && test -s conftest$ac_exeext &&
9933       $as_test_x conftest$ac_exeext; then
9934  ac_cv_lib_dld_shl_load=yes
9935else
9936  echo "$as_me: failed program was:" >&5
9937sed 's/^/| /' conftest.$ac_ext >&5
9938
9939        ac_cv_lib_dld_shl_load=no
9940fi
9941
9942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9943      conftest$ac_exeext conftest.$ac_ext
9944LIBS=$ac_check_lib_save_LIBS
9945fi
9946{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9947echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9948if test $ac_cv_lib_dld_shl_load = yes; then
9949  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9950else
9951  { echo "$as_me:$LINENO: checking for dlopen" >&5
9952echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9953if test "${ac_cv_func_dlopen+set}" = set; then
9954  echo $ECHO_N "(cached) $ECHO_C" >&6
9955else
9956  cat >conftest.$ac_ext <<_ACEOF
9957/* confdefs.h.  */
9958_ACEOF
9959cat confdefs.h >>conftest.$ac_ext
9960cat >>conftest.$ac_ext <<_ACEOF
9961/* end confdefs.h.  */
9962/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9963   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9964#define dlopen innocuous_dlopen
9965
9966/* System header to define __stub macros and hopefully few prototypes,
9967    which can conflict with char dlopen (); below.
9968    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9969    <limits.h> exists even on freestanding compilers.  */
9970
9971#ifdef __STDC__
9972# include <limits.h>
9973#else
9974# include <assert.h>
9975#endif
9976
9977#undef dlopen
9978
9979/* Override any GCC internal prototype to avoid an error.
9980   Use char because int might match the return type of a GCC
9981   builtin and then its argument prototype would still apply.  */
9982#ifdef __cplusplus
9983extern "C"
9984#endif
9985char dlopen ();
9986/* The GNU C library defines this for functions which it implements
9987    to always fail with ENOSYS.  Some functions are actually named
9988    something starting with __ and the normal name is an alias.  */
9989#if defined __stub_dlopen || defined __stub___dlopen
9990choke me
9991#endif
9992
9993int
9994main ()
9995{
9996return dlopen ();
9997  ;
9998  return 0;
9999}
10000_ACEOF
10001rm -f conftest.$ac_objext conftest$ac_exeext
10002if { (ac_try="$ac_link"
10003case "(($ac_try" in
10004  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10005  *) ac_try_echo=$ac_try;;
10006esac
10007eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10008  (eval "$ac_link") 2>conftest.er1
10009  ac_status=$?
10010  grep -v '^ *+' conftest.er1 >conftest.err
10011  rm -f conftest.er1
10012  cat conftest.err >&5
10013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014  (exit $ac_status); } && {
10015         test -z "$ac_c_werror_flag" ||
10016         test ! -s conftest.err
10017       } && test -s conftest$ac_exeext &&
10018       $as_test_x conftest$ac_exeext; then
10019  ac_cv_func_dlopen=yes
10020else
10021  echo "$as_me: failed program was:" >&5
10022sed 's/^/| /' conftest.$ac_ext >&5
10023
10024        ac_cv_func_dlopen=no
10025fi
10026
10027rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10028      conftest$ac_exeext conftest.$ac_ext
10029fi
10030{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10031echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10032if test $ac_cv_func_dlopen = yes; then
10033  lt_cv_dlopen="dlopen"
10034else
10035  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10036echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10037if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10038  echo $ECHO_N "(cached) $ECHO_C" >&6
10039else
10040  ac_check_lib_save_LIBS=$LIBS
10041LIBS="-ldl  $LIBS"
10042cat >conftest.$ac_ext <<_ACEOF
10043/* confdefs.h.  */
10044_ACEOF
10045cat confdefs.h >>conftest.$ac_ext
10046cat >>conftest.$ac_ext <<_ACEOF
10047/* end confdefs.h.  */
10048
10049/* Override any GCC internal prototype to avoid an error.
10050   Use char because int might match the return type of a GCC
10051   builtin and then its argument prototype would still apply.  */
10052#ifdef __cplusplus
10053extern "C"
10054#endif
10055char dlopen ();
10056int
10057main ()
10058{
10059return dlopen ();
10060  ;
10061  return 0;
10062}
10063_ACEOF
10064rm -f conftest.$ac_objext conftest$ac_exeext
10065if { (ac_try="$ac_link"
10066case "(($ac_try" in
10067  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068  *) ac_try_echo=$ac_try;;
10069esac
10070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071  (eval "$ac_link") 2>conftest.er1
10072  ac_status=$?
10073  grep -v '^ *+' conftest.er1 >conftest.err
10074  rm -f conftest.er1
10075  cat conftest.err >&5
10076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077  (exit $ac_status); } && {
10078         test -z "$ac_c_werror_flag" ||
10079         test ! -s conftest.err
10080       } && test -s conftest$ac_exeext &&
10081       $as_test_x conftest$ac_exeext; then
10082  ac_cv_lib_dl_dlopen=yes
10083else
10084  echo "$as_me: failed program was:" >&5
10085sed 's/^/| /' conftest.$ac_ext >&5
10086
10087        ac_cv_lib_dl_dlopen=no
10088fi
10089
10090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10091      conftest$ac_exeext conftest.$ac_ext
10092LIBS=$ac_check_lib_save_LIBS
10093fi
10094{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10095echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10096if test $ac_cv_lib_dl_dlopen = yes; then
10097  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10098else
10099  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10100echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10101if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10102  echo $ECHO_N "(cached) $ECHO_C" >&6
10103else
10104  ac_check_lib_save_LIBS=$LIBS
10105LIBS="-lsvld  $LIBS"
10106cat >conftest.$ac_ext <<_ACEOF
10107/* confdefs.h.  */
10108_ACEOF
10109cat confdefs.h >>conftest.$ac_ext
10110cat >>conftest.$ac_ext <<_ACEOF
10111/* end confdefs.h.  */
10112
10113/* Override any GCC internal prototype to avoid an error.
10114   Use char because int might match the return type of a GCC
10115   builtin and then its argument prototype would still apply.  */
10116#ifdef __cplusplus
10117extern "C"
10118#endif
10119char dlopen ();
10120int
10121main ()
10122{
10123return dlopen ();
10124  ;
10125  return 0;
10126}
10127_ACEOF
10128rm -f conftest.$ac_objext conftest$ac_exeext
10129if { (ac_try="$ac_link"
10130case "(($ac_try" in
10131  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10132  *) ac_try_echo=$ac_try;;
10133esac
10134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10135  (eval "$ac_link") 2>conftest.er1
10136  ac_status=$?
10137  grep -v '^ *+' conftest.er1 >conftest.err
10138  rm -f conftest.er1
10139  cat conftest.err >&5
10140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141  (exit $ac_status); } && {
10142         test -z "$ac_c_werror_flag" ||
10143         test ! -s conftest.err
10144       } && test -s conftest$ac_exeext &&
10145       $as_test_x conftest$ac_exeext; then
10146  ac_cv_lib_svld_dlopen=yes
10147else
10148  echo "$as_me: failed program was:" >&5
10149sed 's/^/| /' conftest.$ac_ext >&5
10150
10151        ac_cv_lib_svld_dlopen=no
10152fi
10153
10154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10155      conftest$ac_exeext conftest.$ac_ext
10156LIBS=$ac_check_lib_save_LIBS
10157fi
10158{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10159echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10160if test $ac_cv_lib_svld_dlopen = yes; then
10161  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10162else
10163  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10164echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10165if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10166  echo $ECHO_N "(cached) $ECHO_C" >&6
10167else
10168  ac_check_lib_save_LIBS=$LIBS
10169LIBS="-ldld  $LIBS"
10170cat >conftest.$ac_ext <<_ACEOF
10171/* confdefs.h.  */
10172_ACEOF
10173cat confdefs.h >>conftest.$ac_ext
10174cat >>conftest.$ac_ext <<_ACEOF
10175/* end confdefs.h.  */
10176
10177/* Override any GCC internal prototype to avoid an error.
10178   Use char because int might match the return type of a GCC
10179   builtin and then its argument prototype would still apply.  */
10180#ifdef __cplusplus
10181extern "C"
10182#endif
10183char dld_link ();
10184int
10185main ()
10186{
10187return dld_link ();
10188  ;
10189  return 0;
10190}
10191_ACEOF
10192rm -f conftest.$ac_objext conftest$ac_exeext
10193if { (ac_try="$ac_link"
10194case "(($ac_try" in
10195  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196  *) ac_try_echo=$ac_try;;
10197esac
10198eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199  (eval "$ac_link") 2>conftest.er1
10200  ac_status=$?
10201  grep -v '^ *+' conftest.er1 >conftest.err
10202  rm -f conftest.er1
10203  cat conftest.err >&5
10204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205  (exit $ac_status); } && {
10206         test -z "$ac_c_werror_flag" ||
10207         test ! -s conftest.err
10208       } && test -s conftest$ac_exeext &&
10209       $as_test_x conftest$ac_exeext; then
10210  ac_cv_lib_dld_dld_link=yes
10211else
10212  echo "$as_me: failed program was:" >&5
10213sed 's/^/| /' conftest.$ac_ext >&5
10214
10215        ac_cv_lib_dld_dld_link=no
10216fi
10217
10218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10219      conftest$ac_exeext conftest.$ac_ext
10220LIBS=$ac_check_lib_save_LIBS
10221fi
10222{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10223echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10224if test $ac_cv_lib_dld_dld_link = yes; then
10225  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10226fi
10227
10228
10229fi
10230
10231
10232fi
10233
10234
10235fi
10236
10237
10238fi
10239
10240
10241fi
10242
10243    ;;
10244  esac
10245
10246  if test "x$lt_cv_dlopen" != xno; then
10247    enable_dlopen=yes
10248  else
10249    enable_dlopen=no
10250  fi
10251
10252  case $lt_cv_dlopen in
10253  dlopen)
10254    save_CPPFLAGS="$CPPFLAGS"
10255    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10256
10257    save_LDFLAGS="$LDFLAGS"
10258    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10259
10260    save_LIBS="$LIBS"
10261    LIBS="$lt_cv_dlopen_libs $LIBS"
10262
10263    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10264echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10265if test "${lt_cv_dlopen_self+set}" = set; then
10266  echo $ECHO_N "(cached) $ECHO_C" >&6
10267else
10268          if test "$cross_compiling" = yes; then :
10269  lt_cv_dlopen_self=cross
10270else
10271  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10272  lt_status=$lt_dlunknown
10273  cat > conftest.$ac_ext <<EOF
10274#line 10274 "configure"
10275#include "confdefs.h"
10276
10277#if HAVE_DLFCN_H
10278#include <dlfcn.h>
10279#endif
10280
10281#include <stdio.h>
10282
10283#ifdef RTLD_GLOBAL
10284#  define LT_DLGLOBAL           RTLD_GLOBAL
10285#else
10286#  ifdef DL_GLOBAL
10287#    define LT_DLGLOBAL         DL_GLOBAL
10288#  else
10289#    define LT_DLGLOBAL         0
10290#  endif
10291#endif
10292
10293/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10294   find out it does not work in some platform. */
10295#ifndef LT_DLLAZY_OR_NOW
10296#  ifdef RTLD_LAZY
10297#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10298#  else
10299#    ifdef DL_LAZY
10300#      define LT_DLLAZY_OR_NOW          DL_LAZY
10301#    else
10302#      ifdef RTLD_NOW
10303#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10304#      else
10305#        ifdef DL_NOW
10306#          define LT_DLLAZY_OR_NOW      DL_NOW
10307#        else
10308#          define LT_DLLAZY_OR_NOW      0
10309#        endif
10310#      endif
10311#    endif
10312#  endif
10313#endif
10314
10315#ifdef __cplusplus
10316extern "C" void exit (int);
10317#endif
10318
10319void fnord() { int i=42;}
10320int main ()
10321{
10322  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10323  int status = $lt_dlunknown;
10324
10325  if (self)
10326    {
10327      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10328      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10329      /* dlclose (self); */
10330    }
10331  else
10332    puts (dlerror ());
10333
10334    exit (status);
10335}
10336EOF
10337  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10338  (eval $ac_link) 2>&5
10339  ac_status=$?
10340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10342    (./conftest; exit; ) >&5 2>/dev/null
10343    lt_status=$?
10344    case x$lt_status in
10345      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10346      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10347      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10348    esac
10349  else :
10350    # compilation failed
10351    lt_cv_dlopen_self=no
10352  fi
10353fi
10354rm -fr conftest*
10355
10356
10357fi
10358{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10359echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10360
10361    if test "x$lt_cv_dlopen_self" = xyes; then
10362      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10363      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10364echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10365if test "${lt_cv_dlopen_self_static+set}" = set; then
10366  echo $ECHO_N "(cached) $ECHO_C" >&6
10367else
10368          if test "$cross_compiling" = yes; then :
10369  lt_cv_dlopen_self_static=cross
10370else
10371  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10372  lt_status=$lt_dlunknown
10373  cat > conftest.$ac_ext <<EOF
10374#line 10374 "configure"
10375#include "confdefs.h"
10376
10377#if HAVE_DLFCN_H
10378#include <dlfcn.h>
10379#endif
10380
10381#include <stdio.h>
10382
10383#ifdef RTLD_GLOBAL
10384#  define LT_DLGLOBAL           RTLD_GLOBAL
10385#else
10386#  ifdef DL_GLOBAL
10387#    define LT_DLGLOBAL         DL_GLOBAL
10388#  else
10389#    define LT_DLGLOBAL         0
10390#  endif
10391#endif
10392
10393/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10394   find out it does not work in some platform. */
10395#ifndef LT_DLLAZY_OR_NOW
10396#  ifdef RTLD_LAZY
10397#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10398#  else
10399#    ifdef DL_LAZY
10400#      define LT_DLLAZY_OR_NOW          DL_LAZY
10401#    else
10402#      ifdef RTLD_NOW
10403#        define LT_DLLAZY_OR_NOW        RTLD_NOW
10404#      else
10405#        ifdef DL_NOW
10406#          define LT_DLLAZY_OR_NOW      DL_NOW
10407#        else
10408#          define LT_DLLAZY_OR_NOW      0
10409#        endif
10410#      endif
10411#    endif
10412#  endif
10413#endif
10414
10415#ifdef __cplusplus
10416extern "C" void exit (int);
10417#endif
10418
10419void fnord() { int i=42;}
10420int main ()
10421{
10422  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10423  int status = $lt_dlunknown;
10424
10425  if (self)
10426    {
10427      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10428      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10429      /* dlclose (self); */
10430    }
10431  else
10432    puts (dlerror ());
10433
10434    exit (status);
10435}
10436EOF
10437  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10438  (eval $ac_link) 2>&5
10439  ac_status=$?
10440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10442    (./conftest; exit; ) >&5 2>/dev/null
10443    lt_status=$?
10444    case x$lt_status in
10445      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10446      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10447      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10448    esac
10449  else :
10450    # compilation failed
10451    lt_cv_dlopen_self_static=no
10452  fi
10453fi
10454rm -fr conftest*
10455
10456
10457fi
10458{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10459echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10460    fi
10461
10462    CPPFLAGS="$save_CPPFLAGS"
10463    LDFLAGS="$save_LDFLAGS"
10464    LIBS="$save_LIBS"
10465    ;;
10466  esac
10467
10468  case $lt_cv_dlopen_self in
10469  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10470  *) enable_dlopen_self=unknown ;;
10471  esac
10472
10473  case $lt_cv_dlopen_self_static in
10474  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10475  *) enable_dlopen_self_static=unknown ;;
10476  esac
10477fi
10478
10479
10480# Report which library types will actually be built
10481{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10482echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10483{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
10484echo "${ECHO_T}$can_build_shared" >&6; }
10485
10486{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10487echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10488test "$can_build_shared" = "no" && enable_shared=no
10489
10490# On AIX, shared libraries and static libraries use the same namespace, and
10491# are all built from PIC.
10492case $host_os in
10493aix3*)
10494  test "$enable_shared" = yes && enable_static=no
10495  if test -n "$RANLIB"; then
10496    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10497    postinstall_cmds='$RANLIB $lib'
10498  fi
10499  ;;
10500
10501aix4* | aix5*)
10502  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10503    test "$enable_shared" = yes && enable_static=no
10504  fi
10505    ;;
10506esac
10507{ echo "$as_me:$LINENO: result: $enable_shared" >&5
10508echo "${ECHO_T}$enable_shared" >&6; }
10509
10510{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10511echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10512# Make sure either enable_shared or enable_static is yes.
10513test "$enable_shared" = yes || enable_static=yes
10514{ echo "$as_me:$LINENO: result: $enable_static" >&5
10515echo "${ECHO_T}$enable_static" >&6; }
10516
10517# The else clause should only fire when bootstrapping the
10518# libtool distribution, otherwise you forgot to ship ltmain.sh
10519# with your package, and you will get complaints that there are
10520# no rules to generate ltmain.sh.
10521if test -f "$ltmain"; then
10522  # See if we are running on zsh, and set the options which allow our commands through
10523  # without removal of \ escapes.
10524  if test -n "${ZSH_VERSION+set}" ; then
10525    setopt NO_GLOB_SUBST
10526  fi
10527  # Now quote all the things that may contain metacharacters while being
10528  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10529  # variables and quote the copies for generation of the libtool script.
10530  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10531    SED SHELL STRIP \
10532    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10533    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10534    deplibs_check_method reload_flag reload_cmds need_locks \
10535    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10536    lt_cv_sys_global_symbol_to_c_name_address \
10537    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10538    old_postinstall_cmds old_postuninstall_cmds \
10539    compiler \
10540    CC \
10541    LD \
10542    lt_prog_compiler_wl \
10543    lt_prog_compiler_pic \
10544    lt_prog_compiler_static \
10545    lt_prog_compiler_no_builtin_flag \
10546    export_dynamic_flag_spec \
10547    thread_safe_flag_spec \
10548    whole_archive_flag_spec \
10549    enable_shared_with_static_runtimes \
10550    old_archive_cmds \
10551    old_archive_from_new_cmds \
10552    predep_objects \
10553    postdep_objects \
10554    predeps \
10555    postdeps \
10556    compiler_lib_search_path \
10557    archive_cmds \
10558    archive_expsym_cmds \
10559    postinstall_cmds \
10560    postuninstall_cmds \
10561    old_archive_from_expsyms_cmds \
10562    allow_undefined_flag \
10563    no_undefined_flag \
10564    export_symbols_cmds \
10565    hardcode_libdir_flag_spec \
10566    hardcode_libdir_flag_spec_ld \
10567    hardcode_libdir_separator \
10568    hardcode_automatic \
10569    module_cmds \
10570    module_expsym_cmds \
10571    lt_cv_prog_compiler_c_o \
10572    exclude_expsyms \
10573    include_expsyms; do
10574
10575    case $var in
10576    old_archive_cmds | \
10577    old_archive_from_new_cmds | \
10578    archive_cmds | \
10579    archive_expsym_cmds | \
10580    module_cmds | \
10581    module_expsym_cmds | \
10582    old_archive_from_expsyms_cmds | \
10583    export_symbols_cmds | \
10584    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10585    postinstall_cmds | postuninstall_cmds | \
10586    old_postinstall_cmds | old_postuninstall_cmds | \
10587    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10588      # Double-quote double-evaled strings.
10589      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10590      ;;
10591    *)
10592      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10593      ;;
10594    esac
10595  done
10596
10597  case $lt_echo in
10598  *'\$0 --fallback-echo"')
10599    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10600    ;;
10601  esac
10602
10603cfgfile="${ofile}T"
10604  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10605  $rm -f "$cfgfile"
10606  { echo "$as_me:$LINENO: creating $ofile" >&5
10607echo "$as_me: creating $ofile" >&6;}
10608
10609  cat <<__EOF__ >> "$cfgfile"
10610#! $SHELL
10611
10612# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10613# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10614# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10615#
10616# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10617# Free Software Foundation, Inc.
10618#
10619# This file is part of GNU Libtool:
10620# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10621#
10622# This program is free software; you can redistribute it and/or modify
10623# it under the terms of the GNU General Public License as published by
10624# the Free Software Foundation; either version 2 of the License, or
10625# (at your option) any later version.
10626#
10627# This program is distributed in the hope that it will be useful, but
10628# WITHOUT ANY WARRANTY; without even the implied warranty of
10629# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10630# General Public License for more details.
10631#
10632# You should have received a copy of the GNU General Public License
10633# along with this program; if not, write to the Free Software
10634# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10635#
10636# As a special exception to the GNU General Public License, if you
10637# distribute this file as part of a program that contains a
10638# configuration script generated by Autoconf, you may include it under
10639# the same distribution terms that you use for the rest of that program.
10640
10641# A sed program that does not truncate output.
10642SED=$lt_SED
10643
10644# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10645Xsed="$SED -e 1s/^X//"
10646
10647# The HP-UX ksh and POSIX shell print the target directory to stdout
10648# if CDPATH is set.
10649(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10650
10651# The names of the tagged configurations supported by this script.
10652available_tags=
10653
10654# ### BEGIN LIBTOOL CONFIG
10655
10656# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10657
10658# Shell to use when invoking shell scripts.
10659SHELL=$lt_SHELL
10660
10661# Whether or not to build shared libraries.
10662build_libtool_libs=$enable_shared
10663
10664# Whether or not to build static libraries.
10665build_old_libs=$enable_static
10666
10667# Whether or not to add -lc for building shared libraries.
10668build_libtool_need_lc=$archive_cmds_need_lc
10669
10670# Whether or not to disallow shared libs when runtime libs are static
10671allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10672
10673# Whether or not to optimize for fast installation.
10674fast_install=$enable_fast_install
10675
10676# The host system.
10677host_alias=$host_alias
10678host=$host
10679host_os=$host_os
10680
10681# The build system.
10682build_alias=$build_alias
10683build=$build
10684build_os=$build_os
10685
10686# An echo program that does not interpret backslashes.
10687echo=$lt_echo
10688
10689# The archiver.
10690AR=$lt_AR
10691AR_FLAGS=$lt_AR_FLAGS
10692
10693# A C compiler.
10694LTCC=$lt_LTCC
10695
10696# LTCC compiler flags.
10697LTCFLAGS=$lt_LTCFLAGS
10698
10699# A language-specific compiler.
10700CC=$lt_compiler
10701
10702# Is the compiler the GNU C compiler?
10703with_gcc=$GCC
10704
10705gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10706gcc_ver=\`gcc -dumpversion\`
10707
10708# An ERE matcher.
10709EGREP=$lt_EGREP
10710
10711# The linker used to build libraries.
10712LD=$lt_LD
10713
10714# Whether we need hard or soft links.
10715LN_S=$lt_LN_S
10716
10717# A BSD-compatible nm program.
10718NM=$lt_NM
10719
10720# A symbol stripping program
10721STRIP=$lt_STRIP
10722
10723# Used to examine libraries when file_magic_cmd begins "file"
10724MAGIC_CMD=$MAGIC_CMD
10725
10726# Used on cygwin: DLL creation program.
10727DLLTOOL="$DLLTOOL"
10728
10729# Used on cygwin: object dumper.
10730OBJDUMP="$OBJDUMP"
10731
10732# Used on cygwin: assembler.
10733AS="$AS"
10734
10735# The name of the directory that contains temporary libtool files.
10736objdir=$objdir
10737
10738# How to create reloadable object files.
10739reload_flag=$lt_reload_flag
10740reload_cmds=$lt_reload_cmds
10741
10742# How to pass a linker flag through the compiler.
10743wl=$lt_lt_prog_compiler_wl
10744
10745# Object file suffix (normally "o").
10746objext="$ac_objext"
10747
10748# Old archive suffix (normally "a").
10749libext="$libext"
10750
10751# Shared library suffix (normally ".so").
10752shrext_cmds='$shrext_cmds'
10753
10754# Executable file suffix (normally "").
10755exeext="$exeext"
10756
10757# Additional compiler flags for building library objects.
10758pic_flag=$lt_lt_prog_compiler_pic
10759pic_mode=$pic_mode
10760
10761# What is the maximum length of a command?
10762max_cmd_len=$lt_cv_sys_max_cmd_len
10763
10764# Does compiler simultaneously support -c and -o options?
10765compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10766
10767# Must we lock files when doing compilation?
10768need_locks=$lt_need_locks
10769
10770# Do we need the lib prefix for modules?
10771need_lib_prefix=$need_lib_prefix
10772
10773# Do we need a version for libraries?
10774need_version=$need_version
10775
10776# Whether dlopen is supported.
10777dlopen_support=$enable_dlopen
10778
10779# Whether dlopen of programs is supported.
10780dlopen_self=$enable_dlopen_self
10781
10782# Whether dlopen of statically linked programs is supported.
10783dlopen_self_static=$enable_dlopen_self_static
10784
10785# Compiler flag to prevent dynamic linking.
10786link_static_flag=$lt_lt_prog_compiler_static
10787
10788# Compiler flag to turn off builtin functions.
10789no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10790
10791# Compiler flag to allow reflexive dlopens.
10792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10793
10794# Compiler flag to generate shared objects directly from archives.
10795whole_archive_flag_spec=$lt_whole_archive_flag_spec
10796
10797# Compiler flag to generate thread-safe objects.
10798thread_safe_flag_spec=$lt_thread_safe_flag_spec
10799
10800# Library versioning type.
10801version_type=$version_type
10802
10803# Format of library name prefix.
10804libname_spec=$lt_libname_spec
10805
10806# List of archive names.  First name is the real one, the rest are links.
10807# The last name is the one that the linker finds with -lNAME.
10808library_names_spec=$lt_library_names_spec
10809
10810# The coded name of the library, if different from the real name.
10811soname_spec=$lt_soname_spec
10812
10813# Commands used to build and install an old-style archive.
10814RANLIB=$lt_RANLIB
10815old_archive_cmds=$lt_old_archive_cmds
10816old_postinstall_cmds=$lt_old_postinstall_cmds
10817old_postuninstall_cmds=$lt_old_postuninstall_cmds
10818
10819# Create an old-style archive from a shared archive.
10820old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10821
10822# Create a temporary old-style archive to link instead of a shared archive.
10823old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10824
10825# Commands used to build and install a shared archive.
10826archive_cmds=$lt_archive_cmds
10827archive_expsym_cmds=$lt_archive_expsym_cmds
10828postinstall_cmds=$lt_postinstall_cmds
10829postuninstall_cmds=$lt_postuninstall_cmds
10830
10831# Commands used to build a loadable module (assumed same as above if empty)
10832module_cmds=$lt_module_cmds
10833module_expsym_cmds=$lt_module_expsym_cmds
10834
10835# Commands to strip libraries.
10836old_striplib=$lt_old_striplib
10837striplib=$lt_striplib
10838
10839# Dependencies to place before the objects being linked to create a
10840# shared library.
10841predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10842
10843# Dependencies to place after the objects being linked to create a
10844# shared library.
10845postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10846
10847# Dependencies to place before the objects being linked to create a
10848# shared library.
10849predeps=$lt_predeps
10850
10851# Dependencies to place after the objects being linked to create a
10852# shared library.
10853postdeps=$lt_postdeps
10854
10855# The library search path used internally by the compiler when linking
10856# a shared library.
10857compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10858
10859# Method to check whether dependent libraries are shared objects.
10860deplibs_check_method=$lt_deplibs_check_method
10861
10862# Command to use when deplibs_check_method == file_magic.
10863file_magic_cmd=$lt_file_magic_cmd
10864
10865# Flag that allows shared libraries with undefined symbols to be built.
10866allow_undefined_flag=$lt_allow_undefined_flag
10867
10868# Flag that forces no undefined symbols.
10869no_undefined_flag=$lt_no_undefined_flag
10870
10871# Commands used to finish a libtool library installation in a directory.
10872finish_cmds=$lt_finish_cmds
10873
10874# Same as above, but a single script fragment to be evaled but not shown.
10875finish_eval=$lt_finish_eval
10876
10877# Take the output of nm and produce a listing of raw symbols and C names.
10878global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10879
10880# Transform the output of nm in a proper C declaration
10881global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10882
10883# Transform the output of nm in a C name address pair
10884global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10885
10886# This is the shared library runtime path variable.
10887runpath_var=$runpath_var
10888
10889# This is the shared library path variable.
10890shlibpath_var=$shlibpath_var
10891
10892# Is shlibpath searched before the hard-coded library search path?
10893shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10894
10895# How to hardcode a shared library path into an executable.
10896hardcode_action=$hardcode_action
10897
10898# Whether we should hardcode library paths into libraries.
10899hardcode_into_libs=$hardcode_into_libs
10900
10901# Flag to hardcode \$libdir into a binary during linking.
10902# This must work even if \$libdir does not exist.